/* Dangaus Legendos parduotuvė: „Naktinis sodas“
 * Spalvos paimtos iš serverio: meniu langai (DialogLib receptų meniu) ir spawn'as naktį (žibintai, sakuros, tvenkinys).
 * Kampai „pikseliniai“: rėmeliai piešiami šešėliais be kampų, kaip žaidimo meniu.
 * Šriftai laikomi pačioje svetainėje (fonts/, SIL Open Font License 1.1).
 */
@font-face { font-family: "Jersey 10"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/jersey-10-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jersey 10"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/jersey-10-latin-ext-400-normal.woff2") format("woff2");
  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: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  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 {
  color-scheme: dark;
  /* Naktis ir meniu langai: tie patys atspalviai kaip žaidimo receptų meniu */
  --night: #0E1019;
  --night-2: #131623;
  --panel: #1B1F2B;
  --titlebar: #232838;
  --slot: #2A3147;
  --slot-hover: #333B55;
  --line: #3F4557;
  --edge: #0A0C12;
  --bevel: #3A4258;
  --text: #F1ECE4;
  --muted: #A9ADBA;
  --dim: #848791;
  /* Šviesos spawn'e */
  --lantern: #F2B544;
  --lantern-hi: #FFC95E;
  --ember: #E08A2E;
  --ink: #1A1420;
  --blossom: #EBA7C6;
  --blossom-deep: #C2789A;
  --wisteria: #A68FDB;
  --pond: #6E9FE0;
  --moss: #9CCB6E;
  --coral: #F29A8C;

  --pixel: "Jersey 10", ui-monospace, monospace;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Pikselinis rėmelis: keturi šešėliai be kampų */
  --frame-2: 0 -2px 0 0 var(--edge), 0 2px 0 0 var(--edge), -2px 0 0 0 var(--edge), 2px 0 0 0 var(--edge);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  background: var(--night);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--night); }
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--pixel); font-weight: 400; line-height: 1; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2.3rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.85rem; }
a { color: var(--lantern); text-underline-offset: .2em; }
a:hover { color: var(--lantern-hi); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blossom); outline-offset: 4px; }
.pixelated { image-rendering: pixelated; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: .75rem; z-index: 10; padding: .5rem .9rem; background: var(--lantern); color: var(--ink); font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: none; color: var(--ink); }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 1.75rem; }
.stack-lg > .page-head { margin: 0; }

.shell { width: min(calc(100% - 3rem), 1180px); margin-inline: auto; }
.shell-narrow { width: min(calc(100% - 3rem), 780px); margin-inline: auto; }

/* ------------------------------------------------------------------ antraštė */
.site-header { position: relative; z-index: 3; background: var(--night); box-shadow: 0 2px 0 var(--panel); }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; min-height: 4.5rem; flex-wrap: wrap; padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-name { display: grid; line-height: 1.15; }
.brand-name strong { font-family: var(--pixel); font-size: 1.75rem; font-weight: 400; line-height: 1; letter-spacing: .02em; }
.brand-name small { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
.site-nav a { padding: .45rem .8rem; color: var(--muted); font-weight: 650; font-size: .95rem; text-decoration: none; }
.site-nav a:hover { color: var(--text); background: var(--panel); }
.site-nav a[aria-current="page"] { color: var(--lantern); box-shadow: inset 0 -3px 0 var(--lantern); }

.mode-banner { background: #2B2330; color: var(--lantern); font-size: .9rem; }
.mode-banner .shell { display: flex; align-items: center; gap: .6rem; padding-block: .45rem; }
.mode-banner img { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ meniu langas */
.window { position: relative; background: var(--panel); box-shadow: var(--frame-2), inset 0 2px 0 var(--bevel); min-width: 0; }
.window-bar { display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; padding: .55rem .9rem; background: var(--titlebar); box-shadow: inset 0 -2px 0 var(--edge), inset 0 2px 0 var(--bevel); }
.window-bar h2, .window-bar h3, .window-bar .window-title { margin: 0; color: var(--lantern); font-family: var(--pixel); font-size: 1.65rem; font-weight: 400; line-height: 1; letter-spacing: .02em; }
.window-bar .window-meta { margin-left: auto; color: var(--muted); font-family: var(--pixel); font-size: 1.2rem; letter-spacing: .02em; }
.window-body { padding: 1.25rem; }
.window-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .55rem .9rem; background: var(--night-2); box-shadow: inset 0 2px 0 var(--edge); color: var(--muted); font-family: var(--pixel); font-size: 1.2rem; letter-spacing: .02em; }
/* Kvadratinis meniu mygtukas su piktograma (kaip „atgal“ receptų meniu) */
.icon-button { display: inline-grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; background: var(--slot); color: var(--text); box-shadow: var(--frame-2), inset 0 2px 0 var(--bevel); text-decoration: none; }
.icon-button:hover { background: var(--slot-hover); color: var(--lantern); }
.icon-button img { width: 24px; height: 24px; }

/* ------------------------------------------------------------------ mygtukai */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: .55rem 1.3rem; border: 0; cursor: pointer;
  background: var(--lantern); color: var(--ink);
  font-family: var(--pixel); font-size: 1.5rem; font-weight: 400; line-height: 1; letter-spacing: .03em; text-decoration: none; text-align: center;
  box-shadow: 0 -3px 0 0 #8A4E12, 0 3px 0 0 #8A4E12, -3px 0 0 0 #8A4E12, 3px 0 0 0 #8A4E12,
              inset 0 -4px 0 var(--ember), inset 0 3px 0 #FFE3A3, 0 0 34px rgba(242, 181, 68, .28);
  transition: background .12s, box-shadow .12s, transform .06s;
}
.button:hover { background: var(--lantern-hi); color: var(--ink);
  box-shadow: 0 -3px 0 0 #8A4E12, 0 3px 0 0 #8A4E12, -3px 0 0 0 #8A4E12, 3px 0 0 0 #8A4E12,
              inset 0 -4px 0 var(--ember), inset 0 3px 0 #FFF0C9, 0 0 46px rgba(255, 201, 94, .42); }
.button:active { transform: translateY(2px); }
.button img { width: 24px; height: 24px; }
.button-secondary { background: var(--slot); color: var(--text);
  box-shadow: 0 -3px 0 0 var(--edge), 0 3px 0 0 var(--edge), -3px 0 0 0 var(--edge), 3px 0 0 0 var(--edge),
              inset 0 -4px 0 #1F2537, inset 0 3px 0 var(--bevel); }
.button-secondary:hover { background: var(--slot-hover); color: var(--lantern);
  box-shadow: 0 -3px 0 0 var(--edge), 0 3px 0 0 var(--edge), -3px 0 0 0 var(--edge), 3px 0 0 0 var(--edge),
              inset 0 -4px 0 #1F2537, inset 0 3px 0 #4C5470; }
.button-small { min-height: 2.5rem; padding: .35rem .95rem; font-size: 1.25rem; }
.button-block { width: 100%; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.25rem; }

/* ------------------------------------------------------------------ pagrindinis vaizdas */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #0B0D16; }
.hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; image-rendering: pixelated; }
.hero .shell { position: relative; display: flex; align-items: center; min-height: clamp(34rem, 46vw, 40rem); padding-block: 3.5rem; }
.hero-window { width: min(100%, 35rem); background: rgba(27, 31, 43, .94); }
.hero-window .window-body { display: grid; gap: 1.1rem; padding: 1.75rem 1.75rem 1.6rem; }
.hero h1 { font-size: clamp(3.4rem, 7vw, 5.6rem); line-height: .92; }
.hero h1 span { color: var(--blossom); }
.hero-lead { color: #DAD5CC; font-size: 1.1rem; max-width: 30rem; }
.hero .actions { margin-top: .4rem; }
.hero-facts { justify-content: flex-start; gap: .4rem 1.25rem; }
.hero-facts span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-facts img { width: 18px; height: 18px; }
.hero-caption { position: absolute; right: 1.5rem; bottom: 1.25rem; display: inline-flex; align-items: center; gap: .5rem;
  padding: .3rem .7rem; background: rgba(14, 16, 25, .82); box-shadow: var(--frame-2); color: var(--muted); font-family: var(--pixel); font-size: 1.15rem; letter-spacing: .02em; }
.hero-caption strong { color: var(--text); font-weight: 500; }
/* Krentantys sakurų žiedlapiai */
.petals { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.petals i { position: absolute; top: -12px; width: 6px; height: 6px; background: var(--blossom); opacity: .85; animation: petal 13s linear infinite; }
.petals i:nth-child(3n) { width: 4px; height: 4px; background: #F7CFE0; }
.petals i:nth-child(4n) { background: var(--blossom-deep); }
.petals i:nth-child(1) { left: 52%; animation-delay: -2s; } .petals i:nth-child(2) { left: 61%; animation-delay: -7s; animation-duration: 16s; }
.petals i:nth-child(3) { left: 70%; animation-delay: -4s; } .petals i:nth-child(4) { left: 78%; animation-delay: -11s; animation-duration: 15s; }
.petals i:nth-child(5) { left: 86%; animation-delay: -1s; } .petals i:nth-child(6) { left: 93%; animation-delay: -9s; animation-duration: 18s; }
.petals i:nth-child(7) { left: 66%; animation-delay: -13s; } .petals i:nth-child(8) { left: 82%; animation-delay: -5s; animation-duration: 14s; }
.petals i:nth-child(9) { left: 57%; animation-delay: -15s; animation-duration: 17s; } .petals i:nth-child(10) { left: 97%; animation-delay: -6s; }
@keyframes petal {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-28px, 25vh); }
  50% { transform: translate(-8px, 50vh); }
  75% { transform: translate(-44px, 75vh); }
  100% { transform: translate(-24px, 110vh); }
}
@media (prefers-reduced-motion: reduce) { .petals { display: none; } .button { transition: none; } }

/* ------------------------------------------------------------------ skiltys */
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section-alt { background: var(--night-2); }
.section-head { display: grid; gap: .6rem; margin-bottom: 1.75rem; max-width: 46rem; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--lantern); font-family: var(--pixel); font-size: 1.35rem; font-weight: 400; letter-spacing: .04em; line-height: 1; }
.eyebrow img { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ katalogas: sąrašas + aprašymas */
.catalog-body { display: grid; grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); }
.catalog-list { display: grid; align-content: start; gap: .8rem; padding: 1.1rem; background: var(--night-2); box-shadow: inset -2px 0 0 var(--edge); }
.slot-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem; width: 100%; padding: .65rem .85rem;
  background: var(--slot); color: var(--text); text-align: left; text-decoration: none; border: 0; cursor: pointer;
  box-shadow: var(--frame-2), inset 0 2px 0 var(--bevel); }
.slot-row:hover { background: var(--slot-hover); color: var(--text); }
.slot-row[aria-current="true"], .slot-row.is-selected { background: #3A3550; box-shadow: 0 -2px 0 0 var(--lantern), 0 2px 0 0 var(--lantern), -2px 0 0 0 var(--lantern), 2px 0 0 0 var(--lantern), inset 0 2px 0 #514A6E; }
.slot-row img { width: 40px; height: 40px; }
.slot-row-name { display: grid; min-width: 0; line-height: 1.25; }
.slot-row-name strong { font-family: var(--pixel); font-size: 1.5rem; font-weight: 400; line-height: 1; letter-spacing: .02em; }
.slot-row-name small { color: var(--muted); font-size: .85rem; }
.slot-row-price { color: var(--lantern); font-family: var(--sans); font-size: 1.05rem; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slot-row-price.is-example { color: var(--muted); font-family: var(--pixel); font-size: 1.2rem; font-weight: 400; letter-spacing: .02em; }
.slot-row-name strong { overflow-wrap: anywhere; }
.catalog-list.is-flat { padding: 0; background: none; box-shadow: none; }
.state-on { color: var(--moss); font-weight: 650; }
.state-off { color: var(--coral); font-weight: 650; }
.catalog-detail { display: grid; align-content: start; gap: 1.15rem; padding: 1.75rem; scroll-margin-top: 4.5rem; }
.detail-title { display: grid; justify-items: start; gap: .45rem; min-width: 0; }
.detail-title h3 { overflow-wrap: anywhere; }
.empty-state { display: flex; align-items: center; gap: 1rem; color: var(--muted); }
.empty-state img { width: 48px; height: 48px; }
.detail-head { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.item-frame { display: grid; place-items: center; flex: none; width: 5.5rem; height: 5.5rem; background: var(--night-2);
  box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line), inset 0 0 0 3px var(--edge); }
.item-frame img { width: 64px; height: 64px; }
.detail-head h3 { font-size: 2.5rem; }
.detail-text { color: #DAD5CC; max-width: 40rem; white-space: pre-line; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.fact { display: grid; align-content: start; gap: .15rem; padding: .7rem .85rem; background: var(--night-2); box-shadow: var(--frame-2); }
.fact dt { color: var(--muted); font-size: .82rem; }
.fact dd { margin: 0; font-family: var(--pixel); font-size: 1.45rem; line-height: 1.2; letter-spacing: .02em; }
.fact dd.price { color: var(--lantern); font-family: var(--sans); font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.fine { color: var(--muted); font-size: .9rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; background: var(--slot); box-shadow: var(--frame-2); color: var(--muted); font-family: var(--pixel); font-size: 1.1rem; line-height: 1.35; letter-spacing: .03em; white-space: nowrap; }
.badge-gold { color: var(--lantern); }
.badge-moss { color: var(--moss); background: #22352B; }
.badge-blossom { color: var(--blossom); background: #3A2836; }
.badge-pond { color: var(--pond); background: #1F2C45; }

/* ------------------------------------------------------------------ kelias (kaip pasiekimų medis) */
.path { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.path::before { content: ""; position: absolute; top: 2.6rem; left: 2.75rem; right: calc(33.333% - 2.75rem); height: 0;
  border-top: 4px dashed var(--line); }
.path li { position: relative; display: grid; align-content: start; gap: .6rem; }
.path-node { position: relative; display: grid; place-items: center; width: 5.5rem; height: 5.5rem; background: var(--panel);
  box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line), inset 0 0 0 3px var(--edge); }
.path-node img { width: 48px; height: 48px; }
.path-node.is-done { box-shadow: 0 -3px 0 0 var(--lantern), 0 3px 0 0 var(--lantern), -3px 0 0 0 var(--lantern), 3px 0 0 0 var(--lantern), inset 0 0 0 3px var(--edge), 0 0 30px rgba(242, 181, 68, .25); }
.path-node.is-now { box-shadow: 0 -3px 0 0 var(--blossom), 0 3px 0 0 var(--blossom), -3px 0 0 0 var(--blossom), 3px 0 0 0 var(--blossom), inset 0 0 0 3px var(--edge), 0 0 30px rgba(235, 167, 198, .3); }
.path-node::after { counter-increment: step; content: counter(step); position: absolute; right: -10px; top: -10px; display: grid; place-items: center;
  width: 1.6rem; height: 1.6rem; background: var(--lantern); color: var(--ink); font-family: var(--pixel); font-size: 1.25rem; line-height: 1; box-shadow: var(--frame-2); }
.path h3 { font-size: 1.75rem; }
.path p { color: var(--muted); }

/* ------------------------------------------------------------------ du langai greta */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; align-items: start; }
.link-list { display: grid; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; background: var(--slot); color: var(--text); text-decoration: none; box-shadow: var(--frame-2), inset 0 2px 0 var(--bevel); }
.link-list a:hover { background: var(--slot-hover); color: var(--lantern); }
.link-list a::after { content: "›"; color: var(--lantern); font-family: var(--pixel); font-size: 1.6rem; line-height: 1; }

/* ------------------------------------------------------------------ formos */
form { display: grid; gap: 1rem; margin: 0; }
.field { display: grid; gap: .35rem; font-weight: 650; }
.field small { color: var(--muted); font-weight: 450; font-size: .88rem; }
.input, .field input, .field textarea, .field select {
  width: 100%; min-height: 2.9rem; padding: .55rem .8rem; border: 0; background: var(--night); color: var(--text);
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line), inset 0 2px 0 #06070B;
  font-family: var(--sans); font-weight: 500;
}
.field input:focus, .field textarea:focus, .input:focus { outline: none; box-shadow: 0 -2px 0 0 var(--lantern), 0 2px 0 0 var(--lantern), -2px 0 0 0 var(--lantern), 2px 0 0 0 var(--lantern), 0 0 22px rgba(242, 181, 68, .2); }
.field input::placeholder { color: #7D8291; }
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
form > .button { justify-self: start; }
.inline-form { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; }
.inline-form .field { flex: 1 1 15rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 450; color: #DAD5CC; }
.check input { appearance: none; flex: none; width: 1.3rem; height: 1.3rem; margin: .15rem 0 0; background: var(--night); cursor: pointer;
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line); }
.check input:checked { background: var(--lantern); box-shadow: 0 -2px 0 0 #8A4E12, 0 2px 0 0 #8A4E12, -2px 0 0 0 #8A4E12, 2px 0 0 0 #8A4E12, inset 0 0 0 3px var(--night); }
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; background: #1F2C45; box-shadow: var(--frame-2); color: #D3E1F5; }
.notice img { flex: none; width: 22px; height: 22px; margin-top: .15rem; }
.notice-warm { background: #2E2630; color: #F3DCC0; }
.notice-moss { background: #22352B; color: #CFE6BD; }
.notice-error { background: #3A2026; color: #F6CFC8; }

/* ------------------------------------------------------------------ puslapiai */
.page { padding-block: clamp(2.25rem, 5vw, 4rem); }
.crumbs { display: flex; gap: .5rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; margin-bottom: 1.1rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--lantern); }
.crumbs [aria-current] { color: var(--text); }
.page-head { display: grid; gap: .6rem; margin-bottom: 1.75rem; }
.page-head p { color: var(--muted); max-width: 44rem; }
.checkout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.75rem; align-items: start; }
.details { display: grid; gap: 0; }
.details > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .65rem; box-shadow: inset 0 -2px 0 var(--slot); }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 650; text-align: right; }
.details dd.price { color: var(--lantern); font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.status-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; position: relative; margin: 0; padding: .5rem 0 .25rem; list-style: none; }
.status-path::before { content: ""; position: absolute; top: 2.3rem; left: 16%; right: 16%; border-top: 4px dashed var(--line); }
.status-path .step { position: relative; display: grid; align-content: start; justify-items: center; gap: .55rem; text-align: center; }
.status-path .path-node { width: 4.25rem; height: 4.25rem; }
.status-path .path-node::after { display: none; }
.status-path .path-node img { width: 40px; height: 40px; }
.status-path strong { font-family: var(--pixel); font-weight: 400; font-size: 1.4rem; line-height: 1; letter-spacing: .02em; }
.status-path small { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .7rem .6rem; text-align: left; box-shadow: inset 0 -2px 0 var(--slot); }
th { color: var(--muted); font-weight: 650; font-size: .85rem; }
td.price, td .price { color: var(--lantern); font-weight: 750; font-variant-numeric: tabular-nums; }
td small { color: var(--muted); }
.table-wrap { max-width: 100%; overflow-x: auto; }
.table-item { display: inline-flex; align-items: center; gap: .55rem; }
.table-item img { flex: none; width: 24px; height: 24px; }
.orders-table td { vertical-align: top; }
.orders-table td:first-child { min-width: 15rem; }
.orders-table .table-item { margin-bottom: .2rem; }
.order-action { gap: .5rem; }
.order-action .check { font-size: .88rem; }
.mail-item { padding: .75rem 1rem; background: var(--night-2); box-shadow: var(--frame-2); }
.mail-item summary { cursor: pointer; font-weight: 650; }
.mail-item[open] summary { margin-bottom: .75rem; }
.mail-item form { margin-top: .75rem; }
.mail-message { margin: 0; padding: .85rem 1rem; background: var(--night); box-shadow: inset 0 2px 0 #06070B; color: #DAD5CC; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ taisyklių puslapiai */
.prose { display: grid; gap: 1.6rem; }
.prose h2 { margin-bottom: .55rem; color: var(--lantern); font-size: 1.9rem; }
.prose p, .prose li { max-width: 72ch; color: #DAD5CC; overflow-wrap: anywhere; }
.prose p + p { margin-top: .6rem; }
.prose ul { display: grid; gap: .35rem; padding-inline-start: 1.3rem; }

/* ------------------------------------------------------------------ poraštė */
.site-footer { position: relative; margin-top: 0; background: #0B0D14; color: var(--muted); font-size: .92rem; }
/* Salos kraštas: žolė ir žemė 8 px blokais */
.site-footer::before { content: ""; display: block; height: 16px;
  background:
    linear-gradient(#5F8240 0 4px, #3B5A2C 4px 8px, transparent 8px),
    repeating-linear-gradient(90deg, #3A2C3F 0 16px, #45334A 16px 24px, #3A2C3F 24px 40px, #2A2433 40px 48px);
}
.site-footer .shell { display: grid; gap: 1.5rem; padding-block: 2.25rem 2rem; }
.site-footer .brand img { width: 32px; height: 32px; }
.site-footer .brand-name strong { font-size: 1.5rem; }
.footer-top { display: flex; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--lantern); }
.withdraw-link { padding: .35rem .75rem; color: var(--lantern) !important; box-shadow: 0 -2px 0 0 #6E4C2A, 0 2px 0 0 #6E4C2A, -2px 0 0 0 #6E4C2A, 2px 0 0 0 #6E4C2A; }
.independence { color: var(--dim); font-size: .75rem; letter-spacing: .04em; }

/* ------------------------------------------------------------------ administravimas: piktogramų parinkimas */
.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr)); gap: .9rem; padding: 0; margin: 0; border: 0; }
.icon-picker legend { margin-bottom: .6rem; font-weight: 650; }
.icon-choice { position: relative; display: grid; justify-items: center; gap: .3rem; padding: .6rem .3rem .45rem; background: var(--slot); cursor: pointer;
  box-shadow: var(--frame-2), inset 0 2px 0 var(--bevel); font-size: .78rem; color: var(--muted); text-align: center; }
.icon-choice input { position: absolute; opacity: 0; }
.icon-choice img { width: 40px; height: 40px; }
.icon-choice:hover { background: var(--slot-hover); }
.icon-choice.is-selected, .icon-choice:has(input:checked) { background: #3A3550; color: var(--lantern);
  box-shadow: 0 -2px 0 0 var(--lantern), 0 2px 0 0 var(--lantern), -2px 0 0 0 var(--lantern), 2px 0 0 0 var(--lantern); }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.admin-head .page-head { margin: 0; }
.admin-head h1 { font-size: clamp(2.6rem, 5vw, 3.4rem); }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.75rem; align-items: start; }
.icon-choice:has(input:focus-visible) { outline: 3px solid var(--blossom); outline-offset: 3px; }
#paslaugos, #uzsakymai, #paslaugos-redagavimas { scroll-margin-top: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.stat { display: grid; gap: .1rem; padding: .85rem 1rem; background: var(--panel); box-shadow: var(--frame-2), inset 0 2px 0 var(--bevel); }
.stat dt { color: var(--muted); font-size: .82rem; }
.stat dd { margin: 0; color: var(--lantern); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ priverstinės spalvos (Windows kontrastas) */
@media (forced-colors: active) {
  .window, .window-bar, .button, .slot-row, .icon-button, .badge, .notice, .fact, .stat, .item-frame, .path-node, .link-list a,
  .field input, .field textarea, .check input, .icon-choice { border: 2px solid CanvasText; }
  .slot-row[aria-current="true"], .icon-choice:has(input:checked) { border-color: Highlight; }
  .check input:checked { background: Highlight; }
}

/* ------------------------------------------------------------------ siauri ekranai */
@media (max-width: 900px) {
  .catalog-body, .checkout, .split, .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .catalog-list { box-shadow: inset 0 -2px 0 var(--edge); }
  .path { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .path::before { top: 2.75rem; bottom: 2.75rem; left: 2.6rem; right: auto; height: auto; border-top: 0; border-left: 4px dashed var(--line); }
  .path li { grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1.25rem; }
  .path li > :not(.path-node) { grid-column: 2; }
  .path li .path-node { grid-row: 1 / span 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { font-size: 16px; }
  .shell, .shell-narrow { width: calc(100% - 2rem); }
  .site-header .shell { gap: .25rem; }
  .site-nav a { padding: .4rem .55rem; font-size: .9rem; }
  .hero .shell { min-height: 0; padding-block: 15rem 2rem; }
  .hero-art { height: 16rem; object-position: 82% 50%; }
  .hero-window .window-meta, .catalog .window-meta { display: none; }
  .hero-window { background: var(--panel); }
  .hero-window .window-body { padding: 1.25rem; }
  .hero-caption { right: .75rem; top: .75rem; bottom: auto; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .catalog-detail { padding: 1.25rem; }
  .status-path .path-node { width: 3.5rem; height: 3.5rem; }
  /* Pirkimų istorija telefone: kiekvienas užsakymas kaip kortelė (paslauga ir kaina, po jais data ir būsena) */
  .history-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .history-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; align-items: center; padding-block: .8rem; box-shadow: inset 0 -2px 0 var(--slot); }
  .history-table td { padding: 0; box-shadow: none; }
  .history-table td:nth-child(1) { grid-area: 2 / 1; color: var(--muted); font-size: .85rem; }
  .history-table td:nth-child(2) { grid-area: 1 / 1; }
  .history-table td:nth-child(3) { grid-area: 1 / 2; text-align: right; }
  .history-table td:nth-child(4) { grid-area: 2 / 2; justify-self: end; }
  .history-table tr { padding-inline: 2px; }
}
