/* site/: account.css — the account tile (every page) and the account page (LAUNCH_PLAN T20.7).
   Loaded only when site.json `accountUrl` is set. The tile is SMALL and QUIET: it sits in the
   page's top-right corner inside the gold frame, borrows the nav's lettering, and never competes
   with the title. Three looks, picked by site.json `accountTile` (the owner's call):
     pill   — a gold-edged pill, like a small label on the watch case
     medal  — a round gold-rimmed medallion, like the watch itself, the head inside it
     text   — no box at all: the nav's own lettering, the head as a small square
   Below 900 px every look becomes a round 34 px button (head or a silhouette) so it never meets the
   title art, which spans the phone's width. */
.acct { position: absolute; z-index: 15; top: max(26px, env(safe-area-inset-top)); right: max(30px, env(safe-area-inset-right));
  font: 400 .78rem/1 Georgia, "Times New Roman", serif; letter-spacing: .16em; text-transform: uppercase; }
/* the home page's watch dialog covers the page; while it is open the tile steps back with it */
.panel[aria-modal="true"][aria-hidden="false"] ~ .acct { visibility: hidden; }
.acct a, .acct button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: #e8d6a4; cursor: pointer; }
.acct-in, .acct-me { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 6px 14px;
  text-decoration: none; background: rgba(5,5,4,.62); border: 1px solid rgba(213,174,87,.55); border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.acct-in:hover, .acct-me:hover, .acct-in:focus-visible, .acct-me:focus-visible { border-color: #f6cc74; color: #fff3cf; outline: none; }
.acct-in::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; opacity: .85;
  -webkit-mask: var(--acct-person) center / contain no-repeat; mask: var(--acct-person) center / contain no-repeat; }
.acct { --acct-person: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='5' r='3.2'/%3E%3Cpath d='M1.8 15c.6-3.6 3.2-5.6 6.2-5.6s5.6 2 6.2 5.6z'/%3E%3C/svg%3E"); }  /* inline: a mask is fetched in CORS mode */
.acct-head { display: block; width: 24px; height: 24px; flex: none; image-rendering: pixelated; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(213,174,87,.7); background: #1a140c; }
.acct-anon { background: #3a2f1c; -webkit-mask: var(--acct-person) center / 70% no-repeat; mask: var(--acct-person) center / 70% no-repeat;
  background-color: #d5ae57; }
.acct-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: .04em; font-size: .95rem; }
.acct-caret { font-size: .7rem; opacity: .7; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 8px;
  background: linear-gradient(145deg, rgba(21,17,9,.98), rgba(8,7,5,.98)); border: 1px solid #8f7138;
  box-shadow: 0 18px 50px #000, inset 0 0 0 4px #090705, inset 0 0 0 5px rgba(213,174,87,.2); }
.acct-menu[hidden] { display: none; }
.acct-who { margin: 4px 10px 8px; color: #b8aa8c; font-size: .72rem; text-transform: none; letter-spacing: .06em; }
.acct-item { display: block; width: 100%; min-height: 40px; padding: 11px 10px; text-align: left; text-decoration: none;
  background: none; border: 0; border-top: 1px solid rgba(143,113,56,.35); }
.acct-item:hover, .acct-item:focus-visible { color: #fff3cf; background: rgba(213,174,87,.12); outline: none; }
.acct-out { margin: 0; }

/* — medal — */
.acct.v-medal .acct-in, .acct.v-medal .acct-me { padding: 4px 14px 4px 4px; }
.acct.v-medal .acct-in::before, .acct.v-medal .acct-head { width: 30px; height: 30px; border-radius: 50%;
  box-shadow: 0 0 0 2px #090705, 0 0 0 3px #b1904b, 0 0 14px rgba(215,136,255,.25); }
.acct.v-medal .acct-in::before { background: radial-gradient(circle at 50% 35%, #f1d28c, #8f7138); opacity: 1;
  -webkit-mask: none; mask: none; }
.acct.v-medal .acct-in { position: relative; }
.acct.v-medal .acct-in::after { content: ""; position: absolute; left: 9px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: #090705; -webkit-mask: var(--acct-person) center / contain no-repeat; mask: var(--acct-person) center / contain no-repeat; }
/* — text — */
.acct.v-text .acct-in, .acct.v-text .acct-me { background: none; border-color: transparent; box-shadow: none; padding: 6px 2px;
  -webkit-backdrop-filter: none; backdrop-filter: none; color: #b8aa8c; }
.acct.v-text .acct-in:hover, .acct.v-text .acct-me:hover { color: #d5ae57; border-color: transparent; }
.acct.v-text .acct-head { width: 22px; height: 22px; border-radius: 2px; }

@media (max-width: 899px) {   /* the poster's title reaches the corner up to ~900 px at 130% text */
  .acct { top: max(12px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
  .acct .acct-in, .acct .acct-me { width: 34px; height: 34px; min-height: 0; padding: 0; justify-content: center; gap: 0;
    border-radius: 50%; font-size: 0; letter-spacing: 0; background: rgba(5,5,4,.7); border: 1px solid rgba(213,174,87,.6); }
  .acct .acct-in::before { width: 15px; height: 15px; }
  .acct.v-medal .acct-in::before { width: 26px; height: 26px; }
  .acct.v-medal .acct-in::after { left: 50%; margin-left: -9px; width: 18px; height: 18px; margin-top: -9px; }
  .acct .acct-name, .acct .acct-caret { display: none; }
  .acct .acct-head, .acct.v-medal .acct-head { width: 26px; height: 26px; }
  .acct-menu { top: calc(100% + 6px); }
  /* a reading page's title starts a little lower, so the corner button never meets the title art */
  .has-acct .top { padding-top: max(46px, env(safe-area-inset-top)); }
}

/* ── the account page ──────────────────────────────────────────────────────────────────────── */
.acct-hello { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.acct-hello .acct-head { width: 64px; height: 64px; border-radius: 6px; box-shadow: 0 0 0 2px #090705, 0 0 0 3px #b1904b, 0 10px 30px #000; }
.acct-hello h1 { margin: 0; font-size: clamp(1.45rem, 5.4vw, 2.6rem); overflow-wrap: anywhere; }
@media (max-width: 480px) { .acct-hello { flex-direction: column; align-items: flex-start; gap: 12px; } }
.acct-hello .kicker { margin-bottom: 4px; }
#acct-app section { margin-top: 26px; padding-top: 6px; border-top: 1px solid rgba(143,113,56,.35); }
#acct-app section h2 { margin-top: 1.2rem; }
.acct-big { color: var(--paper); font-size: 1.25rem; margin: .3em 0; }
.acct-seat.is-seated .acct-big { color: #f1d28c; }
.acct-bar { position: relative; height: 14px; margin: 10px 0 6px; border: 1px solid var(--gold-soft); border-radius: 999px;
  background: rgba(5,5,4,.7); overflow: hidden; }
.acct-bar span { position: absolute; inset: 0 auto 0 0; border-radius: inherit;
  background: linear-gradient(90deg, #8f7138, #d5ae57 60%, #f6cc74); box-shadow: 0 0 12px rgba(246,204,116,.45); }
.acct-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.acct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-chip { min-height: 36px; padding: 6px 14px; font: inherit; font-size: .9rem; color: var(--body); cursor: pointer;
  background: rgba(5,5,4,.6); border: 1px solid var(--gold-soft); border-radius: 999px; }
.acct-chip[aria-pressed="true"] { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.acct-search { flex: 1 1 180px; max-width: 260px; min-height: 40px; padding: 8px 12px; font: inherit; color: var(--paper);
  background: rgba(5,5,4,.72); border: 1px solid var(--gold-soft); border-radius: 4px; }
.acct-signin { display: inline-flex; align-items: center; gap: 12px; }
.acct-ms { width: 18px; height: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.acct-ms i { display: block; } .acct-ms i:nth-child(1) { background: #f25022; } .acct-ms i:nth-child(2) { background: #7fba00; }
.acct-ms i:nth-child(3) { background: #00a4ef; } .acct-ms i:nth-child(4) { background: #ffb900; }
/* T20.6b: one card per world (the Isle by request, the Workshop by invite) */
.acct-worlds { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 22px; }
#acct-app .acct-world { margin: 0; padding: 4px 18px 14px; border: 1px solid var(--frame); border-top: 1px solid var(--frame);
  border-radius: 6px; background: rgba(0,0,0,.28); }
#acct-app .acct-world h2 { margin-top: .8rem; }
.acct-tag { display: inline-block; margin: 0 0 6px; padding: 2px 10px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: #e8d6a4; border: 1px solid var(--gold-soft); border-radius: 999px; }
.acct-world.is-invite .acct-tag { color: #d7c8ff; border-color: rgba(200,166,255,.55); }
.acct-world .acct-big { overflow-wrap: anywhere; }
.acct-world code.address { overflow-wrap: anywhere; }
.acct-world.st-seated .acct-big, .acct-world.st-invited .acct-big { color: #f1d28c; }
.acct-request { margin: 10px 0 4px; }
/* T20.6c: keeping up to date — the contact email and the updates opt-in */
.acct-contact-form { display: grid; gap: 10px; max-width: 520px; margin: 10px 0; }
.acct-contact-form input[type=email] { width: 100%; min-height: 42px; padding: 8px 12px; font: inherit; color: var(--paper);
  background: rgba(5,5,4,.72); border: 1px solid var(--gold-soft); border-radius: 4px; }
.acct-tick { display: flex; gap: 10px; align-items: flex-start; color: var(--body); }
.acct-tick input { margin-top: .35em; flex: none; width: 18px; height: 18px; }
.acct-contact-form .button { justify-self: start; }
.acct-saved { color: #9fd9a8; } .acct-err { color: #f0a196; }
.acct-warning { color: #f6cc74; }
#acct-delete .button { background: transparent; color: #f0a196; border: 1px solid rgba(240,161,150,.6); }
#acct-delete .button:hover { background: rgba(240,161,150,.12); }


/* ── what you've made (T20.7b): a Minecraft chest per kind of wish ──────────────────────────────
   The chest, the tooltip, the stat card and the carousel are tools/wishgrid (wishgrid.css, shipped
   beside this file); here the page gives it the tower's colour names in this site's palette. */
.acct-things { --card: rgba(8,7,5,.94); --line: rgba(143,113,56,.55); --muted: var(--paper-muted); }
a.acct-chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
a.acct-chip:hover, a.acct-chip:focus-visible { color: var(--paper); border-color: var(--gold); }
.wg-sec { margin-top: 18px; scroll-margin-top: 24px; }
.wg-sec.wg-none { display: none; }
.wg-sechead { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.1rem; }
.wg-secicon { width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: 1.15rem; image-rendering: pixelated; }
.wg-count { margin-left: 2px; padding: 1px 8px; border: 1px solid var(--gold-soft); border-radius: 999px;
  color: var(--paper-muted); font: 400 .8rem/1.4 Georgia, serif; }
.acct-things .slots.wg-chest { max-width: 396px; }
.acct-things .wcard { border-color: rgba(143,113,56,.7); box-shadow: inset 0 0 0 4px #090705, inset 0 0 0 5px rgba(213,174,87,.18); }
.acct-things .wcard h3 { color: #f1d28c; font-family: ModdyDecorative, Georgia, serif; }
.acct-things .wg-card .kv { color: var(--body); }
.acct-things .wg-card .kv.lore { color: #d9b8ff; }
