/* #NEMANEIDE merch drop — jedna stranica, bez skrolanja. */
@font-face { font-family: 'DSEG7'; src: url('/fonts/dseg7.woff2') format('woff2'); font-weight: 700; font-display: block; }
@font-face { font-family: 'Anton'; src: url('/fonts/anton-latin.woff2') format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Anton'; src: url('/fonts/anton-latin-ext.woff2') format('woff2'); font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0a0c08;
  --olive: #5f6b34;
  --olive-2: #8a9a55;
  --amber: #ffb21a;
  --amber-2: #ff8a1f;
  --text: #eeede6;
  --muted: rgb(238 237 230 / 0.68);
  --line: rgb(255 255 255 / 0.1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Pozadina: promo fotka (posvijetljena) + tamni gradijenti da tekst bude čitljiv */
.bg { position: fixed; inset: 0; z-index: -1; background: var(--ink); overflow: hidden; }
.bg::before {
  content: ''; position: absolute; inset: 0;
  background: url('/img/promo.webp') center 42% / cover no-repeat;
  filter: brightness(1.12) contrast(1.05) saturate(1.05);
  animation: bg-in 1.8s ease-out both;
}
.bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(110% 85% at 50% 48%, transparent 30%, rgb(10 12 8 / 0.7) 85%),
    linear-gradient(180deg, rgb(10 12 8 / 0.35), transparent 30%, transparent 65%, rgb(10 12 8 / 0.6));
}
@media (max-width: 800px) { .bg::before { background-image: url('/img/promo-800.webp'); background-position: center 36%; } }
@keyframes bg-in { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }

.stage {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.panel {
  width: min(1080px, 100%);
  display: grid; gap: clamp(10px, 2.2vh, 22px);
  padding: clamp(18px, 3.4vh, 40px) clamp(18px, 3.6vw, 48px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgb(14 17 10 / 0.42), rgb(10 12 8 / 0.58));
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.06);
  backdrop-filter: blur(10px) saturate(115%); -webkit-backdrop-filter: blur(10px) saturate(115%);
  animation: up 0.9s cubic-bezier(.2,.8,.2,1) 0.15s both;
}
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Gornji red */
.top { display: flex; justify-content: center; align-items: center; }
.brand { font-family: 'Anton', Impact, sans-serif; font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: 0.06em; color: var(--amber); }

/* Digitalni sat */
.timer { display: flex; justify-content: center; align-items: flex-start; gap: clamp(4px, 1.2vw, 14px); margin-top: clamp(0px, 1vh, 8px); }
.unit { display: grid; justify-items: center; gap: 6px; }
.lcd { position: relative; display: block; font-family: 'DSEG7', ui-monospace, monospace; font-weight: 700; font-size: clamp(3.4rem, min(13vw, 15vh), 9.5rem); line-height: 1; letter-spacing: 0.02em; }
.lcd b { font-weight: 700; display: block; }
.lcd b:not(.ghost) { position: relative; color: var(--amber); text-shadow: 0 0 18px rgb(255 178 26 / 0.55), 0 0 42px rgb(255 138 31 / 0.35); }
.lcd .ghost { position: absolute; inset: 0; color: rgb(255 178 26 / 0.07); text-shadow: none; }
.unit small { font-size: clamp(0.66rem, 1vw, 0.78rem); font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); padding-left: 0.32em; }
.colon { font-family: 'DSEG7', monospace; font-weight: 700; font-size: clamp(2.6rem, min(10vw, 12vh), 7.4rem); line-height: 1.12; color: var(--amber); text-shadow: 0 0 18px rgb(255 178 26 / 0.5); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.when { margin: 0; text-align: center; font-size: clamp(0.86rem, 1.3vw, 1rem); color: var(--muted); }
.when strong { color: var(--text); font-weight: 600; }

/* Donji dio: tekst lijevo, majice desno */
.split { display: grid; gap: clamp(12px, 2vh, 24px); align-items: center; margin-top: clamp(4px, 1.4vh, 14px); padding-top: clamp(12px, 2.4vh, 26px); border-top: 1px solid var(--line); }
.copy { display: grid; gap: clamp(10px, 1.8vh, 18px); align-content: center; }
h1 { margin: 0; font-family: 'Anton', Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, min(5.2vw, 7vh), 4.2rem); line-height: 0.98; letter-spacing: 0.01em; }
h1 span { color: var(--amber); }
.lead { margin: 0; max-width: 44ch; font-size: clamp(0.92rem, 1.3vw, 1.06rem); line-height: 1.55; color: var(--muted); }
.lead b { color: var(--text); font-weight: 600; }
.actions { display: grid; gap: 12px; justify-items: start; }
.cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; letter-spacing: 0.01em; text-decoration: none; color: #1a1203;
  background: linear-gradient(135deg, #ffd27a, var(--amber) 45%, var(--amber-2));
  box-shadow: 0 14px 40px -12px rgb(255 138 31 / 0.65);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cta:not(.is-locked):hover { transform: translateY(-2px); box-shadow: 0 18px 48px -12px rgb(255 138 31 / 0.85); }
.cta.is-locked { cursor: default; pointer-events: none; color: var(--text); background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 178 26 / 0.35); box-shadow: none; }
.cta.is-locked svg { color: var(--amber); }
.ig { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); text-decoration: none; }
.ig b { color: var(--text); }
.ig:hover { color: var(--text); }
.ig svg { width: 18px; height: 18px; fill: none; stroke: var(--amber); stroke-width: 2; }
.ig svg .f { fill: var(--amber); stroke: none; }

/* Majice: prednja/stražnja strana se izmjenjuju */
.shirts { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; height: clamp(170px, 32vh, 360px); }
.shirts::before { content: ''; position: absolute; inset: 4% 0 -4%; z-index: -1; background: radial-gradient(closest-side, rgb(138 154 85 / 0.26), rgb(95 107 52 / 0.12) 55%, transparent); filter: blur(6px); }
.shirt { position: relative; margin: 0; height: 100%; }
.shirt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 14px rgb(138 154 85 / 0.28)) drop-shadow(0 26px 30px rgb(0 0 0 / 0.6)); }
.shirt .front { animation: flip-front 10s ease-in-out infinite; }
.shirt .back { animation: flip-back 10s ease-in-out infinite; }
.s-black { transform: translateX(12%) rotate(-5deg); z-index: 2; animation: float 6s ease-in-out infinite; }
.s-green { transform: translateX(-12%) translateY(4%) rotate(5deg); animation: float2 6s ease-in-out 0.6s infinite; }
.s-green img { animation-delay: -5s; }
@keyframes flip-front { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes flip-back { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes float { 50% { transform: translateX(12%) translateY(-3%) rotate(-5deg); } }
@keyframes float2 { 50% { transform: translateX(-12%) translateY(1%) rotate(5deg); } }

/* Naljepnica s cijenom — prava cijena NIJE u HTML-u, samo „xx,xx €” zamagljeno */
.tag {
  position: absolute; z-index: 3; right: 2%; top: 2%;
  display: grid; justify-items: center; gap: 4px; padding: 14px 16px 12px;
  border-radius: 16px; transform: rotate(6deg);
  background: linear-gradient(135deg, #ffd27a, var(--amber) 45%, var(--amber-2)); color: #1a1203;
  box-shadow: 0 18px 40px -14px rgb(0 0 0 / 0.8);
  animation: tag 3.2s ease-in-out infinite;
}
.tag span { font-family: 'Anton', Impact, sans-serif; font-size: clamp(0.82rem, 1.2vw, 1rem); line-height: 1.05; text-transform: uppercase; text-align: center; letter-spacing: 0.02em; }
.price { display: inline-flex; align-items: flex-start; gap: 3px; line-height: 1; user-select: none; -webkit-user-select: none; }
.price .num { font-family: 'DSEG7', monospace; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: 0.04em; filter: blur(6px); }
.price .cur { font-family: 'Anton', Impact, sans-serif; font-size: clamp(1.1rem, 1.8vw, 1.45rem); margin-top: 1px; }
@keyframes tag { 50% { transform: rotate(3deg) scale(1.04); } }

/* Desktop: dva stupca */
@media (min-width: 820px) {
  .split { grid-template-columns: 1.05fr 1fr; gap: 32px; }
  .shirts { height: clamp(220px, 36vh, 380px); }
}

/* Mobitel: majice iznad teksta, sve stane na jedan ekran */
@media (max-width: 819px) {
  .panel { border-radius: 24px; }
  .split { grid-template-areas: 'shirts' 'copy'; }
  .shirts { grid-area: shirts; height: clamp(150px, 27svh, 260px); margin-inline: auto; width: min(100%, 380px); }
  .copy { grid-area: copy; text-align: center; justify-items: center; }
  .actions { justify-items: center; }
  .cta { width: 100%; justify-content: center; }
  h1 br { display: none; }
  h1 span { display: inline; }
}
@media (max-width: 819px) and (max-height: 760px) { .lead { display: none; } }
@media (max-height: 640px) { .shirts { height: 22svh; } .lcd { font-size: clamp(2.8rem, 12vw, 4rem); } }

/* Nakon dropa */
.is-live .colon { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .shirt .front { opacity: 0; } .shirt .back { opacity: 1; }
}
