/* ==========================================================================
   MiniGames Café — shared design system
   The look established by previewindex.html and kiriko.html, factored out so
   every page in the site speaks the same language.

   Per-page accent: add a theme class to <body>
     (none)     caramel  — the house blend
     .t-mint    mint     — fair play / anticheat / status
     .t-cherry  cherry   — support, errors, teasers
     .t-amber   amber    — store, pricing, votes
   ========================================================================== */

:root {
    --espresso: #16100b;
    --roast:    #1f1610;
    --mocha:    #2a1e15;
    --crema:    #f3e5cf;
    --latte:    #cbb59a;
    --caramel:  #e8a24c;
    --amber:    #ffc46b;
    --cherry:   #e6604f;
    --mint:     #8fd6a8;

    /* accent — overridden by the theme classes below */
    --accent:    var(--caramel);
    --accent-hi: var(--amber);
    --awning:    var(--cherry);

    /* derived accent tints, so a theme only has to set --accent */
    --a08:  color-mix(in srgb, var(--accent)  8%, transparent);
    --a12:  color-mix(in srgb, var(--accent) 12%, transparent);
    --a16:  color-mix(in srgb, var(--accent) 16%, transparent);
    --a30:  color-mix(in srgb, var(--accent) 30%, transparent);
    --a45:  color-mix(in srgb, var(--accent) 45%, transparent);
    --line: var(--a16);
}

body.t-mint   { --accent: var(--mint);   --accent-hi: #a9e6bf; --awning: var(--mint); }
body.t-cherry { --accent: var(--cherry); --accent-hi: #f2907f; --awning: var(--cherry); }
body.t-amber  { --accent: var(--amber);  --accent-hi: #ffd897; --awning: var(--caramel); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background:
        radial-gradient(1100px 500px at 80% -10%, var(--a08), transparent 60%),
        radial-gradient(900px 600px at 0% 110%, rgba(230, 96, 79, 0.05), transparent 60%),
        var(--espresso);
    color: var(--crema);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--espresso); }

.serif { font-family: 'Fraunces', Georgia, serif; }
.pixel { font-family: 'Press Start 2P', monospace; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--accent); }

/* ── Café awning ────────────────────────────────────────────── */
.awning {
    height: 14px;
    background: repeating-linear-gradient(90deg, var(--awning) 0 44px, var(--crema) 44px 88px);
    border-bottom: 3px solid rgba(0, 0, 0, 0.35);
}
.awning-scallop { display: flex; height: 10px; overflow: hidden; }
.awning-scallop i { flex: 1; border-radius: 0 0 99px 99px; margin: 0 1px; }
.awning-scallop i:nth-child(odd)  { background: var(--awning); }
.awning-scallop i:nth-child(even) { background: var(--crema); }

/* ── Header ─────────────────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(22, 16, 11, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--crema);
}
.brand-mark { width: 26px; height: 26px; image-rendering: pixelated; flex-shrink: 0; }
.brand-name {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.brand-name em { font-style: italic; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a {
    color: var(--latte);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent-hi); }
.nav-cta {
    background: var(--accent);
    color: var(--espresso) !important;
    font-weight: 700 !important;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    transition: transform 0.15s, background 0.15s;
}
.nav-cta:hover { background: var(--accent-hi); transform: translateY(-1px); }

/* pure-CSS mobile menu */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }
@media (max-width: 720px) {
    .nav-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 40px; height: 34px;
        padding: 0 8px;
        border: 1px solid var(--a30);
        border-radius: 9px;
        cursor: pointer;
    }
    .nav-burger i { display: block; height: 2px; background: var(--accent); border-radius: 2px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(22, 16, 11, 0.97);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem 1.5rem 1.1rem;
    }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid var(--a08); }
    .nav-cta { text-align: center; margin-top: 0.9rem; border-bottom: none !important; }
    .nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--accent); outline-offset: 2px; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
    align-items: center;
    padding: 5.5rem 0 4.5rem;
}
.hero.solo { grid-template-columns: 1fr; text-align: center; justify-items: center; }
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; padding: 3.5rem 0 3rem; }
    .hero-art { order: -1; justify-self: center; }
}

.open-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px dashed var(--a45);
    border-radius: 99px;
    padding: 0.5rem 1.1rem;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--accent-hi);
    margin-bottom: 1.6rem;
}
.open-badge .dot {
    width: 7px; height: 7px; border-radius: 2px;
    background: var(--mint);
    animation: blink 1.8s ease infinite;
}
.open-badge .dot.off  { background: var(--cherry); }
.open-badge .dot.warn { background: var(--amber); }
@keyframes blink { 50% { opacity: 0.25; } }

h1 {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(2.6rem, 6.5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.015em;
    margin-bottom: 1.3rem;
}
h1 .steamy {
    font-style: italic;
    color: var(--accent);
    white-space: nowrap;
}

.hero-sub {
    color: var(--latte);
    font-size: 1.08rem;
    max-width: 52ch;
    margin-bottom: 2.1rem;
}
.hero.solo .hero-sub { margin-left: auto; margin-right: auto; }
.hero-sub strong { color: var(--crema); font-weight: 600; }

/* IP chip */
.ip-row { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.1rem; }
.ip-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--roast);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.85rem 1.15rem;
}
.ip-chip .lbl { font-size: 0.55rem; color: var(--latte); letter-spacing: 0.08em; }
.ip-chip .addr {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--crema);
}
.copy-ip {
    cursor: pointer;
    background: var(--a12);
    color: var(--accent-hi);
    border: 1px solid var(--a30);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    border-radius: 9px;
    transition: background 0.15s, color 0.15s;
}
.copy-ip:hover { background: var(--a30); }
.copy-ip.done {
    background: rgba(143, 214, 168, 0.16);
    border-color: rgba(143, 214, 168, 0.4);
    color: var(--mint);
}

/* ── Buttons ────────────────────────────────────────────────── */
.hero-actions, .btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero.solo .hero-actions { justify-content: center; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: var(--espresso); }
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-2px); }
.btn-ghost { color: var(--crema); border-color: rgba(243, 229, 207, 0.25); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hi); transform: translateY(-2px); }
.btn-small { padding: 0.55rem 1.05rem; font-size: 0.85rem; border-radius: 10px; }
.btn[aria-disabled="true"] {
    opacity: 0.45;
    pointer-events: none;
}

.text-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
}
.text-link:hover { color: var(--accent-hi); }

.back-line { text-align: center; padding: 0 0 3rem; }
.back-line a {
    color: var(--latte);
    text-decoration: none;
    font-size: 0.88rem;
}
.back-line a:hover { color: var(--accent-hi); }

/* ── Pixel art ──────────────────────────────────────────────── */
.hero-art { position: relative; width: 300px; margin: 0 auto; }
.px-grid {
    --px: 22px;
    display: grid;
    grid-auto-rows: var(--px);
    justify-content: center;
    filter: drop-shadow(0 18px 40px var(--a30));
}
.px-grid i { display: block; }
@media (max-width: 480px) { .px-grid { --px: 17px; } }

.px-crema  { background: #f3e5cf; }
.px-cream2 { background: #e2cdab; }
.px-coffee { background: #6b4226; }
.px-coffee2{ background: #55341d; }
.px-plate  { background: #c9a06a; }
.px-plate2 { background: #a87f4e; }
.px-cherry { background: #e6604f; }
.px-cherry2{ background: #b8452f; }
.px-caramel{ background: #e8a24c; }
.px-amber  { background: #ffc46b; }
.px-mint   { background: #8fd6a8; }
.px-mint2  { background: #63b586; }
.px-dark   { background: #2a1e15; }

.steam {
    position: absolute;
    top: -66px;
    left: 50%;
    width: 132px;
    transform: translateX(-58%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.steam i {
    width: 12px; height: 12px;
    background: var(--crema);
    opacity: 0;
    animation: puff 3.2s ease-in infinite;
}
.steam i:nth-child(2) { animation-delay: 1.1s; }
.steam i:nth-child(3) { animation-delay: 2.2s; }
@keyframes puff {
    0%   { opacity: 0;    transform: translateY(34px) scale(0.8); }
    25%  { opacity: 0.55; }
    100% { opacity: 0;    transform: translateY(-34px) scale(1.5); }
}

.scanline {
    position: absolute;
    left: 50%; top: 0;
    width: 264px; height: 3px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan 3.4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes scan {
    0%, 100% { top: 6%;  opacity: 0.2; }
    50%      { top: 82%; opacity: 0.9; }
}

.art-caption {
    text-align: center;
    margin-top: 1.4rem;
    font-size: 0.55rem;
    color: var(--latte);
    letter-spacing: 0.1em;
}

/* ── Ticker ─────────────────────────────────────────────────── */
.ticker {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--roast);
    overflow: hidden;
    white-space: nowrap;
    padding: 0.8rem 0;
}
.ticker-track { display: inline-block; animation: slide 30s linear infinite; }
.ticker span {
    font-size: 0.6rem;
    color: var(--latte);
    letter-spacing: 0.14em;
    margin: 0 1.6rem;
}
.ticker span b { color: var(--accent); font-weight: 400; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Sections ───────────────────────────────────────────────── */
section { padding: 5rem 0; }
section.tight { padding: 3rem 0; }

.sec-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: 1rem;
}
.sec-title {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 0.9rem;
}
.sec-title em { font-style: italic; color: var(--accent); }
.sec-sub { color: var(--latte); max-width: 60ch; margin-bottom: 3rem; }
.sec-sub:last-child { margin-bottom: 0; }
.sec-sub a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--a30), transparent);
    margin: 0;
}

/* ── Menu board (the chalkboard list) ───────────────────────── */
.menu-board {
    background: var(--roast);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 2.75rem 2.5rem;
    position: relative;
}
@media (max-width: 560px) { .menu-board { padding: 2.4rem 1.4rem 2rem; } }
.menu-board::before {
    content: '✦ ✦ ✦';
    position: absolute;
    top: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--a45);
    font-size: 0.7rem;
    letter-spacing: 1em;
    padding-left: 1em;
}
.menu-head {
    text-align: center;
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--latte);
    margin: 0.8rem 0 2.2rem;
    font-size: 0.98rem;
}
.menu-list { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .menu-list { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; } }
.menu-list.single { grid-template-columns: 1fr; }

.dish { display: flex; flex-direction: column; gap: 0.3rem; }
.dish-row { display: flex; align-items: baseline; gap: 0.6rem; }
.dish-name {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.22rem;
    color: var(--crema);
    white-space: nowrap;
}
.dish-dots {
    flex: 1;
    border-bottom: 2px dotted rgba(203, 181, 154, 0.35);
    transform: translateY(-4px);
}
.dish-tag {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    white-space: nowrap;
}
.dish-desc { color: var(--latte); font-size: 0.9rem; }

.tag-amber  { background: rgba(232, 162, 76, 0.15);  color: var(--amber); border: 1px solid rgba(232, 162, 76, 0.35); }
.tag-mint   { background: rgba(143, 214, 168, 0.12); color: var(--mint);  border: 1px solid rgba(143, 214, 168, 0.3); }
.tag-cherry { background: rgba(230, 96, 79, 0.14);   color: #f2907f;      border: 1px solid rgba(230, 96, 79, 0.35); }
.tag-mute   { background: rgba(203, 181, 154, 0.1);  color: var(--latte); border: 1px solid rgba(203, 181, 154, 0.25); }

.menu-foot { text-align: center; margin-top: 2.4rem; font-size: 0.85rem; color: var(--latte); }
.menu-foot a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }
.menu-foot a:hover { color: var(--accent-hi); }

/* ── Perk cards ─────────────────────────────────────────────── */
.perks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}
.perk {
    background: var(--roast);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.75rem 1.6rem;
    transition: transform 0.25s, border-color 0.25s;
}
.perk:hover { transform: translateY(-4px); border-color: var(--a45); }
.perk-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--a12);
    border: 1px solid var(--a30);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem;
    font-size: 1.2rem;
}
.perk-icon svg {
    width: 22px; height: 22px;
    stroke: var(--accent); stroke-width: 1.8;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.perk h3 { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.45rem; }
.perk p { font-size: 0.88rem; color: var(--latte); }
.perk p a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }

/* ── Numbered directions ────────────────────────────────────── */
.directions {
    display: grid;
    gap: 0;
    counter-reset: step;
    border-left: 2px dashed var(--a45);
    margin-left: 0.6rem;
    padding-left: 2rem;
}
.dstep { position: relative; padding-bottom: 2.2rem; }
.dstep:last-child { padding-bottom: 0; }
.dstep::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: calc(-2rem - 0.6rem - 15px);
    top: -2px;
    width: 30px; height: 30px;
    background: var(--accent);
    color: var(--espresso);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.dstep h3 { font-family: 'Fraunces', serif; font-size: 1.15rem; margin-bottom: 0.35rem; }
.dstep p { color: var(--latte); font-size: 0.92rem; max-width: 58ch; }
.dstep p a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }
.dstep p a:hover { color: var(--accent-hi); }

code, .code {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    color: var(--crema);
    background: var(--a12);
    border: 1px solid var(--a30);
    border-radius: 6px;
    padding: 0.1rem 0.5rem;
}

/* ── Countdown ──────────────────────────────────────────────── */
.opening {
    background: var(--roast);
    border: 1px solid var(--line);
    border-radius: 22px;
    text-align: center;
    padding: 3.5rem 2rem;
}
.opening .sec-eyebrow { margin-bottom: 0.8rem; }
.opening h2 {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    margin-bottom: 2.2rem;
}
.opening h2 em { font-style: italic; color: var(--accent); }
.cd { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.cd-cell {
    background: var(--espresso);
    border: 1px solid var(--line);
    border-radius: 14px;
    min-width: 96px;
    padding: 1.1rem 0.8rem 0.9rem;
}
.cd-cell b {
    display: block;
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--accent-hi);
    font-variant-numeric: tabular-nums;
}
.cd-cell span {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.5rem;
    letter-spacing: 0.14em;
    color: var(--latte);
}
.date-line { color: var(--latte); font-size: 0.92rem; }
.date-line strong { color: var(--crema); }
.date-line a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }
.cd-live { font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--mint); font-weight: 700; }

/* ── Progress bars ──────────────────────────────────────────── */
.bar-cap {
    display: flex;
    justify-content: space-between;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    color: var(--latte);
    margin-bottom: 0.6rem;
}
.bar-track {
    height: 10px;
    background: var(--espresso);
    border: 1px solid var(--line);
    border-radius: 99px;
    overflow: hidden;
}
/* The final width lives inline in the HTML and the animation grows *from*
   zero, so a bar is always correct even if animations never run. */
.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hi));
    border-radius: 99px;
    animation: grow 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes grow { from { width: 0; } }

.build-bar { max-width: 34rem; margin: 2.4rem auto 0; }

.breakdown { display: grid; gap: 1.1rem; }
.breakdown-row { display: grid; grid-template-columns: 12rem 1fr 3.2rem; gap: 1rem; align-items: center; }
@media (max-width: 620px) { .breakdown-row { grid-template-columns: 1fr 3.2rem; } .breakdown-row .bar-track { grid-column: 1 / -1; } }
.breakdown-row .name { font-size: 0.9rem; color: var(--crema); }
.breakdown-row .pct {
    text-align: right;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    color: var(--accent-hi);
    font-variant-numeric: tabular-nums;
}

/* ── Panels, notes, callouts ────────────────────────────────── */
.panel {
    background: var(--roast);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.9rem 1.8rem;
}
@media (max-width: 560px) { .panel { padding: 1.5rem 1.2rem; } }
.panel + .panel { margin-top: 1.2rem; }
.panel h2, .panel h3 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.panel h2 .ico, .panel h3 .ico { font-size: 1.1rem; }
.panel p { color: var(--latte); font-size: 0.93rem; }
.panel p + p { margin-top: 0.8rem; }
.panel a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }
.panel a:hover { color: var(--accent-hi); }
.panel strong { color: var(--crema); }

.rule-ol { counter-reset: rule; list-style: none; display: grid; gap: 0.85rem; }
.rule-ol li {
    position: relative;
    padding-left: 2.2rem;
    color: var(--latte);
    font-size: 0.93rem;
}
.rule-ol li::before {
    counter-increment: rule;
    content: counter(rule);
    position: absolute;
    left: 0; top: 0.15rem;
    width: 1.5rem; height: 1.5rem;
    border-radius: 6px;
    background: var(--a12);
    border: 1px solid var(--a30);
    color: var(--accent-hi);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.tick-list { list-style: none; display: grid; gap: 0.7rem; }
.tick-list li {
    position: relative;
    padding-left: 1.7rem;
    color: var(--latte);
    font-size: 0.93rem;
}
.tick-list li::before {
    content: '✦';
    position: absolute;
    left: 0; top: 0;
    color: var(--accent);
    font-size: 0.8rem;
}
.tick-list li strong { color: var(--crema); }

.note {
    margin-top: 1.2rem;
    background: var(--a08);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    padding: 0.85rem 1.1rem;
    font-size: 0.87rem;
    color: var(--latte);
}
.note strong { color: var(--crema); }

.callout {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--a12), rgba(230, 96, 79, 0.05));
    border: 1px solid var(--a30);
    border-radius: 20px;
    padding: 1.8rem 1.8rem;
}
@media (max-width: 560px) { .callout { flex-direction: column; gap: 0.9rem; padding: 1.5rem 1.2rem; } }
.callout .callout-ico {
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--a12);
    border: 1px solid var(--a30);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.callout .callout-title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.callout p { color: var(--latte); font-size: 0.92rem; }
.callout a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }
.callout strong { color: var(--crema); }

/* ── Feature cards (kiriko "only one of its kind") ──────────── */
.card-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 780px) { .card-duo { grid-template-columns: 1fr; } }
.big-card {
    background: linear-gradient(135deg, var(--a12), rgba(232, 162, 76, 0.05));
    border: 1px solid var(--a30);
    border-radius: 22px;
    padding: 2.4rem 2.2rem;
}
@media (max-width: 560px) { .big-card { padding: 1.8rem 1.4rem; } }
.big-card.wide { grid-column: 1 / -1; }
.big-card .num {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 1rem;
}
.big-card h3 {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.45rem;
    line-height: 1.2;
    margin-bottom: 0.7rem;
}
.big-card h3 em { font-style: italic; color: var(--accent); }
.big-card p { color: var(--latte); font-size: 0.93rem; }
.big-card p + p { margin-top: 0.7rem; }
.big-card a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }

/* ── Stat tiles ─────────────────────────────────────────────── */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.stat {
    background: var(--roast);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.4rem 1.2rem;
    text-align: center;
}
.stat b {
    display: block;
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 2rem;
    line-height: 1;
    color: var(--accent-hi);
    font-variant-numeric: tabular-nums;
}
.stat b small { font-size: 1rem; color: var(--latte); font-weight: 400; }
.stat span {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.5rem;
    letter-spacing: 0.13em;
    color: var(--latte);
}

/* ── Service / status rows ──────────────────────────────────── */
.rows { display: grid; gap: 0.7rem; }
.srow {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--roast);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.2rem;
}
@media (max-width: 620px) { .srow { flex-wrap: wrap; gap: 0.6rem 1rem; } }
.srow .lamp {
    width: 10px; height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
    background: var(--cherry);
}
.srow .lamp.up { background: var(--mint); animation: blink 2.4s ease infinite; }
.srow .lamp.warn { background: var(--amber); }
.srow .who { flex: 1; min-width: 10rem; }
.srow .who b { display: block; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1rem; }
.srow .who span { display: block; font-size: 0.82rem; color: var(--latte); }
.srow .ping { font-size: 0.8rem; color: var(--latte); font-variant-numeric: tabular-nums; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.65rem;
    border-radius: 99px;
    white-space: nowrap;
}
.pill-off  { background: rgba(230, 96, 79, 0.14);   color: #f2907f;      border: 1px solid rgba(230, 96, 79, 0.35); }
.pill-up   { background: rgba(143, 214, 168, 0.12); color: var(--mint);  border: 1px solid rgba(143, 214, 168, 0.3); }
.pill-warn { background: rgba(232, 162, 76, 0.15);  color: var(--amber); border: 1px solid rgba(232, 162, 76, 0.35); }

/* uptime bars */
.uptime { display: grid; gap: 1.4rem; }
.uptime-card {
    background: var(--roast);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
}
.uptime-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
}
.uptime-head b { font-family: 'Fraunces', serif; font-weight: 700; }
.uptime-head .pct { font-variant-numeric: tabular-nums; color: var(--amber); font-weight: 600; }
.uptime-bars { display: flex; gap: 3px; height: 34px; }
.uptime-bars i { flex: 1; border-radius: 3px; background: var(--mint); min-width: 3px; }
.uptime-bars i.down    { background: var(--cherry); }
.uptime-bars i.partial { background: var(--amber); }
.uptime-bars i.nodata  { background: rgba(203, 181, 154, 0.18); }
.uptime-foot {
    display: flex; justify-content: space-between;
    margin-top: 0.7rem;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: var(--latte);
}

/* incident timeline */
.timeline {
    display: grid;
    gap: 0;
    border-left: 2px dashed var(--a45);
    margin-left: 0.6rem;
    padding-left: 2rem;
}
.tl-item { position: relative; padding-bottom: 2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 0.6rem - 9px);
    top: 6px;
    width: 18px; height: 18px;
    border-radius: 6px;
    background: var(--cherry);
    border: 3px solid var(--espresso);
}
.tl-item.ok::before   { background: var(--mint); }
.tl-item.warn::before { background: var(--amber); }
.tl-head { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.tl-head b { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.05rem; }
.tl-when { font-size: 0.8rem; color: var(--latte); margin-bottom: 0.5rem; }
.tl-item p { font-size: 0.9rem; color: var(--latte); max-width: 62ch; }
.tl-item p + p { margin-top: 0.5rem; }
.tl-item p strong { color: var(--crema); }

/* ── Tabs ───────────────────────────────────────────────────── */
.tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
}
.tab-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--latte);
    background: var(--roast);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 0.6rem 1.1rem;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: var(--crema); border-color: var(--a45); }
.tab-btn[aria-selected="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--espresso);
}
.tab-panel[hidden] { display: none; }

/* ── Tables ─────────────────────────────────────────────────── */
.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--roast);
}
table.cafe {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    min-width: 640px;
}
table.cafe th, table.cafe td {
    padding: 0.75rem 0.9rem;
    text-align: center;
    border-bottom: 1px solid var(--a08);
}
table.cafe th:first-child, table.cafe td:first-child { text-align: left; color: var(--crema); }
table.cafe thead th {
    position: sticky; top: 0;
    background: var(--mocha);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--latte);
    font-weight: 600;
}
table.cafe td { color: var(--latte); }
table.cafe tr.group td {
    background: var(--a08);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-align: left;
}
table.cafe .yes { color: var(--mint); font-weight: 700; }
table.cafe .no  { color: rgba(203, 181, 154, 0.35); }
table.cafe tr.expander td {
    cursor: pointer;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: center;
}
table.cafe tr.expander:hover td { color: var(--accent-hi); }
table.cafe tr[hidden] { display: none; }

.rank {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    white-space: nowrap;
}
.rank-vip   { color: var(--mint); }
.rank-vipp  { color: var(--mint); }
.rank-mvp   { color: #7cc7ea; }
.rank-mvpp  { color: #7cc7ea; }
.rank-cafe  { color: var(--caramel); }
.rank-media { color: #e39bd4; }
.rank-plus  { color: var(--cherry); }

/* ── Price cards ────────────────────────────────────────────── */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}
.price-card {
    position: relative;
    background: var(--roast);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.8rem 1.4rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, border-color 0.25s;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--a45); }
.price-card.featured { border-color: var(--a45); background: linear-gradient(160deg, var(--a12), var(--roast) 55%); }
.price-badge {
    position: absolute;
    top: -0.7rem; left: 50%;
    transform: translateX(-50%);
    font-size: 0.48rem;
    letter-spacing: 0.12em;
    background: var(--accent);
    color: var(--espresso);
    padding: 0.3rem 0.7rem;
    border-radius: 99px;
    white-space: nowrap;
}
.price-card .tier {
    font-size: 0.5rem;
    letter-spacing: 0.14em;
    color: var(--latte);
    margin-bottom: 0.9rem;
}
.price-card .head {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.7rem;
    line-height: 1.1;
    margin-bottom: 0.15rem;
}
.price-card .sub { font-size: 0.85rem; color: var(--latte); margin-bottom: 1.1rem; }
.price-card .amount {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 1.9rem;
    color: var(--accent-hi);
    line-height: 1.1;
}
.price-card .per { font-size: 0.5rem; letter-spacing: 0.12em; color: var(--latte); margin-top: 0.4rem; }
.price-card .feats {
    list-style: none;
    text-align: left;
    display: grid;
    gap: 0.5rem;
    margin: 1.2rem 0;
    font-size: 0.85rem;
    color: var(--latte);
    flex: 1;
}
.price-card .feats li { display: flex; gap: 0.5rem; align-items: flex-start; }
.price-card .feats li .mk { color: var(--mint); flex-shrink: 0; }
.price-card .feats li.off { color: rgba(203, 181, 154, 0.4); text-decoration: line-through; }
.price-card .feats li.off .mk { color: rgba(230, 96, 79, 0.6); text-decoration: none; }
.price-card .btn { margin-top: auto; width: 100%; }

/* ── Calculator ─────────────────────────────────────────────── */
.calc { display: grid; gap: 0.7rem; }
.calc-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem 1rem;
    background: var(--roast);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    transition: border-color 0.2s;
}
.calc-row:has(input[type="checkbox"]:checked) { border-color: var(--a45); }
.calc-pick { display: flex; align-items: center; gap: 0.7rem; }
.calc-pick input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}
.calc-pick label { font-weight: 600; color: var(--crema); cursor: pointer; }
.calc-rate { font-size: 0.8rem; color: var(--latte); }
.calc-qty { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--latte); }
.calc-qty[hidden] { display: none; }
.calc-qty input {
    width: 4.5rem;
    background: var(--espresso);
    border: 1px solid var(--a30);
    color: var(--crema);
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}
.calc-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}
.calc-total span { font-size: 0.58rem; letter-spacing: 0.14em; color: var(--latte); }
.calc-total b {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    color: var(--accent-hi);
    font-variant-numeric: tabular-nums;
}

/* ── Team cards ─────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}
.team-card {
    background: var(--roast);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.9rem 1.4rem 1.6rem;
    text-align: center;
    transition: transform 0.25s, border-color 0.25s;
}
.team-card:hover { transform: translateY(-5px); border-color: var(--a45); }
.team-card.lead { border-color: var(--a45); background: linear-gradient(160deg, var(--a12), var(--roast) 60%); }
.team-avatar {
    width: 92px; height: 92px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid var(--a45);
    margin-bottom: 1rem;
    background: var(--mocha);
}
.team-card.lead .team-avatar { width: 106px; height: 106px; }
.team-badge {
    display: inline-block;
    font-size: 0.45rem;
    letter-spacing: 0.12em;
    background: var(--a12);
    border: 1px solid var(--a30);
    color: var(--accent-hi);
    border-radius: 99px;
    padding: 0.3rem 0.7rem;
    margin-bottom: 0.7rem;
}
.team-name { font-family: 'Fraunces', serif; font-weight: 900; font-size: 1.3rem; margin-bottom: 0.6rem; }
.team-roles { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; margin-bottom: 0.9rem; }
.role-tag {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    color: var(--latte);
    border: 1px solid var(--a30);
    border-radius: 99px;
    padding: 0.2rem 0.6rem;
}
.team-desc { font-size: 0.85rem; color: var(--latte); }

/* ── Avatar strip ───────────────────────────────────────────── */
.avatar-strip { display: flex; justify-content: center; margin: 1.6rem 0 1rem; }
.avatar-strip img {
    width: 54px; height: 54px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--roast);
    margin-left: -12px;
    background: var(--mocha);
}
.avatar-strip img:first-child { margin-left: 0; }

/* ── Portfolio / partner cards ──────────────────────────────── */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}
.tile {
    background: var(--roast);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, border-color 0.25s;
}
.tile:hover { transform: translateY(-5px); border-color: var(--a45); }
.tile-media {
    aspect-ratio: 16 / 10;
    background: var(--mocha);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-media .placeholder { font-size: 2.2rem; opacity: 0.5; }
.tile-body { padding: 1.4rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.tile-body h3 { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.45rem; }
.tile-body p { font-size: 0.88rem; color: var(--latte); }
.tile-body p + p { margin-top: 0.6rem; }
.tile-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tile-quote {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--crema);
    border-left: 2px solid var(--a45);
    padding-left: 0.9rem;
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

/* ── Console (kiriko live feed) ─────────────────────────────── */
.console {
    background: #100c08;
    border: 1px solid var(--a30);
    border-radius: 18px;
    overflow: hidden;
}
.console-bar {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    background: var(--roast);
    border-bottom: 1px solid var(--line);
}
.console-bar i { width: 10px; height: 10px; border-radius: 99px; display: block; }
.console-bar i:nth-child(1) { background: var(--cherry); }
.console-bar i:nth-child(2) { background: var(--amber); }
.console-bar i:nth-child(3) { background: var(--mint); }
.console-bar span { margin-left: 0.6rem; font-size: 0.5rem; letter-spacing: 0.12em; color: var(--latte); }
.console-body {
    padding: 1.3rem 1.4rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.52rem;
    line-height: 2.4;
    letter-spacing: 0.06em;
    overflow-x: auto;
}
.console-body .ln { display: block; color: var(--latte); white-space: pre-wrap; }
.console-body .ok   { color: var(--mint); }
.console-body .warn { color: var(--amber); }
.console-body .flag { color: #f2907f; }

/* ── Highlight strip / tip jar ──────────────────────────────── */
.tipjar {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
    background: linear-gradient(135deg, var(--a12), rgba(230, 96, 79, 0.06));
    border: 1px solid var(--a30);
    border-radius: 22px;
    padding: 2.75rem 2.5rem;
}
@media (max-width: 780px) { .tipjar { grid-template-columns: 1fr; padding: 2rem 1.4rem; } }
.tipjar h2 {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 0.8rem;
}
.tipjar h2 em { font-style: italic; color: var(--accent); }
.tipjar p { color: var(--latte); font-size: 0.95rem; max-width: 52ch; }
.tipjar .side { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
@media (max-width: 780px) { .tipjar .side { align-items: stretch; } }
.tip-note { font-size: 0.8rem; color: var(--latte); }

/* ── Code block (email template etc.) ───────────────────────── */
.pre {
    background: #100c08;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.2rem 1.3rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    line-height: 1.85;
    color: var(--latte);
    white-space: pre-wrap;
    overflow-x: auto;
}
.pre .slot { color: var(--accent-hi); }
.pre strong { color: var(--crema); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--line);
    padding: 3rem 0 2.5rem;
    margin-top: 2rem;
}
.foot-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.foot-brand { max-width: 34ch; }
.foot-brand .brand-name { font-size: 1.2rem; }
.foot-brand p { margin-top: 0.7rem; color: var(--latte); font-size: 0.85rem; }
.foot-col h4 {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 0.9rem;
    font-family: 'Press Start 2P', monospace;
    font-weight: 400;
}
.foot-col a {
    display: block;
    color: var(--latte);
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
    transition: color 0.15s;
}
.foot-col a:hover { color: var(--accent-hi); }
.foot-bottom {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: rgba(203, 181, 154, 0.6);
}

/* ── Utilities ──────────────────────────────────────────────── */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.stack { display: grid; gap: 1.2rem; }
.muted { color: var(--latte); }
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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