:root {
    color-scheme: dark;
    --bg: #090909;
    --card: #151515;
    --tx: #f4f1e8;
    --mute: #b9b4a4;
    --gold: #ffd21f;
    --gold2: #b8860b;
    --red: #ff3b30;
    --ac: var(--gold);
    --line: #6b5300;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
[hidden] { display: none !important; }

body {
    margin: 0;
    background: radial-gradient(ellipse at 50% -10%, #3a2c00 0, transparent 55%), #090909;
    background-attachment: fixed;
    color: var(--tx);
    font: 16px/1.6 "Trebuchet MS", Verdana, sans-serif;
    padding: env(safe-area-inset-top, 0px) 0 calc(96px + env(safe-area-inset-bottom, 0px));
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-items: center;
    justify-content: space-between;
    padding: 14px clamp(16px, 4vw, 48px);
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(9, 9, 9, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px dashed var(--gold2);
}

.brand {
    font: italic 700 26px Georgia, serif;
    color: var(--gold);
    text-decoration: none !important;
    text-shadow: 0 0 14px rgba(255, 210, 31, .35);
}
.brand span { color: #fff; font-weight: 400; }

.top nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--tx); font-size: 14px; text-decoration: none; }
.top nav a:hover { color: var(--gold); }
#acct { display: contents; }

.w { max-width: 1180px; margin: 0 auto; padding: 28px 20px 0; }

.headbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px dashed var(--gold2);
}

h1 { margin: 0; font: italic 700 30px Georgia, serif; color: var(--gold); }
h2 { margin: 0 0 6px; font: italic 700 22px Georgia, serif; color: var(--gold); }

.btn {
    display: inline-block;
    border-radius: 999px;
    padding: 8px 16px;
    font: 600 14px inherit;
    border: 2px solid var(--gold);
    cursor: pointer;
    text-decoration: none !important;
    margin: 2px;
}
.btn.p { background: var(--gold); color: #1a1400; }
.btn.p:hover { filter: brightness(1.08); color: #1a1400; }
.btn.s { background: transparent; color: var(--gold); }
.btn.s:hover { border-color: #fff; color: #fff; }
.btn.sm { padding: 6px 14px; font-size: 13px; }

.bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px clamp(14px, 4vw, 40px) calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(12, 12, 12, .96);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--gold);
}

.bar button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    background: var(--gold);
    color: #1a1400;
    font-size: 20px;
    cursor: pointer;
    flex: none;
}

.bt { flex: 1; min-width: 0; }
.bt b, .bt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt small { color: var(--mute); font-size: 13px; }
#pt { color: var(--gold) !important; }
.bar input { width: 110px; accent-color: var(--gold); }
.bc { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }

@media (max-width: 640px) {
    .bar input { width: 80px; }
    .brand { font-size: 22px; }
}