/*
 * The prizes row (server/seo.js prizesBlock), its ticket window and the golden
 * ticket that plays when tickets are taken (js/prizes-row.js).
 */
.pc { font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif; color: #f2f1ec; }
.pc-wrap { margin: 18px 0 26px; padding: 0; }
.hm-prizes { margin-top: 64px; }
.pc ol { list-style: none; margin: -6px 0 0; padding: 8px 2px 14px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.pc li { flex: 0 0 clamp(240px, 22vw, 300px); scroll-snap-align: start; }
.pc li a { display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box; padding: 0 0 16px; border-radius: 18px; overflow: hidden; background: #17181a; border: 1px solid rgba(255, 255, 255, .09); color: inherit; text-decoration: none; cursor: pointer; transition: border-color .2s, transform .2s; }
.pc li a:hover { border-color: rgba(255, 255, 255, .28); transform: translateY(-3px); }
.pc li a.is-grand { border-color: #f4dc9d99; }
.pc li a:focus-visible, .pt :focus-visible { outline: 2px solid #dfc78e; outline-offset: 2px; }
/* Every prize's picture sits in the same frame, the GTA VI cover's own shape, so the cover is whole and the cards line up. */
.pc-art { display: grid; place-items: center; aspect-ratio: 1400 / 787; background: linear-gradient(135deg, #1f2023, #17181a); color: #b9a0e9; font-size: 40px; }
.pc .is-grand .pc-art { background: linear-gradient(135deg, #2a2516, #17181a); color: #f4dc9d; }
.pc-art img { width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.pc-art i { font-style: normal; }
.pc-tag { margin: 10px 16px 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase !important; color: #b9f58c; }
.pc b { padding: 0 16px; font-size: 19px; letter-spacing: -.01em; }
.pc .is-grand b { color: #f4dc9d; }
.pc-bar { display: block; height: 10px; margin: 6px 16px 0; border-radius: 999px; background: #ffffff14; overflow: hidden; }
.pc-bar i { display: block; height: 100%; min-width: 5px; border-radius: 999px; background: linear-gradient(90deg, #b9a0e9, #f4dc9d); transition: width .6s cubic-bezier(.22, 1, .36, 1); }
.pc-line { padding: 0 16px; font-size: 13px; color: #a6a3b0; font-variant-numeric: tabular-nums; }
.pc-mine { padding: 0 16px; font-size: 13px; font-weight: 800; color: #f4dc9d; }
.pc-cta { align-self: flex-start; margin: auto 16px 0; padding: 9px 14px; border-radius: 10px; background: linear-gradient(135deg, #f6dd8a, #c9973a); color: #241a05; font-size: 13px; font-weight: 800; }
.pc-head h2 { margin: 0 0 4px; font-size: 22px; }
.pc-head p { margin: 0 0 14px; font-size: 14px; color: #a6a3b0; }
.pc-rules { margin: 6px 2px 0; font-size: 14px; color: #a6a3b0; }
.pc-rules summary { cursor: pointer; display: inline-block; padding: 6px 0; color: #b9a0e9; font-weight: 700; }
.pc-rules ul { margin: 8px 0 0; padding-left: 20px; max-width: 820px; }
.pc-rules li { margin-bottom: 8px; line-height: 1.55; }
.pc-rules b { padding: 0; font-size: inherit; color: #e6e3ee; }

/* The ticket window. */
.pt { width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid #f4dc9d66; border-radius: 22px; background: #131217; color: #f2f1ec; font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif; box-shadow: 0 30px 90px #000c, 0 0 60px #f4dc9d1f; }
.pt::backdrop { background: #000000b8; backdrop-filter: blur(3px); }
.pt-art { display: grid; place-items: center; height: 170px; background: radial-gradient(circle at 50% 60%, #f4dc9d26, transparent 65%), linear-gradient(135deg, #1f2023, #17181a); border-radius: 22px 22px 0 0; }
.pt-art img { max-width: 78%; max-height: 150px; object-fit: contain; }
.pt-body { padding: 18px 22px 22px; }
.pt-body h3 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.02em; }
.pt-body p { margin: 0; font-size: 14px; line-height: 1.5; color: #a6a3b0; }
.pt-facts { display: flex; gap: 22px; margin: 14px 0; font-variant-numeric: tabular-nums; }
.pt-facts span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase !important; color: #a6a3b0; }
.pt-facts b { display: block; margin-top: 2px; font-size: 20px; color: #f4dc9d; }
.pt-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.pt-counts button { min-width: 52px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #ffffff24; background: #1b1a21; color: inherit; font: inherit; font-weight: 800; cursor: pointer; }
.pt-counts button[aria-pressed="true"] { border-color: #f4dc9d; background: #f4dc9d1f; color: #f4dc9d; }
.pt-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pt-buy, .pt-free, .pt-close { min-height: 46px; padding: 0 18px; border-radius: 12px; border: 0; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pt-buy { flex: 1; background: linear-gradient(135deg, #f6dd8a, #c9973a); color: #241a05; }
/* The page's own link colour must not reach the gold button: dark text on gold, always. */
dialog.pt a.pt-buy, dialog.pt a.pt-buy:visited, dialog.pt a.pt-buy:hover { color: #241a05 !important; }
.pt-free { background: #ffffff14; color: #f2f1ec; }
.pt-close { position: absolute; right: 12px; top: 12px; min-height: 36px; width: 36px; padding: 0; border-radius: 50%; background: #000000a6; color: #fff; font-size: 18px; }
.pt-buy:disabled, .pt-free:disabled { opacity: .55; cursor: default; }
.pt-note { min-height: 20px; margin-top: 12px !important; font-weight: 700; color: #b9f58c !important; }
.pt-note.is-bad { color: #ff9c9c !important; }
.pt-small { margin-top: 10px !important; font-size: 12px !important; }

/*
 * The golden ticket. Our own drawing: a gold foil ticket with punched edges,
 * embossed lettering and a light that sweeps across it as it lands.
 */
.gt-stage { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #3a2a0666, #000000e0 70%); perspective: 1400px; cursor: pointer; animation: gt-fade .3s ease-out both; }
.gt-stage.is-out { animation: gt-fade .35s ease-in reverse both; }
.gt { position: relative; width: min(560px, 88vw); aspect-ratio: 560 / 270; color: #4a3407; font-family: Georgia, "Times New Roman", serif; text-align: center;
  background: linear-gradient(115deg, #7d5c14 0%, #d9b24a 16%, #fff3bd 32%, #e2bd55 46%, #a9801f 60%, #f7e08e 78%, #8a6717 100%);
  -webkit-mask: radial-gradient(circle at 0 13px, transparent 9px, #000 9.5px) left / 51% 26px repeat-y, radial-gradient(circle at 100% 13px, transparent 9px, #000 9.5px) right / 51% 26px repeat-y;
  mask: radial-gradient(circle at 0 13px, transparent 9px, #000 9.5px) left / 51% 26px repeat-y, radial-gradient(circle at 100% 13px, transparent 9px, #000 9.5px) right / 51% 26px repeat-y;
  filter: drop-shadow(0 30px 50px #000c) drop-shadow(0 0 40px #f4c84a59);
  animation: gt-land 1.1s cubic-bezier(.2, .9, .25, 1.05) both; transform-style: preserve-3d; }
.gt::before { content: ""; position: absolute; inset: 14px 26px; border: 2px solid #6b4e0e99; border-radius: 10px; box-shadow: inset 0 0 0 5px #fff2b84d, inset 0 0 0 7px #6b4e0e59; pointer-events: none; }
.gt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, #ffffffd9 50%, transparent 62%); transform: translateX(-120%); animation: gt-sheen 1.3s .75s ease-out both, gt-sheen 2.6s 2.6s ease-in-out infinite; mix-blend-mode: screen; }
.gt-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 64px; }
.gt-side { position: absolute; top: 50%; font: 800 11px/1 "Plus Jakarta Sans", Arial, sans-serif; letter-spacing: .28em; text-transform: uppercase !important; color: #5c430b; white-space: nowrap; }
.gt-side.is-l { left: 44px; transform: translate(-50%, -50%) rotate(-90deg); }
.gt-side.is-r { right: 44px; transform: translate(50%, -50%) rotate(90deg); }
.gt-stars { letter-spacing: .5em; font-size: 14px; color: #6b4e0e; text-shadow: 0 1px 0 #fff3bd; }
.gt-top { font: 800 12px/1 "Plus Jakarta Sans", Arial, sans-serif; letter-spacing: .34em; text-transform: uppercase !important; color: #5c430b; text-shadow: 0 1px 0 #fff3bdcc; }
.gt-title { margin: 4px 0 0; font-size: clamp(34px, 9vw, 58px); line-height: .95; font-weight: 700; letter-spacing: .06em; text-transform: uppercase !important; color: #5a3f08; text-shadow: 0 1px 0 #fff6cc, 0 -1px 0 #3a280480, 0 2px 3px #3a28044d; }
.gt-title small { display: block; font-size: .62em; letter-spacing: .32em; }
.gt-prize { margin-top: 8px; max-width: 100%; font: 800 14px/1.2 "Plus Jakarta Sans", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase !important; color: #4a3407; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-count { margin-top: 4px; font: 800 12px/1 "Plus Jakarta Sans", Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase !important; color: #6b4e0e; }
.gt-said { position: absolute; left: 0; right: 0; bottom: 9vh; text-align: center; font: 800 18px/1.3 "Plus Jakarta Sans", Arial, sans-serif; color: #ffe9a6; text-shadow: 0 2px 12px #000; animation: gt-fade .5s 1s both; }
.gt-said small { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: #cdbf9a; }
.gt-spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ffe9a6; box-shadow: 0 0 12px #ffd35a; animation: gt-spark 1.4s .6s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes gt-land { 0% { opacity: 0; transform: translateY(70vh) rotateX(70deg) rotateZ(-24deg) scale(.5); } 55% { opacity: 1; transform: translateY(-14px) rotateX(-8deg) rotateZ(4deg) scale(1.06); } 78% { transform: translateY(4px) rotateX(3deg) rotateZ(-5deg) scale(.99); } 100% { opacity: 1; transform: rotateZ(-4deg) scale(1); } }
@keyframes gt-sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes gt-spin { to { transform: rotate(360deg); } }
@keyframes gt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gt-spark { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); } }
@media (prefers-reduced-motion: reduce) {
  .pc li a, .pc-bar i { transition: none; } .pc li a:hover { transform: none; }
  .gt, .gt::after, .gt-spark, .gt-said, .gt-stage { animation: none; } .gt { transform: rotateZ(-4deg); } .gt::after, .gt-spark { display: none; }
}
.gt-title small, .gt-count, .gt-prize { text-transform: uppercase !important; }

/* A real photo of the prize: it fills its frame, on the photo's own background colour. */
.pc-art.is-photo img { padding: 0; }
.pc-art.is-photo.is-contain img { object-fit: contain; }
.pc-art.is-photo.is-cover img { object-fit: cover; }
.pt-art.is-photo { height: 210px; overflow: hidden; }
.pt-art.is-photo img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; }
.pt-art.is-photo.is-contain img { object-fit: contain; }
.pt-art.is-photo.is-cover img { object-fit: cover; }
/* The picture never sets the frame's size: a tall photo used to stretch its card. */
.pc-art { position: relative; overflow: hidden; flex: none; }
.pc-art img { position: absolute; inset: 0; }
/* A picture shown whole with no bands: its frame takes the picture's own 16:9 shape. */
.pc-art.is-photo.is-fit { aspect-ratio: 1400 / 787; }
.pc-art.is-photo.is-fit img { object-fit: cover; }
.pt-art.is-photo.is-fit { height: auto; aspect-ratio: 1400 / 787; }
.pt-art.is-photo.is-fit img { object-fit: cover; }
/* Double tickets (the artifact) in the ticket window. */
.pt-boost { margin-top: 12px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px !important; }
.pt-boost button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #f4dc9d99; background: #f4dc9d1a; color: #f4dc9d; font: 800 13px/1 inherit; font-family: inherit; cursor: pointer; }
.pt-boost button:hover { background: #f4dc9d33; }
.pt-boost.is-on { padding: 10px 12px; border-radius: 10px; background: #f4dc9d1a; color: #f4dc9d !important; }
.pt-boost.is-on b { color: #fff; }

/* Welcome tickets, in the ticket window. */
dialog.pt .pt-body .pt-welcome { margin: 14px 0 0 !important; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 214, 102, .35); background: rgba(255, 214, 102, .08); font-size: 13px; color: #e9e6dc; }
.pt-welcome b { color: #ffd666; }

/* Invite a friend, under the prizes (js/prizes-row.js, server/invites.js). */
.pc-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 6px 2px 18px; padding: 18px 20px; border-radius: 18px; border: 1px solid #f4dc9d55; background: linear-gradient(135deg, #24201400, #17181a 60%), #17181a; }
.pc-invite-t { flex: 1 1 280px; display: flex; flex-direction: column; gap: 3px; }
.pc-invite-t b { font-size: 17px; color: #f4dc9d; }
.pc-invite-t span { font-size: 13px; color: #a6a3b0; }
.pc-invite-row { display: flex; gap: 8px; flex: 1 1 320px; min-width: 0; }
.pc-invite input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid #ffffff1f; background: #0f0e13; color: #f2f1ec; font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.pc-invite-go { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: linear-gradient(135deg, #f6dd8a, #c9973a); color: #241a05 !important; font: inherit; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap; }
.pc-invite small { flex: 1 1 100%; font-size: 12px; color: #a6a3b0; }

/* Phones: each prize is a landscape card (picture left, the facts right), and the line under the title runs the full width. */
@media (max-width: 700px) {
  .pc-head p, .pc .nw-head p, section.pc .pc-head p { max-width: none !important; }
  .pc li { flex: 0 0 min(88vw, 380px); }
  /* The picture is pinned to the left 42% of the card, top to bottom, whatever its own shape (an aspect-ratio here would take its width from the height and spill over the text). */
  .pc li a { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 14px 14px 14px calc(42% + 14px); min-height: 156px; overflow: hidden; }
  .pc li a > .pc-art, .pc li a > .pc-art.is-photo.is-fit { position: absolute; left: 0; top: 0; bottom: 0; width: 42%; height: auto; aspect-ratio: auto; margin: 0; border-radius: 0; }
  .pc li a > :not(.pc-art) { margin-left: 0; margin-right: 0; max-width: 100%; }
  .pc li a > :not(.pc-art):not(.pc-cta) { padding-left: 0; padding-right: 0; }
  .pc-tag { margin-top: 0; font-size: 9px; }
  .pc b { font-size: 16px; }
  .pc-bar { margin: 2px 0 0; height: 7px; }
  .pc-line, .pc-mine { font-size: 11px; }
  .pc-cta { margin: 6px 0 0; padding: 7px 12px; font-size: 12px; align-self: flex-start; }
  .pc li a > .pc-bar { width: 100%; }
}

/*
 * IMPAKT look (Ethan, 2026-11-19: the gold buttons and the white picture frames did not fit).
 * Dark cards, the product on a dark stage instead of its white photo backdrop, lime as the one accent,
 * pill buttons with dark ink, like the decks and the OBS frame.
 */
.pc li a { background: #0e0e11; border: 1px solid #ffffff14; border-radius: 20px; }
.pc li a:hover { border-color: #e3ff7266; transform: translateY(-3px); }
.pc li a.is-grand { border-color: #ffffff14; }
.pc-art, .pc .is-grand .pc-art, .pc-art.is-photo { background: radial-gradient(ellipse at 50% 70%, #262433, #0b0b0e 72%) !important; }
.pc-art.is-photo.is-contain img, .pc-art.is-photo.is-cover img, .pc-art.is-photo.is-fit img { object-fit: contain; padding: 14px; box-sizing: border-box; filter: drop-shadow(0 14px 22px #000a); }
.pc-tag { color: #e3ff72; letter-spacing: .12em; }
.pc b, .pc .is-grand b { color: #fff; }
.pc-bar { background: #ffffff12; }
.pc-bar i { background: #e3ff72; }
.pc-mine { color: #e3ff72; }
.pc-cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: #e3ff72; color: #0b0b0e; font-weight: 800; box-shadow: none; }
.pc-cta::after { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat; }
.pc li a:hover .pc-cta { background: #f0ffad; }
.pc-rules summary { color: #e3ff72; }
.pc li a:focus-visible, .pt :focus-visible { outline-color: #e3ff72; }

/* Invite a friend: a dark card, the lime pill. */
.pc-invite { border: 1px solid #ffffff14; background: #0e0e11; }
.pc-invite-t b { color: #fff; }
.pc-invite-t b::before { content: "+3"; display: inline-grid; place-items: center; min-width: 30px; height: 22px; margin-right: 8px; padding: 0 6px; border-radius: 999px; background: #e3ff7222; color: #e3ff72; font-size: 12px; vertical-align: 2px; }
.pc-invite input { border-color: #ffffff17; background: #08080a; color: #cfcbd8; }
.pc-invite-go { border-radius: 999px; background: #e3ff72 !important; color: #0b0b0e !important; }
.pc-invite-go:hover { background: #f0ffad !important; }

/* The ticket window, same accent. */
.pt { border-color: #ffffff1f; background: #0e0e11; box-shadow: 0 30px 90px #000c; }
.pt-art, .pt-art.is-photo { background: radial-gradient(ellipse at 50% 70%, #262433, #0b0b0e 72%) !important; }
.pt-art.is-photo img { object-fit: contain !important; padding: 14px; box-sizing: border-box; }
.pt-facts b { color: #e3ff72; }
.pt-counts button[aria-pressed="true"] { border-color: #e3ff72; background: #e3ff721f; color: #e3ff72; }
.pt-buy { border-radius: 999px; background: #e3ff72; color: #0b0b0e; }
dialog.pt a.pt-buy, dialog.pt a.pt-buy:visited, dialog.pt a.pt-buy:hover { color: #0b0b0e !important; }
.pt-free { border-radius: 999px; }
.pt-boost button { border-color: #e3ff7266; background: #e3ff7214; color: #e3ff72; border-radius: 999px; }
.pt-boost.is-on { background: #e3ff7214; color: #e3ff72 !important; }
dialog.pt .pt-body .pt-welcome { border-color: #e3ff7244; background: #e3ff7210; }
.pt-welcome b { color: #e3ff72; }
@media (max-width: 700px) { .pc-cta { padding: 7px 13px; } }
