/* Imposter Quest web Word mode. Matches app/site dark theme. */
.play-page{padding-bottom:80px}
#iq-game{scroll-margin-top:76px}
.iq{--accent:#A63CF2;--card:#24164F;max-width:560px;margin:0 auto;padding:18px 16px 28px}
.iq-shell{background:linear-gradient(180deg,#1C1040 0%,#140A2B 40%);border:1px solid #3B2A75;border-radius:28px;padding:18px 16px 20px;box-shadow:0 20px 50px #0007;min-height:min(620px,calc(100dvh - 96px));max-height:calc(100dvh - 88px);overflow:auto;display:flex;flex-direction:column;gap:14px;position:relative}
.iq-shell:before{content:"";position:absolute;inset:auto -20% 40% -20%;height:280px;background:radial-gradient(circle at 50% 0,color-mix(in srgb,var(--accent) 35%,transparent),transparent 70%);pointer-events:none}
.iq-top{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:1;min-height:28px}
.iq-brand{display:flex;align-items:center;gap:8px;font-family:ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', system-ui, -apple-system, 'Segoe UI', sans-serif;font-weight:700;font-size:1.05rem}
.iq-brand img{width:28px;height:28px;border-radius:8px}
.iq-kicker{color:#D6FF4A;font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:.72rem;text-align:center}
.iq-title{font-family:ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', system-ui, -apple-system, 'Segoe UI', sans-serif;font-size:clamp(1.7rem,6vw,2.3rem);text-align:center;margin:0;line-height:1.15}
.iq-sub{text-align:center;color:#B9AEDD;margin:0}
.iq-stage{position:relative;z-index:1;flex:1;display:flex;flex-direction:column;gap:14px;align-items:stretch;padding-bottom:88px}
.iq-mascot{width:88px;height:auto;margin:0 auto;filter:drop-shadow(0 10px 16px #0006)}
.iq-field{width:100%;background:#1C1040;border:1px solid #3B2A75;border-radius:16px;color:#F7F3FF;font:800 1rem system-ui, -apple-system, 'Segoe UI', sans-serif;padding:14px 16px;min-height:52px}
.iq-field:focus{outline:2px solid #A63CF2;border-color:#A63CF2}
.iq-row{display:flex;gap:8px;align-items:center}
.iq-row .iq-field{flex:1}
.iq-players{display:flex;flex-direction:column;gap:8px}
.iq-btn{appearance:none;border:0;cursor:pointer;font:800 1.05rem system-ui, -apple-system, 'Segoe UI', sans-serif;border-radius:999px;padding:14px 20px;min-height:56px;color:#fff;background:linear-gradient(90deg,#B12CF0,#1E9BFF);box-shadow:0 6px 0 #7A1FD1;transition:transform .15s,filter .15s}
.iq-btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
.iq-btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none;filter:none}
.iq-btn-sec{background:#24164F;color:#F7F3FF;border:1px solid #3B2A75;box-shadow:none}
.iq-btn-ghost{background:transparent;box-shadow:none;color:#B9AEDD;min-height:44px;padding:8px 12px;font-size:.95rem}
.iq-btn-danger{background:#2A1020;color:#FF5C7A;border:1px solid #FF5C7A55;box-shadow:none}
.iq-iconbtn{appearance:none;border:0;background:#2E1C62;color:#F7F3FF;width:44px;height:44px;border-radius:12px;font-size:1.2rem;cursor:pointer;flex:none}
.iq-packs{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.iq-pack,.iq-locked{border-radius:18px;padding:14px 12px;background:#24164F;border:2px solid #3B2A75;color:#F7F3FF;text-align:left;cursor:pointer;font:800 .95rem system-ui, -apple-system, 'Segoe UI', sans-serif;min-height:96px}
.iq-pack:focus-visible{outline:2px solid #D6FF4A}
.iq-pack[aria-pressed="true"],.iq-chip[aria-pressed="true"]{border-color:#D6FF4A;box-shadow:0 0 0 2px #D6FF4A55;background:#2E1C62}
.iq-pack b,.iq-locked b{display:block;font-family:ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', system-ui, -apple-system, 'Segoe UI', sans-serif;font-size:1.05rem;margin-top:2px}
.iq-pack small,.iq-locked small{display:block;color:#B9AEDD;font-weight:700;margin-top:4px;line-height:1.3}
.iq-locked{opacity:.85;cursor:pointer;position:relative}
.iq-cta{display:block;margin-top:12px;text-align:center;background:linear-gradient(135deg,#B12CF0,#1E9BFF);color:#fff!important;text-decoration:none;font-weight:800;border-radius:16px;padding:14px 16px}
.iq-cta:hover{filter:brightness(1.08);color:#fff!important}
.iq-cta small{display:block;font-weight:700;opacity:.9;font-size:.8rem}
.iq-chips{display:flex;flex-wrap:wrap;gap:8px}
.iq-chip{appearance:none;border:1px solid #3B2A75;background:#24164F;color:#F7F3FF;border-radius:999px;padding:8px 14px;font:800 .9rem system-ui, -apple-system, 'Segoe UI', sans-serif;cursor:pointer;min-height:40px}
.iq-chip[disabled],.iq-chip.is-lock{opacity:.55;cursor:not-allowed}
.iq-label{font-weight:800;margin:6px 0 0;color:#F7F3FF}
.iq-hint{color:#7D70A8;font-size:.85rem;margin:0}
.iq-dots{display:flex;gap:6px;justify-content:center}
.iq-dot{width:8px;height:8px;border-radius:4px;background:#3B2A75}
.iq-dot.on{background:#A63CF2}
.iq-name{font-family:ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', system-ui, -apple-system, 'Segoe UI', sans-serif;font-size:clamp(2rem,8vw,3rem);text-align:center;margin:0;line-height:1.05}
.iq-pad{min-height:220px;border-radius:26px;background:#24164F;border:1px solid #3B2A75;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;touch-action:none;user-select:none;-webkit-user-select:none;cursor:pointer}
.iq-pad:focus-visible{outline:2px solid #D6FF4A}
.iq-secret{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:28px 24px;border-radius:0;text-align:center;background:linear-gradient(160deg,#4A1230,#14060E 70%)}
.iq-secret[hidden]{display:none!important;pointer-events:none;visibility:hidden}
.iq-secret.is-word{background:linear-gradient(160deg,#2E1C62,#100C22 70%)}
.iq-secret .role{color:#FF3D9A;font-family:ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', system-ui, -apple-system, 'Segoe UI', sans-serif;font-size:clamp(2rem,8vw,3.2rem);margin:.15em 0}
.iq-secret .word{font-family:ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', system-ui, -apple-system, 'Segoe UI', sans-serif;font-size:clamp(2rem,7vw,3rem);margin:.15em 0;word-break:break-word}
.iq-timer{font-family:ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', system-ui, -apple-system, 'Segoe UI', sans-serif;font-size:4rem;text-align:center;margin:0;line-height:1;color:#D6FF4A}
.iq-timer.warn{color:#FF5C7A;animation:iqpulse .6s ease-in-out infinite}
@keyframes iqpulse{50%{transform:scale(1.06)}}
@media(prefers-reduced-motion:reduce){.iq-timer.warn{animation:none}}
.iq-box{background:#24164F;border:1px solid #3B2A75;border-radius:18px;padding:14px;text-align:center}
.iq-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.iq-choice{border-radius:18px;background:#24164F;border:2px solid #3B2A75;padding:14px 10px;min-height:96px;color:#F7F3FF;font:800 1rem system-ui, -apple-system, 'Segoe UI', sans-serif;cursor:pointer}
.iq-choice[aria-pressed="true"]{border-color:#A63CF2;background:#2E1C62}
.iq-choice:disabled{opacity:.5;cursor:not-allowed}
.iq-choice small{display:block;color:#7D70A8;margin-top:4px}
.iq-tally{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #3B2A75;font-weight:800}
.iq-outcome{font-family:ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', system-ui, -apple-system, 'Segoe UI', sans-serif;font-size:2rem;text-align:center;margin:0}
.iq-footer-actions{display:flex;flex-direction:column;gap:10px;margin-top:auto;position:sticky;bottom:0;z-index:2;background:linear-gradient(180deg,transparent,#1C1040 30%);padding:12px 0 4px}
.play-seo{padding-top:40px}
.play-seo h1{font-size:clamp(2rem,5vw,3rem)}
.play-seo .how{max-width:680px;margin:0 auto 30px;padding:0;color:#D9D1F2}
.play-seo .how li{margin:0 0 10px}
.play-seo .faq-placeholder{color:#7D70A8;font-size:.95rem;text-align:center}
@media(max-width:520px){.iq-packs{grid-template-columns:1fr}}

.iq-textarea{width:100%;min-height:96px;border-radius:14px;border:2px solid #3B2A75;background:#140A2B;color:#F7F3FF;padding:12px 14px;font:700 .95rem system-ui, -apple-system, 'Segoe UI', sans-serif;margin:0 0 10px;resize:vertical}
.iq-textarea:focus{outline:2px solid #D6FF4A;border-color:#D6FF4A}
.iq-toggle{display:flex;align-items:flex-start;gap:10px;color:#D9D1F2;font-weight:700;margin:0 0 14px;text-align:left}
.iq-toggle input{margin-top:4px;accent-color:#D6FF4A;width:18px;height:18px;flex:0 0 auto}
.iq-toggle small{display:block;color:#7D70A8;font-weight:700;margin-top:2px}

.iq-modal-back{position:fixed;inset:0;background:#140A2Bcc;z-index:80;display:flex;align-items:center;justify-content:center;padding:20px}
.iq-modal{background:#1B0F38;border:2px solid #3B2A75;border-radius:24px;padding:28px 20px 22px;max-width:400px;width:100%;color:#F7F3FF;text-align:center;position:relative;box-shadow:0 16px 40px #0008}
.iq-modal h3{font-family:ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', system-ui, -apple-system, 'Segoe UI', sans-serif;margin:0 0 10px;font-size:1.25rem}
.iq-modal p{margin:0 0 8px;color:#D8CFF0}
.iq-modal .badges{justify-content:center;margin-top:16px;flex-wrap:wrap;gap:10px}
.iq-modal-close{position:absolute;top:8px;right:8px;appearance:none;border:0;background:#2E1C62;color:#F7F3FF;width:40px;height:40px;border-radius:12px;font-size:1.3rem;cursor:pointer;line-height:1}
.iq-modal-close:focus-visible{outline:2px solid #D6FF4A}

/* Standalone portal build */
html,body{margin:0;padding:0;background:#140A2B;color:#F7F3FF;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.5;overflow-x:hidden;height:100%;}
body{min-height:100dvh;}
.play-page{padding-bottom:0;min-height:100dvh;}
#iq-game{scroll-margin-top:0;}
.iq{max-width:560px;margin:0 auto;padding:10px 10px 12px;min-height:100dvh;box-sizing:border-box;}
.iq-shell{min-height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);}
.iq-get-app{text-align:center;margin:8px 0 0;font-size:.88rem;font-weight:700;color:#B9AEDD;}
.iq-get-app a{color:#D6FF4A;text-decoration:none;}
.iq-get-app a:hover,.iq-get-app a:focus-visible{text-decoration:underline;color:#fff;}
@media(max-width:400px){
  .iq{padding:8px;}
  .iq-shell{padding:14px 12px 16px;border-radius:22px;min-height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);}
  .iq-title{font-size:clamp(1.5rem,7vw,2.1rem);}
  .iq-name{font-size:clamp(1.7rem,8vw,2.6rem);}
}
