:root { color-scheme:dark; --gold:#edce8c; --muted:#b6aa91; font-family:Arial,'Yu Gothic','Meiryo',sans-serif; color:#f7f0df; background:#080b0a; }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; }
button,a { -webkit-tap-highlight-color:transparent; }
button { font:inherit; cursor:pointer; }
button:focus-visible,a:focus-visible,.chart-scroll:focus-visible { outline:2px solid var(--gold); outline-offset:5px; }
.scene { position:relative; min-height:100svh; padding:26px 3.3% 24px; isolation:isolate; overflow:hidden; }
.scene::before { content:''; position:absolute; z-index:-2; inset:0; background:url("./assets/performance-background.png") center top/cover no-repeat; }
.scene::after { content:''; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#03080612 65%,transparent),linear-gradient(180deg,#05080712,#06090700 45%,#050806a6); }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:11px; letter-spacing:2px; }
.back { display:flex; align-items:center; gap:10px; text-decoration:none; color:#e4d9bf; letter-spacing:1px; text-shadow:0 1px 5px #000; }
.back span { font-size:19px; }
.hero { display:flex; justify-content:center; align-items:center; gap:26px; width:85%; margin:17px 0 31px; text-align:center; }
.hero-copy { text-shadow:0 3px 14px #000; position:relative; }
.hero-copy::before { content:''; position:absolute; z-index:-1; inset:-30px -70px; background:radial-gradient(ellipse,#040907ed 15%,#04090777 55%,transparent 74%); }
.hero h1 { text-shadow:none; }
.eyebrow { margin:0 0 10px; color:#d4b578; font-size:10px; letter-spacing:5px; }
h1 { margin:0; font-size:clamp(28px,3.8vw,58px); line-height:1.25; font-weight:800; letter-spacing:1px; background:linear-gradient(180deg,#fff1bf 10%,#f4c970 55%,#c9933f 100%); color:var(--gold); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; filter:drop-shadow(0 2px 3px #000); }
.subtitle { margin:12px 0 0; font-size:clamp(14px,1.8vw,26px); letter-spacing:2px; color:#f3dca8; }
.laurel { width:57px; height:104px; flex-shrink:0; color:#e5ca86; filter:drop-shadow(0 2px 5px #000); }
.laurel.right { transform:scaleX(-1); }
.content { width:85%; max-width:1400px; }
.panel { position:relative; padding:23px 22px 12px; border:1px solid #d7b56a; border-radius:21px; background:linear-gradient(115deg,#080d0bec,#11110aec 48%,#060b09f2); box-shadow:0 0 0 4px #141710b3,inset 0 0 0 4px #b7893c1c,0 0 25px #e3a74813; }
.panel::before { content:''; position:absolute; top:-1px; left:10%; right:10%; height:1px; background:linear-gradient(90deg,transparent,#fff1c5,transparent); box-shadow:0 0 12px 2px #ffc36c5c; }
.corner { position:absolute; width:23px; height:23px; border:1px solid #d3ad61; pointer-events:none; }
.corner::after { content:'◆'; position:absolute; color:#c5a15e; font-size:8px; top:1px; left:1px; }
.tl { left:7px; top:7px; border-right:0; border-bottom:0; border-radius:12px 0 0; }
.tr { right:7px; top:7px; transform:rotate(90deg); border-right:0; border-bottom:0; border-radius:12px 0 0; }
.bl { left:7px; bottom:7px; transform:rotate(-90deg); border-right:0; border-bottom:0; border-radius:12px 0 0; }
.br { right:7px; bottom:7px; transform:rotate(180deg); border-right:0; border-bottom:0; border-radius:12px 0 0; }
.panel-header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 15px; min-width:0; }
h2 { margin:0; padding:8px 19px; border:1px solid #846837; border-radius:6px 18px; font-size:21px; white-space:nowrap; color:#f8dba0; background:linear-gradient(100deg,#54411c2b,transparent); }
.legend { display:flex; flex-wrap:wrap; justify-content:center; gap:4px; padding:4px 11px; border:1px solid #806b42; border-radius:24px; min-width:0; max-width:100%; }
.legend button { display:flex; align-items:center; gap:9px; min-width:0; max-width:100%; border:0; border-radius:20px; padding:8px 12px; background:transparent; color:#eee8da; font-size:14px; transition:opacity .2s,background .2s; }
.legend button:hover { background:#ffffff0c; }
.legend button[aria-pressed=false] { opacity:.4; }
.legend-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.swatch { width:25px; height:4px; flex-shrink:0; border-radius:5px; background:var(--line); box-shadow:0 0 7px color-mix(in srgb,var(--line) 40%,transparent); }
.chart-scroll { overflow-x:auto; scrollbar-color:#786036 #12140e; }
.chart-wrap { position:relative; }
#chart { display:block; width:100%; overflow:visible; touch-action:pan-x pan-y; }
.chart-footer { display:flex; justify-content:space-between; gap:12px; color:#9b947f; font-size:10px; letter-spacing:1px; padding:0 6px 5px 40px; }
.chart-footer strong { font-weight:400; color:#c4b391; }
.tooltip { position:absolute; z-index:2; pointer-events:none; width:174px; padding:12px; border:1px solid #8e7547; border-radius:8px; background:#101610f5; box-shadow:0 8px 24px #0009; font-size:11px; }
.tooltip b { display:block; color:#d8c494; padding-bottom:8px; font-size:11px; }
.tooltip p { display:flex; justify-content:space-between; gap:8px; margin:6px 0 0; }
.tooltip p span:first-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mentor-heading { display:flex; align-items:center; justify-content:space-between; margin:22px 0 12px; }
.mentor-heading h3 { font-size:12px; letter-spacing:2px; font-weight:400; color:#dfc693; margin:0; }
.mentor-heading span { font-size:10px; color:#a99f89; }
.mentors { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.mentor { position:relative; display:flex; gap:12px; align-items:center; padding:14px 12px; border:1px solid #a082484d; border-radius:9px; background:linear-gradient(120deg,#282416d9,#0c120fec); min-width:0; overflow:hidden; }
.mentor::after { content:''; position:absolute; bottom:0; left:12px; right:12px; height:1px; background:linear-gradient(90deg,transparent,var(--line),transparent); opacity:.65; }
.portrait { display:grid; place-items:center; flex-shrink:0; width:48px; height:52px; border-radius:6px; background:#261e14; color:#c7b58e; font-size:9px; text-align:center; overflow:hidden; }
.portrait img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.mentor-info { min-width:0; }
.mentor-name { display:block; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#ede5d4; }
.return { display:block; margin-top:5px; color:var(--line); font-size:25px; font-weight:500; letter-spacing:-.7px; font-variant-numeric:tabular-nums; }
.return small { font-size:14px; margin-left:2px; }
.return.unset { font-size:16px; letter-spacing:0; color:#c4b391; }
.note { margin:18px 0 0; font-size:10px; color:#9e9788; line-height:1.8; }
.note span { color:#cfb887; }
.page-status,.sync-warning,.load-error,.chart-empty { margin:0 0 12px; color:#d8c494; font-size:13px; }
.load-error { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.load-error p { margin:0; }
.load-error button { min-height:44px; padding:8px 16px; border:1px solid #d7b56a; border-radius:8px; background:#e5bb71; color:#211607; font-weight:bold; }
.chart-empty { position:absolute; inset:40% 12px auto; text-align:center; z-index:1; }
[hidden] { display:none !important; }
@media(min-width:1700px) { .scene { padding-top:35px; } .hero { margin-top:27px; margin-bottom:38px; } }
@media(max-width:1200px) { .content,.hero { width:94%; } .panel-header { flex-wrap:wrap; gap:13px; } .legend { margin-left:auto; } .legend button { padding:7px; font-size:12px; } .mentor { gap:8px; padding:12px 8px; } .return { font-size:22px; } }
@media(max-width:900px) { .content,.hero { width:100%; } .hero { gap:15px; margin:28px 0; } .hero h1 { font-size:clamp(24px,4.5vw,40px); } .laurel { width:35px; height:75px; } .mentors { grid-template-columns:repeat(3,minmax(0,1fr)); } .panel { padding:18px 14px 12px; } h2 { font-size:17px; } .legend { border:0; padding:0; margin:0; } .panel-header { gap:10px; } .chart-wrap { min-width:700px; } }
@media(max-width:540px) { .scene { padding:18px 15px; } .scene::before { background-position:66% top; background-size:auto 720px; } .topbar { font-size:9px; } .hero { gap:4px; margin:32px 0 25px; } .laurel { width:22px; height:63px; } .eyebrow { font-size:8px; letter-spacing:3px; } .hero h1 { font-size:clamp(18px,5.4vw,25px); letter-spacing:-.8px; white-space:nowrap; } .subtitle { font-size:11px; letter-spacing:.3px; } .panel { border-radius:14px; padding:16px 10px 12px; } h2 { font-size:16px; padding:6px 12px; } .legend { justify-content:flex-start; gap:1px; } .legend button { font-size:11px; padding:7px 6px; gap:6px; } .swatch { width:17px; height:3px; } .chart-footer { padding:10px 0 0; font-size:9px; letter-spacing:0; } .mentors { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } .mentor { padding:12px 10px; gap:11px; } .mentor-heading span { font-size:9px; } .note { font-size:9px; } }
