#thronemap-root, #thronemap-manage-root{
  --tm-ink:#0a0810; --tm-panel:#151020; --tm-panel-2:#1b1428; --tm-line:#31283f;
  --tm-gold:#d4af6a; --tm-gold-dim:#8f7038; --tm-bone:#efe6d8; --tm-bone-dim:#b8b0c4;
  --tm-bone-mute:#8f89a0; --tm-claret:#8a2436;
  font-family:'Inter', sans-serif; color:var(--tm-bone); background:var(--tm-ink);
  -webkit-font-smoothing:antialiased; box-sizing:border-box;
}
#thronemap-root *, #thronemap-manage-root *{ box-sizing:border-box; }
#thronemap-root a, #thronemap-manage-root a{ color:var(--tm-gold); }

/* ticker */
.tm-ticker-wrap{ background:#000; border-bottom:1px solid var(--tm-line); overflow:hidden; white-space:nowrap; position:sticky; top:0; z-index:50; height:32px; display:flex; align-items:center; }
.tm-ticker{ display:inline-flex; gap:44px; padding-left:100%; animation:tm-scroll 40s linear infinite; font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--tm-gold-dim); }
.tm-ticker span b{ color:var(--tm-gold); font-weight:500; }
.tm-ticker span i{ color:var(--tm-bone-mute); font-style:normal; }
@keyframes tm-scroll{ to{ transform:translateX(-100%); } }

/* header */
.tm-header{ position:sticky; top:32px; z-index:40; background:rgba(10,8,16,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--tm-line); }
.tm-header-inner{ max-width:1220px; margin:0 auto; padding:15px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.tm-wordmark{ font-family:'Cormorant Garamond', serif; font-size:24px; letter-spacing:.12em; font-weight:600; display:flex; align-items:center; gap:8px; }
.tm-crown{ color:var(--tm-gold); font-size:18px; }
.tm-tagline{ font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--tm-bone-mute); margin-top:1px; }
.tm-stats-row{ display:flex; gap:20px; font-family:'IBM Plex Mono', monospace; }
.tm-stat{ text-align:right; }
.tm-stat .n{ color:var(--tm-gold); font-size:13.5px; }
.tm-stat .l{ font-size:8.5px; letter-spacing:.07em; text-transform:uppercase; color:var(--tm-bone-mute); }
@media (max-width:780px){ .tm-stats-row{ display:none; } }

/* hero */
.tm-hero{ max-width:1220px; margin:0 auto; padding:56px 20px 30px; }
.tm-eyebrow{ display:inline-flex; align-items:center; gap:8px; font-family:'IBM Plex Mono', monospace; font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--tm-gold); border:1px solid var(--tm-gold-dim); padding:5px 12px; border-radius:2px; margin-bottom:22px; }
.tm-eyebrow::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--tm-claret); box-shadow:0 0 8px var(--tm-claret); }
.tm-h1{ font-family:'Cormorant Garamond', serif; font-weight:500; font-style:italic; font-size:clamp(30px,5vw,58px); line-height:1.08; max-width:16ch; color:var(--tm-bone); margin:0; }
.tm-h1 .g{ color:var(--tm-gold); font-style:normal; }
.tm-lede{ max-width:56ch; margin-top:18px; font-size:15px; line-height:1.7; color:var(--tm-bone-dim); }
.tm-disclaimer-line{ max-width:56ch; margin-top:10px; font-size:11.5px; line-height:1.6; color:var(--tm-bone-mute); font-family:'IBM Plex Mono', monospace; }
.tm-visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.tm-grand-throne{ margin-top:22px; display:flex; flex-wrap:wrap; gap:18px; }
.tm-gt-item{ display:inline-flex; align-items:center; gap:9px; font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--tm-bone-mute); border-left:2px solid var(--tm-gold-dim); padding-left:12px; }
.tm-gt-item b{ color:var(--tm-gold); font-weight:500; }

/* map */
.tm-map-section{ max-width:1220px; margin:0 auto; padding:26px 20px 10px; }
.tm-map-frame{ position:relative; background:var(--tm-panel); border:1px solid var(--tm-line); border-radius:3px; overflow:hidden; }
.tm-map-frame svg{ width:100%; height:auto; display:block; cursor:grab; }
.tm-country-path{ stroke:#0a0810; stroke-width:.4; transition:fill .15s; cursor:pointer; }
.tm-country-path:hover{ stroke:var(--tm-gold); stroke-width:1; filter:brightness(1.15); }
.tm-country-path.eternal{ stroke:var(--tm-gold); stroke-width:.8; }
.tm-logo-ring{ fill:#0a0810; }
.tm-map-controls{ position:absolute; right:14px; bottom:14px; display:flex; flex-direction:column; gap:6px; z-index:5; }
.tm-map-controls button{ width:30px; height:30px; background:rgba(10,8,16,.85); border:1px solid var(--tm-line); color:var(--tm-gold); font-family:'IBM Plex Mono'; font-size:14px; cursor:pointer; border-radius:2px; }
.tm-map-hint{ position:absolute; left:14px; bottom:14px; font-family:'IBM Plex Mono', monospace; font-size:10px; color:var(--tm-bone-mute); background:rgba(10,8,16,.7); padding:5px 9px; border-radius:2px; }
.tm-map-loading{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--tm-bone-mute); text-align:center; padding:20px; }

/* controls */
.tm-controls{ max-width:1220px; margin:0 auto; padding:34px 20px 16px; display:flex; gap:12px; flex-wrap:wrap; align-items:center; border-bottom:1px solid var(--tm-line); padding-bottom:20px; }
.tm-search-input{ flex:1; min-width:200px; background:var(--tm-panel); border:1px solid var(--tm-line); color:var(--tm-bone); padding:12px 14px; font-family:'Inter'; font-size:13.5px; border-radius:2px; outline:none; }
.tm-sort{ background:var(--tm-panel); border:1px solid var(--tm-line); color:var(--tm-bone-mute); font-family:'IBM Plex Mono', monospace; font-size:11px; padding:11px 10px; border-radius:2px; }

/* registry */
.tm-ledger{ max-width:1220px; margin:0 auto; padding:24px 20px 90px; }
.tm-ledger-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:18px; flex-wrap:wrap; gap:8px; }
.tm-ledger-head h2{ font-family:'Cormorant Garamond', serif; font-size:24px; font-weight:600; margin:0; }
.tm-ledger-head .sub{ font-size:11px; color:var(--tm-bone-mute); font-family:'IBM Plex Mono', monospace; }
.tm-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(220px,1fr)); gap:10px; }
.tm-row{ background:var(--tm-panel); border:1px solid var(--tm-line); border-radius:3px; padding:13px 15px; cursor:pointer; display:flex; align-items:center; gap:12px; }
.tm-row.eternal{ box-shadow:inset 0 0 0 1px rgba(212,175,106,.15); }
.tm-seal{ width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:'Cormorant Garamond', serif; font-weight:600; font-size:12px; color:#0a0810; flex-shrink:0; overflow:hidden; }
.tm-seal.empty{ background:transparent; color:var(--tm-line); border:1px dashed var(--tm-line); }
.tm-seal img{ width:100%; height:100%; object-fit:cover; }
.tm-row-mid{ flex:1; min-width:0; }
.tm-row-name{ font-family:'Cormorant Garamond', serif; font-size:15.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tm-eternal-tag{ font-size:9px; color:var(--tm-gold); border:1px solid var(--tm-gold-dim); border-radius:2px; padding:1px 5px; margin-left:6px; }
.tm-row-owner{ font-size:10.5px; color:var(--tm-bone-mute); font-family:'IBM Plex Mono', monospace; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tm-row-price{ font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--tm-gold); text-align:right; flex-shrink:0; }
.tm-row-price .l{ display:block; font-size:8px; color:var(--tm-bone-mute); text-transform:uppercase; }

/* modal */
.tm-overlay{ position:fixed; inset:0; background:rgba(5,4,9,.8); backdrop-filter:blur(3px); display:none; align-items:center; justify-content:center; z-index:100000; padding:20px; }
.tm-overlay.open{ display:flex; }
.tm-decree{ background:var(--tm-panel-2); border:1px solid var(--tm-gold-dim); max-width:420px; width:100%; padding:30px 26px 24px; position:relative; border-radius:2px; max-height:88vh; overflow-y:auto; }
.tm-decree-close{ position:absolute; top:14px; right:16px; background:none; border:none; color:var(--tm-bone-mute); font-size:18px; cursor:pointer; }
.tm-decree-eyebrow{ font-family:'IBM Plex Mono', monospace; font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--tm-gold); }
.tm-decree h3{ font-family:'Cormorant Garamond', serif; font-size:29px; font-weight:600; margin:6px 0 0; font-style:italic; }
.tm-meta{ font-size:12px; color:var(--tm-bone-mute); margin-top:9px; font-family:'IBM Plex Mono', monospace; line-height:1.6; }
.tm-meta b{ color:var(--tm-gold); font-weight:500; }
.tm-price-block{ margin-top:16px; padding:14px; border:1px solid var(--tm-gold-dim); border-radius:2px; display:flex; justify-content:space-between; align-items:center; background:rgba(212,175,106,.05); }
.tm-price-block .l{ font-size:10px; text-transform:uppercase; color:var(--tm-bone-mute); font-family:'IBM Plex Mono', monospace; }
.tm-price-block .v{ font-family:'IBM Plex Mono', monospace; font-size:22px; color:var(--tm-gold); }
.tm-purchase-summary{ font-size:12px; line-height:1.6; color:var(--tm-bone-mute); margin-top:14px; }
.tm-field-label{ display:block; font-size:10px; text-transform:uppercase; color:var(--tm-bone-mute); font-family:'IBM Plex Mono', monospace; margin-top:16px; }
.tm-consent{ margin-top:18px; display:flex; flex-direction:column; gap:10px; }
.tm-consent label{ display:flex; gap:8px; font-size:11px; line-height:1.5; color:var(--tm-bone-mute); align-items:flex-start; }
.tm-consent input[type=checkbox]{ margin-top:2px; flex-shrink:0; }
.tm-consent a{ color:var(--tm-gold); }
.tm-forever-unavailable{ margin-top:20px; padding:12px; border:1px dashed var(--tm-line); border-radius:2px; font-size:11.5px; color:var(--tm-bone-mute); text-align:center; }
.tm-field{ margin-top:18px; }
.tm-field label{ font-size:10px; text-transform:uppercase; color:var(--tm-bone-mute); font-family:'IBM Plex Mono', monospace; }
.tm-field input[type=text]{ width:100%; margin-top:7px; background:#0d0a16; border:1px solid var(--tm-line); color:var(--tm-bone); padding:11px 12px; font-size:14px; border-radius:2px; outline:none; }
.tm-field-note{ font-size:10px; color:var(--tm-bone-mute); margin-top:5px; }
.tm-swatches{ display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; }
.tm-swatch{ width:26px; height:26px; border-radius:50%; cursor:pointer; border:2px solid transparent; }
.tm-swatch.picked{ border-color:var(--tm-bone); transform:scale(1.1); }
.tm-decree-submit{ width:100%; margin-top:14px; padding:14px; background:var(--tm-gold); color:#0a0810; border:none; font-family:'IBM Plex Mono', monospace; font-size:12.5px; text-transform:uppercase; font-weight:600; cursor:pointer; border-radius:2px; }
.tm-decree-submit.forever{ background:transparent; color:var(--tm-gold); border:1px solid var(--tm-gold); }
.tm-forever-block{ margin-top:22px; padding-top:18px; border-top:1px dashed var(--tm-line); }
.tm-forever-block .title{ font-family:'Cormorant Garamond', serif; font-style:italic; font-size:17px; color:var(--tm-gold); }
.tm-forever-block .desc{ font-size:11px; color:var(--tm-bone-mute); margin-top:4px; line-height:1.5; }
.tm-locked-note{ margin-top:18px; padding:14px; border:1px solid var(--tm-gold-dim); border-radius:2px; background:rgba(212,175,106,.06); font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--tm-gold); line-height:1.6; }
.tm-decree-note{ font-size:10px; color:var(--tm-bone-mute); text-align:center; margin-top:14px; }
.tm-decree-note.stripe{ display:flex; align-items:center; justify-content:center; gap:6px; }

.tm-toast{ position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px); background:#0d0a16; border:1px solid var(--tm-gold); color:var(--tm-gold); padding:12px 20px; font-family:'IBM Plex Mono', monospace; font-size:12px; border-radius:2px; z-index:100001; opacity:0; pointer-events:none; transition:.3s; max-width:88vw; text-align:center; }
.tm-toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

.tm-footer{ border-top:1px solid var(--tm-line); padding:32px 20px 56px; text-align:center; color:var(--tm-bone-mute); font-size:11px; font-family:'IBM Plex Mono', monospace; }
.tm-fname{ color:var(--tm-gold); font-family:'Cormorant Garamond', serif; font-size:15px; letter-spacing:.1em; }
.tm-footer-disclaimer{ max-width:60ch; margin:12px auto 0; line-height:1.6; }
.tm-footer-links{ margin-top:18px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.tm-footer-links a{ color:var(--tm-gold); }
.tm-footer-business{ margin-top:16px; max-width:70ch; margin-left:auto; margin-right:auto; line-height:1.7; color:var(--tm-bone-mute); }

.tm-how{ max-width:820px; margin:0 auto; padding:10px 20px 40px; }
.tm-how h2{ font-family:'Cormorant Garamond', serif; font-size:24px; font-weight:600; color:var(--tm-bone); margin:0 0 14px; }
.tm-how h3{ font-family:'Cormorant Garamond', serif; font-size:18px; font-weight:600; color:var(--tm-gold); margin:22px 0 8px; }
.tm-how-steps{ margin:0; padding-left:20px; font-size:14px; line-height:1.9; color:var(--tm-bone-dim); }
.tm-how p{ font-size:13.5px; line-height:1.7; color:var(--tm-bone-mute); }

/* manage page */
#thronemap-manage-root{ display:flex; align-items:center; justify-content:center; padding:40px 16px; min-height:60vh; }
.tm-manage-card{ max-width:440px; width:100%; background:var(--tm-panel-2); border:1px solid var(--tm-gold-dim); border-radius:3px; padding:32px 28px; }
.tm-manage-h1{ font-family:'Cormorant Garamond', serif; font-style:italic; font-weight:600; font-size:28px; margin:6px 0 0; }
.tm-manage-state{ font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--tm-bone-mute); margin-top:14px; }
.tm-manage-card button{ width:100%; margin-top:22px; padding:14px; background:var(--tm-gold); color:#0a0810; border:none; font-family:'IBM Plex Mono', monospace; font-size:12.5px; text-transform:uppercase; font-weight:600; cursor:pointer; border-radius:2px; }
.tm-eternal-badge{ display:inline-block; margin-top:8px; font-size:10px; color:var(--tm-gold); border:1px solid var(--tm-gold-dim); padding:2px 8px; border-radius:2px; }
