/* PogodiCenu — "supermarket flyer" design system, mirrored from the app.
   Layout/spacing comes from Tailwind utilities; the reusable pieces live here. */


:root {
  --red: #E8283C;
  --red-deep: #B8132A;
  --yellow: #FFC41A;
  --yellow-deep: #D99A00;
  --ink: #1F1520;
  --muted: #7A6E78;
  --cream: #FFF1CF;
  --paper: #FFF8E8;
  --green: #2DB34A;
  --pink: #E0187E;
  --amber: #F2A900;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; font-family: "Baloo 2", system-ui, sans-serif; font-weight: 600; color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 700; }
::selection { background: var(--yellow); color: var(--ink); }

/* ---------- Headings: the flyer title with a hard offset shadow ---------- */
.flyer-h { font-weight: 800; text-transform: uppercase; line-height: .96; letter-spacing: -.005em; }
.flyer-h em { font-style: normal; }
.flyer-h--red   { color: #fff; text-shadow: .045em .07em 0 var(--red-deep); }
.flyer-h--red em { color: var(--yellow); }
.flyer-h--sun   { color: var(--red); text-shadow: .045em .07em 0 rgba(184,19,42,.28); }
.flyer-h--sun em { color: var(--ink); }
.flyer-h--paper { color: var(--ink); }
.flyer-h--paper em { color: var(--red); }

/* ---------- Buttons: chunky pill with a darker bottom edge ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-weight: 700; font-size: 1.1rem; line-height: 1.15; padding: .8em 1.8em; border-radius: 999px; background: var(--red); color: #fff; border-bottom: 5px solid var(--red-deep); text-decoration: none; cursor: pointer; transition: transform .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn:active { transform: translateY(3px); border-bottom-width: 2px; }
.btn--sun   { background: var(--yellow); color: var(--ink); border-bottom-color: var(--yellow-deep); }
.btn--white { background: #fff; color: var(--ink); border-bottom-color: #E3D3D6; }
.btn--ink   { background: var(--ink); color: #fff; border-bottom-color: #000; }
.btn--sm { font-size: .95rem; padding: .55em 1.25em; border-bottom-width: 4px; }

/* ---------- Store badges ---------- */
.store { position: relative; display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; padding: 9px 22px 9px 14px; border-radius: 13px; text-decoration: none; box-shadow: inset 0 0 0 1px #3b3b3b; transition: transform .12s; }
a.store:hover { transform: translateY(-2px); }
.store img { width: 30px; height: 30px; flex: none; }
.store small { display: block; font-size: 10.5px; line-height: 1; opacity: .8; font-weight: 600; letter-spacing: .02em; }
.store b { display: block; font-size: 21px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
.store--soon { cursor: default; }
.store--soon .sticker { position: absolute; top: -11px; right: -8px; }

/* ---------- Stickers & chips ---------- */
.sticker { display: inline-block; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; line-height: 1; padding: .5em .85em; border-radius: 7px; background: var(--red); color: #fff; transform: rotate(-3deg); }
.sticker--sun { background: var(--yellow); color: var(--ink); }
.sticker--ink { background: var(--ink); color: var(--yellow); }
.sticker--white { background: #fff; color: var(--red); }
.sticker--r { transform: rotate(3deg); }
.chip { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: .9rem; line-height: 1; padding: .5em .95em; border-radius: 999px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--easy { background: var(--green); } .dot--medium { background: var(--amber); } .dot--hard { background: var(--pink); }

/* ---------- Prices ---------- */
.price { font-weight: 700; white-space: nowrap; }
.price small { font-size: .55em; font-weight: 600; color: var(--muted); margin-left: .22em; }

/* Retail price tag: pointed left end with a punched hole */
.pricetag { position: relative; display: inline-block; filter: drop-shadow(3px 4px 0 rgba(31,21,32,.2)); --hole: var(--red); }
.pricetag > span { position: relative; display: block; background: #fff; color: var(--ink); font-weight: 700; font-size: 1.6rem; line-height: 1; padding: .5em .8em .5em 1.95em; clip-path: polygon(1.15em 0, 100% 0, 100% 100%, 1.15em 100%, 0 50%); }
.pricetag > span::before { content: ""; position: absolute; left: .78em; top: 50%; width: .42em; height: .42em; margin-top: -.21em; border-radius: 50%; background: var(--hole); box-shadow: inset 1px 1px 0 rgba(0,0,0,.25); }
.pricetag small { font-size: .55em; color: var(--muted); margin-left: .2em; font-weight: 600; }

/* Starburst "SALE" badge from three overlapping squares (12 points) */
.burst { position: relative; display: grid; place-items: center; width: 120px; height: 120px; }
.burst i, .burst::before, .burst::after { content: ""; position: absolute; inset: 14px; background: var(--yellow); border-radius: 8px; }
.burst::before { transform: rotate(30deg); } .burst::after { transform: rotate(60deg); }
.burst span { position: relative; z-index: 1; text-align: center; font-weight: 700; text-transform: uppercase; line-height: .98; color: var(--ink); font-size: 1.02rem; letter-spacing: .01em; }

/* ---------- Game tile (white card, cream "photo" well) ---------- */
.tile { display: block; background: #fff; border-radius: 22px; padding: 10px 10px 14px; text-decoration: none; color: var(--ink); transition: transform .18s ease; }
.tile:hover { transform: translateY(-5px) rotate(-.7deg); }
.tile .well { position: relative; aspect-ratio: 1.15; border-radius: 14px; background: var(--cream); display: grid; place-items: center; padding: 10px; overflow: hidden; }
.tile .well img { width: 76%; transition: transform .25s ease; }
.tile:hover .well img { transform: scale(1.07) rotate(3deg); }
.tile .hit { position: absolute; top: 7px; left: 7px; font-size: .68rem; padding: .4em .7em; transform: rotate(-5deg); z-index: 1; }

/* ---------- Ticker band ---------- */
.ticker { overflow: hidden; background: var(--ink); color: var(--yellow); }
.ticker-track { display: flex; width: max-content; animation: ticker 46s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 28px; padding: 14px 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; font-size: .95rem; white-space: nowrap; }
.ticker-item svg { width: 16px; height: 16px; fill: var(--red); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Ticket (room code) ---------- */
.ticket-top, .ticket-bot { background: #fff; position: relative; }
.ticket-top { border-radius: 24px 24px 0 0; -webkit-mask: radial-gradient(circle 15px at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 15px at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat; }
.ticket-bot { border-radius: 0 0 24px 24px; -webkit-mask: radial-gradient(circle 15px at 0 0, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 15px at 0 0, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat; }
.ticket-perf { height: 0; border-top: 3px dashed rgba(31,21,32,.16); margin: 0 22px; position: relative; z-index: 1; }
.code-tile { display: grid; place-items: center; width: 2.1em; height: 2.5em; border-radius: 12px; background: var(--cream); font-weight: 700; font-size: 2.1rem; line-height: 1; }

/* ---------- Receipt (rules overview) ---------- */
.receipt { position: relative; background: #fff; color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 600; font-size: .95rem; padding: 26px 26px 12px; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: linear-gradient(-45deg, transparent 8px, #fff 0) 0 0 / 16px 16px, linear-gradient(45deg, transparent 8px, #fff 0) 0 0 / 16px 16px; }
.receipt .row { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; }
.receipt .row .lead { flex: 1; border-bottom: 2px dotted rgba(31,21,32,.3); transform: translateY(-4px); min-width: 12px; }
.receipt .row b { text-align: right; max-width: 60%; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border-radius: 20px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 20px 26px; font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; transition: transform .22s ease, background .22s ease; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq .answer { padding: 0 26px 24px; color: rgba(31,21,32,.78); max-width: 62ch; }

/* ---------- Background bokeh ---------- */
.bokeh { position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }

/* ---------- Motion ---------- */
@keyframes bob { 0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--r, 0deg)); } }
.bob { animation: bob 3.6s ease-in-out infinite; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bob, .ticker-track { animation: none; } html { scroll-behavior: auto; } }

/* =====================================================================
   Phone mockup: laid out at 390x844 and scaled with --k
   ===================================================================== */
.phone-wrap { --ph: 844px; width: calc(390px * var(--k, 1)); height: calc(var(--ph) * var(--k, 1)); flex: none; }
.phone-wrap--shot { --ph: 807px; }
.phone { position: relative; width: 390px; height: var(--ph, 844px); padding: 12px; border-radius: 58px; background: #15101b; transform: scale(var(--k, 1)); transform-origin: 0 0; box-shadow: inset 0 0 0 2px #3a3240, 16px 20px 0 rgba(31,21,32,.22); }
.phone::before { content: ""; position: absolute; z-index: 5; top: 24px; left: 50%; width: 104px; height: 30px; margin-left: -52px; border-radius: 20px; background: #000; }
.screen { position: relative; width: 366px; height: calc(var(--ph, 844px) - 24px); border-radius: 47px; overflow: hidden; font-size: 16px; line-height: 1.2; user-select: none; }
.screen--red { background: var(--red); }
.screen--sun { background: var(--yellow); }
.a-status { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 18px 30px 0 34px; font-weight: 700; font-size: 15px; color: #fff; }
.screen--sun .a-status { color: var(--ink); }
.a-status svg { height: 12px; width: auto; fill: currentColor; }
.a-pad { padding: 0 16px; }
.a-top { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.a-circle { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.a-avatar { border: 3px solid var(--yellow); overflow: hidden; }
.a-stats { margin-left: auto; display: flex; align-items: center; gap: 11px; background: #fff; border-radius: 16px; padding: 7px 12px; font-weight: 800; font-size: 16px; }
.a-stats span { display: flex; align-items: center; gap: 5px; }
.a-stats i { width: 2px; height: 20px; background: #F1E6E8; border-radius: 1px; }
.a-logo { width: 132px; margin: 12px 0 4px; }
.a-hero { display: flex; align-items: center; gap: 4px; background: var(--yellow); border-radius: 24px; border-bottom: 6px solid var(--yellow-deep); padding: 16px 14px 16px 16px; margin-top: 8px; }
.a-hero .copy { flex: 1; min-width: 0; }
.a-hero h4 { font-size: 22px; line-height: 1.05; margin: 7px 0 4px; }
.a-hero p { font-size: 11.5px; line-height: 1.3; color: rgba(31,21,32,.72); }
.a-hero .go { display: inline-block; margin-top: 9px; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; padding: 5px 20px; border-radius: 999px; border-bottom: 3px solid var(--red-deep); }
.a-hero .disc { width: 92px; height: 92px; flex: none; border-radius: 50%; background: rgba(255,255,255,.6); display: grid; place-items: center; }
.a-hero .disc img { width: 76%; }
.a-sec { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 10px; }
.a-sec h4 { font-size: 27px; line-height: 1; text-transform: uppercase; color: #fff; text-shadow: 2px 3px 0 var(--red-deep); }
.a-sec h4 em { font-style: normal; color: var(--yellow); }
.a-sec .chip { font-size: 12px; padding: .4em .85em; }
.a-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a-tile { background: #fff; border-radius: 18px; padding: 8px 8px 10px; }
.a-tile .well { position: relative; aspect-ratio: 1.15; border-radius: 12px; background: var(--cream); display: grid; place-items: center; }
.a-tile .well img { width: 72%; }
.a-tile .hit { position: absolute; top: 5px; left: 5px; font-size: 9px; padding: .35em .6em; }
.a-tile b { display: block; margin: 7px 2px 2px; font-size: 16px; line-height: 1.1; }
.a-tile .meta { display: flex; align-items: center; gap: 5px; margin: 0 2px; font-size: 10.5px; color: var(--muted); }
.a-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; background: #fff; display: flex; padding: 9px 4px 0; box-shadow: 0 -1px 0 rgba(18,21,28,.08); z-index: 3; }
.a-nav div { flex: 1; text-align: center; font-size: 10.5px; font-weight: 700; color: #8A90A0; }
.a-nav div svg { display: block; margin: 0 auto 3px; width: 24px; height: 24px; }
.a-nav div.on { color: var(--red); }

/* gameplay screen */
.a-head { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.a-chip { display: flex; align-items: center; gap: 5px; background: #fff; border-radius: 16px; padding: 6px 12px; font-weight: 800; font-size: 17px; }
.a-chip .streak { display: flex; align-items: center; gap: 2px; color: var(--red); font-size: 15px; }
.a-bar { height: 8px; border-radius: 4px; background: rgba(31,21,32,.14); margin: 14px 4px 0; overflow: hidden; }
.a-bar i { display: block; height: 100%; width: 100%; background: var(--red); border-radius: 4px; transform-origin: left; }
.a-q { text-align: center; font-weight: 700; font-size: 23px; line-height: 1.15; margin: 14px 0 10px; }
.a-card { position: relative; background: #fff; border-radius: 26px; padding: 10px 10px 14px; }
.a-card .img { position: relative; border-radius: 18px; background: #fff; aspect-ratio: 1.3; display: grid; place-items: center; }
.a-card .img img { width: 58%; }
.a-card .count { position: absolute; top: 4px; left: 4px; font-size: 12px; padding: .45em .75em; transform: rotate(-4deg); }
.a-card .pname { text-align: center; font-weight: 700; font-size: 20px; margin-top: 2px; }
.a-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.opt { display: grid; place-items: center; min-height: 58px; padding: 6px 8px; border: 0; border-radius: 20px; background: #fff; color: var(--ink); font-family: inherit; font-weight: 700; font-size: 20px; cursor: pointer; transition: transform .12s ease, background .15s ease, color .15s ease; }
.opt small { font-size: .55em; font-weight: 600; color: var(--muted); margin-left: .22em; transition: color .15s; }
.opt:hover:not(:disabled) { transform: scale(1.03); }
.opt:active:not(:disabled) { transform: scale(.96); }
.opt:disabled { cursor: default; }
.opt.is-correct { background: var(--green); color: #fff; } .opt.is-correct small { color: rgba(255,255,255,.8); }
.opt.is-wrong { background: var(--red); color: #fff; } .opt.is-wrong small { color: rgba(255,255,255,.8); }
.a-cta { display: flex; justify-content: center; width: 100%; margin-top: 14px; padding: 14px 0; border: 0; border-bottom: 5px solid var(--red-deep); border-radius: 999px; background: var(--red); color: #fff; font-family: inherit; font-weight: 700; font-size: 20px; cursor: pointer; }
.a-pop { position: absolute; left: 50%; top: 40%; z-index: 6; transform: translate(-50%, -50%); pointer-events: none; }
.a-pop.show { animation: pop .45s cubic-bezier(.2,1.3,.4,1) both; }

[hidden] { display: none !important; }

/* Phone showing a real app screenshot: status bar drawn here, the image sits below it */
.screen--shot { background: #D53E43; }
.screen--shot > img { position: absolute; left: 0; top: 40px; width: 366px; height: auto; }

/* ===== Inner pages ===== */
nav a[aria-current="page"] { background: rgba(255,255,255,.18); }
.sticker--ok { background: var(--green); color: #fff; }
.sticker--med { background: var(--amber); color: var(--ink); }
.sticker--hard { background: var(--pink); color: #fff; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .95rem; color: rgba(255,255,255,.85); }
.crumbs a { text-decoration: none; padding: 2px 0; border-bottom: 2px solid rgba(255,255,255,.35); }
.crumbs a:hover { border-bottom-color: #fff; }
.crumbs span[aria-current] { font-weight: 700; color: #fff; }
.numdot { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 1.15rem; }

/* Wide game card (games list) */
.gcard { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: 24px; padding: 12px 20px 12px 12px; text-decoration: none; color: var(--ink); transition: transform .18s ease; }
.gcard:hover { transform: translateY(-4px) rotate(-.4deg); }
.gcard .well { flex: none; width: 124px; aspect-ratio: 1; border-radius: 16px; background: var(--cream); display: grid; place-items: center; padding: 10px; }
.gcard .well img { width: 100%; transition: transform .25s ease; }
.gcard:hover .well img { transform: scale(1.08) rotate(3deg); }
.gcard h2 { font-size: 1.3rem; line-height: 1.1; }
.gcard p { font-size: .95rem; line-height: 1.35; color: rgba(31,21,32,.72); }
.gcard .more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-weight: 700; font-size: .95rem; color: var(--red); }

/* Rules table */
.rules { background: #fff; border-radius: 24px; padding: 8px 26px; }
.rules .r { display: grid; gap: 4px 24px; padding: 16px 0; border-bottom: 2px dashed rgba(31,21,32,.12); }
.rules .r:last-child { border-bottom: 0; }
.rules dt { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--muted); }
.rules dd { font-size: 1.05rem; line-height: 1.45; }
@media (min-width: 640px) { .rules .r { grid-template-columns: 11rem 1fr; } }

/* Legal text */
.legal { color: rgba(31,21,32,.82); font-size: 1.05rem; line-height: 1.65; }
.legal section + section { margin-top: 2rem; }
.legal h2 { font-weight: 800; font-size: 1.35rem; line-height: 1.2; color: var(--ink); margin-bottom: .5rem; }
.legal h3 { font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.legal p + p, .legal p + ul, .legal ul + p, .legal h3 + p { margin-top: .6rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-top: .5rem; }
.legal li + li { margin-top: .4rem; }
.legal a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.legal .updated { font-size: .95rem; color: var(--muted); margin-bottom: 1.5rem; }

/* Yellow gameplay screenshot variant (status bar in dark ink) */
.screen--shot-sun { background: #F6C64A; }
.screen--shot-sun .a-status { color: var(--ink); }
