/* Ediners — main stylesheet. System fonts only, no external requests. */

:root {
    --ed-bg: #0f0b1a;
    --ed-bg-2: #140f22;
    --ed-surface: #1a1428;
    --ed-surface-2: #251c39;
    --ed-surface-3: #31264a;
    --ed-line: rgba(255, 255, 255, .12);
    --ed-line-2: rgba(255, 255, 255, .2);
    --ed-ink: #f7f3ff;
    --ed-muted: #b9b0d3;
    --ed-cherry: #ff2d55;
    --ed-cherry-2: #ff5c7c;
    --ed-mint: #2ee6c5;
    --ed-butter: #ffd166;
    --ed-chrome: linear-gradient(180deg, #f4f6fb 0%, #aeb6c8 48%, #e6e9f2 52%, #8f97aa 100%);
    --ed-r-sm: 8px;
    --ed-r: 14px;
    --ed-r-lg: 22px;
    --ed-s1: 4px;
    --ed-s2: 8px;
    --ed-s3: 12px;
    --ed-s4: 16px;
    --ed-s5: 24px;
    --ed-s6: 32px;
    --ed-s7: 48px;
    --ed-s8: 64px;
    --ed-font-head: "Futura", "Avenir Next", "Century Gothic", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --ed-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ed-font-num: "SF Mono", "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", ui-monospace, monospace;
    --ed-ease: cubic-bezier(.2, .8, .2, 1);
    --ed-shadow: 0 18px 40px -18px rgba(0, 0, 0, .75);
    --ed-glow: 0 0 0 1px rgba(255, 45, 85, .4), 0 10px 30px -10px rgba(255, 45, 85, .55);
    --ed-ticket-w: 312px;
    --ed-top-h: 64px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }

body {
    margin: 0;
    background:
        radial-gradient(1200px 520px at 85% -10%, rgba(255, 45, 85, .14), transparent 60%),
        radial-gradient(900px 480px at -10% 10%, rgba(46, 230, 197, .09), transparent 60%),
        var(--ed-bg);
    color: var(--ed-ink);
    font: 16px/1.55 var(--ed-font-body);
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ed-mint); text-underline-offset: 3px; }
a:hover { color: #7ff3de; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--ed-font-head); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 var(--ed-s3); }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 var(--ed-s3); }
:focus-visible { outline: 2px solid var(--ed-butter); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.ed-sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; margin: -1px;
}

.ed-skip {
    position: absolute; left: var(--ed-s3); top: -60px; z-index: 100;
    background: var(--ed-butter); color: #1a1200; padding: var(--ed-s2) var(--ed-s4);
    border-radius: var(--ed-r-sm); font-weight: 700; text-decoration: none;
}
.ed-skip:focus { top: var(--ed-s3); }

.ed-ico { width: 20px; height: 20px; flex: none; }

.ed-kicker {
    font: 700 .78rem/1.2 var(--ed-font-body); letter-spacing: .14em; text-transform: uppercase;
    color: var(--ed-mint); margin-bottom: var(--ed-s2);
}

/* ------------------------------------------------------------ strip + top */

.ed-strip {
    display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ed-s1) var(--ed-s4);
    padding: 6px var(--ed-s4); font-size: .78rem; font-weight: 600; letter-spacing: .02em;
    background: linear-gradient(90deg, #3a0d1d, #24102e 50%, #0c2b2a);
    border-bottom: 1px solid var(--ed-line);
    color: #ffe3ea;
}
.ed-strip span + span::before { content: "·"; margin-right: var(--ed-s4); color: var(--ed-muted); }
.ed-strip__age {
    background: var(--ed-cherry); color: #fff; border-radius: 99px; padding: 0 8px; font-weight: 800;
}
.ed-strip .ed-strip__age + span::before { content: none; }

.ed-top {
    position: sticky; top: 0; z-index: 40;
    background: rgba(15, 11, 26, .86);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--ed-line);
}
.ed-top__row {
    display: flex; align-items: center; gap: var(--ed-s4);
    min-height: var(--ed-top-h); padding: 0 var(--ed-s5);
    max-width: 1680px; margin: 0 auto;
}
.ed-brand { display: inline-flex; align-items: center; gap: var(--ed-s2); color: var(--ed-ink); text-decoration: none; }
.ed-brand:hover { color: var(--ed-ink); }
.ed-brand__mark { width: 40px; height: 40px; filter: drop-shadow(0 4px 10px rgba(255, 45, 85, .45)); }
.ed-brand__word {
    font: 800 1.45rem/1 var(--ed-font-head); letter-spacing: -.02em;
    background: linear-gradient(180deg, #fff 30%, #ffc2cf); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.ed-find {
    flex: 1; max-width: 520px; position: relative; display: flex; align-items: center;
    background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: 99px;
    padding: 0 var(--ed-s3); height: 42px; transition: border-color .2s var(--ed-ease), background .2s var(--ed-ease);
}
.ed-find:focus-within { border-color: var(--ed-mint); background: var(--ed-surface-2); }
.ed-find .ed-ico { color: var(--ed-muted); }
.ed-find input {
    flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 0 var(--ed-s2); height: 100%;
}
.ed-find input::placeholder { color: var(--ed-muted); }
.ed-find__key {
    font: 600 .75rem/1 var(--ed-font-num); color: var(--ed-muted); border: 1px solid var(--ed-line-2);
    border-radius: 6px; padding: 3px 7px;
}
.ed-top__end { margin-left: auto; display: flex; align-items: center; gap: var(--ed-s2); }

.ed-pill {
    display: inline-flex; align-items: center; gap: var(--ed-s2); padding: 8px 14px;
    background: var(--ed-surface-2); border: 1px solid var(--ed-line-2); border-radius: 99px;
    color: var(--ed-ink); text-decoration: none; font: 700 .95rem/1 var(--ed-font-num);
    font-variant-numeric: tabular-nums;
}
.ed-pill:hover { color: var(--ed-ink); border-color: var(--ed-mint); }
.ed-pill__dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0 12%, var(--ed-mint) 30%, #0a7d6b 100%);
    box-shadow: 0 0 10px rgba(46, 230, 197, .7);
}
.ed-pill__unit { font: 600 .78rem/1 var(--ed-font-body); color: var(--ed-muted); }
.ed-avatar {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--ed-cherry), #8a2bff); color: #fff;
    font-weight: 800; text-decoration: none; border: 2px solid rgba(255, 255, 255, .25);
}
.ed-avatar:hover { color: #fff; }

.ed-board { border-top: 1px solid var(--ed-line); }
.ed-board ul {
    list-style: none; margin: 0 auto; padding: 0 var(--ed-s5); max-width: 1680px;
    display: flex; gap: var(--ed-s1); overflow-x: auto; scrollbar-width: none;
}
.ed-board ul::-webkit-scrollbar { display: none; }
.ed-board a {
    display: inline-flex; align-items: center; gap: var(--ed-s2); white-space: nowrap;
    padding: 12px 14px; color: var(--ed-muted); text-decoration: none; font-weight: 600; font-size: .95rem;
    border-bottom: 2px solid transparent; transition: color .2s var(--ed-ease), border-color .2s var(--ed-ease);
}
.ed-board a:hover { color: var(--ed-ink); }
.ed-board a[aria-current="page"] { color: var(--ed-ink); border-bottom-color: var(--ed-cherry); }
.ed-board a[aria-current="page"] .ed-ico { color: var(--ed-cherry); }

/* ------------------------------------------------------------ buttons */

.ed-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--ed-s2);
    min-height: 42px; padding: 0 18px; border-radius: 99px; border: 1px solid transparent;
    font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .16s var(--ed-ease), background .2s var(--ed-ease), border-color .2s var(--ed-ease), box-shadow .2s var(--ed-ease);
}
.ed-btn:active { transform: scale(.97); }
.ed-btn--cherry { background: linear-gradient(180deg, var(--ed-cherry-2), var(--ed-cherry)); color: #fff; box-shadow: var(--ed-glow); }
.ed-btn--cherry:hover { color: #fff; background: linear-gradient(180deg, #ff7b95, #ff3d63); }
.ed-btn--mint { background: var(--ed-mint); color: #032b25; }
.ed-btn--mint:hover { color: #032b25; background: #6ff0d8; }
.ed-btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--ed-line-2); color: var(--ed-ink); }
.ed-btn--ghost:hover { color: var(--ed-ink); border-color: var(--ed-ink); background: rgba(255, 255, 255, .08); }
.ed-btn--lg { min-height: 52px; padding: 0 26px; font-size: 1.02rem; }
.ed-btn--block { display: flex; width: 100%; }
.ed-btn[disabled], .ed-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.ed-iconbtn {
    display: inline-flex; align-items: center; gap: var(--ed-s2); padding: 8px 14px; border-radius: 99px;
    background: var(--ed-surface); border: 1px solid var(--ed-line); color: var(--ed-ink); text-decoration: none;
    font-size: .9rem; font-weight: 600; transition: border-color .2s var(--ed-ease), background .2s var(--ed-ease);
}
.ed-iconbtn:hover { color: var(--ed-ink); border-color: var(--ed-line-2); background: var(--ed-surface-2); }
.ed-iconbtn[aria-pressed="true"] { border-color: var(--ed-cherry); color: #ffd1db; }
.ed-iconbtn[aria-pressed="true"] .ed-ico { fill: var(--ed-cherry); color: var(--ed-cherry); }
.ed-linkbtn { background: none; border: 0; padding: 0; color: var(--ed-mint); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ frame */

.ed-frame {
    max-width: 1680px; margin: 0 auto; padding: var(--ed-s5);
    display: grid; grid-template-columns: minmax(0, 1fr) var(--ed-ticket-w); gap: var(--ed-s5);
    align-items: start;
}
.ed-main { min-width: 0; outline: none; }
.ed-main > * + * { margin-top: var(--ed-s7); }
.ed-main > .ed-trail + * { margin-top: var(--ed-s3); }

.ed-trail ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--ed-s2); margin: 0; padding: 0; font-size: .85rem; color: var(--ed-muted); }
.ed-trail li + li::before { content: "/"; margin-right: var(--ed-s2); opacity: .6; }
.ed-trail a { color: var(--ed-muted); text-decoration: none; }
.ed-trail a:hover { color: var(--ed-ink); }

/* ------------------------------------------------------------ ticket */

.ed-ticket {
    position: sticky; top: calc(var(--ed-top-h) + 60px);
    background:
        radial-gradient(circle at 0 64px, transparent 9px, var(--ed-surface) 10px) left top / 51% 100% no-repeat,
        radial-gradient(circle at 100% 64px, transparent 9px, var(--ed-surface) 10px) right top / 51% 100% no-repeat;
    border-radius: var(--ed-r-lg);
    padding: var(--ed-s4);
    max-height: calc(100vh - var(--ed-top-h) - 80px); overflow: auto;
    box-shadow: var(--ed-shadow);
    scrollbar-width: thin;
}
.ed-ticket__head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: var(--ed-s3); margin-bottom: var(--ed-s3);
    border-bottom: 2px dashed var(--ed-line-2);
}
.ed-ticket__title { display: flex; align-items: center; gap: var(--ed-s2); margin: 0; font: 800 1rem/1 var(--ed-font-head); letter-spacing: .04em; text-transform: uppercase; }
.ed-ticket__title .ed-ico { color: var(--ed-cherry); }
.ed-ticket__close { display: none; background: none; border: 0; color: var(--ed-muted); padding: 4px; }
.ed-ticket__body { display: grid; gap: var(--ed-s3); }
.ed-ticket__link { display: flex; align-items: center; gap: var(--ed-s2); font-size: .9rem; font-weight: 600; text-decoration: none; }

.ed-slip {
    background: var(--ed-bg-2); border: 1px solid var(--ed-line); border-radius: var(--ed-r); padding: var(--ed-s4);
    font-size: .9rem; color: var(--ed-muted);
}
.ed-slip p:last-child { margin-bottom: 0; }
.ed-slip__label { font: 700 .72rem/1 var(--ed-font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-muted); margin-bottom: var(--ed-s2); }
.ed-slip__big { font: 800 1.6rem/1.1 var(--ed-font-num); color: var(--ed-ink); font-variant-numeric: tabular-nums; margin-bottom: var(--ed-s2); }
.ed-slip__big small { font: 600 .8rem/1 var(--ed-font-body); color: var(--ed-muted); }
.ed-slip__note { font-size: .82rem; color: var(--ed-muted); margin: var(--ed-s2) 0 0; }
.ed-slip--demo { border-color: rgba(255, 209, 102, .35); background: linear-gradient(160deg, rgba(255, 209, 102, .08), transparent 60%), var(--ed-bg-2); }
.ed-slip--join { border-color: rgba(255, 45, 85, .4); background: linear-gradient(160deg, rgba(255, 45, 85, .12), transparent 60%), var(--ed-bg-2); }
.ed-slip--join .ed-btn + .ed-btn { margin-top: var(--ed-s2); }
.ed-slip--purse { background: linear-gradient(160deg, rgba(46, 230, 197, .12), transparent 60%), var(--ed-bg-2); border-color: rgba(46, 230, 197, .35); }
.ed-slip--purse .ed-btn { margin-top: var(--ed-s3); }

.ed-level p { margin: 0 0 6px; font-size: .85rem; }
.ed-meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ed-meter > span {
    display: block; height: 100%; width: var(--fill, 0%); border-radius: inherit;
    background: linear-gradient(90deg, var(--ed-mint), var(--ed-butter));
    transition: width .5s var(--ed-ease);
}

.ed-holes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.ed-holes li {
    aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .22);
}
.ed-holes li.is-punched {
    border: 0; background: radial-gradient(circle, var(--ed-bg) 0 45%, var(--ed-cherry) 48% 100%);
    box-shadow: 0 0 8px rgba(255, 45, 85, .6);
}

.ed-ready, .ed-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ed-ready li { display: flex; justify-content: space-between; gap: var(--ed-s2); color: var(--ed-ink); }
.ed-ready li span:last-child { color: var(--ed-muted); font-size: .82rem; }
.ed-ready li.is-ready span:last-child { color: var(--ed-mint); font-weight: 700; }
.ed-recent a { display: flex; align-items: center; gap: var(--ed-s2); color: var(--ed-ink); text-decoration: none; font-weight: 600; }
.ed-recent img { width: 34px; height: 45px; object-fit: cover; border-radius: 6px; }

/* ------------------------------------------------------------ hero */

.ed-hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--ed-s4); }
.ed-hero__board {
    position: relative; border-radius: var(--ed-r-lg); overflow: hidden; padding: clamp(24px, 4vw, 56px);
    min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end;
    background:
        linear-gradient(90deg, rgba(15, 11, 26, .94) 0%, rgba(15, 11, 26, .72) 45%, rgba(15, 11, 26, .1) 100%),
        linear-gradient(0deg, rgba(15, 11, 26, .85), transparent 55%),
        var(--art) center / cover no-repeat, var(--ed-surface);
    box-shadow: var(--ed-shadow); border: 1px solid var(--ed-line);
}
.ed-hero__board h1 { max-width: 15ch; text-wrap: balance; }
.ed-hero__lead { max-width: 56ch; color: #ddd5f3; font-size: 1.05rem; }
.ed-hero__acts { display: flex; flex-wrap: wrap; gap: var(--ed-s3); margin: var(--ed-s3) 0 var(--ed-s5); }
.ed-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ed-s2); }
.ed-facts li {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px;
    background: rgba(15, 11, 26, .7); border: 1px solid var(--ed-line-2); font-size: .85rem; font-weight: 600;
}
.ed-facts .ed-ico { width: 16px; height: 16px; color: var(--ed-mint); }
.ed-hero__side { display: grid; gap: var(--ed-s4); }
.ed-tile {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
    border-radius: var(--ed-r-lg); overflow: hidden; padding: var(--ed-s5); min-height: 220px; text-decoration: none; color: var(--ed-ink);
    background: linear-gradient(0deg, rgba(15, 11, 26, .95) 10%, rgba(15, 11, 26, .2) 70%), var(--art) center / cover no-repeat;
    border: 1px solid var(--ed-line); transition: transform .25s var(--ed-ease), border-color .25s var(--ed-ease);
}
.ed-tile:hover { color: var(--ed-ink); transform: translateY(-3px); border-color: var(--ed-line-2); }
.ed-tile__k { font: 700 .75rem/1 var(--ed-font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-butter); }
.ed-tile__t { font: 800 1.3rem/1.2 var(--ed-font-head); }
.ed-tile__s { font-size: .88rem; color: var(--ed-muted); }

/* ------------------------------------------------------------ rails + cards */

.ed-rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ed-s4); margin-bottom: var(--ed-s4); }
.ed-rail__head h2 { margin: 0 0 4px; }
.ed-rail__head p { margin: 0; color: var(--ed-muted); font-size: .92rem; }
.ed-rail__tools { display: flex; align-items: center; gap: var(--ed-s2); flex: none; }
.ed-rail__more { font-weight: 700; font-size: .9rem; margin-right: var(--ed-s2); white-space: nowrap; }
.ed-rail__nudge {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: var(--ed-surface); border: 1px solid var(--ed-line); color: var(--ed-ink);
    transition: background .2s var(--ed-ease), border-color .2s var(--ed-ease);
}
.ed-rail__nudge:hover { background: var(--ed-surface-2); border-color: var(--ed-line-2); }
.ed-rail__nudge:disabled { opacity: .35; cursor: default; }
.ed-rail__track {
    list-style: none; margin: 0; padding: 4px 2px 12px; display: grid; grid-auto-flow: column;
    grid-auto-columns: clamp(150px, 15.5vw, 196px); gap: var(--ed-s4);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.ed-rail__track::-webkit-scrollbar { display: none; }
.ed-rail__track > li { scroll-snap-align: start; }

.ed-grid {
    list-style: none; margin: 0; padding: 0; display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--ed-s4);
}

.ed-card { position: relative; }
.ed-card__link {
    position: relative; display: block; border-radius: var(--ed-r); overflow: hidden; aspect-ratio: 3 / 4;
    background: var(--ed-surface-2); color: var(--ed-ink); text-decoration: none;
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .8);
    transition: transform .25s var(--ed-ease), box-shadow .25s var(--ed-ease);
}
.ed-card__link::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.ed-card__art { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ed-ease); }
.ed-card__badges { position: absolute; bottom: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; transition: opacity .2s var(--ed-ease); }
.ed-badge {
    font: 800 .66rem/1 var(--ed-font-body); letter-spacing: .08em; text-transform: uppercase;
    padding: 5px 8px; border-radius: 6px; background: rgba(15, 11, 26, .82); color: var(--ed-butter);
    border: 1px solid rgba(255, 209, 102, .4);
}
.ed-badge--new { background: var(--ed-cherry); color: #fff; border-color: transparent; }
.ed-card__meta {
    position: absolute; inset: auto 0 0 0; padding: 36px 10px 10px; display: grid; gap: 2px;
    background: linear-gradient(0deg, rgba(10, 7, 18, .95) 20%, transparent);
    transform: translateY(100%); opacity: 0;
    transition: transform .25s var(--ed-ease), opacity .2s var(--ed-ease);
}
.ed-card__name { font: 800 .95rem/1.2 var(--ed-font-head); }
.ed-card__kind { font-size: .75rem; color: var(--ed-muted); }
.ed-card__go {
    position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
    border-radius: 50%; display: grid; place-items: center; background: var(--card-accent, var(--ed-cherry)); color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.85);
    transition: transform .2s var(--ed-ease), opacity .2s var(--ed-ease);
}
.ed-card__go .ed-ico { fill: currentColor; }
.ed-card__fav {
    position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; border: 0; background: rgba(15, 11, 26, .75); color: #fff;
    transition: transform .16s var(--ed-ease);
}
.ed-card__fav:active { transform: scale(.9); }
.ed-card__fav .ed-ico { width: 18px; height: 18px; }
.ed-card__fav[aria-pressed="true"] { color: var(--ed-cherry); }
.ed-card__fav[aria-pressed="true"] .ed-ico { fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
    .ed-card__link:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .9), 0 0 0 2px var(--card-accent, var(--ed-cherry)); }
    .ed-card__link:hover .ed-card__art { transform: scale(1.05); }
    .ed-card__link:hover .ed-card__meta, .ed-card__link:focus-visible .ed-card__meta { transform: none; opacity: 1; }
    .ed-card__link:hover .ed-card__go { opacity: 1; transform: none; }
    .ed-card__link:hover .ed-card__badges, .ed-card__link:focus-visible .ed-card__badges { opacity: 0; }
}
@media (hover: none) {
    .ed-card__meta { transform: none; opacity: 1; }
    .ed-card__badges { bottom: auto; top: 8px; }
    .ed-card__badges .ed-badge:not(.ed-badge--new) { display: none; }
}

.ed-continue .ed-rail__track:empty::after { content: "Open a game and it will appear here."; color: var(--ed-muted); }

/* ------------------------------------------------------------ sections */

.ed-steps h2 { margin-bottom: var(--ed-s4); }
.ed-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ed-s4); }
.ed-steps li { background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: var(--ed-r-lg); padding: var(--ed-s5); }
.ed-steps p { color: var(--ed-muted); margin: 0; }
.ed-steps__n {
    display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--ed-s3);
    border-radius: 12px; font: 800 1.1rem/1 var(--ed-font-num);
    background: linear-gradient(135deg, var(--ed-cherry), #8a2bff);
}

.ed-split {
    display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--ed-s6); align-items: center;
    background: linear-gradient(120deg, rgba(255, 209, 102, .08), rgba(46, 230, 197, .06)), var(--ed-surface);
    border: 1px solid var(--ed-line); border-radius: var(--ed-r-lg); padding: clamp(20px, 4vw, 48px);
}
.ed-split__art img { max-width: 340px; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .55)); }
.ed-split__copy p { color: #d8d0ee; max-width: 62ch; }

.ed-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--ed-s4); }
.ed-post {
    display: grid; gap: var(--ed-s2); text-decoration: none; color: var(--ed-ink);
    background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: var(--ed-r); overflow: hidden; padding-bottom: var(--ed-s4);
    transition: border-color .2s var(--ed-ease), transform .25s var(--ed-ease);
}
.ed-post:hover { color: var(--ed-ink); border-color: var(--ed-line-2); transform: translateY(-3px); }
.ed-post img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ed-post__date { padding: 0 var(--ed-s4); font-size: .8rem; color: var(--ed-muted); }
.ed-post__title { padding: 0 var(--ed-s4); font: 800 1.08rem/1.3 var(--ed-font-head); }

.ed-faq details {
    background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: var(--ed-r); margin-bottom: var(--ed-s2);
}
.ed-faq summary {
    cursor: pointer; padding: var(--ed-s4) var(--ed-s5); font-weight: 700; list-style: none; position: relative; padding-right: 48px;
}
.ed-faq summary::-webkit-details-marker { display: none; }
.ed-faq summary::after {
    content: "+"; position: absolute; right: var(--ed-s5); top: 50%; transform: translateY(-50%);
    font: 400 1.4rem/1 var(--ed-font-body); color: var(--ed-mint); transition: transform .2s var(--ed-ease);
}
.ed-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ed-faq details p { padding: 0 var(--ed-s5) var(--ed-s4); color: var(--ed-muted); margin: 0; }
.ed-faq__more { margin-top: var(--ed-s3); }

.ed-care {
    display: flex; align-items: center; justify-content: space-between; gap: var(--ed-s5); flex-wrap: wrap;
    border-radius: var(--ed-r-lg); padding: var(--ed-s5) var(--ed-s6);
    background: linear-gradient(110deg, rgba(46, 230, 197, .14), rgba(46, 230, 197, .02)); border: 1px solid rgba(46, 230, 197, .3);
}
.ed-care p { margin: 0; max-width: 72ch; color: #d6f7f0; }

/* ------------------------------------------------------------ lobby */

.ed-shelf p { color: var(--ed-muted); max-width: 70ch; font-size: 1.05rem; }
.ed-main > .ed-filter { margin-top: var(--ed-s5); }
.ed-main > .ed-filter + .ed-grid { margin-top: var(--ed-s4); }
.ed-tabs { display: flex; gap: var(--ed-s2); flex-wrap: wrap; margin-bottom: var(--ed-s4); }
.ed-tabs a {
    padding: 8px 16px; border-radius: 99px; text-decoration: none; color: var(--ed-ink); font-weight: 700; font-size: .92rem;
    background: var(--ed-surface); border: 1px solid var(--ed-line); transition: background .2s var(--ed-ease), border-color .2s var(--ed-ease);
}
.ed-tabs a:hover { color: var(--ed-ink); border-color: var(--ed-line-2); }
.ed-tabs a[aria-current="page"] { background: var(--ed-ink); color: var(--ed-bg); border-color: var(--ed-ink); }
.ed-filter__row { display: flex; flex-wrap: wrap; gap: var(--ed-s3); align-items: center; }
.ed-filter__find {
    display: flex; align-items: center; gap: var(--ed-s2); flex: 1 1 220px; max-width: 320px;
    background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: 99px; padding: 0 var(--ed-s4); height: 40px;
}
.ed-filter__find .ed-ico { color: var(--ed-muted); }
.ed-filter__find input { flex: 1; min-width: 0; background: none; border: 0; outline: none; }
.ed-seg { display: inline-flex; background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: 99px; padding: 3px; }
.ed-seg button { border: 0; background: none; padding: 7px 12px; border-radius: 99px; font-size: .85rem; font-weight: 600; color: var(--ed-muted); }
.ed-seg button[aria-pressed="true"] { background: var(--ed-surface-3); color: var(--ed-ink); }
.ed-select select {
    height: 40px; border-radius: 99px; background: var(--ed-surface); border: 1px solid var(--ed-line); padding: 0 var(--ed-s4);
}
.ed-filter__count { margin: var(--ed-s3) 0 0; color: var(--ed-muted); font-size: .88rem; }
.ed-empty { color: var(--ed-muted); padding: var(--ed-s6) 0; text-align: center; }
.ed-shelf-note { max-width: 78ch; color: var(--ed-muted); }
.ed-shelf-note h2 { color: var(--ed-ink); font-size: 1.2rem; }

/* ------------------------------------------------------------ game table */

.ed-table__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ed-s3); flex-wrap: wrap; margin-bottom: var(--ed-s3); }
.ed-table__head h1 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.ed-table__head .ed-kicker { margin-bottom: 4px; }
.ed-body--table .ed-main > .ed-trail + * { margin-top: var(--ed-s2); }
.ed-table__tools { display: flex; gap: var(--ed-s2); flex-wrap: wrap; }
.ed-demo {
    display: flex; align-items: center; justify-content: space-between; gap: var(--ed-s2) var(--ed-s4); flex-wrap: wrap;
    padding: 10px var(--ed-s4); margin-bottom: var(--ed-s3); border-radius: var(--ed-r);
    background: linear-gradient(90deg, rgba(255, 209, 102, .16), rgba(255, 209, 102, .04));
    border: 1px solid rgba(255, 209, 102, .45);
}
.ed-demo > div:first-child { flex: 1 1 320px; }
.ed-demo h3 { margin: 0 0 2px; color: var(--ed-butter); font-size: .98rem; }
.ed-demo p { margin: 0; font-size: .86rem; line-height: 1.45; color: #f3e8cc; max-width: 80ch; }
.ed-demo__acts { display: flex; gap: var(--ed-s2); }
.ed-demo__acts .ed-btn { min-height: 38px; padding: 0 14px; font-size: .88rem; }

.ed-machine {
    position: relative; border-radius: var(--ed-r-lg); overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 7, 18, .55), rgba(10, 7, 18, .88)),
        var(--stage) center / cover no-repeat, var(--ed-surface);
    border: 1px solid color-mix(in srgb, var(--game-accent, var(--ed-cherry)) 45%, transparent);
    box-shadow: var(--ed-shadow), 0 0 60px -30px var(--game-accent, var(--ed-cherry));
}
.ed-machine__bar {
    display: flex; align-items: center; justify-content: space-between; gap: var(--ed-s3);
    padding: var(--ed-s3) var(--ed-s4); background: rgba(10, 7, 18, .72); border-bottom: 1px solid var(--ed-line);
}
.ed-machine__name { font: 800 1rem/1 var(--ed-font-head); letter-spacing: .02em; }
.ed-machine__purse {
    font: 700 .95rem/1 var(--ed-font-num); font-variant-numeric: tabular-nums; padding: 8px 14px; border-radius: 99px;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--ed-line-2);
}
.ed-machine__purse.is-demo { color: var(--ed-butter); border-color: rgba(255, 209, 102, .45); }
.ed-machine__floor { min-height: 420px; display: grid; }
.ed-machine__wait { place-self: center; color: var(--ed-muted); }
.ed-body--theatre .ed-ticket { display: none; }
.ed-body--theatre .ed-frame { grid-template-columns: minmax(0, 1fr); }
.ed-body--theatre .ed-machine__floor { min-height: min(72vh, 760px); }

/* shared deck primitives used by every engine */
.ed-play { display: grid; grid-template-rows: 1fr auto; min-height: 100%; }
.ed-play__view { position: relative; display: grid; place-items: center; padding: var(--ed-s4); min-height: 300px; }
.ed-deck {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--ed-s2) var(--ed-s3);
    padding: var(--ed-s3) var(--ed-s4); background: rgba(10, 7, 18, .82); border-top: 1px solid var(--ed-line);
}
.ed-stake {
    display: inline-flex; align-items: center; gap: var(--ed-s2); background: var(--ed-surface);
    border: 1px solid var(--ed-line); border-radius: 99px; padding: 4px;
}
.ed-stake__label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ed-muted); padding-left: 10px; }
.ed-stake__btn {
    width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ed-surface-3); font-size: 1.1rem; font-weight: 800;
    transition: background .16s var(--ed-ease), transform .16s var(--ed-ease);
}
.ed-stake__btn:hover:not(:disabled) { background: #43355f; }
.ed-stake__btn:active:not(:disabled) { transform: scale(.92); }
.ed-stake__btn:disabled { opacity: .35; cursor: not-allowed; }
.ed-stake__val { min-width: 112px; text-align: center; font: 700 .95rem/1 var(--ed-font-num); font-variant-numeric: tabular-nums; }
.ed-go {
    min-width: 148px; min-height: 56px; padding: 0 28px; border-radius: 99px; border: 0;
    font: 800 1.1rem/1 var(--ed-font-head); letter-spacing: .06em; text-transform: uppercase; color: #fff;
    background: linear-gradient(180deg, color-mix(in srgb, var(--game-accent, var(--ed-cherry)) 75%, #fff), var(--game-accent, var(--ed-cherry)));
    box-shadow: 0 10px 26px -8px var(--game-accent, var(--ed-cherry)), inset 0 -3px 0 rgba(0, 0, 0, .25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    transition: transform .14s var(--ed-ease), filter .2s var(--ed-ease);
}
.ed-go:hover:not(:disabled) { filter: brightness(1.08); }
.ed-go:active:not(:disabled) { transform: scale(.96); }
.ed-go:disabled { opacity: .55; cursor: not-allowed; }
.ed-chipbtn {
    min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--ed-line-2);
    background: var(--ed-surface-2); font-weight: 700;
    transition: background .16s var(--ed-ease), border-color .16s var(--ed-ease), transform .14s var(--ed-ease);
}
.ed-chipbtn:hover:not(:disabled) { border-color: var(--ed-ink); }
.ed-chipbtn:active:not(:disabled) { transform: scale(.96); }
.ed-chipbtn:disabled { opacity: .45; cursor: not-allowed; }
.ed-chipbtn[aria-pressed="true"] { background: var(--ed-ink); color: var(--ed-bg); border-color: var(--ed-ink); }
.ed-msg { flex-basis: 100%; text-align: center; margin: 0; min-height: 1.5em; font-weight: 600; color: var(--ed-muted); }
.ed-msg[data-tone="win"] { color: var(--ed-butter); }
.ed-msg[data-tone="lose"] { color: var(--ed-muted); }
.ed-msg[data-tone="info"] { color: var(--ed-mint); }

.ed-dish { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--ed-s6); align-items: start; }
.ed-dish__lead { font-size: 1.08rem; color: #ddd5f3; }
.ed-dish__main p { max-width: 72ch; }
.ed-dish__main h3 { margin-top: var(--ed-s5); }
.ed-dish__note { color: var(--ed-muted); font-size: .9rem; }
.ed-dish__card { background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: var(--ed-r-lg); overflow: hidden; }
.ed-dish__card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.ed-dish__card dl { margin: 0; padding: var(--ed-s3) var(--ed-s4); }
.ed-dish__card dl div { display: flex; justify-content: space-between; gap: var(--ed-s3); padding: 8px 0; border-bottom: 1px solid var(--ed-line); font-size: .9rem; }
.ed-dish__card dl div:last-child { border-bottom: 0; }
.ed-dish__card dt { color: var(--ed-muted); }
.ed-dish__card dd { margin: 0; font-weight: 700; text-align: right; }
.ed-pays { width: 100%; max-width: 560px; border-collapse: collapse; font-size: .92rem; }
.ed-pays th, .ed-pays td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--ed-line); }
.ed-pays thead th { color: var(--ed-muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.ed-pays tbody th { font-weight: 600; }
.ed-pays td { font-family: var(--ed-font-num); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ prose pages */

.ed-prose { max-width: 78ch; }
.ed-prose h2 { margin-top: var(--ed-s6); }
.ed-prose h3 { margin-top: var(--ed-s5); }
.ed-prose p, .ed-prose li { color: #ddd6ef; }
.ed-prose ul, .ed-prose ol { padding-left: 1.3em; margin: 0 0 var(--ed-s3); }
.ed-prose li { margin-bottom: 6px; }
.ed-prose table { border-collapse: collapse; width: 100%; margin: 0 0 var(--ed-s4); font-size: .92rem; }
.ed-prose th, .ed-prose td { border-bottom: 1px solid var(--ed-line); padding: 9px 10px; text-align: left; vertical-align: top; }
.ed-prose th { color: var(--ed-muted); font-weight: 700; }
.ed-prose code { font-family: var(--ed-font-num); font-size: .88em; background: var(--ed-surface-2); padding: 1px 6px; border-radius: 5px; }
.ed-updated { color: var(--ed-muted); font-size: .9rem; }
.ed-lede { font-size: 1.1rem; color: #ddd5f3; max-width: 70ch; }
.ed-toc {
    background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: var(--ed-r); padding: var(--ed-s4) var(--ed-s5); max-width: 78ch;
}
.ed-toc ol { columns: 2; column-gap: var(--ed-s6); margin: 0; padding-left: 1.2em; }
.ed-toc li { margin-bottom: 4px; break-inside: avoid; }
.ed-cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--ed-s4); }
.ed-panel { background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: var(--ed-r-lg); padding: var(--ed-s5); }
.ed-panel p:last-child { margin-bottom: 0; }
.ed-panel p { color: var(--ed-muted); }
.ed-panel .ed-ico { width: 28px; height: 28px; color: var(--ed-mint); margin-bottom: var(--ed-s3); }
.ed-orglist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--ed-s3); }
.ed-orglist li { background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: var(--ed-r); padding: var(--ed-s4); }
.ed-orglist strong { display: block; color: var(--ed-ink); margin-bottom: 4px; }
.ed-orglist span { color: var(--ed-muted); font-size: .9rem; }
.ed-article img.ed-article__img { border-radius: var(--ed-r-lg); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; max-width: 920px; margin-bottom: var(--ed-s5); }
.ed-article time { color: var(--ed-muted); font-size: .9rem; }

/* ------------------------------------------------------------ forms + auth */

.ed-auth {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 640px;
    background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: var(--ed-r-lg); overflow: hidden; box-shadow: var(--ed-shadow);
}
.ed-auth__art {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--ed-s6);
    background: linear-gradient(0deg, rgba(15, 11, 26, .95) 8%, rgba(15, 11, 26, .15) 60%), var(--art) center / cover no-repeat;
}
.ed-auth__art p { color: #e6def8; max-width: 40ch; }
.ed-auth__art ul { list-style: none; padding: 0; margin: var(--ed-s3) 0 0; display: grid; gap: var(--ed-s2); }
.ed-auth__art li { display: flex; gap: var(--ed-s2); align-items: center; font-weight: 600; }
.ed-auth__art li .ed-ico { color: var(--ed-mint); }
.ed-auth__form { padding: clamp(24px, 4vw, 52px); }
.ed-auth__form h1 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); }
.ed-auth__sub { color: var(--ed-muted); }
.ed-form { display: grid; gap: var(--ed-s4); margin-top: var(--ed-s5); }
.ed-field { display: grid; gap: 6px; }
.ed-field > label, .ed-field > .ed-field__label { font-weight: 700; font-size: .9rem; }
.ed-field__hint { font-size: .82rem; color: var(--ed-muted); margin: 0; }
.ed-field__err { font-size: .84rem; color: #ff9db1; margin: 0; min-height: 0; }
.ed-input, .ed-form select, .ed-form textarea {
    width: 100%; min-height: 48px; padding: 0 var(--ed-s4); border-radius: 12px;
    background: var(--ed-bg-2); border: 1px solid var(--ed-line-2); color: var(--ed-ink);
    transition: border-color .2s var(--ed-ease), box-shadow .2s var(--ed-ease);
}
.ed-form textarea { padding: var(--ed-s3) var(--ed-s4); min-height: 150px; resize: vertical; }
.ed-input:focus, .ed-form select:focus, .ed-form textarea:focus { outline: none; border-color: var(--ed-mint); box-shadow: 0 0 0 3px rgba(46, 230, 197, .2); }
.ed-input[aria-invalid="true"], .ed-form select[aria-invalid="true"] { border-color: #ff6b88; }
.ed-pass { position: relative; }
.ed-pass .ed-input { padding-right: 52px; }
.ed-pass__toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
    border: 0; background: none; color: var(--ed-muted); border-radius: 8px; display: grid; place-items: center;
}
.ed-pass__toggle[aria-pressed="true"] { color: var(--ed-mint); }
.ed-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
.ed-strength span { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .1); transition: background .2s var(--ed-ease); }
.ed-strength[data-score="1"] span:nth-child(-n+1) { background: #ff6b88; }
.ed-strength[data-score="2"] span:nth-child(-n+2) { background: var(--ed-butter); }
.ed-strength[data-score="3"] span:nth-child(-n+3) { background: #9be27a; }
.ed-strength[data-score="4"] span { background: var(--ed-mint); }
.ed-dob { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: var(--ed-s2); }
.ed-check { display: flex; gap: var(--ed-s3); align-items: flex-start; font-size: .9rem; color: #ddd6ef; }
.ed-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ed-cherry); flex: none; }
.ed-form__row { display: flex; justify-content: space-between; align-items: center; gap: var(--ed-s3); flex-wrap: wrap; font-size: .9rem; }
.ed-form__alt { text-align: center; color: var(--ed-muted); font-size: .92rem; margin-top: var(--ed-s4); }
.ed-alert { border-radius: 12px; padding: var(--ed-s3) var(--ed-s4); font-size: .92rem; margin: 0; }
.ed-alert--bad { background: rgba(255, 45, 85, .12); border: 1px solid rgba(255, 45, 85, .45); color: #ffd3dc; }
.ed-alert--good { background: rgba(46, 230, 197, .1); border: 1px solid rgba(46, 230, 197, .4); color: #c9fbf1; }
.ed-alert--note { background: rgba(255, 209, 102, .1); border: 1px solid rgba(255, 209, 102, .4); color: #fbeac2; }
.ed-code {
    font: 800 clamp(1.1rem, 3.5vw, 1.5rem)/1.2 var(--ed-font-num); letter-spacing: .08em; text-align: center;
    padding: var(--ed-s4); border-radius: 12px; background: var(--ed-bg); border: 2px dashed var(--ed-butter); color: var(--ed-butter);
    user-select: all; word-break: break-all;
}
.ed-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ account */

.ed-acc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--ed-s5); align-items: start; }
.ed-acc__nav { position: sticky; top: 140px; display: grid; gap: 4px; }
.ed-acc__nav a {
    display: flex; align-items: center; gap: var(--ed-s2); padding: 10px 14px; border-radius: 10px; color: var(--ed-muted);
    text-decoration: none; font-weight: 600;
}
.ed-acc__nav a:hover, .ed-acc__nav a[aria-current="true"] { background: var(--ed-surface); color: var(--ed-ink); }
.ed-acc__sec { background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: var(--ed-r-lg); padding: var(--ed-s5); margin-bottom: var(--ed-s4); }
.ed-acc__sec > p { color: var(--ed-muted); }
.ed-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--ed-s3); margin: var(--ed-s4) 0; }
.ed-stat { background: var(--ed-bg-2); border: 1px solid var(--ed-line); border-radius: var(--ed-r); padding: var(--ed-s4); }
.ed-stat dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ed-muted); }
.ed-stat dd { margin: 4px 0 0; font: 800 1.3rem/1.2 var(--ed-font-num); font-variant-numeric: tabular-nums; }
.ed-history { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ed-history th, .ed-history td { padding: 8px 10px; border-bottom: 1px solid var(--ed-line); text-align: left; }
.ed-history td.num { font-family: var(--ed-font-num); text-align: right; font-variant-numeric: tabular-nums; }
.ed-history th.num { text-align: right; }
.ed-opts { display: flex; flex-wrap: wrap; gap: var(--ed-s2); margin: var(--ed-s3) 0; }
.ed-gatebox { display: grid; place-items: center; text-align: center; padding: var(--ed-s7) var(--ed-s4); }
.ed-gatebox p { color: var(--ed-muted); max-width: 52ch; }

/* ------------------------------------------------------------ counter + club */

.ed-counter-hero, .ed-club-hero {
    border-radius: var(--ed-r-lg); overflow: hidden; padding: clamp(24px, 4vw, 52px); min-height: 300px;
    display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--ed-line);
    background: linear-gradient(90deg, rgba(15, 11, 26, .95) 0%, rgba(15, 11, 26, .55) 60%, rgba(15, 11, 26, .2)), var(--art) center / cover no-repeat;
}
.ed-counter-hero p, .ed-club-hero p { max-width: 60ch; color: #e1d9f5; }
.ed-treats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--ed-s4); }
.ed-treat { background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: var(--ed-r-lg); padding: var(--ed-s5); display: grid; gap: var(--ed-s3); align-content: start; }
.ed-treat > p { color: var(--ed-muted); margin: 0; }
.ed-treat__state { font-weight: 700; color: var(--ed-mint); }
.ed-pie { position: relative; width: min(100%, 300px); margin: 0 auto; aspect-ratio: 1; }
.ed-pie svg { width: 100%; height: 100%; transition: transform 3.2s cubic-bezier(.12, .7, .1, 1); }
.ed-pie__pin {
    position: absolute; top: -6px; left: 50%; width: 0; height: 0; transform: translateX(-50%);
    border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid var(--ed-butter);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6));
}
.ed-cookies { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ed-s3); }
.ed-cookie {
    aspect-ratio: 1; border-radius: var(--ed-r); border: 1px solid var(--ed-line-2); background: var(--ed-bg-2);
    display: grid; place-items: center; padding: 6px; transition: transform .2s var(--ed-ease), border-color .2s var(--ed-ease);
}
.ed-cookie:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--ed-butter); }
.ed-cookie:disabled { cursor: default; opacity: .6; }
.ed-cookie.is-open { opacity: 1; border-color: var(--ed-butter); font: 800 1rem/1.2 var(--ed-font-num); color: var(--ed-butter); }
.ed-cookie img { width: 100%; }
.ed-punch {
    position: relative; border-radius: var(--ed-r); padding: var(--ed-s5);
    background: repeating-linear-gradient(90deg, #fff7e6 0 22px, #fff1d6 22px 23px); color: #3b1d10;
}
.ed-punch h3 { color: #b0122f; letter-spacing: .06em; text-transform: uppercase; }
.ed-punch .ed-holes li { border-color: rgba(59, 29, 16, .3); }
.ed-punch .ed-holes li.is-punched { background: radial-gradient(circle, var(--ed-bg) 0 55%, #b0122f 58% 100%); box-shadow: none; }
.ed-punch p { color: #5b3a26; margin: var(--ed-s3) 0 0; font-size: .9rem; }
.ed-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ed-s3); }
.ed-order {
    display: grid; grid-template-columns: 1fr auto; gap: var(--ed-s2) var(--ed-s4); align-items: center;
    background: var(--ed-bg-2); border: 1px solid var(--ed-line); border-left: 4px solid var(--ed-mint); border-radius: 12px; padding: var(--ed-s3) var(--ed-s4);
}
.ed-order p { margin: 0; }
.ed-order__t { font-weight: 700; }
.ed-order__r { color: var(--ed-butter); font: 700 .9rem/1 var(--ed-font-num); }
.ed-order .ed-meter { grid-column: 1 / -1; }
.ed-tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ed-s3); }
.ed-tier {
    background: var(--ed-surface); border: 1px solid var(--ed-line); border-radius: var(--ed-r-lg); padding: var(--ed-s4);
    display: grid; gap: var(--ed-s2); align-content: start; position: relative;
}
.ed-tier svg { width: 64px; height: 64px; }
.ed-tier h3 { margin: 0; }
.ed-tier p { margin: 0; color: var(--ed-muted); font-size: .88rem; }
.ed-tier__lv { font: 700 .8rem/1 var(--ed-font-num); color: var(--ed-butter); }
.ed-tier.is-mine { border-color: var(--ed-mint); box-shadow: 0 0 0 1px var(--ed-mint), 0 12px 30px -16px var(--ed-mint); }
.ed-tier.is-mine::after {
    content: "You are here"; position: absolute; top: 12px; right: 12px; font-size: .7rem; font-weight: 800;
    color: #032b25; background: var(--ed-mint); padding: 3px 8px; border-radius: 99px;
}

/* ------------------------------------------------------------ footer */

.ed-foot { margin-top: var(--ed-s8); border-top: 1px solid var(--ed-line); background: #0b0814; }
.ed-foot__inner {
    max-width: 1680px; margin: 0 auto; padding: var(--ed-s7) var(--ed-s5) var(--ed-s5);
    display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--ed-s6);
}
.ed-foot__brand p { color: var(--ed-muted); font-size: .92rem; max-width: 42ch; margin-top: var(--ed-s3); }
.ed-foot__h { font: 700 .78rem/1 var(--ed-font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-muted); margin-bottom: var(--ed-s3); }
.ed-foot__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.ed-foot__nav a { color: var(--ed-ink); text-decoration: none; }
.ed-foot__nav a:hover { color: var(--ed-mint); }
.ed-foot__nav .ed-linkbtn { color: var(--ed-ink); text-decoration: none; font-size: .92rem; }
.ed-help { max-width: 1680px; margin: 0 auto; padding: var(--ed-s4) var(--ed-s5); }
.ed-help__title { display: flex; gap: var(--ed-s2); align-items: center; font-weight: 700; color: var(--ed-mint); }
.ed-help__orgs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ed-s3); }
.ed-help__orgs a {
    display: grid; gap: 2px; padding: var(--ed-s3) var(--ed-s4); border-radius: 12px; height: 100%;
    background: var(--ed-surface); border: 1px solid var(--ed-line); text-decoration: none; color: var(--ed-ink);
    transition: border-color .2s var(--ed-ease);
}
.ed-help__orgs a:hover { border-color: var(--ed-mint); color: var(--ed-ink); }
.ed-help__orgs span { font-size: .8rem; color: var(--ed-muted); }
.ed-foot__legal {
    max-width: 1680px; margin: 0 auto; padding: var(--ed-s5) var(--ed-s5) var(--ed-s7);
    border-top: 1px solid var(--ed-line); font-size: .85rem; color: var(--ed-muted);
}
.ed-foot__legal p { max-width: 120ch; }
.ed-foot__age { display: flex; gap: var(--ed-s3); align-items: center; color: var(--ed-ink); font-weight: 600; }
.ed-age {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
    border: 3px solid var(--ed-cherry); font: 800 .85rem/1 var(--ed-font-body); color: var(--ed-ink);
}

/* ------------------------------------------------------------ dock, gate, consent, toasts */

.ed-dock { display: none; }

.ed-gate {
    position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--ed-s4);
    background: rgba(8, 5, 14, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ed-gate__card {
    width: min(100%, 460px); text-align: center; padding: var(--ed-s6) var(--ed-s5);
    background: var(--ed-surface); border: 1px solid var(--ed-line-2); border-radius: var(--ed-r-lg); box-shadow: var(--ed-shadow);
    animation: ed-rise .28s var(--ed-ease);
}
.ed-gate__card img { margin: 0 auto var(--ed-s3); }
.ed-gate__q { font: 800 1.6rem/1.2 var(--ed-font-head); margin-bottom: var(--ed-s3); }
.ed-gate__card p { color: var(--ed-muted); }
.ed-gate__acts { display: grid; gap: var(--ed-s2); margin: var(--ed-s4) 0; }
.ed-gate__fine { font-size: .82rem; }

.ed-consent {
    position: fixed; z-index: 80; left: 50%; bottom: var(--ed-s4); transform: translateX(-50%);
    width: min(calc(100% - 32px), 860px); display: flex; gap: var(--ed-s4); align-items: center;
    padding: var(--ed-s4) var(--ed-s5); border-radius: var(--ed-r); background: var(--ed-surface-2);
    border: 1px solid var(--ed-line-2); box-shadow: var(--ed-shadow); animation: ed-rise .28s var(--ed-ease);
}
.ed-consent p { display: flex; gap: var(--ed-s3); margin: 0; font-size: .88rem; color: #ddd6ef; }
.ed-consent p .ed-ico { color: var(--ed-butter); margin-top: 2px; }
.ed-consent__acts { display: flex; gap: var(--ed-s2); flex: none; }

.ed-toasts { position: fixed; z-index: 85; top: 92px; right: var(--ed-s4); display: grid; gap: var(--ed-s2); width: min(360px, calc(100% - 32px)); pointer-events: none; }
.ed-toast {
    pointer-events: auto; padding: var(--ed-s3) var(--ed-s4); border-radius: 12px; font-size: .92rem; font-weight: 600;
    background: var(--ed-surface-3); border: 1px solid var(--ed-line-2); box-shadow: var(--ed-shadow);
    animation: ed-rise .24s var(--ed-ease);
}
.ed-toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .18s ease-out, transform .18s ease-out; }
.ed-toast--good { border-color: rgba(46, 230, 197, .55); }
.ed-toast--note { border-color: rgba(255, 209, 102, .55); }

.ed-dialog {
    border: 1px solid var(--ed-line-2); border-radius: var(--ed-r-lg); background: var(--ed-surface); color: var(--ed-ink);
    padding: var(--ed-s6) var(--ed-s5); width: min(calc(100% - 32px), 460px); box-shadow: var(--ed-shadow);
}
.ed-dialog::backdrop { background: rgba(8, 5, 14, .8); }
.ed-dialog p { color: var(--ed-muted); }
.ed-dialog__acts { display: flex; gap: var(--ed-s2); flex-wrap: wrap; margin-top: var(--ed-s4); }

@keyframes ed-rise {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: none; }
}
.ed-consent { animation-name: ed-rise-x; }
@keyframes ed-rise-x {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1240px) {
    .ed-frame { grid-template-columns: minmax(0, 1fr); }
    .ed-ticket {
        position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; top: auto; max-height: 82vh;
        border-radius: var(--ed-r-lg) var(--ed-r-lg) 0 0; background: var(--ed-surface);
        transform: translateY(105%); transition: transform .3s var(--ed-ease); visibility: hidden;
        padding-bottom: calc(var(--ed-s5) + env(safe-area-inset-bottom));
    }
    .ed-ticket.is-open { transform: none; visibility: visible; }
    .ed-ticket__close { display: grid; }
    .ed-ticket .ed-ticket__body { max-width: 560px; margin: 0 auto; }
    .ed-dock {
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
        background: rgba(15, 11, 26, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--ed-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    .ed-dock a, .ed-dock button {
        display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none;
        color: var(--ed-muted); text-decoration: none; font-size: .7rem; font-weight: 600;
    }
    .ed-dock [aria-current="page"], .ed-dock [aria-expanded="true"] { color: var(--ed-ink); }
    .ed-dock [aria-current="page"] .ed-ico { color: var(--ed-cherry); }
    body { padding-bottom: 72px; }
    .ed-consent { bottom: 84px; }
    .ed-hero { grid-template-columns: 1fr; }
    .ed-hero__side { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .ed-top__row { padding: 0 var(--ed-s4); gap: var(--ed-s3); }
    .ed-find { order: 3; flex-basis: 100%; max-width: none; margin-bottom: var(--ed-s3); }
    .ed-top__row { flex-wrap: wrap; padding-top: var(--ed-s2); }
    .ed-find__key { display: none; }
    .ed-board ul { padding: 0 var(--ed-s3); }
    .ed-frame { padding: var(--ed-s4); }
    .ed-steps ol { grid-template-columns: 1fr; }
    .ed-split { grid-template-columns: 1fr; }
    .ed-dish { grid-template-columns: minmax(0, 1fr); }
    .ed-dish__card { max-width: 420px; }
    .ed-auth { grid-template-columns: 1fr; }
    .ed-auth__art { min-height: 220px; }
    .ed-acc { grid-template-columns: 1fr; }
    .ed-acc__nav { position: static; grid-auto-flow: column; overflow-x: auto; }
    .ed-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ed-foot__inner { grid-template-columns: 1fr 1fr; }
    .ed-foot__brand { grid-column: 1 / -1; }
    .ed-help__orgs { grid-template-columns: 1fr 1fr; }
    .ed-toc ol { columns: 1; }
    .ed-consent { flex-direction: column; align-items: stretch; }
    .ed-consent__acts .ed-btn { flex: 1; }
}

@media (max-width: 560px) {
    .ed-strip {
        font-size: .72rem; gap: 2px var(--ed-s3); flex-wrap: nowrap; justify-content: flex-start;
        overflow-x: auto; scrollbar-width: none; white-space: nowrap;
    }
    .ed-strip::-webkit-scrollbar { display: none; }
    .ed-strip span + span::before { margin-right: var(--ed-s3); }
    .ed-body--table .ed-board, .ed-body--table .ed-trail { display: none; }
    .ed-body--table .ed-find { display: none; }
    .ed-iconbtn--wide { display: none; }
    .ed-table__tools .ed-iconbtn { padding: 6px 12px; }
    .ed-demo__acts { width: 100%; }
    .ed-demo__acts .ed-btn { flex: 1; }
    .ed-top__login { display: none; }
    .ed-brand__word { font-size: 1.25rem; }
    .ed-pill__unit { display: none; }
    .ed-hero__board { min-height: 0; padding: var(--ed-s5); }
    .ed-hero__side { grid-template-columns: 1fr; }
    .ed-tile { min-height: 170px; }
    .ed-rail__nudge { display: none; }
    .ed-rail__track { grid-auto-columns: 42%; gap: var(--ed-s3); }
    .ed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ed-s3); }
    .ed-machine__floor { min-height: 360px; }
    .ed-machine__bar { padding: var(--ed-s2) var(--ed-s3); }
    .ed-machine__name { font-size: .9rem; }
    .ed-machine__purse { white-space: nowrap; font-size: .8rem; padding: 6px 10px; }
    .ed-play__view { padding: var(--ed-s3) var(--ed-s2); min-height: 0; }
    .ed-deck { padding: var(--ed-s2); }
    .ed-go { min-height: 50px; }
    .ed-stake__val { min-width: 96px; }
    .ed-go { min-width: 120px; }
    .ed-tiers { grid-template-columns: 1fr; }
    .ed-help__orgs { grid-template-columns: 1fr; }
    .ed-foot__inner { grid-template-columns: 1fr; }
    .ed-dob { grid-template-columns: 1fr 1.4fr 1.1fr; }
    .ed-main > * + * { margin-top: var(--ed-s6); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
