.friend-gomoku-page{max-width:760px;margin:0 auto;padding:4px 0 38px}.friend-gomoku-heading{text-align:center;padding:10px 0 16px;position:relative}.friend-gomoku-back{color:var(--muted);align-items:center;gap:5px;font-size:12px;text-decoration:none;display:inline-flex;position:absolute;top:12px;left:0}.friend-gomoku-back:first-letter{font-size:22px}.friend-gomoku-kicker{color:#6561a7;letter-spacing:.1em;background:#eeeefe;border-radius:20px;padding:5px 9px;font-size:10px;font-weight:850;display:inline-block}.friend-gomoku-heading h1{letter-spacing:-.03em;margin:13px 0 4px;font-size:clamp(25px,5vw,34px)}.friend-gomoku-heading p{max-width:510px;color:var(--muted);margin:0 auto;font-size:13px;line-height:1.6}.friend-gomoku-heading.is-playing{padding:8px 0 10px}.friend-gomoku-heading.is-playing .friend-gomoku-kicker{display:none}.friend-gomoku-heading.is-playing h1{margin:0;font-size:clamp(19px,4vw,25px)}.friend-gomoku-setup{border:1px solid var(--line);background:var(--surface,#fff);border-radius:18px;grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) minmax(190px,1.1fr) auto;align-items:center;gap:8px 12px;margin:4px 0 18px;padding:14px;display:grid}.friend-gomoku-friend-row{grid-area:1/1/span 2;align-items:center;gap:10px;min-width:0;display:flex}.friend-gomoku-avatar{object-fit:cover;background:#eef0f8;border-radius:50%;flex:none;width:46px;height:46px}.friend-gomoku-friend-row>div{gap:3px;min-width:0;display:grid}.friend-gomoku-friend-row strong{font-size:14px}.friend-gomoku-friend-row small{color:var(--muted);font-size:11px}.friend-gomoku-select-label{color:var(--muted);grid-area:1/2;align-self:end;gap:5px;font-size:11px;font-weight:700;display:grid}.friend-gomoku-select-label+.field{grid-area:2/2}.friend-gomoku-setup .btn{white-space:nowrap;grid-area:1/3/span 2;min-height:44px;padding:0 14px}.friend-gomoku-error{color:#a32138;grid-column:1/-1;margin:0;font-size:12px}.friend-gomoku-play{justify-items:center;gap:12px;display:grid}.friend-gomoku-status{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;width:min(100%,520px);display:flex}.friend-gomoku-status>div{align-items:center;gap:8px;font-size:14px;display:flex}.friend-gomoku-actions{flex:none;align-items:center;gap:6px;display:flex}.friend-gomoku-live-dot{background:#c9ceda;border-radius:50%;width:9px;height:9px;box-shadow:0 0 0 4px #e9ebf1}.friend-gomoku-live-dot[data-active=true]{background:#42a581;box-shadow:0 0 0 4px #42a58124}.friend-gomoku-reset{border:1px solid var(--line);background:var(--surface,#fff);color:var(--text);font:inherit;cursor:pointer;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:700}.friend-gomoku-skip{color:#514ba0;min-height:37px;font:inherit;cursor:pointer;background:#eeebff;border:1px solid #a6a1dc;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:800}.friend-gomoku-skip:hover,.friend-gomoku-skip:focus-visible{background:#e0dcff}.friend-gomoku-coordinate-shell{grid-template-rows:18px auto;grid-template-columns:24px minmax(0,1fr);align-items:stretch;gap:4px;width:min(100%,548px);display:grid}.friend-gomoku-axis-top{grid-area:1/2;grid-template-columns:repeat(15,minmax(0,1fr));padding-inline:1px;display:grid}.friend-gomoku-axis-left{grid-area:2/1;grid-template-rows:repeat(15,minmax(0,1fr));padding-block:1px;display:grid}.friend-gomoku-axis-label{text-align:center;font-variant-numeric:tabular-nums;color:#715439;justify-content:center;align-items:center;min-width:0;min-height:0;font-size:11px;font-weight:650;line-height:1;display:flex}.friend-gomoku-axis-label.is-last{color:#a02b40;background:#f3e1bf;border-radius:5px;font-weight:850}.friend-gomoku-coordinate-shell .friend-gomoku-board{grid-area:2/2;width:100%}.friend-gomoku-coordinate-hint{width:min(100%,548px);color:var(--muted);text-align:center;flex-wrap:wrap;justify-content:center;align-items:center;gap:5px 12px;margin:0;font-size:11px;line-height:1.5;display:flex}.friend-gomoku-coordinate-hint strong{color:var(--text);font-size:12px}.friend-gomoku-board{aspect-ratio:1;box-sizing:border-box;touch-action:manipulation;background:#eacb91;border:1px solid #ba874b;border-radius:12px;grid-template-rows:repeat(15,minmax(0,1fr));grid-template-columns:repeat(15,minmax(0,1fr));width:min(100%,520px);padding:0;display:grid;position:relative;overflow:hidden;box-shadow:0 8px 24px #49301420}.friend-gomoku-grid-lines{fill:none;stroke:#865d32aa;stroke-width:.045px;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.friend-gomoku-grid-lines circle{fill:#865d32;stroke:none}.friend-gomoku-cell{z-index:1;cursor:pointer;touch-action:manipulation;background:0 0;border:0;border-radius:50%;place-items:center;min-width:0;min-height:0;padding:0;display:grid;position:relative}.friend-gomoku-cell:disabled{cursor:default}.friend-gomoku-cell:not(:disabled):hover{background:#fff8}.friend-gomoku-stone{z-index:1;box-sizing:border-box;border-radius:50%;width:82%;height:82%;position:relative;box-shadow:0 2px 4px #0004}.friend-gomoku-stone.black{background:radial-gradient(circle at 35% 30%,#555,#111 72%)}.friend-gomoku-stone.white{background:radial-gradient(circle at 35% 30%,#fff,#dedede 75%);border:1px solid #aaa}.friend-gomoku-stone.last:after{content:"";background:#e74a54;border-radius:50%;position:absolute;inset:37%}.friend-gomoku-stone.winning{outline-offset:1px;outline:3px solid #e6a624;box-shadow:0 0 12px #dfaa3e}.friend-gomoku-companion{border:1px solid var(--line);background:var(--surface,#fff);border-radius:15px;align-items:center;gap:10px;width:min(100%,520px);padding:10px 12px;display:flex}.friend-gomoku-companion .friend-gomoku-avatar{width:42px;height:42px;transition:box-shadow .2s,transform .2s}.friend-gomoku-companion .is-speaking{transform:scale(1.04);box-shadow:0 0 0 4px #b8b5ea}.friend-gomoku-companion-copy{gap:3px;min-width:0;display:grid}.friend-gomoku-companion-copy strong{font-size:12px}.friend-gomoku-companion-copy span{color:var(--muted);font-size:12px;line-height:1.5}.friend-gomoku-play>.live-status,.friend-gomoku-play>.live-recovery,.friend-gomoku-play>.live-controls,.friend-gomoku-play>.crew-voice-dock,.friend-gomoku-play>.live-audio-settings{width:min(100%,520px)}.friend-gomoku-play .crew-voice-controls{margin-top:0}.friend-gomoku-start-voice{color:#48409c;width:min(100%,520px);min-height:44px;font:inherit;cursor:pointer;background:#efedff;border:1px solid #a8a4de;border-radius:14px;font-size:13px;font-weight:750}.friend-gomoku-last-event{width:min(100%,520px);color:var(--muted);text-align:center;margin:0;font-size:11px}.friend-gomoku-note{max-width:520px;color:var(--muted);text-align:center;margin:15px auto 0;font-size:10px;line-height:1.55}@media (width<=620px){.friend-gomoku-page{padding:0 0 26px}.friend-gomoku-heading{padding:45px 0 14px}.friend-gomoku-heading h1{margin-top:8px}.friend-gomoku-heading p{font-size:12px}.friend-gomoku-setup{grid-template-rows:auto;grid-template-columns:1fr 1fr;align-items:center;gap:10px;padding:12px}.friend-gomoku-friend-row{grid-area:auto/1/auto/-1}.friend-gomoku-select-label{grid-area:2/1}.friend-gomoku-select-label+.field{grid-area:2/2;min-width:0}.friend-gomoku-setup .btn{grid-area:auto/1/auto/-1;width:100%}.friend-gomoku-board{border-radius:8px}.friend-gomoku-status{padding:0 2px}.friend-gomoku-status>div{font-size:13px}.friend-gomoku-reset{padding:8px;font-size:11px}.friend-gomoku-heading.is-playing{padding:40px 0 8px}.friend-gomoku-heading.is-playing h1{margin:0;font-size:20px}.friend-gomoku-coordinate-shell{grid-template-rows:16px auto;grid-template-columns:20px minmax(0,1fr);gap:3px}.friend-gomoku-axis-label{font-size:clamp(8px,2.4vw,10px)}.friend-gomoku-status{row-gap:10px}.friend-gomoku-actions{flex-wrap:wrap;justify-content:flex-end}.friend-gomoku-skip{padding:8px;font-size:11px}}.friend-gomoku-voice-dock{justify-items:stretch;gap:8px;width:min(100%,520px);display:grid}.friend-gomoku-voice-dock .friend-gomoku-companion,.friend-gomoku-voice-dock .friend-gomoku-start-voice,.friend-gomoku-voice-dock .live-status,.friend-gomoku-voice-dock .live-recovery,.friend-gomoku-voice-dock .live-controls,.friend-gomoku-voice-dock .crew-voice-dock{width:100%;min-width:0}.friend-gomoku-actions .crew-game-panel-trigger{min-height:40px}@media (width<=620px){.page.page-enter:has(.friend-gomoku-page){animation:none}.friend-gomoku-heading.is-playing{padding:10px 0 8px}.friend-gomoku-heading.is-playing .friend-gomoku-kicker{display:none}.friend-gomoku-heading.is-playing h1{font-size:19px}.friend-gomoku-status{align-items:flex-start}.friend-gomoku-voice-dock{z-index:42;left:50%;bottom:calc(var(--nav-h,68px) + env(safe-area-inset-bottom) + 8px);overscroll-behavior:contain;background:var(--surface,#fff);border:1px solid #d1cde8;border-radius:17px;gap:6px;width:min(520px,100vw - 18px);max-height:min(40dvh,290px);padding:9px 11px;position:fixed;overflow-y:auto;transform:translate(-50%);box-shadow:0 -5px 24px #302c6229}.friend-gomoku-voice-dock .friend-gomoku-companion{border:none;padding:5px 6px}.friend-gomoku-voice-dock .friend-gomoku-companion-copy span{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.friend-gomoku-actions{gap:4px}.friend-gomoku-actions .friend-gomoku-reset{min-height:40px}.friend-gomoku-page:has(.friend-gomoku-voice-dock){padding-bottom:calc(135px + var(--nav-h,68px) + env(safe-area-inset-bottom))}.friend-gomoku-voice-dock{gap:5px;max-height:none;padding:7px 9px;overflow:visible}.friend-gomoku-voice-dock .friend-gomoku-companion{gap:7px;min-width:0}.friend-gomoku-voice-dock .friend-gomoku-companion-copy{flex:1;align-items:center;gap:7px;min-width:0;display:flex}.friend-gomoku-voice-dock .friend-gomoku-companion-copy strong{flex:none}.friend-gomoku-voice-dock .friend-gomoku-companion-copy span{white-space:nowrap;text-overflow:ellipsis;min-width:0;display:block;overflow:hidden}.friend-gomoku-voice-dock .friend-gomoku-avatar{width:28px;height:28px}}.friend-gomoku-companion-copy .crew-game-speech{flex:1;min-width:0}.friend-gomoku-companion-copy .crew-game-speech-scroll{white-space:pre-wrap;max-height:8em;overflow-y:auto}
