/* Helyi Kupon közös stílusok */
:root {
  --orange: #ff5a36;
  --orange-text: #c93c1b;
  --orange-soft: #ffe9e3;
  --ink: #141414;
  --ink-2: #5f5f5f;
  --bg: #f4f4f2;
  --tile: #fdfdfc;
  --line: #e4e4e0;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 21px; letter-spacing: -0.04em; }
.logo svg { flex: none; transition: transform .35s var(--ease); }
.logo:hover svg { transform: rotate(-8deg); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: var(--tile); border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 700; cursor: pointer; transition: background-color .12s var(--ease), transform .12s var(--ease); }
.btn:hover { background: #333; }
.btn:active { transform: scale(.96); }
.btn.orange { background: var(--orange); color: var(--ink); }
.btn.orange:hover { background: #ff7656; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.line:hover { background: var(--bg); }
.btn.sm { padding: 8px 13px; font-size: 13px; border-radius: 9px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color .15s, transform .12s var(--ease); }
.icon-btn:hover { background: var(--bg); }
.icon-btn:active { transform: scale(.9); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-weight: 800; font-size: 15px; border: 0; cursor: pointer; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 14px; font-weight: 600; background: var(--bg); border-radius: 6px; padding: 3px 8px; display: inline-flex; gap: 5px; align-items: center; }
.chip.student { background: var(--ink); color: var(--tile); }

/* kupon csempe (vízszintes sorokhoz) */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 262px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 8px; margin: -2px -2px 0; cursor: grab; }
.row::-webkit-scrollbar { display: none; }
.row.dragging { cursor: grabbing; scroll-snap-type: none; }
.row.dragging .tile { pointer-events: none; }
.tile { background: var(--tile); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; border: 0; padding: 0; text-align: left; scroll-snap-align: start; transition: transform .15s var(--ease); }
.tile:active { transform: scale(.97); }
.tile .ph { aspect-ratio: 16 / 10; background: var(--line) center / cover no-repeat; position: relative; overflow: hidden; }
.tile .tag { position: absolute; left: 0; top: 0; background: var(--tile); font-weight: 800; font-size: 14px; padding: 6px 10px; border-radius: 0 0 12px 0; max-width: 85%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { background: var(--orange); color: var(--ink); font-weight: 800; }
.tile .badge { position: absolute; left: 0; bottom: 0; font-size: 16px; padding: 5px 11px; border-radius: 0 12px 0 0; transition: transform .2s var(--ease); transform-origin: left bottom; }
.tile:hover .badge { transform: scale(1.08); }
.tile .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tile .what { font-weight: 600; font-size: 14px; line-height: 1.35; margin: 0; min-height: 2.7em; }
.status { font-weight: 700; color: var(--ink-2); font-size: 14px; }
.status.live { color: var(--orange-text); }
.tile .status { margin-top: auto; }
.left-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.left-bar span { display: block; height: 100%; background: var(--orange); border-radius: 2px; transform-origin: left; transition: transform .6s var(--ease); }
.tile.dim .ph { opacity: .5; }
.tile.dim .badge { background: var(--line); }

/* lapok */
dialog { border: 0; padding: 0; background: var(--tile); color: var(--ink); }
dialog::backdrop { background: rgba(20, 20, 20, .55); }
.x { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); cursor: pointer; font-size: 0; line-height: 0; flex: none; transition: transform .2s var(--ease); }
/* az X két vonalból, hogy pontosan középen legyen (a × betű minden betűtípusban máshol ül) */
.x::before, .x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 2.2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.x:hover { transform: rotate(90deg); }

#sheet { width: min(430px, 100%); max-width: 100%; border-radius: 22px; margin: auto; overflow: hidden; }
.s-wrap { padding: 14px 14px 18px; display: grid; gap: 16px; outline: none; }
.s-body { display: grid; gap: 8px; touch-action: pan-y; }
.s-body.out-l { animation: outL .16s var(--ease) forwards; }
.s-body.out-r { animation: outR .16s var(--ease) forwards; }
.s-body.in-l { animation: inL .22s var(--ease); }
.s-body.in-r { animation: inR .22s var(--ease); }
@keyframes outL { to { transform: translateX(-40px); opacity: 0; } }
@keyframes outR { to { transform: translateX(40px); opacity: 0; } }
@keyframes inL { from { transform: translateX(40px); opacity: 0; } }
@keyframes inR { from { transform: translateX(-40px); opacity: 0; } }
.s-photo { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; background: var(--line) center / cover; overflow: hidden; }
.s-photo .badge { position: absolute; left: 0; bottom: 0; font-size: 30px; letter-spacing: -0.03em; padding: 6px 16px; border-radius: 0 14px 0 0; }
.s-photo .x { position: absolute; right: 10px; top: 10px; background: rgba(253,253,252,.92); width: 44px; height: 44px; }
.s-what { margin: 2px 0 0; font-size: 23px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 800; }
.s-place { justify-self: start; border: 0; background: none; padding: 8px 0; min-height: 44px; font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.s-when { margin: 0; font-size: 16px; color: var(--ink-2); }
.s-when.live { color: var(--orange-text); font-weight: 700; }
.s-student { margin: 0; justify-self: start; background: var(--orange-soft); color: var(--orange-text); font-weight: 700; font-size: 15px; border-radius: 8px; padding: 5px 10px; }
.s-student[hidden] { display: none; }
.s-student.only { background: var(--orange); color: var(--ink); }
.s-credit { margin: 0; font-size: 12px; color: var(--ink-2); } .s-credit:empty { display: none; } .s-credit a { text-decoration: underline; }
.s-more { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.s-terms { margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 14px; }
.s-terms b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 6px; }
.s-terms ul { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 4px; }
.s-terms li { position: relative; padding-left: 14px; font-weight: 600; }
.s-terms li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: var(--orange); }
.s-terms a { font-size: 13px; color: var(--ink-2); text-decoration: underline; }
.tq-student { margin: 10px 0 0; font-size: 15px; font-weight: 700; background: rgba(20,20,20,.12); border-radius: 8px; padding: 6px 10px; display: inline-block; }
.tq-student[hidden] { display: none; }
.swipe { position: relative; height: 58px; border-radius: 14px; background: var(--ink); overflow: hidden; user-select: none; touch-action: none; }
.swipe .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--orange); }
.swipe .label { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 50px; font-weight: 700; font-size: 15px; pointer-events: none; background: linear-gradient(90deg, var(--tile) 0, var(--tile) 40%, #9a9a96 50%, var(--tile) 60%, var(--tile) 100%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 2.6s linear infinite; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.swipe .knob { position: absolute; left: 5px; top: 5px; width: 48px; height: 48px; border-radius: 10px; border: 0; background: var(--orange); display: grid; place-items: center; cursor: grab; touch-action: none; }
.swipe .knob:active { cursor: grabbing; }
.swipe.off { background: var(--line); }
.swipe.off .label { color: var(--ink-2); padding-left: 0; animation: none; background: none; }
.swipe.off .knob { display: none; }
.swipe.back .knob, .swipe.back .fill { transition: transform .25s var(--ease), width .25s var(--ease); }

#qrView { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; background: var(--ink); color: var(--ink); }
.qr-stage { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); overflow: hidden; }
/* a jegy: felül narancs fejléc, perforált vágás, alul a kód */
.ticket-qr { width: min(360px, 100%); filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }
.tq-top { background: var(--orange); border-radius: 22px 22px 0 0; padding: 22px 24px 20px; }
.tq-place { margin: 0 0 10px; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.tq-deal { margin: 0; font-size: 52px; line-height: .95; font-weight: 900; letter-spacing: -0.05em; }
.tq-what { margin: 8px 0 0; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
.tq-cut { height: 24px; background:
    radial-gradient(circle at 0 50%, transparent 12px, var(--tile) 12.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 12px, var(--tile) 12.5px) right / 51% 100% no-repeat;
  position: relative; }
.tq-cut::after { content: ""; position: absolute; left: 20px; right: 20px; top: 50%; border-top: 2px dashed var(--line); }
.tq-bottom { background: var(--tile); border-radius: 0 0 22px 22px; padding: 8px 24px 22px; text-align: center; }
.qr-code svg { width: 100%; max-width: 250px; height: auto; display: block; margin: 0 auto; }
.tq-code { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); letter-spacing: .04em; }
.tq-code b { color: var(--ink); font-size: 17px; letter-spacing: .12em; }
.tq-help { margin: 8px 0 2px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.tq-time { margin: 0; font-size: 16px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tq-done { min-width: 200px; padding: 16px 28px; font-size: 18px; background: var(--tile); color: var(--ink); border-radius: 14px; }
.tq-done:hover { background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  #qrView[open] { animation: fadeIn .25s var(--ease); }
  .ticket-qr.in { animation: ticketIn .7s cubic-bezier(.16, 1, .3, 1) both; }
  .ticket-qr.in .tq-top > * { animation: up .45s .35s var(--ease) both; }
  .ticket-qr.in .tq-deal { animation-delay: .42s; }
  .ticket-qr.in .tq-what { animation-delay: .48s; }
  .ticket-qr.in .qr-code { animation: wipe .6s .5s cubic-bezier(.65, 0, .35, 1) both; }
  .ticket-qr.in .tq-help, .ticket-qr.in .tq-time { animation: up .4s .9s var(--ease) both; }
  #qrView[open] .tq-done { animation: up .4s 1s var(--ease) both; }
}
@keyframes ticketIn { from { transform: translateY(110vh) rotate(-8deg); } 70% { transform: translateY(-6px) rotate(.6deg); } }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2147483647; }

.count { font-size: 14px; font-weight: 700; color: var(--orange-text); }

@media (max-width: 860px) {
  .row { grid-auto-columns: 78%; }
  #sheet { margin: auto 0 0; width: 100%; border-radius: 22px 22px 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  #sheet[open] { animation: sheetIn .32s var(--ease); }
  #qrView[open] { animation: fadeIn .2s var(--ease); }
  dialog[open]::backdrop { animation: fadeIn .25s var(--ease); }
  .row.reveal .tile { animation: tileIn .45s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
}
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
@media (max-width: 860px) { @keyframes sheetIn { from { transform: translateY(100%); } } }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes tileIn { from { transform: translateX(28px); opacity: 0; } }
@keyframes up { from { transform: translateY(14px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .swipe .label { animation: none; background: none; color: var(--tile); } }

/* "Szólj, ha indul" a kuponlapon */
.s-notify { justify-self: start; margin: 4px 0 0; border: 2px solid var(--ink); background: var(--tile); border-radius: 12px; padding: 11px 16px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.s-notify.on { background: var(--ink); color: var(--tile); }
/* visszajelzés alul */
.toast { position: fixed; inset: auto; margin: 0; border: 0; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 1000; width: min(440px, calc(100% - 32px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--tile); border-radius: 14px; padding: 14px 16px; font-size: 16px; font-weight: 600; line-height: 1.35; transition: opacity .2s, transform .2s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.status, .card .meta .live { white-space: nowrap; }
/* kasszás vonalkód a kuponjegyen */
.tq-pos { margin: 12px auto 0; width: min(240px, 100%); }
.tq-pos small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.tq-pos svg { display: block; width: 100%; height: auto; }
.ticket-qr.has-pos .qr-code svg { max-width: 180px; }
.ticket-qr.has-pos .tq-code { margin-top: 6px; }

/* ---- beváltás: matrica beolvasása ---- */
#scanView, #okView { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0c0c0c; color: var(--tile); }
.sc-wrap { position: relative; height: 100%; display: grid; place-items: center; overflow: hidden; }
.sc-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: calc(16px + env(safe-area-inset-top)) 16px 16px; }
.sc-top b { font-size: 19px; line-height: 1.2; }
.sc-top .x { flex: none; width: 46px; height: 46px; background: rgba(255,255,255,.18); color: var(--tile); }
.sc-frame { position: relative; width: min(70vw, 300px); aspect-ratio: 1; border-radius: 26px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); }
.sc-frame::before { content: ""; position: absolute; inset: 0; border-radius: 26px; border: 3px solid var(--orange); }
.sc-frame i { position: absolute; left: 8%; right: 8%; top: 10%; height: 3px; border-radius: 2px; background: var(--orange); animation: scSweep 1.8s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes scSweep { to { top: 88%; } }
.sc-bottom { position: absolute; left: 16px; right: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 2; display: grid; gap: 10px; text-align: center; }
.sc-bottom p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; display: grid; gap: 10px; }
.sc-photo { position: relative; display: flex; align-items: center; justify-content: center; height: 56px; border-radius: 16px; background: var(--orange); color: var(--ink); font-weight: 800; font-size: 17px; cursor: pointer; }
.sc-photo[hidden] { display: none; }
.sc-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sc-demo { justify-self: center; border: 0; background: rgba(255,255,255,.14); color: var(--tile); border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

/* ---- visszaigazolás: kuponjegy körbefutó fénycsíkkal ---- */
#okView { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ink); color: var(--ink); }
.ok-t { position: relative; }
.tq-orbit { position: absolute; left: -6px; top: -6px; width: calc(100% + 12px); height: calc(100% + 12px); overflow: visible; pointer-events: none; z-index: 2; }
.tq-orbit rect { fill: none; stroke: var(--day); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 16 84; animation: orbit 2.4s linear infinite; filter: drop-shadow(0 0 6px var(--day)); }
@keyframes orbit { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.ok-t .tq-top { background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.3), transparent 55%), var(--orange); }
.ok-t .tq-bottom { position: relative; overflow: hidden; }
.ok-t .tq-bottom > :not(.ok-shapes) { position: relative; z-index: 1; }
.ok-shapes { position: absolute; inset: 0; pointer-events: none; color: var(--day); }
.ok-shapes svg { position: absolute; fill: currentColor; opacity: .2; transform: rotate(var(--r)); animation: okFloat 8s ease-in-out infinite alternate; }
@keyframes okFloat { to { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) + 140deg)); } }
#okWrap.expired .ok-shapes svg { animation-play-state: paused; }
.ok-clock { margin: 10px 0 0; font-size: 58px; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.ok-clock small { font-size: 30px; color: var(--ink-2); font-weight: 800; }
.ok-uid { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ok-day { --p: 1; position: relative; display: flex; justify-content: center; gap: 12px; margin: 16px -24px -22px; padding: 12px 24px 18px; border-radius: 0 0 22px 22px; color: var(--ink); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; overflow: hidden; }
.ok-day::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--day); opacity: .2; }
.ok-day::before { content: ""; position: absolute; left: 0; bottom: 0; z-index: 1; height: 6px; width: calc(var(--p) * 100%); background: var(--day); }
.ok-day span { position: relative; }
.ok-t .tq-code { margin-top: 12px; }
.ok-t .tq-code b { display: inline-block; margin-left: 4px; padding: 4px 10px; border-radius: 8px; background: rgba(20,20,20,.07); font-size: 19px; }
#okWrap.expired .tq-orbit { display: none; }
#okWrap.expired .ticket-qr { filter: grayscale(1); }
#okWrap.expired .ok-day { justify-content: space-between; }
#okWrap.expired .ok-day::before, #okWrap.expired .ok-day::after { display: none; }
.ok-at { margin: 6px 0 0; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .tq-orbit rect { animation-duration: 8s; } .ok-shapes svg { animation: none; } }

/* ---- megosztás: a kuponkártya előnézete és gombok ---- */
#shareView { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; background: var(--ink); color: var(--tile); }
.sh-wrap { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 56px 20px calc(24px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.sh-x { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.12); color: var(--tile); }
.sh-card { position: relative; width: min(360px, 100%, 60dvh); aspect-ratio: 4 / 5; }
.sh-card img { display: block; width: 100%; height: 100%; animation: shIn .5s cubic-bezier(.16,1,.3,1); }
.sh-card img:not([src]) { visibility: hidden; }
@keyframes shIn { from { transform: scale(.92) rotate(-2deg); opacity: 0; } }
.sh-load { position: absolute; inset: 6.5%; border-radius: 16px; background: linear-gradient(100deg, #1f1f1f 30%, #2c2c2c 50%, #1f1f1f 70%) 0 0 / 300% 100%; animation: shSh 1.2s linear infinite; }
@keyframes shSh { to { background-position: -150% 0; } }
.sh-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(340px, 100%); }
.sh-go { grid-column: 1 / -1; padding: 17px; font-size: 18px; border-radius: 14px; }
.sh-sec { padding: 14px 10px; font-size: 15px; border-radius: 14px; background: rgba(255,255,255,.1); color: var(--tile); }

/* érme a kupon alatt, arany kupon a lapon és a beváltáskor */
.s-earn { margin: 0; display: inline-block; justify-self: start; font-size: 14px; font-weight: 800; color: #8a5d00; background: #fff1c2; border-radius: 8px; padding: 4px 10px; }
.s-earn[hidden] { display: none; }
#sheet.gold .s-photo .badge { background: linear-gradient(135deg, #fff1b8, #f5c84c 45%, #d89a1c); color: #2b1d00; }
#okWrap.gold .tq-top { background: linear-gradient(135deg, #fff1b8 0%, #f5c84c 40%, #d89a1c 75%, #f7d97a 100%); color: #2b1d00; }
#okWrap.gold .tq-place::after { content: "ARANY KUPON"; margin-left: 8px; font-size: 11px; letter-spacing: .12em; background: #2b1d00; color: #ffe08a; border-radius: 6px; padding: 2px 7px; vertical-align: 2px; }

/* ---- arany kupon kártya ---- */
.coin { width: 20px; height: 20px; flex: none; } 
.gold-list { display: grid; gap: 16px; }
.gold-card { position: relative; display: grid; gap: 6px; padding: 18px 18px 16px; border-radius: 22px; color: #2b1d00; overflow: hidden;
  background: linear-gradient(135deg, #fff1b8 0%, #f5c84c 36%, #d89a1c 68%, #f7d97a 100%); box-shadow: 0 10px 26px rgba(216,154,28,.32); }
.gold-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%); transform: translateX(-100%); animation: goldShine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes goldShine { 55%, 100% { transform: translateX(100%); } }
.gold-card > * { position: relative; z-index: 1; }
.g-head { display: flex; justify-content: space-between; align-items: center; }
.g-head a { font-weight: 800; font-size: 15px; color: inherit; }
.g-tag { font-size: 11px; font-weight: 900; letter-spacing: .14em; background: #2b1d00; color: #ffe08a; border-radius: 6px; padding: 3px 8px; }
.g-deal { font-size: 44px; line-height: .95; letter-spacing: -0.05em; font-weight: 900; margin-top: 4px; }
.gold-card h3 { margin: 0; font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; }
.gold-card p { margin: 0; font-size: 15px; opacity: .8; }
.g-prog { display: grid; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 700; }
.g-prog i { display: block; height: 8px; border-radius: 5px; background: rgba(43,29,0,.15); overflow: hidden; }
.g-prog em { display: block; height: 100%; border-radius: 5px; background: #2b1d00; }
.g-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.g-price { display: inline-flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.g-price .coin { width: 24px; height: 24px; }
.g-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; padding: 12px 16px; font: inherit; font-weight: 800; font-size: 15px; background: #2b1d00; color: #ffe08a; cursor: pointer; text-decoration: none; }
.g-btn:disabled { background: rgba(43,29,0,.16); color: #2b1d00; cursor: default; }
.g-btn.own { background: var(--ink); color: var(--tile); }
@media (prefers-reduced-motion: reduce) { .gold-card::after { animation: none; } }
/* pont a fejlécben, az Arany oldalra visz */
.pts-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 20px; background: #fff3cf; color: #5a3d00; font-weight: 900; font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums; }
.pts-btn + .map-btn { margin-left: 8px; }

/* ---- fülek: KUPONOK | ARANY KUPONOK, teljes szélességben, egyforma felek ---- */
.tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--tile); border-bottom: 1px solid var(--line); }
.tabbar button { position: relative; border: 0; background: none; font: inherit; font-weight: 900; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; padding: 17px 6px 15px; color: var(--ink-2); cursor: pointer; }
.tabbar button + button::before { content: ""; position: absolute; left: 0; top: 32%; bottom: 32%; width: 1.5px; background: var(--line); }
.tabbar button.on { color: var(--ink); }
.tabbar button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ink); }
.tabbar small { display: block; margin-top: 2px; font-size: 12px; letter-spacing: .02em; text-transform: none; color: var(--orange-text); }

/* ---- arany kupon: poszt, mint a feedben, alatta egy valódi arany jegy ---- */
.gpost { padding: 16px 0 22px; border-bottom: 1px solid var(--line); }
.gpost header { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.gpost .who { min-width: 0; line-height: 1.25; } .gpost .who a { font-weight: 800; font-size: 17px; } .gpost .who small { display: block; color: var(--ink-2); font-size: 14px; }
.gpost .pav { border-color: #e0a92a; }
.gpost .g-tag { margin-left: auto; }
.gtix { filter: drop-shadow(0 10px 22px rgba(176,122,0,.28)); }
.gt-top { position: relative; overflow: hidden; padding: 20px 22px 6px; border-radius: 22px 22px 0 0; color: #2b1d00;
  background: linear-gradient(160deg, #fff1b8 0%, #f5c84c 45%, #e9b63c 100%); }
.gt-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%); transform: translateX(-100%); animation: goldShine 3.6s ease-in-out infinite; pointer-events: none; }
.gt-top > * { position: relative; }
.gt-top .g-deal { display: block; font-size: 54px; line-height: .95; letter-spacing: -0.05em; font-weight: 900; }
.gt-top h3 { margin: 6px 0 0; font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; }
.gt-top p { margin: 6px 0 0; font-size: 15px; opacity: .8; }
.gt-cut { height: 24px; position: relative; background: linear-gradient(to bottom, #e9b63c 50%, #fff8e1 50%);
  -webkit-mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.gt-cut::after { content: ""; position: absolute; left: 22px; right: 22px; top: calc(50% - 1px); border-top: 2px dashed rgba(120,80,0,.35); }
.gt-bot { background: #fff8e1; border-radius: 0 0 22px 22px; padding: 6px 22px 18px; color: #2b1d00; display: grid; gap: 12px; }
.gtix .g-prog { margin: 0; }
.gtix .g-foot { margin: 0; }

/* nyitott lap (kupon, történet, térkép…) alatt a háttér nem görög */
html:has(dialog[open]), html:has(dialog[open]) body { overflow: hidden; }
dialog { overscroll-behavior: contain; }

/* ---- pultos PIN ---- */
#pinView { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; background: var(--ink); color: var(--tile); }
.pin-wrap { min-height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 60px 24px calc(30px + env(safe-area-inset-bottom)); text-align: center; }
.pin-x { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.12); color: var(--tile); }
.pin-place { margin: 0; font-weight: 800; font-size: 16px; color: #bdbdb8; }
.pin-h { margin: 0 0 14px; font-size: clamp(30px, 8vw, 40px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 900; max-width: 14ch; }
.pin-boxes { position: relative; display: grid; grid-template-columns: repeat(4, 64px); gap: 12px; cursor: text; }
.pin-boxes input { position: absolute; inset: 0; opacity: 0; font-size: 16px; caret-color: transparent; }
.pin-boxes i { height: 80px; border-radius: 18px; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.16); display: grid; place-items: center; font-style: normal; font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pin-boxes i.on { border-color: var(--orange); }
.pin-boxes.bad { animation: pinShake .35s; } .pin-boxes.bad i { border-color: #ff5a36; }
@keyframes pinShake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.pin-msg { min-height: 22px; margin: 6px 0 0; font-weight: 700; color: #ffb199; }
.pin-demo { margin: auto 0 0; font-size: 14px; color: #8a8a86; }

/* ---- v2: arany = fekete jegy narancs számmal, csillogás és ragyogás nélkül ---- */
.pts-btn { background: var(--bg); color: var(--ink); font-weight: 800; border-radius: 12px; }
.s-earn { color: var(--ink); background: var(--bg); font-weight: 700; }
.gtix { filter: none; }
.gt-top, .gold-card { background: var(--ink); color: var(--tile); box-shadow: none; }
.gt-top::after, .gold-card::after { display: none; }
.gt-top .g-deal, .g-deal { color: var(--orange); }
.gt-top p, .gold-card p { opacity: .7; }
.gt-cut { background: linear-gradient(to bottom, var(--ink) 50%, #232323 50%); }
.gt-cut::after { border-top-color: rgba(255,255,255,.25); }
.gt-bot { background: #232323; color: var(--tile); }
.g-prog i { background: rgba(255,255,255,.15); } .g-prog em { background: var(--orange); }
.g-btn { background: var(--orange); color: var(--ink); }
.g-btn:disabled { background: rgba(255,255,255,.12); color: #bdbdb8; }
.g-btn.own { background: var(--tile); color: var(--ink); }
.gpost .g-tag, #okWrap.gold .tq-place::after { display: none; }
.gpost .pav { border-color: var(--ink); }
#sheet.gold .s-photo .badge { background: var(--ink); color: var(--orange); }
#okWrap.gold .tq-top { background: var(--ink); color: var(--tile); }
.tq-orbit { display: none; }
.ok-t .tq-top { background: var(--orange); }
#okWrap.gold .tq-top { background: var(--ink); }
.tq-done { outline: none; box-shadow: none; background: var(--tile); }
.s-terms { background: none; padding: 12px 0 0; border-radius: 0; border-top: 1px solid var(--line); }
.s-terms b { text-transform: none; letter-spacing: 0; font-size: 14px; }
.s-terms li { padding-left: 0; font-weight: 500; }
.s-terms li::before { display: none; }
.s-earn, .s-student { background: none !important; padding: 0 !important; border-radius: 0 !important; font-size: 16px; }
.s-earn { color: var(--ink-2); font-weight: 600; }

/* v2: egy saját display betű a címekhez és nagy számokhoz */
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url(lib/font/archivo-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url(lib/font/archivo-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
:root { --display: "Archivo", var(--font); }
h1, h2, .h1, .kpi b, .pinbox b, .g-deal, .ok-clock, .hero h1, .tq-top .deal, .s-photo .badge, .amt, .stats b { font-family: var(--display); font-weight: 800; }
.ok-t .tq-code b { background: none; padding: 0; margin-left: 2px; font-size: 26px; letter-spacing: .02em; font-weight: 800; }
.ok-uid { display: none; }
.ok-at { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ok-day::before, .ok-day::after { height: 10px; }
#sheet:has(#sNotify:not([hidden])) .swipe.off { display: none; }
.s-notify { justify-self: stretch; padding: 17px; font-size: 17px; background: var(--ink); color: var(--tile); border-color: var(--ink); }
.s-notify.on { background: var(--tile); color: var(--ink); }
.fb-avg b, .big-ph .badge { font-family: var(--display); }
#sheet:has(.swipe.off) .s-photo .badge { background: var(--line); color: var(--ink-2); }
.gpost { border-bottom: 0; }
.s-terms summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; padding: 2px 0; }
.s-terms summary::-webkit-details-marker { display: none; }
.s-terms[open] summary { margin-bottom: 6px; }
/* várakozás a pultos elfogadására */
.ok-wait { display: grid; gap: 4px; justify-items: center; margin: 14px 0 4px; padding: 14px 12px; border-radius: 14px; background: var(--ink); color: var(--tile); position: relative; }
.ok-wait b { font-family: var(--display); font-size: 22px; }
.ok-wait span { font-size: 14px; color: #bdbdb8; }
.ok-wait button { margin-top: 8px; border: 0; background: none; color: var(--orange); font: inherit; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ok-wait::before { content: ""; position: absolute; left: 14px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--orange); animation: okPulse 1.2s ease-in-out infinite; }
@keyframes okPulse { 50% { opacity: .25; transform: scale(.7); } }
.ok-no { position: relative; margin: 14px 0 4px; font-weight: 700; color: var(--orange-text); text-align: center; }
#okWrap.rejected .tq-top { background: var(--line); color: var(--ink-2); }
#okWrap.waiting .ok-day, #okWrap.rejected .ok-day { visibility: hidden; }
.ok-wait[hidden], .ok-no[hidden], .ok-yes[hidden] { display: none; }
.ok-yes { position: relative; margin: 12px 0 0; font-family: var(--display); font-weight: 800; font-size: 20px; text-align: center; }
.ok-wait button:focus { outline: none; }
