/* Pressaday · Atelier */

@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Pressaday Lining"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-lining-500.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/geist-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/geist-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/geist-sans-latin-600-normal.woff2") format("woff2"); }

:root {
    --ink: #0B0B0C;
    --panel: #111113;
    --ivory: #EDE6D8;
    --script: #C9C2B4;
    --muted: #9A9488;
    --gold: #C9A96E;
    --line: rgba(201, 169, 110, 0.32);
    --crown: conic-gradient(from 210deg, #E9D5A6, #B08D55, #F3E3BE, #9E7B45, #E9D5A6, #B08D55, #E9D5A6);
    --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--ink); color: var(--ivory); }
body {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    min-height: 100dvh;
}
a { color: var(--ivory); text-underline-offset: 3px; text-decoration-color: var(--line); }
a:hover { color: #fff; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.app {
    max-width: 440px;
    margin: 0 auto;
    min-height: 100dvh;
    padding: max(28px, env(safe-area-inset-top)) 24px max(16px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
}

/* Pogledi */
.view { display: none; flex-direction: column; flex: 1; }
.app[data-view="welcome"] .view-welcome,
.app[data-view="today"] .view-today,
.app[data-view="certificate"] .view-certificate,
.app[data-view="league"] .view-league,
.app[data-view="loading"] .view-loading { display: flex; animation: fade .5s ease both; }
.view-loading { align-items: center; justify-content: center; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Tipografija */
.caps { font-size: 10px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.strong { font-weight: 600; }
.center { text-align: center; }
.spaced { margin-top: 22px; }
.script { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.25; color: var(--script); margin: 0; }
.display { font-family: var(--serif); font-weight: 500; font-size: 50px; line-height: .98; letter-spacing: -.01em; margin: 36px 0 0; }
.display em { font-style: italic; }
.display-sm { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1; margin: 18px 0 6px; }
.lead { color: #B8B1A4; margin: 16px 0 0; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.fineprint { margin: 14px 0 0; text-align: center; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fineprint a { color: var(--muted); }
.error { color: #E7A08A; font-size: 13px; margin: 8px 0 0; }
.numero { font-feature-settings: normal; }

.brand-line { text-align: center; font-size: 10px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.topline {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center;
    font-size: 10px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}
.topline > :nth-child(2) { text-align: center; }
.topline > :nth-child(3) { text-align: right; }
.tagline { margin: 26px 0 0; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 32px; line-height: 1.1; }

/* Gumbi */
.btn {
    display: flex; align-items: center; justify-content: center; width: 100%;
    height: 54px; border-radius: 2px; border: 1px solid transparent; cursor: pointer;
    font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
    text-decoration: none;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #D6BA84; color: var(--ink); }
.btn-line { background: transparent; border-color: var(--line); color: var(--ivory); font-weight: 500; }
.btn-line:hover { border-color: var(--gold); }

/* Pečat */
.seal { position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--gold); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px var(--line); }
.seal span { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--gold); }
.seal-lg { width: 148px; height: 148px; margin: 36px auto 0; }
.seal .crown { width: 76px; height: 76px; border-radius: 50%; background: var(--crown);
    box-shadow: 0 10px 22px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.6); }

/* Dobrodošlica */
.country-form { margin-top: 26px; display: flex; flex-direction: column; }
.label { font-size: 10px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.select-wrap { position: relative; border: 1px solid var(--gold); }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
    border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); pointer-events: none; }
.select-wrap select { appearance: none; width: 100%; height: 58px; padding: 0 44px 0 16px; border: 0; background: transparent;
    color: var(--ivory); font-family: var(--serif); font-size: 26px; cursor: pointer; }
.select-wrap select option { background: var(--panel); color: var(--ivory); font-family: var(--sans); font-size: 15px; }
.country-form .btn { margin-top: 26px; }
.view-welcome { justify-content: flex-start; }

/* Številčnica */
.dial-area { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.dial { position: relative; width: 268px; height: 268px; border-radius: 50%; background: var(--panel);
    border: 1px solid var(--line); display: grid; place-items: center; }
.dial-ticks { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.dial-ticks circle { fill: none; }
.ticks-minor { stroke: var(--gold); stroke-width: 7; stroke-dasharray: 1.2 11.58; opacity: .55; }
.ticks-major { stroke: var(--gold); stroke-width: 12; stroke-dasharray: 2.6 61.28; opacity: .95; }
.ticks-progress { stroke: var(--gold); stroke-width: 2; opacity: 0; stroke-dasharray: 0 767; transition: stroke-dasharray 1s linear, opacity .4s; }
.dial-face { width: 192px; height: 192px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--line);
    background: repeating-radial-gradient(circle at 50% 50%, #19191C 0 1.4px, #0F0F11 1.4px 3px);
    box-shadow: inset 0 2px 10px rgba(0,0,0,.8); }
.crown-btn {
    width: 124px; height: 124px; border-radius: 50%; border: 0; cursor: pointer; background: var(--crown);
    box-shadow: 0 12px 28px rgba(0,0,0,.7), 0 2px 4px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 6px rgba(0,0,0,.3);
    transition: transform .12s ease, box-shadow .12s ease, filter .3s;
    touch-action: manipulation;
}
.crown-btn:hover { filter: brightness(1.05); }
.crown-btn:active, .crown-btn.pressing { transform: scale(.94); box-shadow: 0 4px 10px rgba(0,0,0,.7), inset 0 2px 8px rgba(0,0,0,.35); }
.crown-label { font-size: 11px; font-weight: 600; letter-spacing: .32em; padding-left: .32em; color: rgba(25,18,8,.72); }
.crown-btn:disabled { cursor: default; filter: saturate(.7) brightness(.85); }
.dial.golden { box-shadow: 0 0 0 10px rgba(11,11,12,.6), 0 0 0 11px var(--line), 0 0 60px rgba(201,169,110,.25); border-color: var(--gold); }
.dial.golden .ticks-progress { opacity: 1; }
.ring { position: absolute; inset: 38px; border-radius: 50%; border: 1px solid var(--gold); pointer-events: none; animation: ring 1.1s ease-out forwards; }
@keyframes ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.count-block { text-align: center; }
.count { font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.count-block .caps { margin-top: 8px; }

.note { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.3; color: var(--script); margin: 18px 0 0; text-align: center; }
.note strong { font-style: normal; font-weight: 500; color: var(--ivory); font-variant-numeric: lining-nums tabular-nums; }

.golden-banner { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 10px 12px; border: 1px solid var(--gold); color: var(--ivory); font-size: 11px; letter-spacing: .2em;
    text-transform: uppercase; white-space: nowrap; }
.golden-banner strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201,169,110,.6); animation: pulse 1.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(201,169,110,0); } 100% { box-shadow: 0 0 0 0 rgba(201,169,110,0); } }

.stat-row { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; text-align: left; background: none; border: 0; }
button.stat { cursor: pointer; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 18px; }
.stat-value { font-family: var(--serif); font-size: 24px; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; }
.stat-value small { font-size: 15px; color: var(--muted); }

.tabs { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
a.tab { display: flex; align-items: center; justify-content: center; text-decoration: none; }
a.tab:hover { color: var(--ivory); }
.tab { min-height: 44px; background: none; border: 0; cursor: pointer; font-size: 10px; font-weight: 500;
    letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.tab.active { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 8px; text-decoration-color: var(--gold); }

/* Certifikat */
.certificate { margin-top: 14px; padding: 5px; border: 1px solid var(--gold); }
.certificate-inner { padding: 24px 20px 20px; border: 1px solid var(--line); background: var(--panel);
    text-align: center; display: flex; flex-direction: column; align-items: center; }
.certificate-inner > .caps:first-child { font-weight: 600; letter-spacing: .3em; }
.certificate-inner > .script { margin-top: 14px; }
.special { margin-top: 10px; padding: 4px 10px; border: 1px solid var(--gold); color: var(--gold);
    font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.cert-number { margin-top: 4px; font-family: var(--serif); font-weight: 500; font-size: 68px; line-height: 1.05;
    font-variant-numeric: lining-nums tabular-nums; }
.certificate-inner .cert-number + .script { margin-top: 4px; }
.rule { margin: 18px 0 14px; align-self: stretch; display: flex; align-items: center; gap: 10px; }
.rule span { flex: 1; height: 1px; background: var(--line); }
.rule i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); }
.cert-stats { align-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cert-stats > div { display: flex; flex-direction: column; gap: 2px; }
.cert-foot { margin-top: 18px; align-self: stretch; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cert-sign { flex: 1; text-align: right; display: flex; flex-direction: column; gap: 6px; }
.cert-sign .script { padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.cert-sign .caps { font-size: 9px; }
.certificate.reveal { animation: reveal .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.actions { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }

/* Liga */
.segmented { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.segmented button { height: 42px; border: 0; background: transparent; color: #B8B1A4; cursor: pointer;
    font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button[aria-pressed="true"] { background: var(--gold); color: var(--ink); font-weight: 600; }
/* Glava in zavihki ostanejo na mestu, drsi samo seznam. Seznam ima 12 px prostora ob straneh za okvir lastne države. */
.app[data-view="league"] { height: 100dvh; min-height: 0; }
.view-league { min-height: 0; }
.league-list { list-style: none; margin: 14px -12px 0; padding: 0 12px; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: rgba(201,169,110,.35) transparent; }
.league-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline;
    padding: 11px 0; border-bottom: 1px solid var(--line); }
.league-list .rank { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); white-space: nowrap; }
.league-list li:nth-child(-n+3) .rank { color: var(--gold); }
.league-list .name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.league-list .today { display: block; margin-top: 3px; font-size: 11px; letter-spacing: .04em; color: var(--muted); font-weight: 400; }
.league-list .today.live { color: var(--script); }
.league-list .val { font-family: var(--serif); font-size: 22px; font-variant-numeric: lining-nums tabular-nums; }
.league-list li.mine { margin: 0 -12px; padding: 11px 12px; border: 1px solid var(--gold); background: var(--panel); }
.league-list li.mine .rank, .league-list li.mine .val { color: var(--gold); }
.league-list li.mine .name { font-weight: 600; }
.league-list li.empty { display: block; text-align: center; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--script); border: 0; }

/* Javni certifikat in besedila */
.public-cta { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.public-cta .script { font-size: 24px; color: var(--ivory); }
.prose { max-width: 640px; margin: 0 auto; padding: 40px 24px 60px; color: #CFC8BA; }
.prose h1 { font-family: var(--serif); font-weight: 500; font-size: 42px; color: var(--ivory); margin: 18px 0 8px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--ivory); margin: 28px 0 6px; }
.prose p, .prose li { line-height: 1.65; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 10px 16px; background: var(--ivory);
    color: var(--ink); font-size: 13px; font-weight: 500; border-radius: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }

/* ---------- Animacije ---------- */

/* Sekundni kazalec: gladko kroženje kot pri mehanski uri */
.sweep { position: absolute; inset: 0; z-index: 1; pointer-events: none; will-change: transform; }
.sweep i { position: absolute; left: 50%; top: 14px; width: 1.5px; height: 120px; margin-left: -.75px;
    background: linear-gradient(to bottom, rgba(243,227,190,.95), rgba(201,169,110,.35)); border-radius: 1px; }
.sweep::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px;
    border-radius: 50%; background: var(--gold); }
.crown-btn { position: relative; z-index: 2; overflow: hidden; }
.crown-label { position: relative; z-index: 1; }

/* Lesk, ki počasi kroži čez krono */
.crown-btn::after { content: ""; position: absolute; inset: -20%; border-radius: 50%; pointer-events: none;
    background: conic-gradient(from 0deg, transparent 0 12%, rgba(255,255,255,.55) 16%, transparent 22% 62%, rgba(255,255,255,.35) 66%, transparent 72%);
    mix-blend-mode: overlay; animation: sheen 9s linear infinite; }
@keyframes sheen { to { transform: rotate(360deg); } }

/* Udarec: lok, ki se ob pritisku zavrti okoli številčnice */
.ticks-wind { fill: none; stroke: #F3E3BE; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 767; opacity: 0; }
.dial.striking .ticks-wind { animation: wind .8s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes wind {
    0% { stroke-dasharray: 0 767; opacity: 1; }
    80% { stroke-dasharray: 767 767; opacity: 1; }
    100% { stroke-dasharray: 767 767; opacity: 0; }
}
.dial.striking { animation: strike .8s ease-out; }
@keyframes strike { 0% { box-shadow: 0 0 0 0 rgba(201,169,110,.45); } 100% { box-shadow: 0 0 0 26px rgba(201,169,110,0); } }

/* Zlata minuta: dihajoč sij */
.dial.golden { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow {
    0%, 100% { box-shadow: 0 0 0 10px rgba(11,11,12,.6), 0 0 0 11px var(--line), 0 0 40px rgba(201,169,110,.18); }
    50% { box-shadow: 0 0 0 10px rgba(11,11,12,.6), 0 0 0 11px var(--gold), 0 0 80px rgba(201,169,110,.38); }
}

/* Certifikat: vgravirana številka in žig */
.certificate.reveal .cert-number { animation: engrave 1.1s .25s cubic-bezier(.2,.7,.2,1) both; }
@keyframes engrave { from { opacity: 0; letter-spacing: .18em; filter: blur(6px); } to { opacity: 1; letter-spacing: 0; filter: blur(0); } }
.certificate.reveal .seal { animation: stamp .55s .9s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.7) rotate(-14deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(0); } }
.certificate.reveal .rule, .certificate.reveal .cert-stats, .certificate.reveal .cert-sign { animation: fade .6s .7s both; }

/* Živi števec */
.count.bump { animation: bump .5s ease-out; }
@keyframes bump { 0% { color: #F3E3BE; } 100% { color: var(--ivory); } }

@media (max-height: 720px) {
    .dial-area { min-height: 250px; }
    .dial { transform: scale(.86); }
    .tagline { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Samo v razvoju */
.dev-btn { position: fixed; left: 50%; top: 6px; transform: translateX(-50%); z-index: 50; padding: 6px 10px; border: 1px dashed var(--line);
    background: rgba(11,11,12,.85); color: var(--muted); font: 500 11px/1 var(--sans); letter-spacing: .06em; cursor: pointer; }
.dev-btn:hover { color: var(--gold); border-color: var(--gold); }

/* Svet (globus) */
.world-head { margin-top: 18px; text-align: center; }
.world-total { font-family: var(--serif); font-weight: 500; font-size: 46px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.world-head .caps { margin-top: 6px; }
.globe-wrap { position: relative; margin: 6px -12px 0; }
.globe-wrap canvas { display: block; width: 100%; touch-action: none; cursor: grab; }
.globe-wrap canvas:active { cursor: grabbing; }
.globe-golden { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); margin: 0; background: rgba(11,11,12,.85); }
.world-card { padding: 14px 16px 0; border: 1px solid var(--line); background: var(--panel); animation: fade .4s ease both; }
.world-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.world-card-name { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.world-card .script { font-size: 17px; margin-top: 2px; }
.world-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 0; margin-top: 12px; }
.world-stats .stat { border-right: 1px solid var(--line); }
.world-stats .stat:last-child { border-right: 0; }
.world-stats .stat-value { font-size: 22px; }
.world-hint { margin-top: 12px; text-align: center; }
body.embed .world-app .tabs, body.embed .world-app .topline { display: none; }
/* V aplikaciji: aplikacija že ima robove in glavo. */
/* 2 px od roba: telefon zadnjo vrstico pik WebViewa lahko odreže in z njo rob kartice. */
body.embed .world-app { padding: 6px 2px 12px; min-height: 0; }
body.embed .world-head { margin-top: 4px; }
body.embed .world-total { font-size: 38px; }
body.embed .globe-wrap { margin: 0 -2px; }

/* Menjava države */
.country-line { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.linklike { background: none; border: 0; padding: 4px 2px; cursor: pointer; color: var(--gold); font-size: 12px;
    text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.linklike:hover { color: var(--ivory); }
#country-cancel { margin-top: 10px; }

/* Founder */
.founder-line { color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }

/* Zapečatena krona: po pritisku številčnica ostane, krona je zaklenjena do polnoči */
.crown-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.crown-number { display: none; position: relative; z-index: 1; }
.crown-btn.sealed { cursor: default; filter: saturate(.85) brightness(.88); transform: scale(.95);
    box-shadow: 0 4px 12px rgba(0,0,0,.7), inset 0 3px 10px rgba(0,0,0,.45), inset 0 -1px 0 rgba(255,255,255,.25); }
.crown-btn.sealed:hover { filter: saturate(.85) brightness(.88); }
.crown-btn.sealed .crown-label { font-size: 8px; letter-spacing: .34em; color: rgba(25,18,8,.6); }
.crown-btn.sealed .crown-number { display: block; margin-top: 2px; font-family: "Pressaday Lining", var(--serif); font-weight: 500;
    font-size: 25px; line-height: 1; color: rgba(30,21,8,.82); text-shadow: 0 1px 0 rgba(255,240,205,.45); max-width: 104px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crown-btn.sealed.long .crown-number { font-size: 19px; }
.crown-btn.shake { animation: shake .42s ease; }
@keyframes shake { 20% { transform: scale(.95) translateX(-4px); } 45% { transform: scale(.95) translateX(4px); }
    70% { transform: scale(.95) translateX(-2px); } 100% { transform: scale(.95); } }

/* Obroč dneva: polni se do lokalne polnoči */
.ticks-day { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; opacity: 0;
    stroke-dasharray: 0 824; transition: stroke-dasharray 1s linear, opacity .6s; }
.dial.sealed .ticks-day { opacity: .85; }

/* Polnoč: krona se odklene */
.dial.unlocking { animation: unlock 1.6s ease-out; }
@keyframes unlock { 0% { box-shadow: 0 0 0 0 rgba(243,227,190,.65); } 100% { box-shadow: 0 0 0 34px rgba(243,227,190,0); } }

.sealed-actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sealed-actions .btn { height: 46px; }
.back-to-dial { margin-top: 12px; height: 46px; }
@media (prefers-reduced-motion: reduce) { .crown-btn.shake, .dial.unlocking { animation: none; } }

/* Zaloga: »i« in razlaga */
.stat-reserve { position: relative; border-right: 1px solid var(--line); }
.stat-hit { position: absolute; inset: 0; background: none; border: 0; padding: 0; cursor: pointer; }
.stat-reserve > span { position: relative; pointer-events: none; }
.info-btn { pointer-events: auto; position: relative; display: inline-block; width: 16px; height: 16px; margin-left: 7px; padding: 0;
    border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--gold); cursor: pointer;
    font: italic 500 12px/14px var(--serif); letter-spacing: 0; text-transform: none; vertical-align: 1px; }
.info-btn::after { content: ""; position: absolute; inset: -12px; }
.info-btn:hover { border-color: var(--gold); }
.sheet { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--gold);
    background: var(--ink); color: var(--ivory); }
.sheet::backdrop { background: rgba(0, 0, 0, .72); }
.sheet-inner { margin: 4px; padding: 22px 20px 18px; border: 1px solid var(--line); background: var(--panel); }
.sheet-title { margin: 8px 0 12px; font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1; }
.sheet-lead { margin: 0 0 10px; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.35; color: var(--script); }
.ledger { margin: 16px 0 0; border-top: 1px solid var(--line); }
.ledger div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-size: 12px; color: var(--muted); }
.ledger dd { margin: 0; font-family: var(--serif); font-size: 20px; font-variant-numeric: lining-nums tabular-nums; }
.ledger .total dt { color: var(--ivory); }
.ledger .total dd { color: var(--gold); }
.sheet-note { margin: 14px 0 16px; font-size: 13px; line-height: 1.45; text-align: center; }
.sheet .btn { width: 100%; }
