/* IMK Top 1% Contest — front-end theme: royal indigo, burnished gold, jewel-colour options */

.imk-root, .imk-confetti {
  --gold: #ffd24a; --gold-2: #ffb800; --gold-3: #fff3b0; --gold-d: #b8860b;
  --ink: #0a0222; --ink-2: #120536; --royal: #2a0f6b; --violet: #5b1fa8; --magenta: #b5179e;
  --text: #f4ecff; --muted: #b9a8ea;
  --ruby: #e63946; --ruby-d: #9d0f1d; --sapphire: #3a86ff; --sapphire-d: #1537a8; --emerald: #12b76a; --emerald-d: #05683c; --amber: #ff9f1c; --amber-d: #b45309; --amethyst: #a855f7; --amethyst-d: #5b21b6;
  --ok: #3ddc84; --bad: #ff4d6d; --cyan: #35c2ff;
}
.imk-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; }

.imk-root, .imk-root * { box-sizing: border-box; }
.imk-root {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text); line-height: 1.5; position: relative; isolation: isolate;
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(181, 23, 158, .35), transparent 60%),
    radial-gradient(900px 600px at 95% 0%, rgba(53, 194, 255, .18), transparent 60%),
    radial-gradient(1200px 700px at 50% -10%, #5b1fa8 0%, #2a0f6b 38%, #120536 72%, #0a0222 100%);
  border-radius: 22px; padding: clamp(14px, 3vw, 32px); min-height: 60vh; overflow: hidden;
}
.imk-root::before { /* drifting gold specks */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(2px 2px at 10% 20%, #ffd24a, transparent), radial-gradient(1.5px 1.5px at 30% 70%, #fff3b0, transparent),
    radial-gradient(2px 2px at 55% 35%, #ffd24a, transparent), radial-gradient(1.5px 1.5px at 75% 80%, #fff3b0, transparent),
    radial-gradient(2px 2px at 90% 15%, #ffd24a, transparent), radial-gradient(1.5px 1.5px at 65% 55%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 20% 90%, #ffd24a, transparent), radial-gradient(2px 2px at 42% 8%, #fff3b0, transparent);
  background-size: 100% 100%; animation: imk-twinkle 5s ease-in-out infinite alternate;
}
@keyframes imk-twinkle { from { opacity: .25; transform: translateY(0); } to { opacity: .75; transform: translateY(-8px); } }

.imk-root h1, .imk-root h2, .imk-root h3, .imk-root h4, .imk-root p, .imk-root ul, .imk-root li { margin: 0; padding: 0; color: inherit; }
.imk-root h1, .imk-root h2, .imk-root h3 { font-family: 'Cinzel', Georgia, 'Times New Roman', serif; letter-spacing: .02em; line-height: 1.2; }
.imk-root button, .imk-root input, .imk-root select, .imk-root textarea { font-family: inherit; }
.imk-root ul { list-style: none; }

.imk-gold {
  background: linear-gradient(100deg, #b8860b 0%, #ffd24a 25%, #fff3b0 50%, #ffd24a 75%, #b8860b 100%); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold);
  animation: imk-shimmer 5s linear infinite; text-shadow: none;
}
@keyframes imk-shimmer { to { background-position: 220% center; } }

/* ---------- boot spinner ---------- */
.imk-boot { display: grid; place-items: center; gap: 10px; padding: 60px 0; color: var(--muted); }
.imk-boot-ring { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255, 210, 74, .2); border-top-color: var(--gold); animation: imk-spin 1s linear infinite; }
@keyframes imk-spin { to { transform: rotate(360deg); } }
.imk-noscript { color: var(--gold); }

/* ---------- cards / forms ---------- */
.imk-shell { max-width: 560px; margin: 0 auto; display: grid; gap: 18px; }
.imk-shell.imk-wide { max-width: 980px; }
.imk-hero { text-align: center; display: grid; gap: 6px; justify-items: center; padding-top: 6px; }
.imk-hero h2 { font-size: clamp(26px, 5vw, 38px); }
.imk-sub { color: var(--muted); font-size: 1.02em; }
.imk-crest {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; color: #3a1c00;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #ffd24a 45%, #b8860b); box-shadow: 0 0 0 4px rgba(255, 210, 74, .25), 0 0 34px rgba(255, 210, 74, .55);
}
.imk-crest.pulse { animation: imk-pulse 2.2s ease-in-out infinite; }
.imk-crest.imk-xl { width: 110px; height: 110px; font-size: 56px; }
@keyframes imk-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(255, 210, 74, .25), 0 0 30px rgba(255, 210, 74, .45); } 50% { transform: scale(1.07); box-shadow: 0 0 0 10px rgba(255, 210, 74, .12), 0 0 56px rgba(255, 210, 74, .8); } }

.imk-card {
  background: linear-gradient(160deg, rgba(48, 18, 112, .78), rgba(18, 5, 54, .86)); border: 1.5px solid rgba(255, 210, 74, .5); border-radius: 20px; padding: clamp(16px, 3vw, 26px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(0, 0, 0, .3); backdrop-filter: blur(6px);
}
.imk-form { display: grid; gap: 14px; }
.imk-form h3 { font-size: 1.35em; color: var(--gold); }
.imk-field { display: grid; gap: 5px; }
.imk-field > span { font-size: .84em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-3); }
.imk-field small { color: var(--muted); font-size: .78em; }
.imk-root input[type=text], .imk-root input[type=email], .imk-root input[type=tel], .imk-root input[type=password], .imk-root select, .imk-root textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; color: #fff; background: rgba(8, 2, 30, .75); border: 1.5px solid rgba(185, 168, 234, .4); border-radius: 12px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.imk-root select option { color: #111; }
.imk-root input:focus, .imk-root select:focus, .imk-root textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 210, 74, .25); }
.imk-root ::placeholder { color: rgba(185, 168, 234, .6); }
.imk-grid2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .imk-grid2 { grid-template-columns: 1fr; } }

.imk-btn {
  position: relative; overflow: hidden; border: 0; cursor: pointer; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 1em; letter-spacing: .02em; color: var(--text);
  background: rgba(255, 255, 255, .1); transition: transform .15s, box-shadow .2s, filter .2s;
}
.imk-btn:hover:not(:disabled) { transform: translateY(-2px); }
.imk-btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.imk-btn:disabled { opacity: .55; cursor: not-allowed; }
.imk-btn-gold { color: #3a1c00; background: linear-gradient(180deg, #fff0a0 0%, #ffd24a 40%, #ffb000 100%); box-shadow: 0 6px 0 #9a6a00, 0 12px 26px rgba(255, 184, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .7); }
.imk-btn-gold:hover:not(:disabled) { box-shadow: 0 8px 0 #9a6a00, 0 16px 34px rgba(255, 184, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .7); }
.imk-btn-gold::after { content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-20deg); animation: imk-shine 3.2s ease-in-out infinite; }
@keyframes imk-shine { 0%, 55% { left: -80%; } 100% { left: 140%; } }
.imk-btn-ghost { background: transparent; border: 1.5px solid rgba(255, 210, 74, .6); color: var(--gold); }
.imk-btn-big { width: 100%; padding: 16px 24px; font-size: 1.15em; }
.imk-btn-small { padding: 6px 14px; font-size: .82em; border: 1.5px solid rgba(255, 210, 74, .5); background: transparent; color: var(--gold); }
.imk-btn.is-chosen { outline: 3px solid var(--ok); outline-offset: 2px; }
.imk-link { background: none; border: 0; color: var(--gold-3); text-decoration: underline; cursor: pointer; font-size: .92em; padding: 4px; }
.imk-row-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }

.imk-msg { min-height: 0; padding: 0; font-size: .92em; border-radius: 10px; }
.imk-msg-info, .imk-msg-ok, .imk-msg-err { padding: 10px 14px; }
.imk-msg-info { background: rgba(53, 194, 255, .14); border: 1px solid rgba(53, 194, 255, .5); }
.imk-msg-ok { background: rgba(61, 220, 132, .14); border: 1px solid rgba(61, 220, 132, .55); color: #c9ffe0; }
.imk-msg-err { background: rgba(255, 77, 109, .15); border: 1px solid rgba(255, 77, 109, .6); color: #ffd0d8; }
.imk-note, .imk-fine { color: var(--muted); font-size: .84em; }

/* ---------- dealer dashboard ---------- */
.imk-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 210, 74, .25); }
.imk-topbar small { display: block; color: var(--muted); }
.imk-tabs { display: flex; gap: 8px; }
.imk-tab { flex: 1; padding: 12px; border-radius: 14px; border: 1.5px solid rgba(255, 210, 74, .3); background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.imk-tab.on { background: linear-gradient(180deg, rgba(255, 210, 74, .25), rgba(255, 210, 74, .08)); color: var(--gold); border-color: var(--gold); }
.imk-contest { padding: 14px; border-radius: 14px; background: rgba(255, 210, 74, .07); border: 1px dashed rgba(255, 210, 74, .45); display: grid; gap: 8px; }
.imk-contest-t { font-family: 'Cinzel', serif; font-weight: 800; color: var(--gold); font-size: 1.1em; }
.imk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.imk-chip { padding: 4px 10px; border-radius: 999px; font-size: .78em; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .15); }
.imk-chip-gold { background: rgba(255, 210, 74, .18); border-color: rgba(255, 210, 74, .6); color: var(--gold-3); font-weight: 600; }
.imk-scroll { overflow-x: auto; }
.imk-table { width: 100%; border-collapse: collapse; font-size: .9em; }
.imk-table th { text-align: left; color: var(--gold-3); font-size: .78em; text-transform: uppercase; letter-spacing: .05em; padding: 8px; border-bottom: 1px solid rgba(255, 210, 74, .3); }
.imk-table td { padding: 10px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); vertical-align: middle; }
.imk-table code { color: var(--gold); letter-spacing: .08em; }
.imk-pill { padding: 3px 10px; border-radius: 999px; font-size: .75em; font-weight: 700; background: rgba(255, 255, 255, .12); }
.imk-pill-paid, .imk-pill-free { background: rgba(61, 220, 132, .2); color: #b9ffd6; }
.imk-pill-pending { background: rgba(255, 159, 28, .22); color: #ffd9a1; }

/* ---------- player portal ---------- */
.imk-player { max-width: 640px; margin: 0 auto; display: grid; gap: 14px; }
.imk-player.imk-center { min-height: 70vh; align-content: center; }
.imk-ptop { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .9em; }
.imk-brand { font-family: 'Cinzel', serif; font-weight: 800; color: var(--gold); letter-spacing: .06em; }
.imk-pname { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.imk-entry, .imk-center-card { text-align: center; display: grid; gap: 12px; justify-items: center; }
.imk-entry h2, .imk-center-card h2 { font-size: clamp(26px, 6vw, 36px); }
.imk-code-input { text-align: center !important; font-family: 'Courier New', monospace !important; font-size: 26px !important; font-weight: 700; letter-spacing: .14em; color: var(--gold) !important; border-color: rgba(255, 210, 74, .6) !important; text-transform: uppercase; }
.imk-entry > * { width: 100%; }
.imk-entry .imk-crest, .imk-center-card .imk-crest { width: 66px; }
.imk-stack { display: grid; gap: 14px; }
.imk-title { font-size: 1.3em; color: var(--gold-3); }
.imk-label { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .78em; }
.imk-when { font-size: 2em; font-weight: 800; color: var(--gold); }
.imk-bigclock { font-family: 'Cinzel', serif; font-size: clamp(40px, 12vw, 64px); font-weight: 800; color: var(--gold); text-shadow: 0 0 24px rgba(255, 210, 74, .55); font-variant-numeric: tabular-nums; }
.imk-bigclock.imk-huge { font-size: clamp(60px, 9vw, 150px); }
.imk-rules { display: grid; gap: 8px; text-align: left; font-size: .92em; color: var(--text); }
.imk-rules li { padding-left: 24px; position: relative; }
.imk-rules li::before { content: '★'; position: absolute; left: 0; color: var(--gold); }

.imk-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.imk-stat { padding: 10px 12px; border-radius: 14px; text-align: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.imk-stat-pot { background: linear-gradient(180deg, rgba(255, 210, 74, .22), rgba(255, 210, 74, .06)); border-color: rgba(255, 210, 74, .6); }
.imk-stat-v { font-family: 'Cinzel', serif; font-weight: 800; font-size: 1.35em; font-variant-numeric: tabular-nums; }
.imk-stat-l { font-size: .68em; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.imk-ladder { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.imk-step { min-width: 34px; height: 34px; padding: 0 6px; border-radius: 17px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; font-size: .78em; font-weight: 700; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: var(--muted); line-height: 1; }
.imk-step small { font-size: .62em; font-weight: 600; margin-top: 2px; color: var(--gold-3); }
.imk-step.exit { border-color: var(--gold); border-style: dashed; height: 42px; }
.imk-step.done { background: rgba(255, 210, 74, .28); color: var(--gold-3); border-color: rgba(255, 210, 74, .6); }
.imk-step.now { background: linear-gradient(180deg, #fff0a0, #ffb000); color: #3a1c00; border-color: #fff; box-shadow: 0 0 18px rgba(255, 210, 74, .9); transform: scale(1.12); }
.imk-step.now small { color: #5a3300; }

/* question */
.imk-qcard { display: grid; gap: 14px; }
.imk-qtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.imk-qno { font-family: 'Cinzel', serif; font-weight: 800; color: var(--gold); font-size: 1.1em; }
.imk-phase { font-size: .78em; font-weight: 700; letter-spacing: .14em; color: var(--cyan); text-align: center; flex: 1; }
.imk-qtext { font-size: clamp(19px, 4.6vw, 26px); text-align: center; line-height: 1.35; font-family: 'Poppins', sans-serif !important; font-weight: 600; letter-spacing: 0; }
.imk-opts { display: grid; gap: 10px; }
.imk-opt {
  --c1: #6d5bd0; --c2: #3b2a99; position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 14px; text-align: left; cursor: pointer; color: #fff; font-size: 1em; font-weight: 600;
  background: linear-gradient(180deg, var(--c1), var(--c2)); border: 2px solid rgba(255, 255, 255, .35); border-radius: 16px; box-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 8px 18px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .12s, box-shadow .2s, opacity .25s, filter .25s; clip-path: none;
}
.imk-opt-A { --c1: var(--ruby); --c2: var(--ruby-d); } .imk-opt-B { --c1: var(--sapphire); --c2: var(--sapphire-d); } .imk-opt-C { --c1: var(--emerald); --c2: var(--emerald-d); }
.imk-opt-D { --c1: var(--amber); --c2: var(--amber-d); } .imk-opt-E { --c1: var(--amethyst); --c2: var(--amethyst-d); }
.imk-opt-l { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: 'Cinzel', serif; font-weight: 800; color: #3a1c00; background: radial-gradient(circle at 35% 30%, #fff3b0, #ffd24a 60%, #b8860b); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.imk-opt-t { flex: 1; word-break: break-word; }
.imk-opt-pct { flex: none; font-size: .78em; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .35); }
.imk-opt:hover:not(:disabled):not(.is-wait) { transform: translateY(-2px); }
.imk-opt:disabled { cursor: default; }
.imk-opt.is-wait { opacity: .9; cursor: default; }
.imk-opt.is-sel { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 210, 74, .45), 0 0 30px rgba(255, 210, 74, .65), 0 4px 0 rgba(0, 0, 0, .35); transform: scale(1.02); }
.imk-opt.is-locked { border-color: #fff; background: linear-gradient(180deg, #ffe27a, #ff9d00); color: #3a1c00; box-shadow: 0 0 0 4px rgba(255, 255, 255, .5), 0 0 40px rgba(255, 184, 0, .9); animation: imk-lockpulse 1.4s ease-in-out infinite; }
.imk-opt.is-locked .imk-opt-l { background: #3a1c00; color: var(--gold); }
@keyframes imk-lockpulse { 50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, .25), 0 0 56px rgba(255, 184, 0, 1); } }
.imk-opt.is-dim { opacity: .38; filter: grayscale(.7); }
.imk-opt.is-correct { background: linear-gradient(180deg, #4ade80, #15803d); border-color: #eaffef; box-shadow: 0 0 0 5px rgba(74, 222, 128, .5), 0 0 48px rgba(74, 222, 128, .95); animation: imk-win 1s ease-in-out 3; }
.imk-opt.is-correct::after { content: '✔'; font-size: 1.4em; margin-left: 4px; }
.imk-opt.is-wrong { background: linear-gradient(180deg, #ff6b81, #b3122b); border-color: #ffd0d8; box-shadow: 0 0 34px rgba(255, 77, 109, .85); }
.imk-opt.is-wrong::after { content: '✘'; font-size: 1.4em; margin-left: 4px; }
@keyframes imk-win { 50% { transform: scale(1.03); } }
.imk-lock { margin-top: 2px; }
.imk-result { text-align: center; padding: 12px; border-radius: 14px; font-weight: 800; font-size: 1.3em; }
.imk-result.imk-msg-ok { background: rgba(61, 220, 132, .2); } .imk-result.imk-msg-err { background: rgba(255, 77, 109, .2); }

/* timer ring */
.imk-ring { flex: none; display: block; overflow: visible; }
.imk-ring-bg { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 8; }
.imk-ring-fg { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .3s linear, stroke .3s; filter: drop-shadow(0 0 6px rgba(255, 210, 74, .8)); }
.imk-ring-text { fill: #fff; font-family: 'Cinzel', serif; font-weight: 800; font-size: 30px; }
.imk-ring-read .imk-ring-fg { stroke: var(--cyan); filter: drop-shadow(0 0 6px rgba(53, 194, 255, .8)); }
.imk-ring-urgent .imk-ring-fg { stroke: var(--bad); filter: drop-shadow(0 0 8px rgba(255, 77, 109, .95)); }
.imk-ring-urgent { animation: imk-throb .5s ease-in-out infinite alternate; }
.imk-ring-over .imk-ring-fg { stroke: #7b6fa8; }
@keyframes imk-throb { to { transform: scale(1.07); } }

/* exit */
.imk-exitamt { font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(38px, 10vw, 60px); color: var(--gold); text-shadow: 0 0 30px rgba(255, 210, 74, .7); }
.imk-exitamt.imk-big { font-size: clamp(46px, 12vw, 84px); }
.imk-exitbtns { display: grid; gap: 10px; width: 100%; }
.imk-final { padding: clamp(24px, 6vw, 44px); }
.imk-final-win { box-shadow: 0 0 80px rgba(255, 210, 74, .55), 0 10px 40px rgba(0, 0, 0, .5); border-color: var(--gold); }
.imk-final-out .imk-crest { background: radial-gradient(circle at 35% 30%, #ff9bab, #ff4d6d 55%, #8a0f27); color: #fff; box-shadow: 0 0 34px rgba(255, 77, 109, .6); }
.imk-final-out h2 { color: #ffb3c0; }
.imk-final-pot { display: grid; gap: 2px; padding: 12px 20px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.imk-final-pot span { font-size: .78em; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.imk-final-pot strong { font-family: 'Cinzel', serif; font-size: 1.8em; }
.imk-offline { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 50; padding: 8px 18px; border-radius: 999px; background: rgba(255, 77, 109, .9); color: #fff; font-weight: 600; }

/* ---------- immersive pages hide the theme ---------- */
body.imk-immersive { overflow: hidden !important; }
body.imk-immersive .imk-app-screen, body.imk-immersive .imk-app-player { position: fixed !important; inset: 0 !important; z-index: 999999; width: 100vw; max-width: none; margin: 0 !important; border-radius: 0; overflow: auto; min-height: 100vh; }

/* ---------- big screen ---------- */
.imk-app-screen { padding: 0 !important; font-size: clamp(13px, 1.05vw, 24px); }
.imk-screen { position: relative; height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; gap: .8em; padding: 1em 1.4em; }
.imk-app-screen .imk-s-grid > * { min-height: 0; }
.imk-rays { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; overflow: hidden; }
.imk-rays::before { content: ''; position: absolute; left: 50%; top: 38%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: repeating-conic-gradient(from 0deg, rgba(255, 210, 74, .13) 0deg 6deg, transparent 6deg 18deg); -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 38%); mask-image: radial-gradient(circle, #000 0%, transparent 38%); animation: imk-rotate 90s linear infinite; }
@keyframes imk-rotate { to { transform: rotate(360deg); } }
.imk-s-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1em; }
.imk-s-brand { display: flex; align-items: center; gap: .8em; } .imk-s-brand b { font-family: 'Cinzel', serif; font-size: 1.7em; letter-spacing: .08em; display: block; } .imk-s-brand small { color: var(--muted); font-size: 1em; display: block; }
.imk-crest-s { width: 2.8em; height: 2.8em; border-radius: 50%; display: grid; place-items: center; font-size: 1.5em; color: #3a1c00; background: radial-gradient(circle at 35% 30%, #fff3b0, #ffd24a 45%, #b8860b); box-shadow: 0 0 24px rgba(255, 210, 74, .6); }
.imk-s-q { font-family: 'Cinzel', serif; font-weight: 800; font-size: 1.8em; color: var(--gold); letter-spacing: .1em; text-align: center; }
.imk-s-tools { display: flex; gap: .5em; justify-content: flex-end; }
.imk-iconbtn { cursor: pointer; padding: .5em 1em; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--text); border: 1px solid rgba(255, 210, 74, .4); font-size: .9em; }
.imk-s-grid { display: grid; grid-template-columns: minmax(14em, 22%) 1fr minmax(15em, 25%); gap: 1.1em; min-height: 0; }
.imk-s-center { display: grid; gap: .9em; align-content: start; min-width: 0; }
.imk-panel-s { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 10.5em); border-radius: 1.1em; overflow: hidden; background: linear-gradient(170deg, rgba(48, 18, 112, .7), rgba(14, 4, 44, .85)); border: 1.5px solid rgba(255, 210, 74, .4); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
.imk-panel-s > header { display: flex; justify-content: space-between; align-items: center; padding: .7em 1em; font-weight: 800; letter-spacing: .12em; font-size: .95em; background: linear-gradient(90deg, rgba(255, 210, 74, .28), rgba(255, 210, 74, .05)); border-bottom: 1px solid rgba(255, 210, 74, .4); }
.imk-p-left > header b { font-size: 1.6em; color: var(--ok); } .imk-p-right > header b { font-size: 1.6em; color: var(--bad); }
.imk-panel-s > :not(header) { padding: .8em; overflow: hidden; flex: 1; min-height: 0; }
.imk-chiplist { display: flex; flex-wrap: wrap; gap: .4em; align-content: flex-start; }
.imk-marquee { position: relative; padding: 0 !important; -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent); }
.imk-track { display: flex; flex-wrap: wrap; gap: .4em; align-content: flex-start; padding: .8em; animation: imk-scroll-y linear infinite; }
@keyframes imk-scroll-y { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.imk-nchip { padding: .25em .7em; border-radius: 999px; font-size: .92em; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); white-space: nowrap; }
.imk-nc-green { background: rgba(61, 220, 132, .16); border-color: rgba(61, 220, 132, .5); color: #d4ffe5; }
.imk-nc-red { background: rgba(255, 77, 109, .2); border-color: rgba(255, 77, 109, .7); color: #ffe0e6; }
.imk-nc-gold { background: rgba(255, 210, 74, .18); border-color: rgba(255, 210, 74, .6); color: var(--gold-3); }
.imk-nc-dim { opacity: .65; font-weight: 500; }
.imk-empty { color: var(--muted); text-align: center; padding: 1.5em .5em; font-style: italic; }
.imk-bignum { font-family: 'Cinzel', serif; font-size: 5em; font-weight: 800; text-align: center; color: var(--gold); }
.imk-elimbody { display: grid; gap: .6em; grid-template-rows: auto 1fr; overflow: hidden; }
.imk-elimbody h4 { font-size: .8em; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .4em; }
.imk-elim-now { padding: .6em; border-radius: .8em; background: rgba(255, 77, 109, .1); border: 1px solid rgba(255, 77, 109, .5); max-height: 16em; overflow: hidden; }
.imk-elim-now h4 { color: #ffb3c0; }
.imk-elim-old { overflow: hidden; min-height: 0; }

.imk-vault { text-align: center; padding: .6em 1em; border-radius: 1.2em; background: linear-gradient(180deg, rgba(255, 210, 74, .26), rgba(255, 210, 74, .06)); border: 2px solid var(--gold); box-shadow: 0 0 44px rgba(255, 210, 74, .4), inset 0 0 30px rgba(255, 210, 74, .12); }
.imk-vault-l { font-weight: 800; letter-spacing: .3em; font-size: .9em; color: var(--gold-3); }
.imk-pot-v { font-family: 'Cinzel', serif; font-weight: 800; font-size: 3.7em; line-height: 1.05; font-variant-numeric: tabular-nums; background: linear-gradient(100deg, #b8860b, #ffd24a 30%, #fff3b0 50%, #ffd24a 70%, #b8860b); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: imk-shimmer 4s linear infinite; filter: drop-shadow(0 0 18px rgba(255, 210, 74, .55)); }
.imk-vault-s { color: var(--muted); font-size: .95em; }
.imk-c-card { padding: .9em 1.3em; border-radius: 1.2em; background: linear-gradient(160deg, rgba(48, 18, 112, .72), rgba(18, 5, 54, .85)); border: 1.5px solid rgba(255, 210, 74, .45); box-shadow: 0 10px 36px rgba(0, 0, 0, .45); }
.imk-c-lobby, .imk-c-splash, .imk-c-win { text-align: center; display: grid; gap: .7em; justify-items: center; padding: 1.6em; }
.imk-c-lobby h1, .imk-c-splash h1, .imk-c-win h1 { font-size: 3em; }
.imk-s-sub { font-size: 1.25em; color: var(--text); opacity: .9; }
.imk-c-card .imk-crest.imk-xl { width: 9vmin; height: 9vmin; font-size: 4.5vmin; }
.imk-screen .imk-exitamt.imk-big { font-size: clamp(36px, 4.6vmax, 96px); }
.imk-screen .imk-exitamt { font-size: clamp(34px, 4vmax, 80px); }
.imk-qrow { display: flex; align-items: center; justify-content: space-between; gap: 1.2em; margin-bottom: .8em; }
.imk-qtext-big { font-size: 1.8em !important; text-align: left; flex: 1; }
.imk-qtimer { display: grid; justify-items: center; gap: .3em; flex: none; }
.imk-phase-big { font-size: .85em; max-width: 14em; flex: none; }
.imk-opts-big { grid-template-columns: 1fr 1fr; gap: .8em; }
.imk-opts-big .imk-opt { min-height: 3.3em; font-size: 1.3em; border-radius: 1.1em; }
.imk-opts-big .imk-opt:nth-child(5) { grid-column: 1 / -1; }
.imk-opts-big .imk-opt-l { width: 1.5em; height: 1.5em; font-size: 1em; }
.imk-opts-big .imk-opt-pct { font-size: .6em; }
.imk-lockedcount { text-align: center; margin-top: .6em; font-size: 1.1em; color: var(--gold-3); font-weight: 600; }
.imk-banner { text-align: center; margin-top: .6em; padding: .45em 1em; border-radius: .9em; font-weight: 800; font-size: 1.35em; letter-spacing: .03em; }
.imk-banner-red { background: rgba(255, 77, 109, .22); border: 1.5px solid var(--bad); color: #ffd0d8; }
.imk-banner-green { background: rgba(61, 220, 132, .2); border: 1.5px solid var(--ok); color: #c9ffe0; }
.imk-outnames { margin-top: .5em; max-height: 6.5em; overflow: hidden; }
.imk-winners { display: grid; gap: .6em; }
.imk-winner-n { font-family: 'Cinzel', serif; font-size: 2.2em; font-weight: 800; color: #fff; }
.imk-exitsum { color: var(--muted); font-size: 1.05em; display: grid; gap: .2em; }
.imk-s-ladder { display: flex; flex-wrap: nowrap; justify-content: center; gap: .5em; padding-bottom: .3em; }
.imk-s-ladder .imk-step { min-width: 2.8em; height: 2.8em; font-size: 1em; border-radius: 1.4em; }
.imk-s-ladder .imk-step.exit { height: 3.4em; }
.imk-s-ladder .imk-step.final { min-width: 3.6em; }
.imk-c-card.imk-none { margin: 20vh auto 0; max-width: 40em; }
.imk-app-screen > .imk-screen > .imk-c-card { align-self: center; }
@media (max-width: 900px) { .imk-s-grid { grid-template-columns: 1fr; } .imk-panel-s { max-height: 16em; } .imk-s-top { grid-template-columns: 1fr; text-align: center; } .imk-s-tools { justify-content: center; } .imk-opts-big { grid-template-columns: 1fr; } .imk-qrow { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .imk-root *, .imk-root::before { animation: none !important; transition: none !important; } }

/* =====================================================================
   v1.0.1 — layout (desktop + mobile, with or without full-screen mode)
   and readable headings. Appended last so it wins over the rules above.
   ===================================================================== */

/* ---------- never let content push the page sideways ---------- */
.imk-root { background-color: #0a0222; width: 100%; max-width: 100%; min-width: 0; margin-left: auto; margin-right: auto; overflow-wrap: break-word; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.imk-root img, .imk-root svg, .imk-root canvas, .imk-root table { max-width: 100%; }
.imk-shell, .imk-player, .imk-card, .imk-form, .imk-field, .imk-opt, .imk-opt-t, .imk-s-center, .imk-s-grid > *, .imk-screen > * { min-width: 0; }
.imk-shell { width: 100%; }
.imk-opt-t { overflow-wrap: anywhere; }

/* two-column field rows adapt to the width of the card itself, not the screen */
.imk-grid2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* dealer dashboard */
.imk-topbar { flex-wrap: wrap; }
.imk-topbar > div { min-width: 0; overflow-wrap: anywhere; }
.imk-tabs { flex-wrap: wrap; }
.imk-tab { min-width: 140px; }
.imk-scroll { max-width: 100%; -webkit-overflow-scrolling: touch; }
.imk-table { min-width: 560px; }
.imk-table td, .imk-table th { white-space: nowrap; }
.imk-table td:first-child { white-space: normal; min-width: 140px; }

/* player page */
.imk-strip { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
.imk-stat-v { font-size: clamp(15px, 4.4vw, 22px); overflow-wrap: anywhere; }
.imk-code-input { font-size: clamp(20px, 6.2vw, 26px) !important; letter-spacing: .1em !important; }

/* ---------- full-screen ("immersive") pages ---------- */
body.imk-immersive .imk-app-screen, body.imk-immersive .imk-app-player {
  width: 100%; height: 100vh; height: 100dvh; min-height: 0; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
body.imk-immersive .imk-app-player { padding-bottom: max(clamp(14px, 3vw, 32px), env(safe-area-inset-bottom)); }

/* ---------- big screen ---------- */
/* inside a normal theme page: size from the viewport but stay modest, and never force 100vh */
.imk-app-screen { font-size: clamp(12px, .95vw, 17px); }
body.imk-immersive .imk-app-screen { font-size: clamp(13px, 1.05vw, 24px); }
.imk-screen { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 640px; }
body.imk-immersive .imk-screen { height: 100vh; height: 100dvh; min-height: 0; }
.imk-s-top { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.imk-s-brand { min-width: 0; }
.imk-s-brand b { overflow-wrap: anywhere; }
.imk-s-grid { grid-template-columns: minmax(13em, 22%) minmax(0, 1fr) minmax(14em, 25%); }
.imk-s-ladder { flex-wrap: wrap; row-gap: .4em; }
.imk-bigclock.imk-huge { font-size: clamp(44px, 7vw, 130px); max-width: 100%; }

/* "no contest scheduled yet" — centred card, whatever the page width */
.imk-screen.imk-screen-none { display: grid; grid-template-rows: none; place-items: center; padding: 1em; min-height: min(100vh, 640px); }
body.imk-immersive .imk-screen.imk-screen-none { height: auto; min-height: 100vh; min-height: 100dvh; }
.imk-screen-none > .imk-c-card.imk-none { margin: 0 !important; width: min(40em, 100%); max-width: 100%; align-self: center; justify-self: center; }

/* tablets & phones: stack everything, let the page scroll, question first */
@media (max-width: 1000px) {
  .imk-app-screen, body.imk-immersive .imk-app-screen { font-size: 14px; }
  .imk-screen, body.imk-immersive .imk-screen { height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; grid-template-rows: auto auto auto; padding: .8em; }
  .imk-screen.imk-screen-none, body.imk-immersive .imk-screen.imk-screen-none { grid-template-rows: none; }
  .imk-s-top { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .imk-s-brand { justify-content: center; text-align: left; }
  .imk-s-tools { justify-content: center; flex-wrap: wrap; }
  .imk-s-grid { grid-template-columns: minmax(0, 1fr); }
  .imk-s-center { order: -1; }
  .imk-panel-s { max-height: 15em; }
  .imk-opts-big { grid-template-columns: minmax(0, 1fr); }
  .imk-opts-big .imk-opt:nth-child(5) { grid-column: auto; }
  .imk-qrow { flex-direction: column; align-items: stretch; }
  .imk-qtext-big { text-align: center; font-size: 1.35em !important; }
  .imk-pot-v { font-size: 2.6em; }
  .imk-c-lobby h1, .imk-c-splash h1, .imk-c-win h1 { font-size: 2em; }
  .imk-bigclock.imk-huge { font-size: clamp(40px, 14vw, 90px); }
  .imk-c-card .imk-crest.imk-xl { width: 76px; height: 76px; font-size: 38px; }
  .imk-s-ladder .imk-step { min-width: 2.4em; height: 2.4em; }
  .imk-s-ladder .imk-step.exit { height: 3em; }
}
@media (max-width: 480px) {
  .imk-root { border-radius: 16px; padding: 12px; }
  body.imk-immersive .imk-app-player { padding: 12px 12px max(12px, env(safe-area-inset-bottom)); }
  .imk-card { padding: 16px; border-radius: 16px; }
  .imk-btn { padding: 12px 18px; }
  .imk-topbar .imk-btn { padding: 8px 16px; }
  .imk-exitamt { font-size: clamp(34px, 12vw, 52px); }
}

/* ---------- readable headings & labels (do not depend on what is behind them) ---------- */
/* solid dark card, so a theme background can never wash the text out */
.imk-root .imk-card { background-color: #170745; background-image: linear-gradient(160deg, rgba(58, 24, 132, .97), rgba(18, 5, 54, .99)); }
.imk-root .imk-form h3, .imk-root .imk-card h3, .imk-root .imk-contest-t, .imk-root .imk-title { color: #ffffff !important; }
.imk-root .imk-form h3 { padding-bottom: 8px; border-bottom: 2px solid rgba(255, 210, 74, .55); }
.imk-root .imk-field > span { color: #ffffff !important; font-size: .86em; }
.imk-root .imk-field small, .imk-root .imk-note, .imk-root .imk-fine { color: #dcd0ff; }
.imk-root .imk-table th { color: #ffffff; border-bottom-color: rgba(255, 255, 255, .35); }
.imk-root .imk-link { color: #9ee7ff !important; }
.imk-root ::placeholder { color: rgba(205, 192, 245, .75); }
.imk-app-dealer .imk-hero h2, .imk-app-dealer .imk-hero h2.imk-gold {
  background: none !important; -webkit-text-fill-color: #ffffff !important; color: #ffffff !important; animation: none; text-shadow: 0 2px 18px rgba(255, 210, 74, .5), 0 1px 2px rgba(0, 0, 0, .5);
}
.imk-app-dealer .imk-sub { color: #e8deff; }

/* password box with Show / Hide */
.imk-pw { position: relative; }
.imk-root .imk-pw input { padding-right: 76px; }
.imk-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; cursor: pointer; padding: 6px 12px; border-radius: 999px; font-size: .8em; font-weight: 600; color: #ffffff; background: rgba(255, 255, 255, .16); }
.imk-eye:hover { background: rgba(255, 255, 255, .26); }

/* ---------- two-language questions: English on top, the regional language underneath ---------- */
.imk-t-en { display: block; }
.imk-t-alt, .imk-qtext .imk-t-alt, .imk-opt-t .imk-t-alt {
  display: block; margin-top: .3em; font-size: .88em; font-weight: 500; line-height: 1.45; opacity: .96;
  font-family: 'Noto Sans', 'Noto Sans Bengali', 'Noto Sans Devanagari', 'Noto Sans Gujarati', 'Noto Sans Gurmukhi', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Kannada', 'Noto Sans Malayalam', 'Noto Sans Oriya', 'Noto Naskh Arabic', 'Nirmala UI', 'Shonar Bangla', 'Vrinda', 'Mangal', 'Segoe UI', system-ui, sans-serif !important;
}
.imk-qtext .imk-t-alt { color: #ffe9a8; font-size: .84em; }
.imk-opt-t .imk-t-alt { margin-top: .12em; font-size: .9em; }
.imk-opt.is-locked .imk-t-alt { color: #3a1c00; }
@media (min-width: 1001px) {
  .imk-qtext-big.imk-qtext-bi { font-size: 1.5em !important; }
  .imk-opts-big.imk-bilang .imk-opt { font-size: 1.08em; min-height: 3.6em; }
}

/* ---------- Free contest ---------- */
.imk-free .imk-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9em; color: var(--text); line-height: 1.4; }
.imk-free .imk-check input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold-2); }
.imk-center-text { text-align: center; }
.imk-free-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.imk-social-card { display: grid; gap: 8px; }
.imk-social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.imk-social { display: inline-block; padding: 10px 20px; border-radius: 999px; color: #fff !important; font-weight: 700; font-size: .9em; text-decoration: none !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: transform .15s; }
.imk-social:hover { transform: translateY(-2px); }
.imk-social-fb { background: #1877f2; }
.imk-social-ig { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); }
.imk-social-yt { background: #e62117; }
.imk-coupon { border: 2px dashed var(--gold); border-radius: 16px; padding: 14px 16px; margin: 12px 0; text-align: center; background: rgba(255, 210, 74, .08); display: grid; gap: 4px; }
.imk-coupon.is-off { opacity: .55; filter: grayscale(.5); }
.imk-coupon-amt { font-size: 1.4em; font-weight: 800; color: var(--gold-3); }
.imk-coupon-code { font-family: Consolas, 'Courier New', monospace; font-size: 1.5em; letter-spacing: .12em; color: #fff; word-break: break-all; }
.imk-coupon-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.imk-gift { display: grid; gap: 8px; border-color: rgba(255, 210, 74, .6); }
.imk-gift .imk-form { padding: 0; box-shadow: none; background: none; border: 0; }
.imk-final-out .imk-crest { filter: grayscale(.4); }

/* =====================================================================
   Free contest — full-screen and balanced on desktop, tablet and phone
   ===================================================================== */

/* full-screen page: the app fills the screen and scrolls by itself; the theme header / footer are hidden */
body.imk-immersive .imk-app-free {
  position: fixed !important; inset: 0 !important; z-index: 999999;
  width: 100%; max-width: none; height: 100vh; height: 100dvh; min-height: 0; margin: 0 !important; border-radius: 0;
  display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding-top: max(clamp(14px, 3vw, 40px), env(safe-area-inset-top));
  padding-right: max(clamp(14px, 3vw, 40px), env(safe-area-inset-right));
  padding-bottom: max(clamp(18px, 3vw, 40px), env(safe-area-inset-bottom));
  padding-left: max(clamp(14px, 3vw, 40px), env(safe-area-inset-left));
}
/* short pages sit in the middle of the screen, long pages start at the top and scroll */
body.imk-immersive .imk-app-free > .imk-free, body.imk-immersive .imk-app-free > .imk-boot { margin: auto; }

/* one centred column for the game; two columns for the start page and the result */
.imk-free { width: 100%; max-width: 820px; gap: clamp(14px, 2vw, 22px); }
.imk-free.imk-free-wide { max-width: 1080px; }
.imk-free .imk-ptop { font-size: 1em; }
.imk-free .imk-brand { font-size: clamp(15px, 2.3vw, 20px); }
.imk-free .imk-ptop-solo { justify-content: center; }
.imk-free .imk-pname { max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imk-free .imk-stack { gap: clamp(14px, 2vw, 22px); }
.imk-free .imk-hero { padding-top: 0; }
.imk-free .imk-hero h2 { font-size: clamp(28px, 5vw, 44px); }

.imk-free-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 2vw, 22px); align-items: start; }
.imk-free-cols.imk-free-result { align-items: stretch; }
.imk-free-col { display: grid; gap: clamp(14px, 2vw, 22px); align-content: start; min-width: 0; }
.imk-free-result .imk-free-col:first-child { display: flex; flex-direction: column; }
.imk-free-result .imk-free-col:first-child .imk-final { flex: 1 1 auto; align-content: center; }
@media (min-width: 900px) {
  .imk-free-cols { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* the prize table fits the card instead of scrolling sideways */
.imk-free .imk-free-scroll { overflow: visible; }
.imk-free .imk-table { min-width: 0; width: 100%; font-size: .94em; }
.imk-free .imk-table th, .imk-free .imk-table td { white-space: normal; padding: 8px 10px; text-align: left; }
.imk-free .imk-table td:first-child, .imk-free .imk-table th:first-child { min-width: 0; width: 1%; white-space: nowrap; text-align: center; }

/* question: two columns of answer buttons on wider screens */
.imk-free .imk-qtext { font-size: clamp(18px, 3.6vw, 28px); }
@media (min-width: 720px) {
  .imk-free .imk-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .imk-free .imk-opts .imk-opt:nth-child(odd):last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
}

/* progress ladder: one row of 15 on desktop, three neat rows of 5 on a phone */
.imk-free .imk-ladder { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 6px; }
.imk-free .imk-step { min-width: 0; width: 100%; height: 40px; padding: 0 2px; border-radius: 14px; }
.imk-free .imk-step.exit { height: 40px; }
.imk-free .imk-step small { font-size: .72em; white-space: nowrap; }
@media (max-width: 720px) {
  .imk-free .imk-ladder { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* coupons sit side by side when there is room */
.imk-coupon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 10px; }
.imk-coupon-grid .imk-coupon { margin: 0; align-content: center; }
.imk-free .imk-coupon-code { font-size: clamp(18px, 4.6vw, 24px); }

/* phones */
@media (max-width: 520px) {
  .imk-free .imk-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .imk-free .imk-strip .imk-stat:first-child { grid-column: 1 / -1; }
  .imk-free .imk-btn-big { width: 100%; }
  .imk-free .imk-coupon-btns .imk-btn { flex: 1 1 100%; }
  .imk-free .imk-qtop { flex-wrap: wrap; }
  .imk-free .imk-card { padding: 16px; }
}
@media (max-width: 380px) {
  body.imk-immersive .imk-app-free { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
}

/* smaller timer ring on small / short screens so the question and answers stay above the fold */
@media (max-width: 520px), (max-height: 720px) {
  .imk-free .imk-ring { width: clamp(72px, 21vw, 96px) !important; height: clamp(72px, 21vw, 96px) !important; }
}

/* =====================================================================
   v1.2.0 — fair play bits (warning, counter, no-copy)
   ===================================================================== */
.imk-nocopy, .imk-nocopy * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.imk-toast { position: fixed; z-index: 2147483001; left: 50%; top: max(10px, env(safe-area-inset-top)); transform: translateX(-50%); width: min(92vw, 520px); padding: 12px 16px; border-radius: 14px; font: 600 14px/1.4 'Poppins', 'Segoe UI', system-ui, sans-serif; text-align: center; cursor: pointer; box-shadow: 0 10px 34px rgba(0, 0, 0, .55); animation: imk-toast-in .25s ease-out; }
.imk-toast-warn { background: #ffe9a8; color: #5a3300; border: 2px solid #ff9d00; }
@keyframes imk-toast-in { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.imk-awaychip { padding: .2em .65em; border-radius: 999px; font-size: .9em; font-weight: 700; background: rgba(255, 77, 109, .22); border: 1px solid rgba(255, 77, 109, .7); color: #ffd0d8; white-space: nowrap; }
.imk-rules li.imk-rule-warn { color: #ffe9a8; }
.imk-rules li.imk-rule-warn::before { content: '⚠'; }

/* =====================================================================
   v1.2.0 — PHONES: every game screen fits the screen, nothing to scroll.
   Full-screen mode only. common.js (I.fit) scales the text down in small
   steps through --fit when a long question or a second language needs it.
   ===================================================================== */
@media (max-width: 560px) {
  body.imk-immersive .imk-app-player, body.imk-immersive .imk-app-free {
    display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; overflow-x: hidden; overflow-y: auto;
    font-size: calc(15px * var(--fit, 1)); line-height: 1.35;
    padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }
  body.imk-immersive .imk-app-player > .imk-player, body.imk-immersive .imk-app-free > .imk-player {
    flex: 1 1 auto; min-height: 0; width: 100%; max-width: none; margin: 0; display: flex; flex-direction: column; gap: .5em; align-content: normal; justify-content: flex-start;
  }
  body.imk-immersive .imk-app-player > .imk-boot, body.imk-immersive .imk-app-free > .imk-boot { margin: auto; padding: 0; }

  /* top bar */
  body.imk-immersive .imk-ptop { flex: none; flex-wrap: nowrap; gap: .5em; font-size: .86em; min-height: 0; }
  body.imk-immersive .imk-ptop .imk-brand { font-size: .95em; white-space: nowrap; }
  body.imk-immersive .imk-ptop .imk-pname { padding: .2em .7em; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.imk-immersive .imk-ptop-r, body.imk-immersive .imk-free .imk-ptop-solo { gap: .4em; }

  /* the stack (the screen's content) takes whatever height is left */
  body.imk-immersive .imk-app-player .imk-stack, body.imk-immersive .imk-app-free .imk-stack { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: .5em; }
  body.imk-immersive .imk-app-player .imk-card, body.imk-immersive .imk-app-free .imk-card { padding: .75em .85em; border-radius: 16px; }
  /* a screen that is a single card (login, eliminated, winner...) sits in the middle */
  body.imk-immersive .imk-app-player .imk-player > .imk-card, body.imk-immersive .imk-app-free .imk-player > .imk-card { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; }
  body.imk-immersive .imk-app-player .imk-stack > .imk-center-card:only-of-type, body.imk-immersive .imk-app-free .imk-stack > .imk-center-card:first-child { flex: 1 1 auto; justify-content: center; }
  body.imk-immersive .imk-center-card, body.imk-immersive .imk-entry { gap: .45em; }
  body.imk-immersive .imk-center-card h2, body.imk-immersive .imk-entry h2 { font-size: 1.55em; }
  body.imk-immersive .imk-center-card h3, body.imk-immersive .imk-title { font-size: 1.05em; }
  body.imk-immersive .imk-app-player .imk-crest, body.imk-immersive .imk-app-free .imk-crest { width: 2em; height: 2em; font-size: 1.75em; }
  body.imk-immersive .imk-label { font-size: .7em; }
  body.imk-immersive .imk-when { font-size: 1.5em; line-height: 1.15; }
  body.imk-immersive .imk-bigclock { font-size: 2.6em; line-height: 1.1; }
  body.imk-immersive .imk-sub { font-size: .95em; }
  body.imk-immersive .imk-fine, body.imk-immersive .imk-note { font-size: .78em; line-height: 1.3; }
  body.imk-immersive .imk-rules { gap: .3em; font-size: .84em; }
  body.imk-immersive .imk-rules li { padding-left: 1.5em; line-height: 1.3; }
  body.imk-immersive .imk-exitamt { font-size: 2.4em; line-height: 1.1; }
  body.imk-immersive .imk-exitamt.imk-big { font-size: 2.8em; }
  body.imk-immersive .imk-final { padding: .8em; }
  body.imk-immersive .imk-final-pot { padding: .4em .9em; } body.imk-immersive .imk-final-pot strong { font-size: 1.5em; }
  body.imk-immersive .imk-app-player .imk-btn, body.imk-immersive .imk-app-free .imk-btn { padding: .6em 1.1em; }
  body.imk-immersive .imk-app-player .imk-btn-big, body.imk-immersive .imk-app-free .imk-btn-big { padding: .65em 1em; font-size: 1.05em; }
  body.imk-immersive .imk-btn-gold { box-shadow: 0 4px 0 #9a6a00, 0 8px 16px rgba(255, 184, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .7); }
  body.imk-immersive .imk-exitbtns { gap: .5em; }
  body.imk-immersive .imk-msg-info, body.imk-immersive .imk-msg-ok, body.imk-immersive .imk-msg-err { padding: .4em .7em; font-size: .85em; }
  body.imk-immersive .imk-code-input { font-size: 1.4em !important; padding: .5em .6em; }

  /* progress ladder -> one slim bar, whatever the number of questions */
  body.imk-immersive .imk-ladder, body.imk-immersive .imk-free .imk-ladder {
    flex: none; display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; height: .75em; margin: .15em .1em .1em; justify-content: stretch;
  }
  body.imk-immersive .imk-ladder .imk-step, body.imk-immersive .imk-free .imk-step, body.imk-immersive .imk-free .imk-step.exit {
    min-width: 0; width: auto; height: 100%; padding: 0; border-radius: 4px; font-size: 0; line-height: 0; border-width: 1px; transform: none;
  }
  body.imk-immersive .imk-ladder .imk-step span, body.imk-immersive .imk-ladder .imk-step small { display: none; }
  body.imk-immersive .imk-ladder .imk-step.exit { border: 1.5px dashed var(--gold); }
  body.imk-immersive .imk-ladder .imk-step.now { transform: none; box-shadow: 0 0 9px rgba(255, 210, 74, .95); }

  /* top stats: one compact row */
  body.imk-immersive .imk-strip, body.imk-immersive .imk-free .imk-strip { flex: none; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: .4em; }
  body.imk-immersive .imk-free .imk-strip .imk-stat:first-child { grid-column: auto; }
  body.imk-immersive .imk-app-player .imk-stat, body.imk-immersive .imk-app-free .imk-stat { padding: .3em .35em; border-radius: 10px; min-width: 0; }
  body.imk-immersive .imk-stat-v { font-size: 1.1em; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.imk-immersive .imk-stat-l { font-size: .6em; letter-spacing: .06em; line-height: 1.15; }

  /* the question card: question, answers and lock button share the height that is left */
  body.imk-immersive .imk-app-player .imk-qcard, body.imk-immersive .imk-app-free .imk-qcard { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: .5em; padding: .65em .7em; }
  body.imk-immersive .imk-qtop { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5em; align-items: center; }
  body.imk-immersive .imk-qno { font-size: .95em; white-space: nowrap; }
  body.imk-immersive .imk-phase { font-size: .66em; letter-spacing: .1em; line-height: 1.25; }
  body.imk-immersive .imk-qtop .imk-ring, body.imk-immersive .imk-free .imk-ring { width: 3.5em !important; height: 3.5em !important; }
  body.imk-immersive .imk-exitcard .imk-ring { width: 4em !important; height: 4em !important; }
  body.imk-immersive .imk-qtext, body.imk-immersive .imk-free .imk-qtext { flex: none; margin: 0; font-size: 1.1em; line-height: 1.3; letter-spacing: 0; }
  body.imk-immersive .imk-opts .imk-opt { letter-spacing: 0; }
  body.imk-immersive .imk-qtext .imk-t-alt { margin-top: .15em; font-size: .86em; line-height: 1.35; }
  body.imk-immersive .imk-opts, body.imk-immersive .imk-free .imk-opts { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: .4em; grid-template-columns: none; }
  body.imk-immersive .imk-free .imk-opts .imk-opt:nth-child(odd):last-child { width: 100%; grid-column: auto; justify-self: auto; }
  body.imk-immersive .imk-opts .imk-opt {
    flex: 1 1 0; min-height: auto; padding: .4em .65em; gap: .6em; font-size: .94em; line-height: 1.2; border-radius: 12px; border-width: 1.5px;
    box-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 4px 10px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .35);
  }
  body.imk-immersive .imk-opts .imk-opt.is-sel { transform: none; }
  body.imk-immersive .imk-opts .imk-opt-l { width: 1.85em; height: 1.85em; font-size: .85em; }
  body.imk-immersive .imk-opts .imk-opt-t .imk-t-alt { margin-top: .08em; font-size: .88em; line-height: 1.3; }
  body.imk-immersive .imk-opt-pct { font-size: .7em; padding: .15em .55em; }
  body.imk-immersive .imk-lock { flex: none; margin: 0; }
  body.imk-immersive .imk-result { padding: .4em; font-size: 1.05em; flex: none; }
  body.imk-immersive .imk-qcard .imk-btn { flex: none; }
  body.imk-immersive .imk-qcard > .imk-msg, body.imk-immersive .imk-qcard > .imk-fine { flex: none; margin: 0; }
}

/* ---------- v1.2.0 phones: Free Contest pages (start, ready, result) show one pane at a time ---------- */
.imk-tabbar { display: none; }
.imk-only-compact { display: none; }
@media (max-width: 560px) {
  body.imk-immersive .imk-only-compact { display: inline-block; }
  body.imk-immersive .imk-free .imk-tabbar { display: flex; flex: none; gap: .35em; }
  body.imk-immersive .imk-ptab {
    flex: 1 1 0; min-width: 0; padding: .5em .25em; border-radius: 12px; border: 1.5px solid rgba(255, 210, 74, .3); background: transparent; color: var(--muted);
    font-family: inherit; font-weight: 600; font-size: .8em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
  }
  body.imk-immersive .imk-ptab.on { background: linear-gradient(180deg, rgba(255, 210, 74, .28), rgba(255, 210, 74, .08)); color: var(--gold); border-color: var(--gold); }
  /* only the chosen pane is on show */
  body.imk-immersive .imk-free[data-tab="main"] [data-pane]:not([data-pane="main"]),
  body.imk-immersive .imk-free[data-tab="rules"] [data-pane]:not([data-pane="rules"]),
  body.imk-immersive .imk-free[data-tab="prizes"] [data-pane]:not([data-pane="prizes"]),
  body.imk-immersive .imk-free[data-tab="follow"] [data-pane]:not([data-pane="follow"]),
  body.imk-immersive .imk-free[data-tab="coupons"] [data-pane]:not([data-pane="coupons"]),
  body.imk-immersive .imk-free[data-tab="gift"] [data-pane]:not([data-pane="gift"]) { display: none !important; }
  /* the two desktop columns dissolve; the visible pane sits in the middle of the space under the tabs */
  body.imk-immersive .imk-free-cols { display: flex; flex-direction: column; justify-content: center; flex: 1 1 auto; min-height: 0; gap: .5em; }
  body.imk-immersive .imk-free-col { display: contents; }
  body.imk-immersive .imk-free .imk-free-result > .imk-free-col:first-child .imk-final { flex: none; }
  body.imk-immersive .imk-free .imk-stack { justify-content: center; }
  body.imk-immersive .imk-free .imk-hero { gap: .25em; padding: 0; }
  body.imk-immersive .imk-free .imk-hero .imk-crest { display: none; }
  body.imk-immersive .imk-free .imk-hero h2 { font-size: 1.6em; }
  body.imk-immersive .imk-free .imk-hero .imk-sub { font-size: .85em; }

  /* forms */
  body.imk-immersive .imk-free .imk-form { gap: .55em; }
  body.imk-immersive .imk-free .imk-form h3 { font-size: 1.1em; padding-bottom: .25em; }
  body.imk-immersive .imk-free .imk-field { gap: .2em; }
  body.imk-immersive .imk-free .imk-field > span { font-size: .72em; }
  body.imk-immersive .imk-free .imk-field small { font-size: .7em; line-height: 1.25; }
  body.imk-immersive .imk-free .imk-root input, body.imk-immersive .imk-free input[type=text], body.imk-immersive .imk-free input[type=email], body.imk-immersive .imk-free input[type=tel], body.imk-immersive .imk-free textarea { padding: .55em .75em; font-size: 16px; }
  body.imk-immersive .imk-free .imk-check { font-size: .8em; line-height: 1.3; }
  body.imk-immersive .imk-free .imk-check input { width: 1.25em; height: 1.25em; margin-top: .1em; }
  body.imk-immersive .imk-free .imk-gift .imk-form textarea { rows: 2; }

  /* prize table: all 15 rows on one screen */
  body.imk-immersive .imk-free .imk-table { font-size: .82em; }
  body.imk-immersive .imk-free .imk-table th, body.imk-immersive .imk-free .imk-table td { padding: .22em .45em; line-height: 1.25; }
  body.imk-immersive .imk-free .imk-card h4 { font-size: 1em; margin-bottom: .2em; }

  /* coupons: tiles side by side so up to 12 fit on the screen */
  body.imk-immersive .imk-coupon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45em; margin-top: .4em; }
  body.imk-immersive .imk-coupon-grid.imk-n1 { grid-template-columns: minmax(0, 1fr); }
  body.imk-immersive .imk-coupon { margin: 0; padding: .5em .4em; gap: .15em; border-radius: 12px; border-width: 1.5px; }
  body.imk-immersive .imk-coupon-amt { font-size: 1.05em; line-height: 1.2; }
  body.imk-immersive .imk-coupon-code { font-size: .76em; letter-spacing: .05em; line-height: 1.2; }
  body.imk-immersive .imk-coupon .imk-fine { font-size: .62em; line-height: 1.2; }
  body.imk-immersive .imk-coupon-btns { flex-wrap: nowrap; gap: .3em; margin-top: .3em; }
  body.imk-immersive .imk-coupon-btns .imk-btn { flex: 1 1 0; padding: .45em .3em; font-size: .74em; white-space: nowrap; }
  body.imk-immersive .imk-coupon-grid.imk-n1 .imk-coupon-amt { font-size: 1.5em; }
  body.imk-immersive .imk-coupon-grid.imk-n1 .imk-coupon-code { font-size: 1.3em; }
  body.imk-immersive .imk-coupon-grid.imk-n1 .imk-coupon-btns .imk-btn { font-size: .9em; }
  body.imk-immersive .imk-social-card { gap: .4em; }
  body.imk-immersive .imk-social-row { gap: .45em; }
  body.imk-immersive .imk-social { padding: .6em 1.1em; font-size: .85em; }
}

/* ---------- v1.2.1 coupon picture sheet (shown when "Download coupon" is pressed) ---------- */
.imk-sheet { position: fixed; inset: 0; z-index: 2147483002; display: flex; align-items: center; justify-content: center; padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); background: rgba(5, 1, 20, .88); font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; color: #f4ecff; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.imk-sheet, .imk-sheet * { box-sizing: border-box; }
.imk-sheet-box { width: min(100%, 560px); display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; background: linear-gradient(160deg, #3a1884, #12053a); border: 1.5px solid rgba(255, 210, 74, .6); box-shadow: 0 16px 50px rgba(0, 0, 0, .6); max-height: 100%; }
.imk-sheet-head { display: flex; align-items: center; justify-content: space-between; color: #ffd24a; font-size: 1.05em; }
.imk-sheet-x { border: 0; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; color: #fff; background: rgba(255, 255, 255, .15); }
/* a plain, long-pressable picture: no selection / callout blocking here, so "Save image" works */
.imk-sheet-img { display: block; width: 100%; height: auto; max-height: calc(100vh - 250px); max-height: calc(100dvh - 250px); object-fit: contain; border-radius: 12px; -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
.imk-sheet-fallback { text-align: center; padding: 22px 12px; }
.imk-sheet-msg { margin: 0; min-height: 1.2em; font-size: .82em; line-height: 1.35; color: #ffe9a8; text-align: center; }
.imk-sheet-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.imk-sheet-btns .imk-btn { padding: .6em 1.1em; font-size: .92em; }
.imk-sheet-btns .imk-btn-small { color: #ffd24a; border: 1.5px solid rgba(255, 210, 74, .5); background: transparent; }
@media (max-height: 560px) { .imk-sheet-img { max-height: calc(100dvh - 200px); } .imk-sheet-box { gap: 6px; padding: 8px; } }

/* =====================================================================
   v1.3.0 — players register themselves (Player portal)
   ===================================================================== */
.imk-regbox { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5em .8em; margin-top: .3em; padding-top: .7em; border-top: 1px dashed rgba(255, 210, 74, .3); width: 100%; }
.imk-regbox .imk-btn { flex: none; }
.imk-app-player .imk-link { background: none; border: 0; padding: .3em .2em; color: #7fdcff; font: inherit; font-size: .9em; text-decoration: underline; cursor: pointer; }
.imk-app-player .imk-player.imk-center { width: 100%; }
.imk-app-player .imk-reg { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
.imk-app-player .imk-form.imk-reg { display: grid; gap: .8em; text-align: left; }
.imk-app-player .imk-reg h3 { margin: 0; text-align: center; }
.imk-app-player .imk-reg .imk-contest { margin: 0; }
.imk-app-player .imk-reg .imk-select { width: 100%; padding: .6em .8em; border-radius: 12px; font: inherit; }
.imk-app-player .imk-reg textarea { resize: none; }
.imk-app-player .imk-reg .imk-link { justify-self: center; }
.imk-passbox { display: grid; gap: .35em; justify-items: center; width: 100%; padding: .8em; border-radius: 16px; border: 2px dashed var(--gold); background: rgba(255, 210, 74, .08); }
.imk-passcode { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; font-size: clamp(1.5rem, 6vw, 2.2rem); letter-spacing: .12em; color: #ffe9a8; word-break: break-all; -webkit-user-select: all; user-select: all; }

@media (max-width: 560px) {
  body.imk-immersive .imk-app-player .imk-player > .imk-card.imk-reg { display: grid; align-content: center; justify-items: stretch; align-items: stretch; flex: 1 1 auto; gap: .55em; }
  body.imk-immersive .imk-app-player .imk-player > .imk-card.imk-reg.imk-center-card { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  body.imk-immersive .imk-app-player .imk-reg .imk-contest { padding: .5em .6em; border-radius: 12px; }
  body.imk-immersive .imk-app-player .imk-reg .imk-contest-t { font-size: .95em; line-height: 1.2; }
  body.imk-immersive .imk-app-player .imk-reg .imk-chips { gap: .25em; margin-top: .3em; }
  body.imk-immersive .imk-app-player .imk-reg .imk-chip { font-size: .68em; padding: .15em .5em; }
  body.imk-immersive .imk-app-player .imk-reg .imk-note { font-size: .72em; margin: .3em 0 0; }
  body.imk-immersive .imk-app-player .imk-reg .imk-field { gap: .15em; }
  body.imk-immersive .imk-app-player .imk-reg .imk-field > span { font-size: .7em; }
  body.imk-immersive .imk-app-player .imk-reg .imk-field small { font-size: .68em; line-height: 1.2; }
  body.imk-immersive .imk-app-player .imk-reg input[type=text], body.imk-immersive .imk-app-player .imk-reg input[type=tel], body.imk-immersive .imk-app-player .imk-reg input[type=email], body.imk-immersive .imk-app-player .imk-reg textarea, body.imk-immersive .imk-app-player .imk-reg .imk-select { padding: .5em .7em; font-size: 16px; }
  body.imk-immersive .imk-app-player .imk-reg .imk-check { font-size: .78em; line-height: 1.25; gap: .5em; }
  body.imk-immersive .imk-app-player .imk-reg .imk-check input { width: 1.2em; height: 1.2em; }
  body.imk-immersive .imk-app-player .imk-reg h3 { font-size: 1.1em; }
  body.imk-immersive .imk-app-player .imk-reg .imk-sub { font-size: .85em; margin: 0; }
  body.imk-immersive .imk-regbox { margin-top: .1em; padding-top: .45em; gap: .3em .6em; }
  body.imk-immersive .imk-passbox { padding: .55em; }
  body.imk-immersive .imk-passcode { font-size: 1.6em; letter-spacing: .08em; }
}

/* small phones: the registration form drops what the placeholders already say, so it still fits one screen */
@media (max-width: 560px) {
  body.imk-immersive .imk-app-player .imk-reg.imk-has-sel .imk-contest-t { display: none; }
  body.imk-immersive .imk-app-player .imk-reg textarea { height: 3.3em; min-height: 0; }
}
@media (max-width: 560px) and (max-height: 700px) {
  body.imk-immersive .imk-app-player .imk-form.imk-reg > h3, body.imk-immersive .imk-app-player .imk-reg .imk-field small { display: none; }
  body.imk-immersive .imk-app-player .imk-reg { gap: .4em; }
}

/* =====================================================================
   v1.4.0 — Lucky Spin (eliminated on question 11-15)
   ===================================================================== */
.imk-wheelwrap { position: relative; display: grid; place-items: center; margin: .15em auto; max-width: 100%; }
.imk-wheel { display: block; border-radius: 50%; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .55)); max-width: 100%; }
.imk-pointer { position: absolute; z-index: 2; top: -4px; left: 50%; width: 0; height: 0; margin-left: -15px; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 32px solid #fff; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .65)); }
.imk-spincard { gap: .45em; }
.imk-spincard h2 { margin: 0; }
.imk-spincard .imk-sub { margin: 0; }
.imk-spinmsg:empty { display: none; }
.imk-spinbtn { width: min(100%, 360px); }
.imk-spinprize { font-family: 'Cinzel', Georgia, serif; font-weight: 800; font-size: clamp(1.5rem, 6vw, 2.3rem); line-height: 1.15; color: #ffe9a8; text-align: center; word-break: break-word; }
@media (max-width: 560px) {
  body.imk-immersive .imk-spincard { gap: .3em; padding: .6em .7em; }
  body.imk-immersive .imk-spincard h2 { font-size: 1.45em; }
  body.imk-immersive .imk-spincard .imk-sub { font-size: .85em; line-height: 1.25; }
  body.imk-immersive .imk-spinprize { font-size: 1.7em; }
  body.imk-immersive .imk-spinresult { gap: .4em; }
}
