/* Vejarkiškių svetainė - be išorinių šriftų, slapukų ir sekimo */
:root {
  --bg: #100d0b;
  --bg-2: #17120f;
  --card: #1d1713;
  --card-2: #241c17;
  --line: #3a2e25;
  --text: #f1e8da;
  --muted: #b9ab96;
  --dim: #8a7d6b;
  --gold: #e9b44c;
  --gold-2: #ffd77a;
  --red: #9c2433;
  --ok: #6fd27f;
  --bad: #ff7b72;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --serif: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
code, .mono { font-family: var(--mono); }

/* --- header ------------------------------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(16, 13, 11, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.logo .crown { color: var(--gold); font-size: 1.4rem; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--card-2); }

/* --- hero --------------------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid; align-items: end;
  background: var(--bg-2) url("hero.jpg") center 35% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 13, 11, .15) 0%, rgba(16, 13, 11, .55) 55%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: 120px 0 56px; }
.hero h1 { text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 640px; color: #f6eedf; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.ip {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(29, 23, 19, .92); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 10px 10px 16px; margin: 8px 0 18px; box-shadow: var(--shadow);
}
.ip .addr { font-family: var(--mono); font-size: 1.1rem; font-weight: 700; color: var(--gold-2); word-break: break-all; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- buttons ------------------------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; padding: 11px 18px;
  font: 700 1rem/1.2 var(--sans); cursor: pointer; text-decoration: none;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1a05; }
.btn-gold:hover { color: #1a1003; filter: brightness(1.06); }
.btn-ghost { background: rgba(36, 28, 23, .9); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: #fff; }
.btn-sm { padding: 8px 12px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }

/* --- sections ----------------------------------------------------------------------------------- */
section { padding: 56px 0; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tile .ico { font-size: 1.6rem; margin-bottom: 6px; }
.tile h3 { font-size: 1.1rem; }
.tile p { color: var(--muted); margin: 0; }
.page-head { padding: 48px 0 8px; }
.note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 14px 16px; color: var(--muted); }

/* --- rank / product cards ----------------------------------------------------------------------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); align-items: start; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 640px; }
.card {
  --c: var(--gold);
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.card::before { content: ""; height: 6px; background: var(--c); }
.card .body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card .head { display: flex; align-items: center; gap: 8px; }
.card .name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--c); margin: 0; }
.card .tag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--c); border: 1px solid var(--c); border-radius: 999px; padding: 2px 10px; width: fit-content; }
.card .tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 24px; margin-bottom: -6px; }
.card .price { font-size: 1.8rem; font-weight: 800; white-space: nowrap; }
.card .price small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.card .from { color: var(--muted); font-weight: 600; margin: 0; }
.card ul { margin: 0; padding-left: 1.1em; }
.card li { margin: 2px 0; }
.card li::marker { color: var(--c); }
.card details { border-top: 1px solid var(--line); padding-top: 10px; }
.card summary { cursor: pointer; color: var(--gold-2); font-weight: 700; }
.card details h4 { margin: 12px 0 4px; font-size: .95rem; color: var(--text); }
.card details ul { color: var(--muted); }
.card .buy { margin-top: auto; padding-top: 6px; }
.card .buy .btn { width: 100%; }
.card.best { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), var(--shadow); }

/* --- odds table --------------------------------------------------------------------------------- */
.odds { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.odds th, .odds td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.odds th { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.odds td:last-child, .odds th:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.odds tr:last-child td { border-bottom: 0; }
.odds .rank td:first-child { font-weight: 700; color: var(--gold-2); }

/* --- prose (rules, terms) ----------------------------------------------------------------------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: 4px 0; }

/* --- buy dialog --------------------------------------------------------------------------------- */
dialog {
  width: min(460px, 100% - 32px); border: 1px solid var(--line); border-radius: 18px;
  background: var(--card); color: var(--text); padding: 0; box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(0, 0, 0, .65); }
dialog form { padding: 22px; display: grid; gap: 14px; }
dialog h3 { margin: 0; }
label { font-weight: 700; }
input[type="text"] {
  width: 100%; font: 600 1.1rem var(--mono); color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
input[type="text"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .95rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--gold); }
.err { color: var(--bad); font-size: .9rem; min-height: 1.2em; margin: -6px 0 0; }
.row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.summary { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* --- footer ------------------------------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: .9rem; }
footer .wrap { display: flex; gap: 16px 28px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--card-2); border: 1px solid var(--gold); color: var(--text); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.toast.show { opacity: 1; }

@media (max-width: 560px) {
  .top { position: static; }
  .top .wrap { gap: 4px; padding: 8px 0; }
  .nav { gap: 2px; margin-left: -8px; }
  .nav a { padding: 6px 8px; font-size: .95rem; }
  section { padding: 40px 0; }
  .hero .wrap { padding: 96px 0 40px; }
  .card .price { font-size: 1.7rem; }
}
