:root {
  --bg: #f5f6fb;
  --card: #ffffff;
  --ink: #1d2233;
  --muted: #6b7185;
  --line: #e3e6ef;
  --brand: #5b4fe0;
  --brand-2: #8a5cf6;
  --ok: #17924f;
  --ok-bg: #e7f7ee;
  --bad: #c9372c;
  --bad-bg: #fdecea;
  --warn: #b26b00;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(29, 34, 51, .07);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}
a { color: var(--brand); }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .9em;
  background: #eef0f7;
  border-radius: 5px;
  padding: .05em .35em;
  word-break: break-word;
}

/* Header & footer */
.site-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding: .8rem 1.2rem;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
}
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.site-header nav a { color: #fff; text-decoration: none; margin-left: 1rem; opacity: .9; font-weight: 500; }
.site-header nav a:hover { opacity: 1; text-decoration: underline; }
.site-footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 1rem 3rem; }

main { max-width: 760px; margin: 0 auto; padding: 1.2rem 1rem; }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.3rem; margin-bottom: 1rem;
}
.muted { color: var(--muted); font-size: .9rem; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 .4rem; }
h2 { font-size: 1.25rem; margin: 1.2rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 .4rem; }

/* Home */
.hero { text-align: center; padding: 1.6rem 1.2rem; }
.hero p { color: var(--muted); margin: .3rem 0 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 1rem 0 0; }
.stat { background: #f1f0ff; border-radius: 10px; padding: .6rem .3rem; text-align: center; }
.stat b { display: block; font-size: 1.25rem; color: var(--brand); }
.stat span { font-size: .75rem; color: var(--muted); }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.mode {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1rem; font: inherit; color: inherit; box-shadow: var(--shadow);
  transition: transform .08s, border-color .15s;
}
.mode:hover:not(:disabled) { border-color: var(--brand); transform: translateY(-2px); }
.mode:disabled { opacity: .5; cursor: not-allowed; }
.mode .icon { font-size: 1.6rem; }
.mode b { display: block; font-size: 1.05rem; margin: .2rem 0; }
.mode small { color: var(--muted); }
.mode.wide { grid-column: 1 / -1; }
.domain-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .8rem; }
.domain-pick button { font: inherit; text-align: left; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.domain-pick button:hover { border-color: var(--brand); }

/* Play */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; font-weight: 600; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; font-size: .9rem; }
.pill.timer.low { color: var(--bad); border-color: var(--bad); }
.progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 1rem; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .3s; }
.qmeta { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.tag { font-size: .75rem; background: #f1f0ff; color: var(--brand); border-radius: 6px; padding: .1rem .5rem; font-weight: 600; }
.tag.Easy { background: var(--ok-bg); color: var(--ok); }
.tag.Hard { background: var(--bad-bg); color: var(--bad); }
.question { font-size: 1.1rem; font-weight: 600; margin: 0 0 1rem; }
.options { display: grid; gap: .6rem; }
.opt {
  display: flex; gap: .7rem; align-items: flex-start; width: 100%; text-align: left;
  font: inherit; color: inherit; background: #fff; cursor: pointer;
  border: 2px solid var(--line); border-radius: 12px; padding: .75rem .9rem;
  transition: border-color .12s, background .12s;
}
.opt:hover:not(:disabled) { border-color: var(--brand); }
.opt:disabled { cursor: default; }
.opt .letter {
  flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: #eef0f7;
}
.opt.chosen { border-color: var(--brand); background: #f4f2ff; }
.opt.chosen .letter { background: var(--brand); color: #fff; }
.opt.right { border-color: var(--ok); background: var(--ok-bg); }
.opt.right .letter { background: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.wrong .letter { background: var(--bad); color: #fff; }

.feedback { margin-top: 1rem; border-radius: 12px; padding: 1rem; }
.feedback.ok { background: var(--ok-bg); }
.feedback.no { background: var(--bad-bg); }
.feedback .verdict { font-weight: 800; font-size: 1.05rem; }
.feedback p { margin: .5rem 0 0; }
.feedback .src { font-size: .85rem; word-break: break-all; }
.points-pop { color: var(--ok); font-weight: 800; margin-left: .4rem; }

.actions { display: flex; gap: .6rem; justify-content: space-between; flex-wrap: wrap; margin-top: 1rem; }
.btn {
  font: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: 10px;
  padding: .7rem 1.2rem; background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid var(--bad); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.3rem, 1fr)); gap: .35rem; margin-top: 1rem; }
.grid button { font: inherit; font-size: .8rem; padding: .35rem 0; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.grid button.done { background: #f1f0ff; border-color: var(--brand); }
.grid button.flag { background: #fff6e0; border-color: var(--warn); }
.grid button.cur { outline: 2px solid var(--ink); }

/* Results */
.score-ring { text-align: center; }
.score-ring .big { font-size: 3.2rem; font-weight: 900; line-height: 1; background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score-ring .badge { font-size: 2.4rem; }
.bars { display: grid; gap: .55rem; margin-top: .6rem; }
.bar-row { display: grid; grid-template-columns: 11rem 1fr 3.5rem; gap: .6rem; align-items: center; font-size: .9rem; }
.bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; border-radius: 999px; }
.review-item { border-top: 1px solid var(--line); padding: .8rem 0; }
.review-item:first-child { border-top: 0; }
.review-item .q { font-weight: 600; }
.review-item .ans { font-size: .92rem; margin: .3rem 0; }

/* Info + text pages */
.info, .page { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem; margin-top: 1.5rem; }
.domains { width: 100%; border-collapse: collapse; font-size: .92rem; }
.domains th, .domains td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
.domains th { color: var(--muted); font-weight: 600; }

@media (max-width: 560px) {
  .modes, .domain-pick { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bar-row { grid-template-columns: 7.5rem 1fr 3rem; font-size: .8rem; }
  .site-header nav a { margin-left: .7rem; font-size: .9rem; }
  h1 { font-size: 1.35rem; }
}

/* All questions page */
main.wide { max-width: 900px; }
.bank-tools {
  display: flex; gap: .6rem; flex-wrap: wrap; align-items: center;
  position: sticky; top: 0; z-index: 5; background: var(--card); padding: .7rem 0;
}
.bank-tools input {
  flex: 1 1 260px; font: inherit; padding: .65rem .9rem;
  border: 2px solid var(--line); border-radius: 10px; background: #fff;
}
.bank-tools input:focus { outline: none; border-color: var(--brand); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { font: inherit; border: 0; background: #fff; padding: .6rem .9rem; cursor: pointer; }
.seg button.on { background: var(--brand); color: #fff; font-weight: 700; }
.jump { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 1rem; }
.jump a { font-size: .8rem; background: #f1f0ff; color: var(--brand); border-radius: 6px; padding: .15rem .55rem; text-decoration: none; font-weight: 600; }
.dom { scroll-margin-top: 4.5rem; }
.dom h2 { border-bottom: 2px solid var(--line); padding-bottom: .35rem; margin-top: 1.8rem; }
.dom h2 small { font-size: .8rem; font-weight: 500; }
details.sub { border: 1px solid var(--line); border-radius: 12px; margin: .6rem 0; background: #fff; }
details.sub > summary {
  cursor: pointer; padding: .75rem 1rem; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: .5rem;
}
details.sub > summary::-webkit-details-marker { display: none; }
details.sub > summary::after { content: "▸"; color: var(--muted); }
details.sub[open] > summary::after { content: "▾"; }
.qa { padding: 1rem; border-top: 1px solid var(--line); scroll-margin-top: 4.5rem; }
.qa .question { font-size: 1rem; margin: 0 0 .5rem; }
.qa .tag { text-decoration: none; }
.qa p { margin: .4rem 0; }
.qa-opts { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .35rem; }
.qa-opts li { padding: .45rem .7rem; border-radius: 8px; background: #f7f8fc; }
.qa-opts li.right { background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok); }
.ans-line { font-weight: 700; color: var(--ok); }
.qa.flash { animation: flash 2.5s ease-out; }
@keyframes flash { from { background: #fff1c2; } to { background: transparent; } }

/* Results: score per sub-skill */
table.subs { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.subs td { padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
table.subs tr:nth-child(even) td { background: #f7f8fc; }
table.subs td:nth-child(2) { text-align: right; white-space: nowrap; }
table.subs td:last-child { text-align: right; font-weight: 700; width: 4rem; }
table.subs small { font-weight: 600; margin-left: .3rem; }
a.mode { text-decoration: none; }

/* Support boxes: coffee QR + YouTube / Instagram (added by support.js) */
.promo {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .9rem; text-align: center; font-size: .9rem;
}
.promo img { width: 100%; height: auto; display: block; border-radius: 8px; }
.promo p { margin: .35rem 0 .6rem; }
.promo.note { background: linear-gradient(160deg, #fff, #f3f0ff); text-align: center; line-height: 1.45; }
.promo .upi { font-size: .8rem; margin: .4rem 0 0; word-break: break-all; }
.copy-upi { font: inherit; font-size: .8rem; font-weight: 600; margin-top: .5rem; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .3rem .7rem; cursor: pointer; }
.copy-upi:hover { border-color: var(--brand); color: var(--brand); }
.promo-btn {
  display: block; margin-top: .5rem; padding: .6rem .7rem; border-radius: 10px;
  font-weight: 700; text-decoration: none; color: #fff;
}
.promo-btn.yt { background: #e62117; }
.promo-btn.ig { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.promo-btn.upi-btn { background: #1a73e8; }
.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) { .touch-only { display: block; } }

/* Phones and tablets: once, at the bottom of the page */
.support-bottom {
  max-width: 420px; margin: 1.5rem auto 0; padding: 0 1rem;
  display: grid; gap: 1rem;
}
.support-bottom .coffee img { max-width: 260px; margin: 0 auto; }

/* Wide screens: a column centred in the empty space on each side of the content.
   (Kept after the phone rules so it wins on wide screens.) */
.rail { display: none; }
@media (min-width: 1240px) {
  body { --content: 760px; }
  body.wide-page { --content: min(900px, calc(100vw - 480px)); }
  main.wide { max-width: var(--content); }
  .rail {
    --space: calc((100vw - var(--content)) / 2);          /* empty space beside the content */
    --w: clamp(200px, calc(var(--space) - 48px), 300px);  /* column width */
    display: flex; flex-direction: column; gap: 1rem;
    position: fixed; top: 72px; bottom: 16px; width: var(--w); overflow-y: auto; scrollbar-width: thin; scrollbar-color: transparent transparent; z-index: 3;
  }
  .rail:hover { scrollbar-color: var(--line) transparent; }
  .rail-left { left: calc((var(--space) - var(--w)) / 2); }
  .rail-right { right: calc((var(--space) - var(--w)) / 2); }
  .rail .promo { padding: 1.1rem; font-size: .95rem; }
  .rail .promo-btn { padding: .75rem; font-size: 1rem; }
  .support-bottom { display: none; }
}

/* Back button on text pages */
.back-link {
  display: inline-block; margin-bottom: .8rem; padding: .35rem .8rem; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.back-link:hover { border-color: var(--brand); color: var(--brand); }

/* Short laptop screens: shrink the QR a little so both side boxes fit without scrolling */
@media (min-width: 1240px) {
  .rail .coffee img { max-height: max(170px, calc(100vh - 690px)); width: auto; max-width: 100%; margin: 0 auto; }
}
@media (min-width: 1240px) and (max-height: 1100px) {
  .rail { gap: .7rem; }
  .rail .promo { padding: .7rem; font-size: .88rem; }
  .rail .social p { display: none; }
  .rail .promo-btn { padding: .5rem .3rem; font-size: .85rem; margin-top: .4rem; white-space: nowrap; }
}

/* ---------- Visual polish ---------- */
:root {
  --radius: 18px;
  --shadow: 0 1px 2px rgba(29, 34, 51, .05), 0 8px 24px rgba(50, 40, 120, .08);
  --lift: 0 2px 4px rgba(29, 34, 51, .06), 0 16px 36px rgba(60, 45, 160, .16);
}
body {
  background:
    radial-gradient(900px 480px at 8% -4%, rgba(138, 92, 246, .16), transparent 65%),
    radial-gradient(900px 520px at 100% 12%, rgba(64, 140, 255, .13), transparent 65%),
    var(--bg);
  background-attachment: fixed;
}
.site-header { position: relative; z-index: 4; background: linear-gradient(110deg, #3d31b8, var(--brand) 45%, var(--brand-2)); box-shadow: 0 4px 18px rgba(70, 55, 190, .28); }
.brand { letter-spacing: -.01em; }
.site-header nav a { padding: .3rem .1rem; border-bottom: 2px solid transparent; transition: border-color .15s; }
.site-header nav a:hover { text-decoration: none; border-color: #fff; }

/* Home */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 2.1rem 1.4rem 1.5rem;
  background: linear-gradient(135deg, #2d2391, #5b4fe0 55%, #8a5cf6); box-shadow: var(--lift);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.hero::before { width: 240px; height: 240px; top: -110px; left: -70px; }
.hero::after { width: 300px; height: 300px; bottom: -170px; right: -90px; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 2rem; letter-spacing: -.02em; }
.hero p { color: rgba(255, 255, 255, .9); max-width: 54ch; margin-inline: auto; }
.hero .stat { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: .75rem .3rem; }
.hero .stat b { color: #fff; font-size: 1.4rem; }
.hero .stat span { color: rgba(255, 255, 255, .88); font-size: .78rem; }

.mode { border: 1px solid transparent; padding: 1.15rem; transition: transform .16s, box-shadow .16s, border-color .16s; }
.mode:hover:not(:disabled) { transform: translateY(-4px); box-shadow: var(--lift); border-color: rgba(91, 79, 224, .35); }
.mode .icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; font-size: 1.5rem; margin-bottom: .6rem; background: #efedff; }
.mode[data-mode="quick"] .icon { background: #fff1dc; }
.mode[data-mode="practice"] .icon { background: #e3efff; }
.mode[data-mode="domain"] .icon { background: #e2f7ea; }
.mode[data-mode="mistakes"] .icon { background: #e4f3fb; }
.mode[data-mode="mock"] .icon { background: #ececf3; }
a.mode .icon { background: #fde8ec; }

/* Play */
.card, .info, .page { border: 1px solid rgba(91, 79, 224, .07); }
.question { line-height: 1.6; }
.opt { border-width: 1.5px; border-radius: 14px; padding: .85rem 1rem; transition: border-color .12s, background .12s, box-shadow .12s, transform .12s; }
.opt:hover:not(:disabled) { background: #faf9ff; box-shadow: 0 6px 16px rgba(70, 55, 190, .1); transform: translateX(3px); }
.opt:hover:not(:disabled) .letter { background: var(--brand); color: #fff; }
.feedback { border-left: 5px solid var(--ok); }
.feedback.no { border-left-color: var(--bad); }
.progress { height: 10px; }
.btn { border-radius: 12px; transition: transform .12s, box-shadow .12s; }
.btn:not(.ghost):not(.danger):not(:disabled) { box-shadow: 0 6px 16px rgba(91, 79, 224, .3); }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.domains tbody tr:hover { background: #f7f6ff; }

/* Side boxes */
.promo { border: 1px solid rgba(91, 79, 224, .08); }
.promo-btn { transition: transform .12s, box-shadow .12s; }
.promo-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(29, 34, 51, .2); }
.promo.note { position: relative; overflow: hidden; background: linear-gradient(165deg, #fffdf6, #fdf3ff 60%, #efeaff); border-color: rgba(138, 92, 246, .22); }
.promo.note::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #ffb347, #e0529c, #8a5cf6); }
.promo.note .sign { margin: .3rem 0 0; font-weight: 700; color: #4536b8; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #ffb347; outline-offset: 2px; }
@media (max-width: 560px) {
  .hero { padding: 1.5rem 1rem 1.1rem; }
  .hero h1 { font-size: 1.55rem; }
  .mode { display: grid; grid-template-columns: 3rem 1fr; column-gap: .9rem; align-items: center; }
  .mode .icon { grid-row: span 2; margin: 0; }
  .mode b { align-self: end; margin: 0; }
  .mode small { align-self: start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Responsive details */
.rail .promo { flex: none; box-shadow: 0 1px 3px rgba(29, 34, 51, .1); }  /* never squeeze a box; light shadow because the column clips it */
img, video { max-width: 100%; }
.question, .opt span, .feedback, .qa, .promo { overflow-wrap: anywhere; }
@media (min-width: 1240px) { .rail .coffee img { max-height: max(150px, calc(100vh - 920px)); } }
@media (min-width: 1240px) and (max-height: 1100px) { .rail .coffee img { max-height: max(165px, calc(100vh - 730px)); } }
/* Short laptop screens: tighter text so that the QR stays big enough to scan */
@media (min-width: 1240px) and (max-height: 800px) {
  .rail { gap: .45rem; top: 64px; bottom: 8px; }
  .rail .promo { padding: .5rem .7rem; font-size: .8rem; }
  .rail .promo.note { line-height: 1.3; }
  .rail .promo p { margin: .2rem 0 .3rem; }
  .rail .note .sign { margin: 0; }
  .rail .coffee img { max-height: max(160px, calc(100vh - 555px)); }
  .rail .copy-upi { margin-top: .25rem; padding: .15rem .6rem; }
  .rail .social b { display: none; }
  .rail .promo-btn { margin-top: .3rem; padding: .4rem .2rem; font-size: .8rem; }
}
/* Narrow laptops: give the side columns enough width */
@media (min-width: 1240px) and (max-width: 1559px) {
  body { --content: min(760px, calc(100vw - 560px)); }
  body.wide-page { --content: min(900px, calc(100vw - 600px)); }
  main { max-width: var(--content); }
  .rail { --w: clamp(220px, calc(var(--space) - 32px), 300px); }
}
/* Phones */
@media (max-width: 560px) {
  main { padding: 1rem .8rem; }
  .site-header { padding: .7rem .9rem; }
  .site-header nav { display: flex; flex-wrap: wrap; gap: 0 .2rem; }
  .site-header nav a { margin: 0; padding: .55rem .45rem; }
  .card, .info, .page { padding: 1.1rem 1rem; }
  .question { font-size: 1.02rem; }
  .opt { padding: .8rem .75rem; gap: .6rem; }
  .actions .btn { flex: 1 1 auto; min-height: 46px; }
  .grid button { min-height: 40px; }
  .seg { width: 100%; }
  .seg button { flex: 1; min-height: 44px; }
  .copy-upi { min-height: 42px; padding: .5rem 1rem; }
  .promo-btn { min-height: 46px; display: grid; place-items: center; }
  .touch-only { display: none; }
}
@media (max-width: 560px) and (hover: none) and (pointer: coarse) { .promo-btn.touch-only { display: grid; } }
@media (max-width: 340px) { .stats { gap: .4rem; } .hero h1 { font-size: 1.35rem; } .domains th, .domains td { padding: .4rem .25rem; font-size: .85rem; } }

/* Note box: logo, centred text */
.promo.note { text-align: center; }
.promo.note .logo-img { width: 92px; height: auto; margin: .2rem auto .3rem; border-radius: 0; filter: drop-shadow(0 4px 8px rgba(29, 34, 51, .28)); }
.promo.note p b { color: #4536b8; }
@media (min-width: 1240px) and (max-height: 1100px) { .promo.note .logo-img { width: 64px; } }
@media (min-width: 1240px) and (max-height: 800px) {
  .promo.note .logo-img { width: 48px; margin: 0 auto .1rem; }
}

/* About page: faint logo behind the text */
.page.about { position: relative; isolation: isolate; }
.page.about::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: url("img/pbhackz-3d.webp") center 52% / min(92%, 620px) no-repeat; opacity: .13; pointer-events: none; }

/* Phones and tablets: note at the top of the page, hidden while a round is being played */
.note-top { max-width: 760px; margin: .9rem auto 0; padding: 0 1rem; }
body:has(#info[hidden]) .note-top { display: none; }
@media (max-width: 560px) { .note-top { padding: 0 .8rem; } .note-top .promo { padding: .75rem .9rem; font-size: .86rem; line-height: 1.4; } .note-top .logo-img { width: 60px !important; } .note-top p { margin: .25rem 0 .45rem; } }
@media (min-width: 1240px) { .note-top { display: none; } }
.note-top .coffee { margin-top: .8rem; }
.note-top .coffee img { max-width: 200px; margin: 0 auto; }
/* From 500px: one card, note on the left and QR on the right */
@media (min-width: 500px) and (max-width: 1239px) {
  .note-top { max-width: 760px; }
  .note-top { display: grid; grid-template-columns: minmax(0, 1fr) clamp(165px, 30%, 215px); gap: 0; align-items: stretch; }
  .note-top .promo { margin: 0; box-shadow: var(--shadow); font-size: .86rem; padding: .9rem 1rem; }
  .note-top .note { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; display: flex; flex-direction: column; justify-content: center; }
  .note-top .note .logo-img { width: 72px !important; }
  .note-top .coffee { border-radius: 0 var(--radius) var(--radius) 0; border-left: 2px dashed rgba(138, 92, 246, .28); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .8rem .6rem; }
  .note-top .coffee img { width: 100%; max-width: 190px; }
}
body:has(#info[hidden]) .note-top { display: none; }
@media (min-width: 1240px) { .note-top { display: none; } }
