/* Popquizzle site styles. Look: D · Sky World (brand-kit.md). Hard drop edges under buttons and cards are the house style. */
:root {
  --ink: #0B1B4A; --ink2: #3A4878; --tang: #FF7A1A; --tang-d: #C24E00; --sky: #1F8BFF; --edge: #D3E6F8; --pale: #E4F3FF;
  --grass: #2FBF63; --deep1: #1565E8; --deep2: #0F4FCC; --ok-bg: #D7F6E1; --ok-ink: #0A5A2A;
  --head: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif; --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; overflow-x: hidden; }
a { color: var(--ink); }
img { max-width: 100%; }
::placeholder { color: var(--ink2); opacity: 1; }
h1, h2, h3 { font-family: var(--head); margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; }
:focus-visible { outline: 3px solid var(--tang); outline-offset: 3px; border-radius: 6px; }

/* movement */
@keyframes pq-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pq-bob2 { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
@keyframes pq-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes pq-slide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(26px); } }
@keyframes pq-spin { to { transform: rotate(360deg); } }
@keyframes pq-tw { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pq-glow { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }
@keyframes pq-swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes pq-wobble { 0%, 100% { transform: rotate(-5deg) translateY(0); } 25% { transform: rotate(3deg) translateY(-6px); } 50% { transform: rotate(6deg) translateY(0); } 75% { transform: rotate(-2deg) translateY(-5px); } }
@keyframes pq-fly { 0% { transform: translate(0, 0) rotate(-4deg); } 25% { transform: translate(34px, -16px) rotate(3deg); } 50% { transform: translate(70px, 4px) rotate(5deg); } 75% { transform: translate(30px, 18px) rotate(-2deg); } 100% { transform: translate(0, 0) rotate(-4deg); } }
@keyframes pq-beam { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
@keyframes pq-hop { 0%, 86%, 100% { transform: translateY(0); } 91% { transform: translateY(-9px); } 96% { transform: translateY(0); } }
@keyframes pq-zzz { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -46px) scale(1.25); } }
@keyframes pq-whirl { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
.pq-glow { animation: pq-glow 2.8s ease-in-out infinite; }
.pq-float-a { animation: pq-bob 6s ease-in-out infinite; }
.pq-float-b { animation: pq-bob2 7.5s ease-in-out infinite; }
.pq-float-c { animation: pq-bob 8.5s ease-in-out -3s infinite; }
.pq-float-d { animation: pq-bob2 6.8s ease-in-out -2s infinite; }
.pq-drift { animation: pq-slide 14s ease-in-out infinite; }
.pq-drift2 { animation: pq-slide 19s ease-in-out -6s infinite; }
.pq-play { animation: pq-pulse 2.2s ease-in-out infinite; }
.pq-spin { animation: pq-spin 9s linear infinite; }
.pq-rays { animation: pq-spin 90s linear infinite; }
.pq-twinkle { animation: pq-tw 2.6s ease-in-out infinite; }
.pq-twinkle2 { animation: pq-tw 3.4s ease-in-out -1.2s infinite; }
.pq-btn { transition: transform .12s ease, filter .12s ease; }
.pq-btn:hover { transform: translateY(-3px); filter: brightness(1.05); }
.pq-btn:active { transform: translateY(5px); }
.pq-lift { transition: transform .15s ease; }
.pq-lift:hover { transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.logo-mark { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; background: var(--tang); color: var(--ink); box-shadow: 0 4px 0 var(--tang-d); font-family: var(--head); font-weight: 800; font-size: 28px; line-height: 1; padding-bottom: 2px; }
.logo-mark svg { position: absolute; right: -11px; top: -11px; width: 18px; height: 18px; overflow: visible; }
.logo-word { font-family: var(--head); font-weight: 800; font-size: 27px; letter-spacing: -0.03em; line-height: 1; }
.logo.sm { gap: 15px; } .logo.sm .logo-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 24px; box-shadow: 0 3px 0 var(--tang-d); } .logo.sm .logo-mark svg { right: -9px; top: -9px; width: 15px; height: 15px; } .logo.sm .logo-word { font-size: 22px; }

/* top bar */
.top { position: relative; z-index: 6; padding: 22px 5% 0; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 30px; font-weight: 700; font-size: 16.5px; }
.nav a { color: var(--ink); text-decoration: none; padding: 12px 2px; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--tang); }
.nav a.pill { padding: 13px 20px; border-radius: 999px; line-height: 1.1; background: #fff; box-shadow: 0 4px 0 rgba(11, 27, 74, .18); text-decoration: none; }
.page-sky { position: relative; background: linear-gradient(180deg, #1F8BFF 0%, #4DB2FF 46%, #9BD8FF 78%, #C9ECFF 100%); }

/* buttons, chips, tags */
.play-big { display: inline-flex; align-items: center; gap: 14px; padding: 22px 58px 24px; text-decoration: none; line-height: 1; font-family: var(--head); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; background: linear-gradient(180deg, #FF9D45 0%, #FF7A1A 100%); color: var(--ink); border-radius: 999px; border: 0; cursor: pointer; box-shadow: 0 8px 0 var(--tang-d), 0 24px 36px rgba(11, 27, 74, .30), inset 0 3px 0 rgba(255, 255, 255, .5); }
.play-mid { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px 16px; text-decoration: none; line-height: 1; font-family: var(--head); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; background: linear-gradient(180deg, #FF9D45 0%, #FF7A1A 100%); color: var(--ink); border-radius: 999px; border: 0; cursor: pointer; box-shadow: 0 5px 0 var(--tang-d), inset 0 2px 0 rgba(255, 255, 255, .5); }
.play-sm { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 800; font-size: 16px; line-height: 1; background: var(--tang); color: var(--ink); text-decoration: none; }
.btn-dark { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border: 0; cursor: pointer; font-family: var(--body); font-size: 16px; font-weight: 700; background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; }
.btn-light { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; cursor: pointer; font-family: var(--body); font-size: 16px; font-weight: 700; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; box-shadow: 0 4px 0 rgba(11, 27, 74, .18); }
.chip { display: inline-block; padding: 11px 16px; border-radius: 999px; text-decoration: none; line-height: 1.5; background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: 0 3px 0 rgba(11, 27, 74, .12); font-size: 15px; font-weight: 700; border: 0; cursor: pointer; font-family: var(--body); }
.chip:hover { background: #fff; }
.step { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 14px; line-height: 1.3; text-transform: uppercase; font-weight: 800; letter-spacing: .03em; background: var(--tang); color: var(--ink); }
.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg button, .seg a, .seg span { height: 46px; padding: 0 18px; border-radius: 999px; cursor: pointer; font-family: var(--body); font-size: 15.5px; font-weight: 700; background: #fff; color: var(--ink); border: 2px solid #C9DDF2; text-decoration: none; display: inline-flex; align-items: center; }
.seg [aria-pressed="true"], .seg [aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg [disabled], .seg .soon { color: var(--ink2); cursor: default; }
.search { width: 100%; max-width: 560px; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 20px; background: #fff; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 6px 0 rgba(11, 27, 74, .18); color: var(--ink); }
.search input { flex: 1 1 auto; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; color: inherit; font-family: var(--body); font-size: 17px; font-weight: 500; }
.search svg { flex: 0 0 auto; }
.lvl { padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.ok { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); }
.soon-tag { display: inline-block; padding: 5px 11px; border-radius: 999px; background: #FFE9A8; color: #5A3D00; font-size: 13px; font-weight: 800; letter-spacing: .02em; }

/* cards */
.card { border-radius: 24px; background: #fff; border: 2px solid var(--edge); box-shadow: 0 8px 0 rgba(11, 27, 74, .14); color: var(--ink); }
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 22px; }
.deck { display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 18px; text-decoration: none; cursor: pointer; text-align: left; font: inherit; }
.deck .pics { border-radius: 16px; padding: 14px 10px; display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 108px; }
.deck .pics img { width: 31%; max-width: 78px; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(11, 27, 74, .12)); }
.deck .pics .badge { font-family: var(--head); font-weight: 800; font-size: 40px; line-height: 1; color: var(--ink); background: #fff; border-radius: 18px; padding: 14px 20px 16px; box-shadow: 0 5px 0 rgba(11, 27, 74, .14); }
.deck h3 { font-weight: 700; letter-spacing: -0.01em; font-size: 21px; line-height: 1.15; }
.deck .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.deck .meta .n { color: var(--ink2); }
.deck .txt { display: flex; flex-direction: column; gap: 9px; padding: 0 4px; }
.tint0 { background: #E6F3FF; } .tint1 { background: #FFEBD6; } .tint2 { background: #DFF6E6; } .tint3 { background: #FFE3EC; } .tint4 { background: #EDE6FF; } .tint5 { background: #FFF4C7; }
.game { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; }
.game img.shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); }
.game .gt { padding: 14px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.game h3 { font-weight: 700; letter-spacing: -0.01em; font-size: 20px; line-height: 1.15; }
.game p { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--ink2); }
.game.big { flex-direction: row; align-items: stretch; }
.game.big img.shot { width: 60%; flex: 0 0 60%; align-self: center; }
.game.big .gt { flex: 1 1 auto; padding: 28px 30px; justify-content: center; align-items: flex-start; gap: 14px; }
.game.big .gt > div { display: flex; flex-direction: column; gap: 8px; }
.game.big h3 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; } .game.big p { font-size: 17.5px; line-height: 1.45; }
.game.big .live { display: inline-block; align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
@media (max-width: 860px) { .game.big { flex-direction: column; } .game.big img.shot { width: 100%; flex: none; } }
.game.soon { cursor: default; } .game.soon img.shot { filter: saturate(.85); }
.game .shotbox { position: relative; } .game .shotbox .soon-tag { position: absolute; left: 12px; top: 12px; box-shadow: 0 3px 0 rgba(11, 27, 74, .18); }

/* sections */
.sec { position: relative; overflow: hidden; padding: 34px 5% 96px; }
.sec h2 { font-weight: 800; font-size: clamp(32px, 3.4vw, 46px); letter-spacing: -0.03em; line-height: 1.05; }
.sec .lead { margin: 0; font-size: 18.5px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 660px; }
.more { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 12px 2px; font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; }
.more:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* footer */
.foot { position: relative; background: var(--grass); color: var(--ink); padding: 26px 5% 48px; border-top: 2px solid var(--grass); margin-top: 150px; }
.foot .hill { position: absolute; left: 0; top: -148px; width: 100%; height: 150px; display: block; }
.foot .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; }
.foot .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-weight: 700; font-size: 15.5px; }
.foot nav a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.foot nav a:hover { text-decoration: underline; }
.foot p { margin: 0; max-width: 860px; font-size: 14px; line-height: 1.55; font-weight: 500; }

/* plain text pages */
.prose { max-width: 760px; margin: 0 auto; padding: 40px 5% 60px; }
.prose h1 { font-weight: 800; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 18px; }
.prose h2 { font-weight: 700; font-size: 26px; letter-spacing: -0.01em; margin: 34px 0 10px; }
.prose p, .prose li { font-size: 18px; line-height: 1.6; color: var(--ink); }
.prose small, .prose pre { font-size: 13.5px; line-height: 1.5; color: var(--ink2); white-space: pre-wrap; font-family: var(--body); }

/* phones: one tidy row at the top (the page links are in the footer too), and a search box that fits */
.search .btn-dark { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 620px) {
  .top .wrap { flex-wrap: nowrap; gap: 10px; }
  .nav { flex-wrap: nowrap; gap: 0 14px; font-size: 15px; }
  .nav a:not(.pill):nth-child(3) { display: none; }
  .nav a.pill { padding: 11px 15px; white-space: nowrap; }
  .search { padding-left: 14px; gap: 8px; }
  .search input { font-size: 16px; }
}
@media (max-width: 440px) {
  .nav a:not(.pill) { display: none; }
  .logo .logo-word { font-size: 22px; }
}
