/* Ethers League — "Distillery Glass" design system
   Mist base, deep violet ink, glass-teal highlight lines, cork accents.
   Signature marks: .vial-num (glass vial behind numerals), .wisp (rising
   vapour divider), .corked (cork-stopper bullets). */

:root {
  --mist: #E9E6EF;
  --mist-deep: #DCD7E6;
  --pane: #F6F4F9;
  --pane-hi: #FCFBFE;
  --ink: #251D32;
  --ink-soft: #5A5268;
  --violet: #4B2A7B;
  --violet-deep: #2F1A52;
  --violet-veil: #CFC3E3;
  --glass: #7FC8C2;
  --glass-line: #A9DCD7;
  --glass-deep: #2E7C76;
  --cork: #B99A78;
  --cork-deep: #8C6A4E;
  --label: #F8F5EE;

  --f-display: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --f-label: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --r-glass: 22px;
  --r-tube: 999px;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 40px -26px rgba(47,26,82,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--mist);
  background-image: linear-gradient(180deg, #F1EFF5 0, var(--mist) 420px, var(--mist-deep) 100%);
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet-deep); text-decoration-color: var(--glass); }
:focus-visible { outline: 2px solid var(--glass-deep); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; color: var(--violet-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.05em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--violet); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

.eyebrow {
  font-family: var(--f-label);
  font-size: .95rem;
  letter-spacing: .08em;
  color: var(--glass-deep);
  margin: 0 0 .7rem;
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; border-radius: 2px; background: var(--glass); }
.lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(241,239,245,.86);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(75,42,123,.12);
}
.site-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-line) 30%, var(--glass-line) 70%, transparent);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--violet-deep); }
.brand img { width: 38px; height: 38px; }
.brand-name { font-family: var(--f-display); font-size: 1.55rem; line-height: 1; display: block; }
.brand-tag { font-family: var(--f-label); font-size: .78rem; letter-spacing: .06em; color: var(--ink-soft); display: block; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem;
  padding: 8px 14px; border-radius: var(--r-tube);
}
.nav a:hover { background: rgba(207,195,227,.45); color: var(--violet-deep); }
.nav a[aria-current="page"] { background: var(--pane-hi); color: var(--violet); box-shadow: inset 0 0 0 1px rgba(75,42,123,.18); }
.nav a.nav-play { background: var(--violet); color: #fff; margin-left: 6px; }
.nav a.nav-play:hover { background: var(--violet-deep); }
.nav a.nav-play[aria-current="page"] { background: var(--violet-deep); color: #fff; }
.age-chip {
  font-family: var(--f-label); font-size: .82rem; letter-spacing: .04em;
  padding: 3px 10px; border-radius: var(--r-tube);
  border: 1px solid var(--cork); color: var(--cork-deep); background: var(--label);
  white-space: nowrap;
}
.menu-btn {
  display: none; align-items: center; gap: 8px;
  font: 600 .95rem var(--f-body); color: var(--violet-deep);
  background: var(--pane-hi); border: 1px solid rgba(75,42,123,.2); border-radius: var(--r-tube);
  padding: 8px 14px 8px 10px; cursor: pointer;
}
.menu-btn img { width: 14px; height: 16px; transition: transform .3s ease; }
.menu-btn[aria-expanded="true"] img { transform: translateY(-3px) rotate(-12deg); }

/* ---------- glass panels ---------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(252,251,254,.92), rgba(240,237,246,.82));
  border: 1px solid rgba(75,42,123,.13);
  border-radius: var(--r-glass);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3.4vw, 38px);
}
.glass::before {
  content: ""; position: absolute; left: 12px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--glass-line) 18%, rgba(169,220,215,.25) 82%, transparent);
  pointer-events: none;
}

/* ---------- signature marks ---------- */
.vial-num {
  position: relative; display: inline-grid; place-items: center;
  width: 58px; height: 84px; flex: none;
  font-family: var(--f-display); font-size: 1.8rem; color: var(--violet-deep);
}
.vial-num::before {
  content: ""; position: absolute; inset: 0;
  background: url("/et-assets/img/vial.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(127,200,194,.55));
  z-index: -1;
}
.vial-num > span { position: relative; top: 12px; }
.vial-num { isolation: isolate; }

.wisp {
  display: flex; align-items: flex-end; gap: 100px;
  height: 52px; margin: clamp(34px, 6vw, 64px) auto;
  background: url("/et-assets/img/wisp.svg") center bottom / 104px 52px no-repeat;
  max-width: var(--wrap);
}
.wisp::before, .wisp::after { content: ""; flex: 1; height: 1.4px; margin-bottom: .3px; }
.wisp::before { background: linear-gradient(90deg, transparent, var(--glass)); }
.wisp::after { background: linear-gradient(90deg, var(--glass), transparent); }
.wisp.is-tight { margin: 28px 0; max-width: none; }

.corked { list-style: none; padding: 0; margin: 0 0 1.1em; }
.corked li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.corked li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 14px;
  background: url("/et-assets/img/cork.svg") center / contain no-repeat;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem var(--f-body); text-decoration: none; cursor: pointer;
  padding: 13px 24px; border-radius: var(--r-tube); border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-violet { background: var(--violet); color: #fff; box-shadow: 0 10px 22px -14px rgba(47,26,82,.9), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-violet:hover { background: var(--violet-deep); color: #fff; }
.btn-glass { background: var(--pane-hi); color: var(--violet-deep); border-color: rgba(75,42,123,.22); }
.btn-glass:hover { border-color: var(--glass-deep); color: var(--violet-deep); }

/* ---------- hero ---------- */
.hero { padding: clamp(34px, 6vw, 72px) 0 10px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-visual { margin: 0; max-width: 420px; justify-self: end; width: 100%; }
.hero-visual img {
  width: 100%; height: auto; border-radius: 22px;
  border: 1px solid rgba(75,42,123,.18);
  box-shadow: var(--shadow);
  background: #0a2a1c;
}
.hero h1 em { font-style: italic; color: var(--violet); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; padding: 0; list-style: none; }
.hero-notes li {
  font-size: .86rem; font-weight: 500; color: var(--ink-soft);
  padding: 5px 12px; border-radius: var(--r-tube);
  background: rgba(252,251,254,.75); border: 1px solid rgba(75,42,123,.12);
}
.hero-notes li strong { color: var(--violet-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- compliance strip ---------- */
.trust {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin-top: clamp(34px, 5vw, 56px);
  background: var(--label);
  border: 1px solid rgba(140,106,78,.35);
  border-radius: var(--r-glass);
  box-shadow: 0 0 0 5px rgba(248,245,238,.55), 0 0 0 6px rgba(140,106,78,.2);
}
.trust > div { padding: 20px 22px; border-left: 1px dashed rgba(140,106,78,.35); }
.trust > div:first-child { border-left: 0; }
.trust b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.22rem; color: var(--violet-deep); margin-bottom: 2px; }
.trust span { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; display: block; }

/* ---------- content sections ---------- */
.section { padding: 0 0 8px; }
.section-head { max-width: 720px; margin-bottom: 30px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step h3 { margin-top: 10px; }
.step p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.aside-note h3 { font-size: 1.25rem; }
.aside-note p { font-size: .96rem; color: var(--ink-soft); }

.page-head { padding: clamp(36px, 6vw, 70px) 0 0; }
.page-head .lede { margin-bottom: 0; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.prose p, .prose li { color: #342B42; }
.prose .corked li { margin-bottom: .5em; }
.dropcap::first-letter {
  font-family: var(--f-display); float: left; font-size: 3.6em; line-height: .82;
  padding: .06em .1em 0 0; color: var(--violet);
}
.updated { font-family: var(--f-label); color: var(--ink-soft); letter-spacing: .04em; font-size: .92rem; }

.faq { display: grid; gap: 16px; }
.faq-item { padding: 22px 26px 18px 34px; }
.faq-item h3 { font-size: 1.22rem; margin-bottom: .35em; }
.faq-item p { margin: 0; color: #342B42; }
.faq-item p + p { margin-top: .7em; }
.contact-card dl { margin: 0; }
.contact-card dt { font-family: var(--f-label); color: var(--glass-deep); letter-spacing: .05em; font-size: .9rem; margin-top: 14px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 2px 0 0; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* ---------- paytable / game page ---------- */
.paytable { width: 100%; border-collapse: collapse; font-size: .97rem; }
.paytable th {
  font-family: var(--f-label); font-weight: 400; letter-spacing: .05em; color: var(--glass-deep);
  text-align: right; padding: 0 10px 10px; border-bottom: 1px solid rgba(75,42,123,.16);
}
.paytable th:first-child { text-align: left; padding-left: 0; }
.paytable td { padding: 10px; text-align: right; border-bottom: 1px solid rgba(75,42,123,.08); font-variant-numeric: tabular-nums; }
.paytable td:first-child { text-align: left; padding-left: 0; }
.paytable tr:last-child td { border-bottom: 0; }
.pt-sym { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.pt-sym i { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--pane-hi); box-shadow: inset 0 0 0 1px rgba(75,42,123,.12); padding: 3px; }
.pt-top td { color: var(--violet-deep); font-weight: 600; }
.lines-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.line-card { text-align: center; font-size: .85rem; color: var(--ink-soft); }
.line-card svg { width: 100%; height: auto; margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-foot {
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--violet-deep);
  color: #DCD6E8;
  position: relative;
}
.site-foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--glass) 25%, var(--glass-line) 75%, transparent);
}
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: clamp(26px, 4vw, 54px); padding-top: clamp(40px, 6vw, 64px); padding-bottom: 34px; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.foot-brand img { width: 34px; height: 34px; background: var(--pane); border-radius: 50%; padding: 3px; }
.foot-brand span { font-family: var(--f-display); font-size: 1.45rem; color: #fff; }
.site-foot p { font-size: .94rem; line-height: 1.6; }
.site-foot h2 { font-family: var(--f-label); font-size: .95rem; letter-spacing: .08em; color: var(--glass-line); margin: 0 0 12px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-links a { color: #F1EEF7; text-decoration: none; }
.foot-links a:hover { color: var(--glass-line); text-decoration: underline; }
.foot-age { display: flex; gap: 14px; align-items: flex-start; }
.foot-age .age-badge {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.25rem; color: var(--violet-deep);
  background: var(--label); box-shadow: 0 0 0 3px var(--violet-deep), 0 0 0 4px var(--cork);
}
.foot-base { border-top: 1px solid rgba(169,220,215,.2); padding-top: 18px; padding-bottom: 26px; font-size: .85rem; color: #B7AECB; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot-base p { margin: 0; font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; justify-self: start; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust > div:nth-child(3) { border-left: 0; }
  .trust > div:nth-child(n+3) { border-top: 1px dashed rgba(140,106,78,.35); }
  .split { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .head-row { flex-wrap: wrap; }
  .nav {
    display: none; order: 3; flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 6px 0 18px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 16px; border-radius: 14px; font-size: 1.05rem; border: 1px solid rgba(75,42,123,.1); background: rgba(252,251,254,.7); }
  .nav a.nav-play { margin-left: 0; text-align: center; }
  .head-row .age-chip { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .lines-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-tag, .age-more { display: none; }
  .brand-name { font-size: 1.3rem; }
  .brand { gap: 9px; }
  .brand img { width: 32px; height: 32px; }
  .head-row { gap: 10px; }
  .menu-btn { padding: 7px 12px 7px 9px; }
  .trust { grid-template-columns: 1fr; }
  .trust > div { border-left: 0 !important; }
  .trust > div + div { border-top: 1px dashed rgba(140,106,78,.35); }
  .foot-grid { grid-template-columns: 1fr; }
  .faq-item { padding: 20px 20px 16px 28px; }
  .paytable { font-size: .9rem; }
  .paytable td, .paytable th { padding-left: 6px; padding-right: 6px; }
  .pt-sym i { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
