:root{color-scheme:light;--ink:#222824;--muted:#626962;--paper:#f5f3ed;--card:#fffefb;--line:#d9d9ce;--rail:#191e1a;--gold:#e6c37b;--green:#356651;--shadow:0 10px 28px #28271e09;font:15px/1.45 "DM Sans",Inter,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,select,input{font:inherit;color:inherit}button,a,select{touch-action:manipulation}button:not(:disabled),select{cursor:pointer}button:disabled{cursor:wait;opacity:.58}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #ad8138;outline-offset:3px}i[data-icon],.ico{display:inline-flex;align-items:center;justify-content:center;font-style:normal;flex-shrink:0}i svg,.ico svg{width:18px;height:18px;display:block}[hidden]{display:none!important}
.skip{position:fixed;z-index:10;top:-100px;left:14px;background:#f2d28c;color:#161a17;padding:9px 15px}.skip:focus{top:8px}
.gate{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:minmax(280px,44%) 1fr;background:var(--paper)}
.gate-art{position:relative;overflow:hidden;isolation:isolate;display:grid;place-items:center;background:#20251e url('../art/goldline.webp') 50% 53%/cover}.gate-art:before{content:"";position:absolute;inset:0;background:linear-gradient(150deg,#2f31231f,#191d19aa 70%,#181c19ed),linear-gradient(0deg,#131a17d9,transparent 68%)}.engraving{position:absolute;inset:16px;border:1px solid #e7cf966b;z-index:1}.engraving:before,.engraving:after{content:"";position:absolute;width:26px;height:26px;border:1px solid #efcd8c;transform:rotate(45deg)}.engraving:before{top:-14px;left:-14px}.engraving:after{bottom:-14px;right:-14px}
.emblem{align-self:end;z-index:1;color:#efd195;margin-bottom:60px;width:82px;height:82px;border:1px solid #eed29b88;border-radius:50%;display:grid;place-items:center;outline:1px solid #eed29b45;outline-offset:5px;background:#1b211aca}.emblem span{font:italic 700 52px/1 Georgia,serif;letter-spacing:-7px;padding-right:5px}
.gate-main{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;position:relative;padding:clamp(24px,5.7vw,100px)}.gate-content{margin:auto 0;max-width:440px;padding:42px 0}.wordmark{display:flex;align-items:center;gap:8px;white-space:nowrap}.wordmark b{font:italic 800 22px/1 "Barlow Condensed","Arial Narrow",Arial,sans-serif;letter-spacing:-1px}.mark{display:grid;place-items:center;width:26px;height:28px;background:#dbc084;clip-path:polygon(15% 0,100% 0,84% 100%,0 100%);color:#1c211b;font:italic 800 20px/1 Georgia,serif}.brand-suffix{font-weight:650;font-size:9px;letter-spacing:2px;color:#9c8247}.gate-brand .brand-suffix{color:#71572b}.small-label{display:inline-flex;align-items:center;gap:7px;color:#777147;text-transform:uppercase;font-weight:700;font-size:10px;letter-spacing:1.6px}.small-label i svg{width:14px;height:14px}.gate h1,.page-header h1,h2,h3{font-family:"Playfair Display",Georgia,serif}.gate h1{font-size:clamp(38px,4.4vw,68px);font-weight:500;letter-spacing:-.06em;line-height:1.04;margin:15px 0}.gate-caption{font-size:16px;color:var(--muted);max-width:360px;margin:0 0 22px}.back-lobby{display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:var(--muted);font-size:13px}.back-lobby:hover{text-decoration:underline}#gate-loading{color:var(--muted)}
.primary,.secondary,.mini-btn,.bare{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:7px;font-weight:650;text-decoration:none;line-height:1.2}.primary{background:#262e26;color:#fcf7e9;border:1px solid #2e382d;padding:12px 17px;min-height:40px;box-shadow:0 1px 2px #0001}.primary:hover{background:#3b473a}.gate .primary{background:#242c24;color:#f5e2ac}.secondary,.mini-btn{background:var(--card);color:var(--ink);border:1px solid #cbd0c5;padding:8px 12px;min-height:36px}.secondary:hover,.mini-btn:hover{background:#f1f1e9}.mini-btn{font-size:12px;padding:6px 9px;min-height:30px}.bare{width:33px;height:33px;background:transparent;border:1px solid transparent;padding:4px}.bare:hover{background:#e9e8e0}.notice{padding:12px 14px;border-radius:7px;background:#fff3d7;border:1px solid #dfc78e;color:#654b25;font-size:14px;max-width:100%;overflow-wrap:anywhere}.gate .notice{margin:15px 0 10px}.notice.good{background:#eaf4e9;border-color:#bfd8b9;color:#27553f}
.work{min-height:100vh;display:grid;grid-template-columns:210px minmax(0,1fr)}.rail{position:sticky;top:0;height:100vh;height:100dvh;background:linear-gradient(160deg,#202721,#171c18 86%);color:#f4f1e9;padding:30px 18px 21px;display:flex;flex-direction:column}.rail .wordmark{padding:0 7px}.rail .brand-suffix{font-size:8px;letter-spacing:1.3px;color:#d3b67e}.nav{display:grid;gap:5px;margin-top:54px}.nav button,.rail-foot a,.access{display:flex;align-items:center;gap:11px;text-decoration:none;border:0;border-radius:7px;font:550 14px/1.3 "DM Sans",Inter,"Segoe UI",sans-serif;text-align:left;padding:12px 14px;background:transparent;color:#c7cdc4}.nav button[aria-current=page]{background:#e3c98f;color:#212720}.nav button:hover:not([aria-current=page]),.rail-foot a:hover{background:#ffffff10;color:#fff}.rail-foot{margin-top:auto;padding-top:14px;border-top:1px solid #d4d0b927}.access{font-size:11px;padding-bottom:5px;color:#acb0a4}.access i svg{width:13px;height:13px}
.canvas{min-width:0;padding:0 clamp(20px,3.4vw,60px) 48px;max-width:1760px;width:100%;margin:0 auto;outline:0}.topline{display:flex;align-items:center;justify-content:space-between;gap:10px;height:65px;border-bottom:1px solid var(--line);color:var(--muted);font-size:12px}.crumb{font-weight:600}.crumb span{padding:0 7px;color:#acae9f}.top-actions{display:flex;align-items:center;gap:5px}.top-actions #updated{font-size:11px;font-variant-numeric:tabular-nums}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:28px 0 24px}.page-header h1{font-size:clamp(36px,3.8vw,59px);letter-spacing:-.06em;font-weight:500;margin:0;line-height:1.06}.page-header p{color:var(--muted);font-size:14px;margin:8px 0 0}#page-tools{display:flex;align-items:center;gap:8px;flex-shrink:0}#app-status{margin-bottom:16px}.period,.game-select{display:flex;align-items:center;gap:7px;border:1px solid #cfd1c5;border-radius:7px;padding:0 9px;background:var(--card);height:36px}.period svg,.game-select svg{width:15px;height:15px;color:#666f63}.period select,.game-select select{border:0;background:transparent;font-size:13px;min-width:0;max-width:100%;height:100%}.period select:focus-visible,.game-select select:focus-visible{outline-offset:0}
.stack{display:grid;gap:17px}.panel,.metrics{background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden}.metric{padding:17px 19px 19px;border-right:1px solid var(--line);min-width:0}.metric:last-child{border-right:0}.metric .meta{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;font-weight:600}.meta svg{height:15px;width:15px}.metric strong{display:block;font-size:clamp(23px,2.15vw,37px);font-variant-numeric:tabular-nums;letter-spacing:-.055em;font-weight:625;line-height:1.12;margin-top:11px}.metric small{display:block;font-size:11px;color:#74796f;line-height:1.3;margin-top:4px}
.panel{overflow:hidden}.panel-inner{padding:20px}.panel-head{padding:19px 20px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-head h2,.dialog-title h2{font-weight:500;letter-spacing:-.038em;margin:0;line-height:1.14}.panel-head h2{font-size:23px}.panel-head p{font-size:12px;color:var(--muted);margin:4px 0 0}.legend{font-size:11px;display:inline-flex;align-items:center;gap:6px;color:var(--muted);white-space:nowrap}.legend:before{content:"";display:block;width:8px;height:8px;border-radius:2px;background:#a98746}.overview-grid,.detail-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(215px,1fr);gap:16px}.chart-wrap{padding:0 20px 17px}.plot{height:118px;width:100%;display:block;overflow:visible}.axis{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);margin-top:7px}.mini-list{margin:0;padding:0 20px 7px}.mini-list>div{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e6e7df;padding:10px 0;gap:6px;font-size:12px}.mini-list dt{color:var(--muted)}.mini-list dd{margin:0;white-space:nowrap;font-weight:650;font-variant-numeric:tabular-nums}.text-link{display:inline-flex;align-items:center;gap:5px;color:#406144;white-space:nowrap;background:none;border:0;padding:4px 0;font-size:12px;font-weight:700}.text-link:hover{text-decoration:underline}.text-link svg{width:13px;height:13px}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px;text-align:left;font-variant-numeric:tabular-nums}th{font-size:11px;letter-spacing:.02em;color:#687164;background:#f2f3ec;padding:9px 12px;font-weight:650;white-space:nowrap}td{padding:12px;border-top:1px solid #e7e8df;vertical-align:middle}th:first-child,td:first-child{padding-left:20px}th:last-child,td:last-child{padding-right:20px}.num{text-align:right;white-space:nowrap}.game-name{display:flex;align-items:center;gap:9px;white-space:nowrap;font-weight:600}.game-thumb{width:34px;height:30px;flex-shrink:0;border-radius:5px;background:#e0dfce;object-fit:cover}.empty{padding:18px 20px 27px;color:var(--muted);font-size:14px;border-top:1px solid #e5e6dd}.empty strong{display:block;font-size:15px;color:var(--ink);margin-bottom:4px}.empty p{margin:0;line-height:1.45;max-width:520px}.plot-empty{min-height:128px;display:grid;place-content:center;text-align:center;background:repeating-linear-gradient(to bottom,transparent 0px,transparent 31px,#e9e9df 32px);color:#72786c;font-size:12px}.chip{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;line-height:1;font-size:11px;border-radius:4px;background:#ededdf;color:#585f4e;white-space:nowrap}.chip[data-state=active]{background:#e1eddf;color:#345b3c}.chip[data-state=paused]{background:#fbebcd;color:#82602e}.chip[data-state=scheduled]{background:#e1eaf5;color:#4d6782}.chip[data-state=ended],.chip[data-state=exhausted]{background:#e9e8e6;color:#666758}.chip:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.muted{color:var(--muted)}.small{font-size:11px}.nowrap{white-space:nowrap}.campaign-title{font-weight:650;max-width:255px;overflow-wrap:anywhere}.range-note{font-size:12px;color:var(--muted);margin:0}.note-band{padding:14px 20px;border-top:1px solid #e5e6dd}.loader{min-height:150px;display:grid;place-content:center;color:var(--muted);font-size:14px}.loader span:before{content:"";display:inline-block;width:10px;height:10px;margin-right:8px;border-radius:50%;border:2px solid #bdc1b4;border-top-color:#594e32;animation:rotate 1s linear infinite}@keyframes rotate{to{transform:rotate(360deg)}}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
dialog{position:fixed;color:var(--ink);background:var(--card);padding:0;border:1px solid #cbcbbf;border-radius:12px;width:min(470px,93vw);max-height:92dvh;overflow:auto;box-shadow:0 18px 65px #1118}dialog::backdrop{background:#171c1980}dialog form{padding:24px}.dialog-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.dialog-title h2{margin-top:6px;font-size:34px}.dialog-title .bare{border:1px solid #dddcd0}#form-caption{font-size:13px;color:var(--muted);margin:9px 0 18px}.fields{display:grid;gap:14px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:block;font-size:12px;font-weight:650}.field input{display:block;width:100%;min-width:0;border:1px solid #bfc4b7;background:white;margin-top:5px;border-radius:6px;padding:9px 10px;font-size:14px}.field small{font-weight:400;color:var(--muted);display:block;margin-top:4px;line-height:1.3}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:21px}.form-error{color:#8d4033;background:#fcf0e8;border-radius:5px;font-size:13px;padding:9px 10px}.audit-action{font-weight:600;text-transform:capitalize}.signed.positive{color:#356344}.signed.negative{color:#8d5142}.toolbar-wrap{display:flex;justify-content:flex-end;gap:8px}.campaign-progress{font-size:12px;white-space:nowrap}.campaign-progress progress{display:block;margin-top:5px;width:66px;height:4px;appearance:none;background:#e7e8dc;border:0;border-radius:4px}.campaign-progress progress::-webkit-progress-bar{background:#e7e8dc;border-radius:4px}.campaign-progress progress::-webkit-progress-value{background:#8f9c77;border-radius:4px}.campaign-progress progress::-moz-progress-bar{background:#8f9c77;border-radius:4px}
@media(max-width:1080px){.work{grid-template-columns:168px minmax(0,1fr)}.rail{padding-left:11px;padding-right:11px}.rail .wordmark{gap:5px}.rail .brand-suffix{font-size:7px}.canvas{padding:0 20px 30px}.metric{padding:14px}.overview-grid{grid-template-columns:minmax(0,1.25fr) minmax(190px,1fr)}.panel-head{padding:16px}.chart-wrap,.mini-list{padding-left:16px;padding-right:16px}}
@media(max-width:820px){.work{display:block}.rail{position:static;height:auto;display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px max(14px,env(safe-area-inset-right)) 7px max(14px,env(safe-area-inset-left))}.rail .wordmark{padding:0}.rail-foot{grid-column:2;grid-row:1;padding:0;margin:0;border:0}.rail-foot a{font-size:11px;padding:5px}.access{display:none}.nav{grid-column:1/-1;display:flex;gap:3px;justify-content:flex-start;margin:0}.nav button{font-size:13px;padding:8px 13px;gap:5px}.nav button i svg{width:14px;height:14px}.topline{height:42px}.page-header{margin:19px 0}.metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.metric strong{font-size:24px}.gate{grid-template-columns:minmax(180px,34%) 1fr}}
@media(max-width:600px){:root{font-size:14px}.gate{grid-template-columns:1fr}.gate-art{height:145px;background-position:center 43%}.engraving{inset:9px}.emblem{width:45px;height:45px;margin-bottom:17px}.emblem span{font-size:31px;letter-spacing:-4px}.gate-main{min-height:calc(100dvh - 145px);padding:23px}.gate h1{font-size:43px}.gate-content{padding:30px 0}.canvas{padding:0 13px 30px}.topline{height:39px}.page-header{align-items:flex-start;gap:9px}.page-header h1{font-size:37px}.page-header p{font-size:12px;max-width:260px}.nav{justify-content:space-between}.nav button{padding:8px 6px;white-space:nowrap}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric:nth-child(2){border-right:0}.metric:nth-child(-n+2){border-bottom:1px solid var(--line)}.metric{padding:13px}.metric .meta{font-size:11px}.metric .meta svg{width:13px;height:13px}.metric strong{font-size:26px;margin-top:7px}.metric small{font-size:10px}.overview-grid,.detail-grid{grid-template-columns:1fr}.stack{gap:12px}.panel-head h2{font-size:21px}.panel-head{padding:14px}.panel-head p{font-size:11px}.period{gap:3px;padding:0 4px;height:32px}.period select,.game-select select{font-size:12px}.toolbar-wrap{flex-wrap:wrap;justify-content:flex-start}#page-tools .primary{font-size:12px;min-height:34px;padding:7px 9px}.field-row{grid-template-columns:1fr}.dialog-actions{flex-wrap:wrap}dialog form{padding:18px}.game-thumb{width:26px;height:25px}.top-actions #updated{font-size:10px}.empty{padding:16px}.rail .wordmark b{font-size:18px}th:first-child,td:first-child{padding-left:14px}.game-name{gap:6px}.chip{font-size:10px}.range-note{font-size:11px}.legend{font-size:10px}}
@media(max-width:355px){.nav button{font-size:12px}.nav button i{display:none}.page-header{flex-wrap:wrap}.top-actions #updated{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.identity-note {color:var(--muted);font-size:13px}
.identity-note summary {cursor:pointer;width:fit-content;color:var(--ink)}
.identity-note p {max-width:72ch;margin:6px 0}
