/* 🌯 The Burrito — S/wS wrapper. Same brand tokens every page defines for
 * nav.css, same near-black card language as the swap. Tools pages keep the
 * quieter header on purpose (no .blaze-marquee here — owner, 2026-09-01). */

:root {
    --navbar-bg: #1a1a2e;
    --glow: 0 4px 20px rgba(255, 140, 0, 0.35);
    --c-gold: #ffcf48;
    --c-orange: #ff7a18;
    --wz-bg: #12121f;
    --wz-card: #1c1c2e;
    --wz-line: rgba(255, 207, 72, 0.25);
}

html { background: #b0e8f7; }

body {
    margin: 0;
    /* Flex column pins the footer to the bottom on tall viewports — without
       it the dark bar floated with bare background under it (owner report,
       2026-09-01: "the burito footer is off"). */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* The site background art, same as every other page — shipping without it
       made the Burrito read as an off-brand page (owner, 2026-09-01). */
    background: url('images/BlazeitBG.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    background-color: #b0e8f7;
    color: #f3f3f7;
    font-family: var(--font-body, "Comic Sans MS", system-ui, sans-serif);
    line-height: 1.7;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 8px;
    background: var(--c-gold);
    color: #000;
    padding: 8px 14px;
    border-radius: 6px;
    z-index: 2000;
    transition: top 0.15s;
}
.skip-link:focus { top: 8px; }

.container {
    flex: 1 0 auto;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: calc(var(--nav-h, 88px) + 24px) 16px 48px;
}

/* The dark content panel every page wraps its work in (the .viewer-panel
   language) — the naked-on-art look was half of the owner's "doesn't look
   like our other pages" report (2026-09-01). */
.wz-panel {
    text-align: center;
    background: rgba(0, 0, 0, 0.82);
    border: 2px solid #ff7a18;
    box-shadow: 0 0 12px rgba(255, 69, 0, 0.6);
    border-radius: 20px;
    padding: 24px 20px 28px;
    box-sizing: border-box;
}

.wz-panel h1 {
    margin: 0 0 4px;
    color: var(--c-gold);
    text-shadow: 0 0 14px rgba(255, 122, 24, 0.8);
    font-size: clamp(1.7rem, 5vw, 2.6rem);
}

.wz-tagline {
    margin: 0 auto 22px;
    max-width: 46ch;
    color: rgba(255, 255, 255, 0.82);
}

/* ---- the console card ---- */
.wz-card {
    background: var(--wz-card);
    border: 2px solid var(--c-orange);
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(255, 69, 0, 0.5);
    padding: 22px;
    text-align: left;
    margin: 0 auto 26px;
    max-width: 480px;
    box-sizing: border-box;
}

.wz-balances { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.wz-bal-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--wz-line);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
}

.wz-bal-label { flex: 0 0 auto; font-weight: bold; }

.wz-bal-value {
    flex: 1;
    text-align: right;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-variant-numeric: tabular-nums;
    color: var(--c-gold);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wz-chip {
    flex: 0 0 auto;
    font: inherit;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    min-height: var(--touch, 44px);
    border-radius: 999px;
    border: 1px solid var(--wz-line);
    background: rgba(255, 207, 72, 0.08);
    color: var(--c-gold);
    cursor: pointer;
}
.wz-chip:hover:not(:disabled) { background: rgba(255, 207, 72, 0.2); }
.wz-chip:disabled { opacity: 0.4; cursor: not-allowed; }

.wz-amount-label { display: block; font-weight: bold; margin-bottom: 6px; }

.wz-input {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 1.25rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--wz-line);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
}
.wz-input::placeholder { color: rgba(255, 255, 255, 0.3); }
.wz-input:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 1px; }

.wz-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.wz-btn {
    flex: 1 1 180px;
    font: inherit;
    font-weight: bold;
    font-size: 1rem;
    padding: 12px 14px;
    min-height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffb347, var(--c-orange));
    color: #1a1005;
    cursor: pointer;
    transition: filter 0.15s, transform 0.15s;
}
.wz-btn:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.wz-btn:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; }
.wz-btn:disabled { filter: grayscale(0.7) brightness(0.6); cursor: not-allowed; transform: none; }

/* Reduced motion: the hover still brightens (that is the feedback), but the
   button no longer lifts, and the skip link appears instead of sliding in. */
@media (prefers-reduced-motion: reduce) {
    .wz-btn { transition: filter 0.15s; }
    .wz-btn:hover:not(:disabled) { transform: none; }
    .skip-link { transition: none; }
}

.wz-status { margin: 14px 0 0; min-height: 1.5em; color: rgba(255, 255, 255, 0.85); }
.wz-status[data-tone="error"] { color: #ff6b5e; }
.wz-status[data-tone="ok"] { color: #4ade80; }

.wz-tx { margin: 6px 0 0; font-size: 0.9rem; }
.wz-tx a { color: var(--c-gold); }

/* ---- the info block ---- */
.wz-info {
    text-align: left;
    max-width: 60ch;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--wz-line);
    border-radius: 14px;
    padding: 18px 22px;
}
.wz-info h2 { margin: 0 0 8px; color: var(--c-gold); font-size: 1.2rem; }
.wz-info p { margin: 0 0 12px; }
.wz-info p:last-child { margin-bottom: 0; }
.wz-fine { font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); }
.wz-link { color: var(--c-gold); }

/* ---- footer — the dark bar every other page ends on (revoker.css copy).
   The transparent footer was the other half of the owner's "doesn't look
   like our other pages" report (2026-09-01). ---- */
.footer {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 14px;
    margin-top: 20px;
    box-sizing: border-box;
}
.footer p { margin: 0; }
.trust-strip {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: center;
    align-items: baseline;
    padding: 0 12px;
    font-size: 12px;
    color: #ded6c6; /* opaque: translucent text over a translucent panel has no contrast ratio (READABILITY rule) */
}
.trust-strip a { color: var(--c-gold); text-decoration: none; }
.trust-strip a:hover, .trust-strip a:focus-visible { color: var(--c-orange); text-decoration: underline; }
.trust-sep { opacity: 0.5; }

@media (max-width: 480px) {
    .wz-card { padding: 16px; }
    .wz-actions { flex-direction: column; }
}
