.fauxrtist-page-body { min-height: 100vh; background: var(--bg-primary, #f7fbff); color: var(--text-primary, #1c2a3b); }
.fauxrtist-page [hidden] { display: none !important; }
.fauxrtist-page { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 64px; }
.fauxrtist-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.fauxrtist-heading h1 { font-size: clamp(1.55rem, 2.3rem, 2.3rem); margin: 4px 0 0; letter-spacing: 0; }
.fauxrtist-setup { display: flex; align-items: end; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.fauxrtist-setup .hangman-field { flex: 1 1 220px; }
.fauxrtist-setup .secondary-cta { min-height: 48px; }
.fauxrtist-room { display: flex; align-items: center; gap: 14px; margin: 8px 0 16px; flex-wrap: wrap; }
.fauxrtist-room strong { font-size: 1.25rem; letter-spacing: .14em; }
.fauxrtist-room .secondary-cta { min-height: 38px; padding: 8px 16px; }
.fauxrtist-room-qr { width: 96px; height: 96px; object-fit: contain; background: #fff; padding: 4px; border-radius: 5px; }
.fauxrtist-error { padding: 10px 14px; border-left: 3px solid #db334c; color: #9c1731; background: #fff0f2; }
.fauxrtist-players { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 20px; }
.fauxrtist-player { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border: 1px solid var(--border-color, #b5d6eb); border-radius: 24px; background: var(--card-bg, #fff); font-size: .92rem; }
.fauxrtist-player b { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--accent-color, #18a6dc); color: #fff; font-size: .72rem; }
.fauxrtist-player.is-away { opacity: .45; }
.fauxrtist-player:not(.is-playing) { border-style: dashed; }
.fauxrtist-panel { padding: clamp(16px, 3vw, 28px); border: 1px solid var(--border-color, #b5d6eb); background: var(--card-bg, #fff); border-radius: 8px; margin-bottom: 16px; }
#fxVotePanel, #fxGuessPanel, #fxJudgePanel, #fxResultPanel { scroll-margin-top: 80px; }
.fauxrtist-panel h2 { font-size: 1.4rem; letter-spacing: 0; margin: 0 0 10px; }
.fauxrtist-panel p { margin: 0 0 15px; }
.fauxrtist-panel .secondary-cta { min-height: 42px; }
.fauxrtist-panel .hangman-field { margin: 16px 0; }
.fauxrtist-review-role { margin-bottom: 16px; }
.fauxrtist-review-role[hidden] { display: none; }
.fauxrtist-role-peek { position: fixed; top: calc(env(safe-area-inset-top) + 82px); left: 50%; transform: translateX(-50%); z-index: 1000; width: max-content; max-width: min(320px, calc(100vw - 32px)); padding: 9px 13px; border: 1px solid var(--border-color, #b5d6eb); border-radius: 5px; background: var(--card-bg, #fff); color: var(--accent-color, #168abd); box-shadow: 0 8px 24px #0003; font-size: .9rem; font-weight: 700; text-align: center; overflow-wrap: anywhere; pointer-events: none; }
.fauxrtist-role-peek[hidden] { display: none; }
.fauxrtist-board-header { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.fauxrtist-board-header p { margin-bottom: 5px; }
.fauxrtist-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.fauxrtist-tool { width: 42px; height: 42px; border: 1px solid var(--border-color, #b5d6eb); border-radius: 5px; background: var(--card-bg, #fff); color: var(--text-primary, #1c2a3b); cursor: pointer; font-size: 1.3rem; }
.fauxrtist-tool.is-active { background: var(--accent-color, #18a6dc); color: #fff; }
.fauxrtist-tool svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fauxrtist-color-button { display: grid; place-items: center; }
.fauxrtist-color-button i { width: 24px; height: 24px; border-radius: 50%; background: #172538; border: 1px solid #8da4b2; }
.fauxrtist-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fauxrtist-presets button { width: 25px; height: 25px; padding: 0; border: 1px solid #8796a1; border-radius: 50%; background: var(--swatch); cursor: pointer; }
.fauxrtist-color-panel { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: #0009; z-index: 1000; padding: 16px; }
.fauxrtist-color-panel.is-open { display: flex; }
.fauxrtist-color-card { width: min(320px, 100%); padding: 20px; background: var(--card-bg, #fff); color: var(--text-primary, #1c2a3b); border: 1px solid var(--border-color, #b5d6eb); border-radius: 8px; }
.fauxrtist-color-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fauxrtist-color-header h2 { margin: 0; font-size: 1.2rem; }
.fauxrtist-color-header button { border: 0; background: transparent; color: inherit; font-size: 1.8rem; cursor: pointer; }
#fxWheel { width: 220px; max-width: 100%; height: auto; display: block; margin: 0 auto 14px; touch-action: none; cursor: crosshair; }
.fauxrtist-color-sample { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.fauxrtist-color-sample i { width: 34px; height: 34px; border: 1px solid #8796a1; border-radius: 4px; }
.fauxrtist-darkness { display: grid; gap: 6px; font-weight: 700; }
.fauxrtist-darkness input { width: 100%; }
.fauxrtist-size { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: .86rem; font-weight: 700; }
.fauxrtist-size input { width: min(170px, 30vw); }
.fauxrtist-canvas-wrap { width: 100%; aspect-ratio: 4 / 3; border: 1px solid #9ca5ac; border-radius: 5px; overflow: hidden; background: #fff; }
#fxCanvas { display: block; width: 100%; height: 100%; touch-action: auto; cursor: default; }
.fauxrtist-board-actions, .fauxrtist-choice-row, .fauxrtist-vote-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.fauxrtist-waiting { text-align: center; padding: 32px 10px; font-weight: 700; }
.fauxrtist-history { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; margin: 18px 0; }
.fauxrtist-history-item { border: 1px solid var(--border-color, #b5d6eb); padding: 12px; border-radius: 5px; }
.fauxrtist-history-item canvas { display: block; max-width: 100%; height: auto; border: 1px solid #ddd; }
@media (max-width: 600px) { .fauxrtist-page { width: calc(100% - 20px); padding-top: 14px; } .fauxrtist-heading { align-items: start; } .fauxrtist-heading h1 { font-size: 1.5rem; } .fauxrtist-board-header { align-items: start; flex-direction: column; } }
