/* MBTIナンプレ（/numple/・2026-10-06 NUMPLE1006）— 机の上のノートに、1〜9 を書きこむ */
:root { --np-ink: #4a3a28; --np-sub: #8a7458; --np-card: #fffaf0; --np-line: #ecdcc0; }
.np { --np-paper: #fffdf7; --np-thick: #3d3326; --np-thin: #ddd2bf; --np-given: #3d3326; --np-mine: #2f7fd1; --np-sel: #ffe27a; --np-num: 'M PLUS Rounded 1c', system-ui, sans-serif; --np-numw: 800; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body.npb { background: #e8c58e; color: var(--np-ink); font-family: 'M PLUS Rounded 1c', system-ui, -apple-system, 'Hiragino Maru Gothic ProN', sans-serif; font-weight: 700; overflow: hidden; overscroll-behavior: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
.np { position: fixed; inset: 0; display: flex; justify-content: center; }
.np-boot { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; text-align: center; background: rgba(255, 250, 240, .92); border-radius: 22px; box-shadow: 0 10px 30px rgba(90, 60, 20, .18); }
.np-boot b { font-size: 18px; font-weight: 900; }
.np-boot img { width: 76px; height: 76px; animation: npBob 1.2s ease-in-out infinite; }
.np-boot span { color: var(--np-sub); font-size: 14px; line-height: 1.7; }
@keyframes npBob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.np-app { position: relative; width: 100%; max-width: 560px; height: 100%; display: flex; flex-direction: column; padding: calc(8px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom)); }
.np-app.is-load { justify-content: center; }

/* ---------- タイトル ---------- */
.np-app.is-title { overflow-y: auto; -webkit-overflow-scrolling: touch; gap: 10px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.np-tbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.np-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(255, 252, 244, .95); box-shadow: 0 3px 0 rgba(150, 105, 50, .25); font-size: 14px; font-weight: 800; text-decoration: none; color: var(--np-ink); }
.np-pill--join { color: #d9466f; }
.np-pill--st b { color: #e07a12; font-size: 16px; }
.np-dot { position: absolute; top: 6px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 2px #fff; }
.np-hero { position: relative; padding: 18px 0 2px; text-align: center; }
.np-logo { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.np-logo__m { display: inline-block; padding: 3px 14px 4px; border-radius: 10px; background: #3d3326; color: #ffe27a; font-size: 17px; font-weight: 900; letter-spacing: .14em; transform: rotate(-3deg); box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.np-logo__w { display: flex; gap: 6px; }
.np-logo__w i { position: relative; display: flex; align-items: center; justify-content: center; width: 66px; height: 66px; font-style: normal; background: #fffdf7; border: 3px solid #3d3326; border-radius: 10px; transform: rotate(var(--r)); box-shadow: 0 5px 0 rgba(120, 80, 30, .3); }
.np-logo__w b { font-size: 44px; font-weight: 900; color: var(--c); line-height: 1; text-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
.np-logo__w small { position: absolute; left: 5px; top: 2px; font-size: 11px; color: #b9a98e; font-weight: 800; }
.np-hero__f { position: absolute; width: 64px; height: 64px; filter: drop-shadow(0 4px 4px rgba(90, 60, 20, .25)); animation: npBob 3s ease-in-out infinite; }
.np-hero__f--1 { left: 0; top: 6px; transform: rotate(-10deg); }
.np-hero__f--2 { right: 2px; top: 0; animation-delay: -1s; }
.np-hero__f--3 { right: 0; top: 132px; width: 46px; height: 46px; animation-delay: -2s; }
.np-sub { margin: 10px auto 0; display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 252, 244, .9); font-size: 14px; color: var(--np-ink); }
.np-dc { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; padding: 14px; border-radius: 22px; background: linear-gradient(160deg, #fff8dc, #ffeaa8); border: 3px solid #f6cf49; box-shadow: 0 6px 0 rgba(200, 140, 30, .35); }
.np-dc__pic { position: relative; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #fff; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(160, 110, 30, .25); }
.np-dc__pic img { width: 100%; height: 100%; object-fit: cover; }
.np-dc__h { margin: 2px 0 4px; font-size: 18px; font-weight: 900; }
.np-dc__h em { font-style: normal; display: inline-block; margin-left: 4px; padding: 1px 10px; border-radius: 999px; background: var(--lc); color: #fff; font-size: 13px; vertical-align: 2px; }
.np-dc__d { margin: 0 0 6px; font-size: 13px; line-height: 1.55; color: #6a5434; font-weight: 700; }
.np-dc__st { display: inline-block; padding: 2px 10px; border-radius: 8px; background: rgba(255, 255, 255, .7); font-size: 13px; color: var(--np-sub); }
.np-dc__st.is-done { color: #1f8a55; }
.np-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 56px; padding: 8px 16px; border-radius: 18px; font-size: 18px; font-weight: 900; text-decoration: none; transition: transform .08s; }
.np-btn:active { transform: translateY(3px); }
.np-btn small { font-size: 12.5px; font-weight: 700; opacity: .92; }
.np-btn--day { grid-column: 1 / -1; background: linear-gradient(180deg, #ffb238, #f08a1c); color: #fff; box-shadow: 0 5px 0 #c4650b; text-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.np-btn--free { background: linear-gradient(180deg, #5bb8f0, #3a8fd6); color: #fff; box-shadow: 0 5px 0 #2a6aa6; text-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.np-btn--cont { background: linear-gradient(180deg, #74d39a, #3fae6e); color: #fff; box-shadow: 0 5px 0 #2b8250; }
.np-btn--sub { min-height: 48px; font-size: 15px; background: #fffaf0; color: var(--np-ink); box-shadow: 0 3px 0 rgba(150, 105, 50, .28); }
.np-qrow { display: flex; gap: 8px; }
.np-qbar { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: rgba(255, 252, 244, .95); box-shadow: 0 3px 0 rgba(150, 105, 50, .25); font-size: 13px; text-align: left; min-width: 0; }
.np-qbar span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--np-sub); }
.np-gcpill { position: relative; min-height: 48px; padding: 0 18px; border-radius: 14px; background: linear-gradient(180deg, #ff9ec0, #ff6f9e); color: #fff; font-weight: 900; box-shadow: 0 3px 0 #d24a78; }
.np-grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.np-grid6 button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; border-radius: 16px; background: rgba(255, 252, 244, .95); box-shadow: 0 3px 0 rgba(150, 105, 50, .25); font-size: 14px; }
.np-grid6 i { font-style: normal; font-size: 22px; line-height: 1.1; }
.np-wt:empty { display: none; }

/* ---------- 遊ぶ ---------- */
.np-app.is-play { gap: 8px; padding-left: calc(4px + env(safe-area-inset-left)); padding-right: calc(4px + env(safe-area-inset-right)); }
.np-app.is-play:not(.is-side) > .np-top, .np-app.is-play:not(.is-side) > .np-talk, .np-app.is-play:not(.is-side) > .np-tools, .np-app.is-play:not(.is-side) > .np-pad { margin-left: 8px; margin-right: 8px; }
.np-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; }
.np-ib { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 252, 244, .95); box-shadow: 0 3px 0 rgba(150, 105, 50, .25); color: var(--np-ink); }
.np-ib svg { width: 24px; height: 24px; }
.np-top__c { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 252, 244, .95); box-shadow: 0 3px 0 rgba(150, 105, 50, .2); min-height: 44px; }
.np-lvb { padding: 2px 10px; border-radius: 999px; background: var(--lc); color: #fff; font-size: 13px; font-weight: 900; white-space: nowrap; }
.np-time { font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; min-width: 52px; text-align: center; }
.np-talk { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.np-talk img { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 2px 2px rgba(90, 60, 20, .25)); }
.np-talk p { position: relative; flex: 1; margin: 0; padding: 7px 12px; border-radius: 14px; background: rgba(255, 252, 244, .96); font-size: 14px; line-height: 1.4; color: var(--np-ink); box-shadow: 0 2px 0 rgba(150, 105, 50, .2); min-height: 34px; }
.np-talk p::before { content: ''; position: absolute; left: -7px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-right-color: rgba(255, 252, 244, .96); border-left: 0; }
.np-talk.is-pop img { animation: npHop .45s ease; }
.np-talk.is-pop p { animation: npPop .3s ease; }
@keyframes npHop { 40% { transform: translateY(-7px) rotate(-8deg); } }
@keyframes npPop { 0% { transform: scale(.96); opacity: .4; } }
.np-bw { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.np-board { position: relative; width: var(--bs, 360px); height: var(--bs, 360px); display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr); background: var(--np-paper); border: 3px solid var(--np-thick); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 0 rgba(0, 0, 0, .05), 0 10px 24px rgba(90, 60, 20, .28); touch-action: none; }
.np.is-gold .np-board { border-color: #c9962a; box-shadow: 0 0 0 3px #ffe9a8, 0 10px 24px rgba(160, 110, 10, .4); }
.np-c { position: relative; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--np-thin); border-bottom: 1px solid var(--np-thin); background: var(--np-paper); transition: background-color .12s; cursor: pointer; }
.np-c:nth-child(9n) { border-right: 0; }
.np-c:nth-child(n+73) { border-bottom: 0; }
.np-c.bR { border-right: 2.5px solid var(--np-thick); }
.np-c.bB { border-bottom: 2.5px solid var(--np-thick); }
.np-v { font-family: var(--np-num); font-weight: var(--np-numw); font-size: calc(var(--bs, 360px) / 9 * .62); line-height: 1; color: var(--np-mine); pointer-events: none; }
.np-c.is-g .np-v { color: var(--np-given); font-weight: 900; }
.np-c.is-hl { background: color-mix(in srgb, var(--np-sel) 26%, var(--np-paper)); }
.np-c.is-same { background: color-mix(in srgb, var(--np-sel) 62%, var(--np-paper)); }
.np-c.is-sel { background: var(--np-sel); box-shadow: inset 0 0 0 2.5px color-mix(in srgb, var(--np-sel) 50%, #c0861a); }
.np-c.is-bad { background: #ffd9de; }
.np-c.is-bad .np-v, .np-c.is-conf .np-v { color: #e0344e; }
.np-c.is-sel.is-bad { background: #ffc2ca; }
.np-ns { position: absolute; inset: 2px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); pointer-events: none; }
.np-ns i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: calc(var(--bs, 360px) / 9 * .27); font-weight: 800; color: var(--np-sub); line-height: 1; border-radius: 3px; }
.np.is-dark .np-ns i { color: #b9c0ea; }
.np-ns i.is-same { background: var(--np-sel); color: var(--np-given); }
.np-c.is-mask::after { content: ''; width: 34%; height: 34%; border-radius: 50%; background: var(--np-mine); opacity: .55; }
.np-c.is-fxshake { animation: npShake .4s ease; }
@keyframes npShake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.np-c.is-fxu { animation: npUnit .65s ease; }
@keyframes npUnit { 30% { background: #fff1a8; transform: scale(1.06); } }
.np-c.is-fxh { animation: npHintU 1.7s ease; }
@keyframes npHintU { 15%, 70% { background: #d6f3ff; } }
.np-c.is-fxhint { animation: npHint 1.7s ease; z-index: 1; }
@keyframes npHint { 10% { transform: scale(1.18); box-shadow: 0 0 0 3px #46b6ff, 0 0 18px #7fd0ff; } 60% { box-shadow: 0 0 0 3px #46b6ff, 0 0 12px #7fd0ff; } }
.np-c.is-fxwin { animation: npWin .7s ease forwards; }
@keyframes npWin { 0% { background: var(--np-paper); } 40% { background: #fff0a0; transform: scale(1.12); } 100% { background: color-mix(in srgb, #fff0a0 45%, var(--np-paper)); } }
.np-pausecv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; border-radius: 10px; background: rgba(255, 250, 238, .97); z-index: 5; }
.np-pausecv[hidden] { display: none; }
.np-pausecv b { font-size: 20px; font-weight: 900; }
.np-pausecv .np-btn { max-width: 280px; }
.np-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.np-tools button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; border-radius: 16px; background: rgba(255, 252, 244, .96); box-shadow: 0 3px 0 rgba(150, 105, 50, .25); font-size: 13px; font-weight: 800; color: var(--np-ink); }
.np-tools button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(150, 105, 50, .25); }
.np-tools svg { width: 24px; height: 24px; }
.np-tools em { font-style: normal; font-size: 11px; padding: 0 5px; border-radius: 5px; background: #e6dccb; color: #8a7458; }
.np-tools .is-on { background: #3a8fd6; color: #fff; }
.np-tools .is-on em { background: #fff; color: #3a8fd6; }
.np-tools i { position: absolute; top: 4px; right: 8px; min-width: 20px; height: 20px; border-radius: 10px; background: #ffb238; color: #fff; font-style: normal; font-size: 12px; line-height: 20px; text-align: center; }
.np-tools .is-none i { background: #c9bda9; }
.np-pad { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.np-pad button { grid-column: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; border-radius: 16px; background: #fffdf7; box-shadow: 0 4px 0 rgba(150, 105, 50, .3); color: #2f6fb8; }
.np-pad button:nth-child(6) { grid-column: 2 / span 2; }
.np-pad button:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(150, 105, 50, .3); }
.np-pad b { font-family: var(--np-num); font-weight: var(--np-numw); font-size: 30px; line-height: 1; }
.np-pad small { font-size: 10.5px; color: var(--np-sub); font-weight: 700; min-height: 13px; }
.np-pad .is-cur { background: #fff3c4; box-shadow: 0 4px 0 #e2b23c; }
.np-pad .is-full { opacity: .38; }
.np-app.is-memo .np-pad b { font-size: 20px; color: #8a7458; }
.np-app.is-memo .np-pad button { background: #f4f9ff; }
.np-app.is-paused .np-tools, .np-app.is-paused .np-pad { opacity: .35; pointer-events: none; }
.np-app.is-play.is-cast { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.np-app.is-play.is-cast.is-sm { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
/* 観戦の中: 操作のボタンは出さない（見るだけ） */
.np-app.is-view .np-tools, .np-app.is-view .np-pad, .np-app.is-view .np-ib { visibility: hidden; }
/* 小さい画面（360×640 など） */
.np-app.is-sm.is-play { gap: 5px; padding-top: calc(5px + env(safe-area-inset-top)); padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
.np-app.is-sm .np-top { min-height: 44px; }
.np-app.is-sm .np-ib { width: 44px; height: 44px; }
.np-app.is-sm .np-talk { min-height: 30px; }
.np-app.is-sm .np-talk img { width: 30px; height: 30px; }
.np-app.is-sm .np-talk p { padding: 4px 10px; font-size: 13px; min-height: 28px; }
.np-app.is-sm .np-tools button { min-height: 48px; font-size: 12px; }
.np-app.is-sm .np-tools svg { width: 21px; height: 21px; }
.np-app.is-sm .np-pad { gap: 6px; }
.np-app.is-sm .np-pad button { min-height: 47px; }
.np-app.is-sm .np-pad b { font-size: 26px; }
/* 横に広い画面（パソコン）: 盤を左、操作を右 */
.np-app.is-side { max-width: 1100px; display: grid; grid-template-columns: auto 340px; grid-template-rows: auto auto auto 1fr; column-gap: 28px; row-gap: 10px; align-content: center; justify-content: center; }
.np-app.is-side .np-top { grid-column: 1 / -1; }
.np-app.is-side .np-bw { grid-column: 1; grid-row: 2 / span 3; align-self: start; }
.np-app.is-side .np-talk { grid-column: 2; grid-row: 2; }
.np-app.is-side .np-tools { grid-column: 2; grid-row: 3; align-self: start; grid-template-columns: repeat(2, 1fr); }
.np-app.is-side .np-pad { grid-column: 2; grid-row: 4; align-self: start; grid-template-columns: repeat(3, 1fr); }
.np-app.is-side .np-pad button { min-height: 74px; }
.np-app.is-side .np-pad b { font-size: 36px; }
.np-app.is-side .np-pad button, .np-app.is-side .np-pad button:nth-child(6) { grid-column: auto; }
@media (min-width: 760px) { .np-app.is-title { max-width: 520px; } }

/* ---------- シート ---------- */
.np-sheetw { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(40, 28, 12, 0); transition: background .25s; }
.np-sheetw.is-in { background: rgba(40, 28, 12, .45); }
.np-sheet { position: relative; width: 100%; max-width: 520px; max-height: 88vh; max-height: 88dvh; overflow-y: auto; padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--np-card); color: var(--np-ink); transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .9, .3, 1.1); }
.np-sheetw.is-in .np-sheet { transform: none; }
@media (min-width: 760px) { .np-sheetw { align-items: center; } .np-sheet { border-radius: 24px; } }
.np-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 44px; color: var(--np-sub); }
.np-sh { margin: 0 44px 12px 0; font-size: 20px; font-weight: 900; }
.np-sec { margin: 16px 0 8px; font-size: 15px; font-weight: 900; color: var(--np-sub); }
.np-note { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--np-sub); font-weight: 700; }
.np-note.is-err { color: #d23a52; }
.np-empty { padding: 24px 8px; text-align: center; color: var(--np-sub); font-size: 14px; }
.np-lvs { display: flex; flex-direction: column; gap: 10px; }
.np-lv { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 2.5px solid var(--lc); box-shadow: 0 4px 0 var(--lc); text-align: left; min-height: 64px; }
.np-lv:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lc); }
.np-lv__n { font-size: 19px; font-weight: 900; color: var(--lc); }
.np-lv__d { grid-column: 1 / -1; font-size: 13px; color: var(--np-sub); line-height: 1.5; }
.np-lv__r { grid-column: 2; grid-row: 1; align-self: center; font-size: 12px; color: var(--np-sub); }
.np-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.np-tabs button { flex: 1; min-height: 44px; border-radius: 12px; background: #f1e6d1; font-size: 15px; font-weight: 800; }
.np-tabs .is-on { background: #3d3326; color: #ffe27a; }
.np-rkl { list-style: none; margin: 0; padding: 0; }
.np-rkl li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 6px; border-bottom: 1px solid var(--np-line); }
.np-rkl li.is-me { background: #fff3c4; border-radius: 10px; }
.np-rkl__no { width: 30px; text-align: center; font-size: 16px; font-weight: 900; color: var(--np-sub); }
.np-rkl__no.is-top1 { color: #d9a400; } .np-rkl__no.is-top2 { color: #8f9bb0; } .np-rkl__no.is-top3 { color: #c07a3c; }
.np-rkl img, .np-rkl__av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #efe3cc; flex: none; }
.np-rkl b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; cursor: pointer; }
.np-rkl__t { font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 900; text-align: right; }
.np-rkl__t small { display: block; font-size: 11px; color: #e07a12; }
.np-rk__me { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff; font-size: 14px; }
.np-rk__me a { color: #d9466f; text-decoration: none; }
.np-ql { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.np-ql li { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 14px; background: #fff; border: 2px solid var(--np-line); font-size: 14px; }
.np-ql li span { flex: 1; line-height: 1.45; }
.np-ql li span small { display: block; color: var(--np-sub); font-size: 12px; }
.np-ql li > b { color: #e07a12; white-space: nowrap; }
.np-ql li em { font-style: normal; font-size: 12px; color: #1f8a55; white-space: nowrap; }
.np-ql li.is-done { border-color: #f6cf49; background: #fffbe6; }
.np-ql li.is-got { opacity: .7; }
.np-mini { min-height: 44px; padding: 0 12px; border-radius: 12px; background: linear-gradient(180deg, #ffb238, #f08a1c); color: #fff; font-size: 13px; font-weight: 900; box-shadow: 0 3px 0 #c4650b; white-space: nowrap; }
.np-join { display: block; margin-top: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, #ffe0ea, #ffd0de); color: #b23a62; text-decoration: none; font-size: 14px; line-height: 1.5; text-align: center; }
.np-join b { display: block; font-size: 16px; }
.np-skl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.np-sk { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px; background: #fff; border: 2.5px solid var(--np-line); min-height: 44px; }
.np-sk.is-on { border-color: #3a8fd6; box-shadow: 0 0 0 2px #cfe6ff; }
.np-sk.is-lock { opacity: .5; }
.np-sk b { font-size: 12.5px; }
.np-sk small { font-size: 11px; color: var(--np-sub); }
.np-sw { display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; }
.np-sw--b { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--p); border: 2.5px solid var(--k); }
.np-sw--b i { display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--t); border-bottom: 1px solid var(--t); font-style: normal; font-size: 16px; font-weight: 900; color: var(--g); }
.np-sw--b i.is-m { color: var(--m); }
.np-sw--b i.is-s { background: var(--s); }
.np-sw--f { display: flex; align-items: center; justify-content: center; background: #fffdf7; border: 2px solid #e6dccb; font-size: 28px; color: #2f6fb8; }
.np-sw--bg { border: 2px solid #e6dccb; }
.np-how__r { display: flex; gap: 12px; align-items: flex-start; }
.np-how__r p { margin: 0; font-size: 14px; line-height: 1.7; }
.np-ex { flex: none; display: grid; grid-template-columns: repeat(3, 32px); grid-template-rows: repeat(3, 32px); border: 2.5px solid #3d3326; background: #fffdf7; border-radius: 4px; }
.np-ex i { display: flex; align-items: center; justify-content: center; border-right: 1px solid #ddd2bf; border-bottom: 1px solid #ddd2bf; font-style: normal; font-weight: 900; font-size: 17px; }
.np-ex i.is-q { background: #ffe27a; color: #e07a12; }
.np-how__l { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.np-how__l li { padding: 10px 12px; border-radius: 12px; background: #fff; font-size: 13.5px; line-height: 1.6; font-weight: 700; }
.np-how__l b { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: 6px; background: #3d3326; color: #ffe27a; font-size: 12.5px; }
.np-sheetw--how .np-btn { margin-top: 14px; }
.np-rec { width: 100%; border-collapse: collapse; font-size: 14px; }
.np-rec th, .np-rec td { padding: 10px 6px; border-bottom: 1px solid var(--np-line); text-align: center; }
.np-rec th { font-weight: 900; }
.np-vol { display: flex; align-items: center; gap: 10px; min-height: 52px; font-size: 15px; }
.np-vol b { width: 64px; }
.np-vol input { flex: 1; height: 44px; accent-color: #f08a1c; }
.np-vol span { width: 34px; text-align: right; color: var(--np-sub); font-variant-numeric: tabular-nums; }
.np-tg { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-top: 1px solid var(--np-line); cursor: pointer; }
.np-tg span { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.np-tg small { font-size: 12px; color: var(--np-sub); font-weight: 700; line-height: 1.45; }
.np-tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.np-tg i { flex: none; width: 54px; height: 32px; border-radius: 16px; background: #d8ccb6; position: relative; transition: background .15s; }
.np-tg i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.np-tg input:checked + i { background: #3fae6e; }
.np-tg input:checked + i::after { transform: translateX(22px); }
.np-tg input:focus-visible + i { outline: 3px solid #7fc4ff; outline-offset: 2px; }

/* 結果 */
.np-res { text-align: center; }
.np-res__pic { position: relative; width: 150px; height: 150px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; border: 4px solid #f6cf49; background: #fff; animation: npJoy 1s ease; box-shadow: 0 6px 20px rgba(200, 140, 30, .35); }
.np-res__pic img { width: 100%; height: 100%; object-fit: cover; animation: npJoyImg 1.6s ease-in-out infinite; }
@keyframes npJoy { 0% { transform: scale(.3) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.12) rotate(6deg); opacity: 1; } 100% { transform: none; } }
@keyframes npJoyImg { 50% { transform: translateY(-6px) scale(1.03); } }
.np-res__ok { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%) rotate(-6deg); padding: 2px 12px; border-radius: 8px; background: #ff6f6f; color: #fff; font-size: 15px; font-weight: 900; letter-spacing: .08em; box-shadow: 0 2px 0 #c94444; }
.np-res h2 { margin: 6px 0 10px; font-size: 22px; font-weight: 900; }
.np-res__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.np-res__row div { padding: 10px 4px; border-radius: 14px; background: #fff; }
.np-res__row small { display: block; font-size: 12px; color: var(--np-sub); }
.np-res__row b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.np-res__srv { min-height: 20px; }
.np-res__best { margin: 12px 0 0; padding: 8px; border-radius: 12px; background: linear-gradient(90deg, #fff1a8, #ffe0ea); color: #c4650b; font-size: 16px; font-weight: 900; }
.np-res__rank { margin: 12px 0 0; padding: 10px; border-radius: 12px; background: #fff; font-size: 15px; }
.np-res__rank b { font-size: 24px; color: #e07a12; }
.np-res__rank small { display: block; font-size: 12px; color: var(--np-sub); }
.np-res__srv .np-btn { margin-top: 12px; }
.np-res__btns { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.np-conf { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.np-conf i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: npFall linear forwards; }
@keyframes npFall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }
.np-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: rgba(40, 30, 18, .92); color: #fff; font-size: 14px; line-height: 1.5; animation: npPop .25s ease; transition: opacity .35s; }
.np-toast.is-out { opacity: 0; }
/* 暗い背景のときは上に乗る白い札をそのまま（読みやすさは札で確保） */
body.is-nightbg .np-sub, body.is-nightbg .np-talk p { background: rgba(255, 252, 244, .96); }
@media (prefers-reduced-motion: reduce) { .np-hero__f, .np-boot img, .np-res__pic img { animation: none; } }
