/* Popquizzle inner pages: the deck page, the pick-a-game step, the games list. */
.band { position: relative; overflow: hidden; background: linear-gradient(180deg, #1F8BFF 0%, #4DB2FF 62%, #9BD8FF 100%); color: var(--ink); }
.band .rays { position: absolute; right: -260px; top: -560px; width: 1100px; height: 1100px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 255, 255, .18) 0deg 7deg, rgba(255, 255, 255, 0) 7deg 18deg); -webkit-mask-image: radial-gradient(closest-side, #000 0%, transparent 100%); mask-image: radial-gradient(closest-side, #000 0%, transparent 100%); }
.band .cloud { position: absolute; fill: #fff; }
.band-main { position: relative; z-index: 2; padding: 34px 5% 96px; }
.band-main .wrap { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.band h1 { font-weight: 800; font-size: clamp(38px, 4.6vw, 62px); letter-spacing: -0.035em; line-height: 1; }
.band .sub { margin: 0; max-width: 620px; font-size: 19px; line-height: 1.45; font-weight: 500; }
.band .search { max-width: 640px; }
.band .edge { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; display: block; z-index: 1; }
.band .mascot { position: absolute; z-index: 2; pointer-events: none; }
.band .mascot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 14px rgba(11, 27, 74, .22)); }
@media (max-width: 1000px) { .band .mascot { display: none; } }
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.steps span { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .55); color: var(--ink); }
.steps span.on { background: var(--tang); }
.steps span.done { background: var(--ink); color: #fff; }
.steps i { width: 18px; height: 3px; border-radius: 3px; background: rgba(11, 27, 74, .35); }

/* deck page */
.lib { padding: 10px 5% 40px; background: #fff; }
.lib .wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .lib .wrap { grid-template-columns: 1fr; gap: 22px; } }
.side { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 900px) { .side { position: static; } }
.side h2 { font-family: var(--body); font-size: 13.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); margin: 0 0 8px; }
.tree { display: flex; flex-direction: column; gap: 6px; }
.tree button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; padding: 0 14px 0 16px; border-radius: 14px; border: 2px solid transparent; background: transparent; color: var(--ink); font: inherit; font-size: 16.5px; font-weight: 700; cursor: pointer; text-align: left; }
.tree button:hover { background: var(--pale); }
.tree button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tree button .n { font-size: 13px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--pale); color: var(--ink); }
.tree button[aria-pressed="true"] .n { background: rgba(255, 255, 255, .2); color: #fff; }
.tree button.subject { font-family: var(--head); font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.tree .kids { display: flex; flex-direction: column; gap: 4px; margin-left: 12px; padding-left: 10px; border-left: 3px solid var(--edge); }
.tree .later { padding: 9px 16px; font-size: 14.5px; font-weight: 600; color: var(--ink2); }
@media (max-width: 900px) { .tree .kids { flex-direction: row; flex-wrap: wrap; margin: 0; padding: 0; border: 0; } .tree button { width: auto; } .tree .later { padding: 9px 4px; } }
.res-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 18px; }
.res-head h2 { font-weight: 800; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.res-head p { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--ink2); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.topics .chip { background: var(--pale); box-shadow: none; padding: 8px 14px; font-size: 14.5px; }
.topics .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.block { margin-bottom: 40px; }
.deck .has { font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.deck .has b { color: var(--ink); background: #FFF4C7; padding: 1px 6px; border-radius: 6px; }
.empty { padding: 34px 28px; border-radius: 24px; background: var(--pale); font-size: 18px; font-weight: 600; }
.empty button { margin-top: 12px; }

/* pick a game */
.pick { padding: 10px 5% 40px; background: #fff; }
.pick .wrap { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 960px) { .pick .wrap { grid-template-columns: 1fr; } }
.deckbox { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.deckbox .pics { border-radius: 16px; padding: 16px 10px; display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 120px; }
.deckbox .pics img { width: 30%; max-width: 92px; height: auto; }
.deckbox .pics .badge { font-family: var(--head); font-weight: 800; font-size: 44px; line-height: 1; background: #fff; border-radius: 18px; padding: 14px 22px 16px; box-shadow: 0 5px 0 rgba(11, 27, 74, .14); }
.deckbox h2 { font-weight: 800; font-size: 30px; letter-spacing: -0.02em; line-height: 1.08; }
.deckbox .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.2; }
.deckbox .meta .n { color: var(--ink2); }
.deckbox .change { align-self: flex-start; }
.words { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow: auto; padding: 2px; }
.words span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--pale); font-size: 14px; font-weight: 700; }
.words span img { width: 26px; height: 26px; }
.words.q { flex-direction: column; flex-wrap: nowrap; }
.words.q span { border-radius: 12px; padding: 8px 12px; font-weight: 600; }
.gamegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 22px; }
.gamegrid .game.live { grid-column: 1 / -1; }
.game.live { flex-direction: row; align-items: stretch; cursor: pointer; border-color: var(--ink); box-shadow: 0 8px 0 var(--ink); }
.game.live img.shot { width: 56%; flex: 0 0 56%; align-self: center; }
.game.live .gt { flex: 1 1 auto; padding: 24px 26px; justify-content: center; align-items: flex-start; gap: 12px; }
.game.live h3 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.game.live p { font-size: 16.5px; }
@media (max-width: 760px) { .game.live { flex-direction: column; } .game.live img.shot { width: 100%; flex: none; } }
.pick h2.t { font-weight: 800; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 18px; }

/* games list */
.glist { padding: 10px 5% 40px; background: #fff; }
.glist .wrap { display: flex; flex-direction: column; gap: 24px; }

.block.start .deck-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.block.start .deck h3 { font-size: 19px; }
@media (max-width: 1180px) { .block.start .deck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
