/* Hub pages on a scrolling page. /rules, /terms and /privacy keep v1's website look (v1 public/css/account.css +
   client/other.css): beige pages with a tan card and GS body text, the page title v1's Edo-font home link (body.page).
   /account, /reset-password and /verify-email wear the new website's look (body.acct, below). */
html, body.page { height: auto; min-height: 100%; overflow: auto; }
body.page { display: flex; justify-content: center; padding: 32px 16px; box-sizing: border-box; background: #3a5e3a; color: #f5f0d9; text-shadow: 0 1px 1px rgba(1, 1, 1, 0.3); }
body.page > .panel { max-width: 620px; padding: 24px; background: rgba(0, 0, 0, 0.15); border: 1px solid rgba(245, 240, 217, 0.2); border-radius: 6px; }
body.page h1 { font: 34px "Edo", var(--font); letter-spacing: 1px; }
body.page .panel h1 a { color: inherit; text-decoration: none; }
body.page h2 { font-size: 18px; color: #f5f0d9; opacity: 0.85; }
body.page .panel a { color: #f7941d; }
body.page .panel a:hover { color: #e98200; }
body.page .panel button { background: #f7941d; }
body.page .panel button:hover { background: #e98200; }
body.page .panel button.secondary { background: transparent; box-shadow: inset 0 0 0 1px #f7941d; color: #f7941d; text-shadow: none; }
body.page .panel button.secondary:hover { background: rgba(247, 148, 29, 0.15); }
body.page .panel button.link { background: none; box-shadow: none; color: #f7941d; }
body.page .panel input:not([type=checkbox]):not([type=range]), body.page .panel select { background: #3e3e2f; color: #f5f0d9; text-shadow: none; }
body.page .panel input:focus, body.page .panel select:focus { background: #4a4a3a; box-shadow: 0 0 5px rgba(247, 148, 29, 0.5); outline: none; }
body.page label { color: #f5f0d9; }
body.page .form-note, body.page .hint { color: rgba(245, 240, 217, 0.75); }
body.page .form-error { color: #ffb4a8; }
body.page .form-ok { color: #b8f0a0; }
#app { display: flex; flex-direction: column; gap: 14px; }
#app form { display: flex; flex-direction: column; gap: 10px; }
#app section { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(245, 240, 217, 0.2); }
#app h3 { margin: 0; font-size: 17px; font-weight: normal; color: #f5f0d9; }
.profile { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.profile-name { font-size: 22px; }
.title-tag { margin-left: 8px; padding: 1px 6px; border-radius: 4px; background: #f7941d; color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; vertical-align: middle; }
.banner { padding: 10px 12px; border-radius: 4px; background: rgba(255, 193, 7, 0.4); font-size: 14px; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.row > * { flex: 1 1 140px; }
.table-wrap { overflow-x: auto; }
table.worlds { width: 100%; border-collapse: collapse; font-size: 13px; }
table.worlds th, table.worlds td { padding: 5px 6px; border-bottom: 1px solid rgba(245, 240, 217, 0.2); text-align: left; white-space: nowrap; }
table.worlds th { font-size: 12px; font-weight: normal; color: rgba(245, 240, 217, 0.75); }
table.worlds input:not([type=checkbox]) { width: 120px; padding: 5px 6px; }
.panel button.small { padding: 5px 9px; font-size: 13px; }
.key-box { display: block; padding: 8px; border-radius: 4px; background: #2a2a20; font: 12px ui-monospace, Consolas, monospace; text-shadow: none; word-break: break-all; user-select: all; }
a.button { display: block; padding: 9px 10px; border-radius: 4px; background: #f7941d; color: #fff !important; text-align: center; text-decoration: none; text-shadow: 1px 1px #000; }
a.button:hover { background: #e98200; }

.friends { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.friends .online { color: #7d5; }
.friends .offline { opacity: 0.5; }

/* Legal pages: v1's beige site with a tan card (div#rules / #terms / #privacy). */
body.page:has(.legal) { background: #ddc; color: #3c3c3c; text-shadow: none; }
body.page > .panel.legal { max-width: 760px; background: #dca; border: none; border-radius: 0; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3), 0 6px 20px 0 rgba(0, 0, 0, 0.3); }
.legal { text-align: left; line-height: 1.55; font-family: "GS", var(--font); font-size: 16px; letter-spacing: 0.3px; }
.legal h1, .legal h2 { text-align: center; }
body.page .legal h1 { color: #642; }
body.page .legal h2 { color: #3c3c3c; font-size: 24px; opacity: 1; }
.legal h3, .legal h4 { margin: 1.4em 0 0.4em; font-family: var(--font); font-weight: normal; }
.legal ul { padding-left: 1.3em; }
body.page .legal a { color: #642; text-decoration: underline; }
body.page .legal a:hover { color: #000; }
.legal-links { margin-top: 24px; text-align: center; font-size: 14px; opacity: 0.85; }
.legal-links a { color: inherit; }
body.page .legal-links a { color: inherit; }
html:has(> body.page) { background: #3a5e3a; }
html:has(> body.page .legal) { background: #ddc; }

/* ==== /account, /reset-password, /verify-email (client/account/accountPage.js, tokenPages.js): the website's look ===
   On top of /site.css (site/home/style.css: the header, Barlow and Barlow Condensed, the green-black ground, warm
   off-white text, gold accents): a dark picture fading into the ground behind the title, pill tabs, cards as the
   website's (#141c17, a 1px #2a362f line, 16px corners), condensed uppercase headings and buttons, gold for the main
   action. The game's own popups (client/ui/dialog.js) and the sign-in window take the same colours. Phone: 16px gutters. */
html:has(> body.acct) { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; background: var(--bg); }
/* clip, not hidden: a hidden overflow would make the body a scroll container and break the sticky try-on preview */
body.acct { height: auto; min-height: 100%; overflow: visible; overflow-x: clip; }
body.acct {
  --dim: #9a9586; --field: #0a0f0c; --raise: #1b251f; --ok: #7cc48a; --ok-bg: rgba(124, 196, 138, 0.14); --bad: #f08a6c; --bad-bg: rgba(240, 138, 108, 0.14);
  /* the game's tokens, as client/style.css's popups and name tags use them */
  --font: var(--body); --orange: var(--gold); --orange-hover: var(--gold-hi); --green: #3f8f52; --green-hover: #4ba45f; --red: #c4432b; --red-hover: #d9533a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.7); --r: 10px;
  margin: 0; padding: 0; display: flex; flex-direction: column; position: relative; isolation: isolate;
  background: var(--bg); color: var(--text); font: 16px/1.5 var(--body); letter-spacing: normal; text-shadow: none;
}
/* the castle-and-moat picture behind the title, fading into the ground (under the header's own solid ground) */
body.acct::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 480px; pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 19, 16, 0.5) 0%, rgba(13, 19, 16, 0.82) 55%, var(--bg) 100%), url(/media/moat-wide-1024.webp) center 60% / cover no-repeat; }
body.acct *, body.acct *::before, body.acct *::after { box-sizing: border-box; }
.acct button, .acct input, .acct select, .acct textarea { font-family: var(--body); letter-spacing: normal; }

.acct-main { flex: 1 0 auto; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px 80px; }
.acct-hero { padding: 48px 0 26px; }
.acct-eyebrow { margin: 0 0 10px; font: 700 16px/1.2 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.acct .acct-title { margin: 0; font: 800 clamp(44px, 6vw, 72px)/.92 var(--head); text-transform: uppercase; color: var(--text); }

/* buttons: gold (the main action), outlined (secondary), green / red, a plain link */
.acct a.btn, .acct button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border: 2px solid var(--gold); border-radius: 10px; background: var(--gold); color: #17120a; font: 800 17px/1 var(--head); letter-spacing: .07em; text-transform: uppercase; text-shadow: none; text-decoration: none; cursor: pointer; }
.acct a.btn:hover, .acct button:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: #17120a; }
.acct button.secondary { background: transparent; border-color: #4a5a50; color: var(--text); }
.acct button.secondary:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.acct button.green { background: var(--green); border-color: var(--green); color: #fff; }
.acct button.green:hover { background: var(--green-hover); border-color: var(--green-hover); color: #fff; }
.acct button.danger { background: var(--red); border-color: var(--red); color: #fff; }
.acct button.danger:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.acct button.small { min-height: 34px; padding: 6px 12px; font-size: 15px; border-radius: 8px; }
.acct button.link { min-height: 0; padding: 0; border: 0; background: none; color: var(--gold); font: inherit; letter-spacing: normal; text-transform: none; text-decoration: underline; text-underline-offset: 3px; }
.acct button.link:hover { background: none; color: var(--gold-hi); }
.acct button:disabled, .acct button:disabled:hover { opacity: 0.5; cursor: default; background: var(--gold); border-color: var(--gold); color: #17120a; }
.acct button.secondary:disabled, .acct button.secondary:disabled:hover { background: transparent; border-color: #4a5a50; color: var(--text); }
.acct button.green:disabled, .acct button.green:disabled:hover { background: var(--green); border-color: var(--green); color: #fff; }
.acct button.link:disabled, .acct button.link:disabled:hover { background: none; border: 0; color: var(--gold); }
.acct a.button { display: inline-flex; align-self: flex-start; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 10px; background: var(--gold); color: #17120a !important; font: 800 17px/1 var(--head); letter-spacing: .07em; text-transform: uppercase; text-shadow: none; text-decoration: none; }
.acct a.button:hover { background: var(--gold-hi); }

/* fields */
.acct input:not([type=checkbox]):not([type=color]):not([type=range]), .acct select, .acct textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--text); font: 16px/1.3 var(--body); letter-spacing: 0; text-shadow: none; }
.acct input::placeholder, .acct textarea::placeholder { color: #7d8379; }
.acct input:focus, .acct select:focus, .acct textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 177, 52, 0.22); }
.acct input[type=checkbox] { accent-color: var(--gold); width: 18px; height: 18px; }
.acct label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.acct h2 { margin: 0; font: 800 30px/1 var(--head); text-transform: uppercase; color: var(--text); }
.acct h3 { margin: 0; font: 800 24px/1.05 var(--head); text-transform: uppercase; color: var(--text); }
.acct p { margin: 0; }
.acct .muted { color: var(--dim); font-size: 15px; }
.acct .form-error { color: var(--bad); font-size: 15px; }
.acct .form-error:empty, .acct .form-ok:empty { display: none; }
.acct .form-ok { color: var(--ok); font-size: 15px; }
.acct .form-note { color: var(--muted); font-size: 15px; }
.acct-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acct-row > input { flex: 1 1 160px; width: auto; }

/* The game's popups (client/ui/dialog.js) and the sign-in / register / lost-password window (authModal.js) */
.acct .overlay { background: rgba(5, 8, 6, 0.72); }
.acct .panel { max-width: 420px; padding: 28px 26px 24px; gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); color: var(--text); text-shadow: none; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.acct .panel.modal-panel { border-top: 3px solid var(--gold); }
.acct .panel h2, .acct .modal-panel .modal-title { font: 800 32px/1 var(--head); text-transform: uppercase; text-align: left; }
.acct .panel label { color: var(--muted); }
.acct .panel label.check { flex-direction: row; align-items: center; gap: 10px; color: var(--muted); }
.acct .panel .auth-form { display: flex; flex-direction: column; gap: 14px; }
.acct .panel .form-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 15px; }
.acct .panel .modal-close { position: absolute; right: 10px; top: 8px; min-height: 0; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--dim); font: 400 28px/1 var(--body); text-transform: none; }
.acct .panel .modal-close:hover { background: var(--raise); color: var(--text); }
.acct .modal-panel button.secondary { background: transparent; color: var(--text); text-shadow: none; box-shadow: none; }
.acct .modal-panel button.secondary:hover { background: transparent; color: var(--gold); }
.acct .panel input.dialog-input:not([type=checkbox]) { background: var(--field); color: var(--text); text-shadow: none; }

/* the tabs and the page under them */
#acct-app { width: 100%; }
/* (the tabs wrap to a second row rather than scroll out of sight: Japanese and German names don't fit a phone in one) */
.acct-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
@media (max-width: 480px) { .acct .acct-tabs button { padding: 10px 14px; } }
.acct .acct-tabs button { flex: none; min-height: 44px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: rgba(20, 28, 23, 0.85); color: var(--muted); font: 700 17px/1 var(--head); letter-spacing: .06em; }
.acct .acct-tabs button:hover { background: rgba(20, 28, 23, 0.85); border-color: var(--gold); color: var(--text); }
.acct .acct-tabs button.active, .acct .acct-tabs button.active:hover { background: var(--gold); border-color: var(--gold); color: #17120a; }
.acct-body { display: flex; flex-direction: column; gap: 20px; }
.acct-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.acct-card form { display: flex; flex-direction: column; gap: 14px; }
.acct-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; align-items: start; }
.acct-notice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 14px 18px; border: 1px solid rgba(242, 177, 52, 0.45); border-radius: 12px; background: rgba(242, 177, 52, 0.1); color: var(--text); font-size: 15px; }
.acct-notice.ok { border-color: rgba(124, 196, 138, 0.45); background: var(--ok-bg); }
.acct-notice.bad { border-color: rgba(240, 138, 108, 0.5); background: var(--bad-bg); }
.acct-signedout { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 48px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); text-align: center; }
.acct-signedout > p { font: 800 clamp(28px, 4vw, 40px)/1 var(--head); text-transform: uppercase; color: var(--text); max-width: 560px; }
.acct-signedout .acct-row { justify-content: center; }

/* the footer: the website's legal row */
.acct-foot { width: 100%; border-top: 1px solid var(--line); background: #0a0f0c; }
.acct-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px max(24px, calc((100% - 1072px) / 2)) 32px; font-size: 14px; color: var(--dim); }
.acct-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.acct-foot a { color: var(--dim); }
.acct-foot a:hover { color: var(--text); }

/* Profile header */
.acct-profile { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.acct-name { padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: #fff; font: 600 24px/1.2 var(--body); text-shadow: var(--shadow); max-width: 100%; }
.acct-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-tag { padding: 5px 12px; border: 1px solid rgba(242, 177, 52, 0.5); border-radius: 999px; color: var(--gold); font: 700 14px/1.1 var(--head); text-transform: uppercase; letter-spacing: .06em; }
.acct-tag.green { border-color: rgba(124, 196, 138, 0.5); color: var(--ok); }
.acct-tag.red { border-color: rgba(240, 138, 108, 0.55); color: var(--bad); }
.acct-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }

/* Friends */
.friends { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.friends li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.friends li:last-child { border-bottom: 0; }
.friends li > .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.friends .online { color: var(--ok); }
.friends .offline { opacity: 0.5; }

/* Shop */
.shop-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.shop-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); }
.shop-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tryon { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; background: radial-gradient(circle at 50% 38%, #2c3a30 0%, #18221c 60%, #0f1611 100%); overflow: hidden; }
.tryon canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.tryon-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(10, 15, 12, 0.82); color: var(--text); font: 700 15px/1.2 var(--head); letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-toggles { margin: 10px 0 4px; }
.acct .chips button { min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--raise); color: var(--muted); font-size: 15px; }
.acct .chips button:hover { background: var(--raise); border-color: var(--gold); color: var(--text); }
.acct .chips button.active, .acct .chips button.active:hover, body.page .panel .chips button.secondary.active { background: var(--text); border-color: var(--text); color: #17120a; box-shadow: none; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.shop-item { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--raise); cursor: pointer; min-width: 0; transition: border-color .12s; }
.shop-item:hover { border-color: #4a5a50; }
.shop-item.selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.shop-item.locked { cursor: default; opacity: 0.75; }
.shop-item .icon { aspect-ratio: 1; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #2c3a30 0%, #141c17 100%); color: var(--dim); font-size: 30px; overflow: hidden; }
.shop-item .icon img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.shop-item .name { font: 700 18px/1.1 var(--head); letter-spacing: .02em; text-transform: uppercase; color: var(--text); }
.shop-item .price { font-size: 14px; color: var(--dim); }
.shop-item .price .amount { white-space: nowrap; }
.shop-item button { width: 100%; padding: 6px 8px; font-size: 15px; white-space: normal; }
.shop-item .owned { padding: 7px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); text-align: center; font: 700 15px/1.2 var(--head); letter-spacing: .06em; text-transform: uppercase; }
.dev-note { font-size: 14px; color: var(--bad); }

/* Name colours */
.name-products { display: flex; flex-wrap: wrap; gap: 8px; }
.name-preview { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 10px; border-radius: 10px; background: linear-gradient(180deg, #7d9f6a, #4e6b3f); }
.name-preview .label-demo, .shop-item .label-demo { padding: 2px 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 20px; text-shadow: var(--shadow); white-space: nowrap; }
.pickers { display: flex; flex-wrap: wrap; gap: 10px; }
.acct label.picker { flex-direction: row; align-items: center; gap: 8px; }
.picker input[type=color] { width: 48px; height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); cursor: pointer; }
.acct .picker input.hex { width: 104px !important; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.styles-list { display: flex; flex-direction: column; gap: 8px; }
.styles-list .style-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: #fff; text-shadow: var(--shadow); }

/* Supporter */
.member-price { font: 800 44px/1 var(--head); color: var(--text); }
.member-price small { font: 600 17px var(--body); color: var(--dim); }
.perks { margin: 0; padding-left: 1.2em; font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.progress { height: 12px; border-radius: 6px; background: var(--field); border: 1px solid var(--line); overflow: hidden; }
.progress > div { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tier { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--raise); font-size: 15px; opacity: 0.55; }
.tier.got { opacity: 1; border-color: rgba(242, 177, 52, 0.5); background: rgba(242, 177, 52, 0.08); }
.tier .ns-badge { font-size: 20px; }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.acct .amounts button.active, .acct .amounts button.active:hover, body.page .panel .amounts button.secondary.active { background: var(--text); border-color: var(--text); color: #17120a; box-shadow: none; }
.acct-profile > .ns-badge { font-size: 26px; margin: 0; }
.amount-input { display: flex; align-items: center; gap: 8px; font: 800 22px var(--head); }
.acct .amount-input input { max-width: 140px; }
.acct .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.acct .consent input { flex: none; margin-top: 2px; }

/* Tables (history, admin) */
.table-wrap { overflow-x: auto; }
table.worlds { width: 100%; border-collapse: collapse; font-size: 14px; }
table.worlds th, table.worlds td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.worlds th { font: 700 14px/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
table.worlds tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.acct table.worlds input:not([type=checkbox]) { width: 120px; min-height: 34px; padding: 5px 8px; font-size: 14px; }
.acct .key-box { display: block; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--text); font: 12px ui-monospace, Consolas, monospace; word-break: break-all; user-select: all; }

@media (max-width: 760px) {
  .acct-main { padding: 0 16px 56px; }
  .acct-hero { padding: 32px 0 20px; }
  .acct-card { padding: 18px 16px; }
  .acct-signedout { padding: 36px 16px; }
  .acct-foot { padding: 20px 16px 28px; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-side { position: static; }
  .tryon { max-width: 260px; margin: 0 auto; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.styles-list button.secondary { color: var(--text); }

/* Crowns, packs and the weekly member drop */
.crowns-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); }
.crowns-bar .grow { flex: 1; min-width: 200px; margin: 0; font-size: 15px; }
.crown-balance { font: 800 34px/1 var(--head); color: var(--gold); white-space: nowrap; }
.small-caps { font: 700 14px/1.2 var(--head); text-transform: uppercase; letter-spacing: .12em; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.pack { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raise); text-align: center; }
.pack.popular { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.pack-crowns { font: 800 28px/1 var(--head); color: var(--text); white-space: nowrap; }
.pack-bonus { font-size: 14px; color: var(--ok); }
.pack button { width: 100%; }
.weekly-card { background: linear-gradient(135deg, rgba(192, 92, 255, 0.12), var(--bg2) 60%); }
.weekly-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.weekly-row .shop-item.weekly { width: 150px; flex: none; }
.weekly-info { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.weekly-info p { margin: 0; font-size: 15px; }
.weekly-name { font: 800 26px/1 var(--head); text-transform: uppercase; }
td.plus { color: var(--ok); }
td.minus { color: var(--bad); }
.acct textarea.bug-text { min-height: 7em; resize: vertical; }

/* Admin dashboard */
.admin { display: flex; flex-direction: column; gap: 20px; }
.acct-body-inner, .account-detail { display: flex; flex-direction: column; gap: 20px; }
.acct label.inline { flex-direction: row; align-items: center; gap: 8px; font-size: 15px; }
.acct input.short { max-width: 180px; }
table.worlds tr.picked td { background: rgba(242, 177, 52, 0.1); }
table.worlds td.wrap { white-space: normal; min-width: 200px; }
table.worlds td.mono { font: 12px ui-monospace, Consolas, monospace; }
table.events tr.ev-login_failed td, table.events tr.ev-password_change_failed td, table.events tr.ev-dispute td { color: var(--bad); }
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.bugs { display: flex; flex-direction: column; gap: 10px; }
.bug { padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--bad); border-radius: 10px; background: var(--raise); display: flex; flex-direction: column; gap: 6px; }
.bug.in_progress { border-left-color: var(--gold); }
.bug.fixed { border-left-color: var(--ok); opacity: 0.8; }
.bug-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 15px; }
.bug-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bug-ctx { font-size: 13px; overflow-wrap: anywhere; }

/* Cosmetics tab: the grid scrolls in its own box beside the sticky preview; the outfit being tried on */
.shop-scroll { max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); min-height: 320px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.shop-side { max-height: calc(100vh - 32px); overflow-y: auto; }
.outfit { display: flex; flex-wrap: wrap; gap: 6px; }
.outfit:empty { display: none; }
.outfit-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 12px; border-radius: 999px; background: var(--text); color: #17120a; font-size: 14px; }
.acct .outfit-chip button.link { min-height: 0; padding: 0 6px; color: #17120a; font-size: 18px; text-decoration: none; }
@media (max-width: 760px) {
  .shop-scroll { max-height: 70vh; }
  .shop-side { max-height: none; }
}

/* /reset-password and /verify-email: one card under the title */
.acct-narrow { max-width: 560px; }
#app.acct-card { gap: 16px; }
#app.acct-card form { gap: 14px; }
