@font-face {
  font-family: "Rubik";
  src: url("./assets/fonts/Rubik-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("./assets/fonts/Rubik-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("./assets/fonts/Rubik-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Rubik Mono One";
  src: url("./assets/fonts/RubikMonoOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #0d120d;
  --panel: #10160ff2;
  --surface: #1b2616;
  --surface-raised: #26301e;
  --border: #3a422d;
  --shadow: #303723;
  --text: #f9e0bb;
  --muted: #c3b9a2;
  --quiet: #a4a48b;
  --sand: #ffc26f;
  --clay: #c38154;
  --brown: #884a39;
  --orange: #f77e2c;
  --gold: #fcae1e;
  --accent: var(--sand);
  --body: "Rubik", system-ui, sans-serif;
  --mono: "PT Mono", "DejaVu Sans Mono", monospace;
  font-family: var(--body);
  font-size: 16px;
  color: var(--text);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .5; }
button, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--sand); outline-offset: 5px; }
button, a { -webkit-user-select: none; user-select: none; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { color: var(--background); background: var(--sand); }
body[data-scene="bot"] { --accent: #70bafa; }
body[data-scene="social"] { --accent: var(--gold); }
body[data-scene="card"] { --accent: var(--orange); }
.ambient { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
.recap-shell { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 32px 24px; }
.recap-panel { position: relative; display: flex; flex-direction: column; width: min(1120px, 100%); height: min(760px, calc(100svh - 64px)); min-height: 540px; background: var(--panel); border: 2px solid var(--border); border-radius: 28px; box-shadow: 0 6px 0 var(--shadow); isolation: isolate; }
.progress { position: relative; z-index: 3; display: flex; gap: 5px; margin: -4px 16px 0; }
.progress-step { position: relative; flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; background: none; }
.progress-track { display: block; position: relative; height: 4px; background: #f9e0bb29; border-radius: 3px; overflow: hidden; }
.progress-fill { position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left center; }
.progress-step.is-complete .progress-fill { transform: scaleX(1); }
.progress-step[aria-current="step"] .progress-fill { animation: progress-in 1.65s ease-out both; }
body[data-scene="intro"] .progress-step[aria-current="step"] .progress-fill { animation: none; transform: scaleX(.35); }
.screen { display: flex; flex: 1; min-height: 0; padding: 14px 64px 10px; }
.slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; width: 100%; }
.slide-copy, .slide-visual { min-width: 0; }
.slide-title { font-weight: 900; font-size: clamp(2.2rem, 3.2vw, 3.25rem); letter-spacing: -.055em; line-height: 1.04; margin: 0 0 22px; text-wrap: balance; overflow-wrap: break-word; }
.slide-title:focus { outline: none; }
.slide-description { font-size: 1.25rem; line-height: 1.4; color: var(--muted); margin: 0; max-width: 470px; }
.slide-description strong { font-weight: 700; color: var(--text); }
.brand-label { font-family: "Rubik Mono One", monospace; font-size: .75rem; font-weight: 400; letter-spacing: -.05em; color: var(--clay); margin: 0 0 14px; }
.intro-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.intro-title { font-size: clamp(3.2rem, 5vw, 4.75rem); margin: 0; font-weight: 900; letter-spacing: -.065em; line-height: 1.05; }
.intro-title span { color: var(--orange); }
.year-badge { align-self: center; border: 1px solid #ffc26f66; color: var(--sand); background: #ffc26f10; border-radius: 5px; padding: 6px 9px; font-family: var(--mono); font-size: .75rem; white-space: nowrap; }
.login-panel { width: 100%; }
.profile-box { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 4px 0 var(--shadow); }
.profile-avatar { width: 76px; height: 76px; object-fit: cover; border: 3px solid var(--clay); background: #11170d; border-radius: 18px; flex-shrink: 0; }
.profile-fields { flex: 1; min-width: 0; }
.profile-label { display: block; color: var(--quiet); font-size: .875rem; margin-bottom: 4px; }
.profile-name { display: block; color: var(--text); font-weight: 900; font-size: 1.6rem; letter-spacing: -.035em; overflow-wrap: anywhere; line-height: 1.2; }
.profile-handle { display: block; color: var(--muted); font-size: .875rem; margin-top: 5px; overflow-wrap: anywhere; }
.intro-links { display: flex; justify-content: flex-end; gap: 16px; margin-top: 9px; }
.summary-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.summary-avatar { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; object-fit: cover; }
.summary-profile .summary-name { margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border: 2px solid var(--border); border-radius: 17px; padding: 11px 20px; box-shadow: 0 4px 0 var(--shadow); background: var(--surface); color: var(--text); font-family: var(--mono); font-size: .875rem; line-height: 1.25; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; }
.button:hover:not(:disabled) { background: var(--surface-raised); }
.button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--shadow); }
.button-primary { border-color: var(--sand); color: var(--sand); box-shadow: 0 4px 0 #92712e; }
.button-primary:active:not(:disabled) { box-shadow: 0 1px 0 #92712e; }
.start-button { width: 100%; margin-top: 20px; font-size: 1.125rem; min-height: 64px; }
.icon { display: inline-block; flex-shrink: 0; width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.form-error { color: var(--sand); font-size: .875rem; line-height: 1.5; margin: 18px 0 0; }
.form-error:empty { display: none; }
.form-help { color: var(--quiet); font-size: .875rem; line-height: 1.5; margin: 17px 0 0; }
.link-button { font-family: var(--body); font-size: .875rem; border: 0; padding: 8px 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.link-button:hover { color: var(--text); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat-card { min-width: 0; border: 2px solid var(--border); border-radius: 18px; padding: 20px; background: var(--surface); box-shadow: 0 4px 0 var(--shadow); }
.stat-card > .icon { width: 20px; height: 20px; color: var(--accent); margin-bottom: 8px; }
.stat-value { display: block; font-size: clamp(1.75rem, 2.4vw, 2.375rem); font-weight: 900; letter-spacing: -.045em; line-height: 1.05; overflow-wrap: anywhere; }
.stat-label { display: block; color: var(--muted); font-size: .875rem; line-height: 1.35; margin-top: 3px; }
.stat-comparison { color: var(--quiet); font-size: .75rem; line-height: 1.4; margin: 9px 0 0; }
.period-note { color: var(--quiet); font-family: var(--mono); font-size: .75rem; line-height: 1.6; margin: 22px 0 0; }
.big-number { display: block; margin: 22px 0 5px; font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 900; color: var(--accent); line-height: 1; letter-spacing: -.065em; }
.big-number-label { margin: 0 0 25px; color: var(--muted); font-size: 1rem; }
.feedback-list { display: grid; gap: 14px; }
.feedback-row { display: grid; grid-template-columns: minmax(95px, 1.05fr) minmax(50px, 1.8fr) auto; gap: 16px; align-items: center; border: 2px solid var(--border); background: var(--surface); box-shadow: 0 4px 0 var(--shadow); border-radius: 17px; padding: 20px; }
.feedback-name { font-size: .875rem; font-weight: 700; overflow-wrap: anywhere; }
.feedback-track { height: 12px; background: var(--surface-raised); border-radius: 4px; overflow: hidden; }
.feedback-fill { display: block; width: var(--amount, 0%); height: 100%; background: var(--accent); transform-origin: left; animation: grow-in 1s .4s both; border-radius: 4px; }
.feedback-count { font-size: .875rem; color: var(--muted); }
.no-data-hint { color: var(--quiet); font-size: .875rem; line-height: 1.5; margin: 20px 2px 0; }
.feature-caption { font-family: var(--mono); color: var(--accent); line-height: 1.5; font-size: 1rem; margin: 26px 0 0; }
.identity-card { position: relative; border: 2px solid #9a8d70; border-radius: 18px; box-shadow: 0 4px 0 #5f5137; background: var(--surface); overflow: hidden; transform-style: preserve-3d; transition: transform .2s ease-out; }
.identity-art { position: relative; min-height: 210px; display: grid; place-items: center; background-color: #3d3926; background-image: radial-gradient(#f9e0bb36 1px, transparent 1px); background-size: 8px 8px; }
.identity-art > .icon { width: 92px; height: 92px; color: var(--sand); stroke-width: 1.5; }
.identity-art .year-badge { position: absolute; top: 14px; right: 14px; }
.identity-body { padding: 21px 20px; }
.identity-title { color: var(--sand); font-weight: 900; font-size: 2rem; letter-spacing: -.045em; line-height: 1.15; margin: 0 0 12px; overflow-wrap: anywhere; }
.identity-description { color: var(--muted); font-size: 1rem; line-height: 1.5; margin: 0; }
.identity-chip { display: inline-block; font-family: var(--mono); font-size: .75rem; line-height: 1.4; color: var(--sand); border: 1px solid var(--border); background: var(--surface-raised); border-radius: 6px; padding: 5px 8px; margin-top: 16px; }
.identity-card.is-revealing { animation: card-reveal .9s .25s both; }
.summary-slide { align-items: start; padding-top: 26px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 46px; }
.summary-title { font-size: clamp(2.2rem, 3.4vw, 3.25rem); margin-bottom: 16px; }
.summary-name { color: var(--sand); font-size: 1.25rem; margin: 0 0 15px; overflow-wrap: anywhere; }
.summary-line { height: 4px; background: var(--border); border-radius: 3px; margin-bottom: 16px; }
.summary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary-actions .button { padding-inline: 8px; font-size: .75rem; }
.summary-actions .icon { width: 18px; height: 18px; }
.summary-period { color: var(--quiet); margin: 22px 0 0; font-size: .875rem; line-height: 1.6; }
.table-wrap { border: 2px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 4px 0 var(--shadow); background: var(--surface); }
.summary-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .875rem; }
.summary-table th { background: var(--surface-raised); text-align: left; color: var(--quiet); font-weight: 400; padding: 13px 15px; }
.summary-table th:first-child { width: 48%; }
.summary-table th:nth-child(2) { color: var(--orange); }
.summary-table th:last-child { color: var(--sand); }
.summary-table th:not(:first-child), .summary-table td:not(:first-child) { text-align: right; }
.summary-table td { border-top: 2px solid var(--border); padding: 14px 15px; color: var(--muted); overflow-wrap: anywhere; }
.summary-table td:nth-child(2) { font-weight: 700; color: var(--text); }
.summary-table .icon { width: 17px; height: 17px; margin-right: 7px; color: var(--quiet); }
.summary-disclaimer { display: flex; align-items: flex-start; gap: 8px; font-size: .875rem; line-height: 1.5; color: var(--quiet); margin: 20px 0 12px; }
.summary-disclaimer .icon { width: 17px; height: 17px; margin-top: 2px; }
.change-player { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: none; color: var(--quiet); font-size: .875rem; padding: 6px 0; }
.change-player:hover { color: var(--text); }
.change-player .icon { width: 17px; height: 17px; }
.panel-controls { min-height: 70px; padding: 0 16px 16px; display: flex; align-items: center; gap: 15px; position: relative; z-index: 2; }
.back-button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--quiet); border-radius: 10px; }
.back-button svg { width: 22px; height: 22px; }
.back-button:hover { color: var(--text); background: #f9e0bb08; }
.mode-label { color: var(--quiet); font-family: var(--mono); font-size: .75rem; line-height: 1.5; margin-left: 12px; }
.button-next { margin-left: auto; font-size: .875rem; min-width: 106px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 5; margin: 0; width: max-content; max-width: calc(100% - 32px); padding: 14px 20px; background: var(--surface); color: var(--text); border: 1px solid var(--sand); border-radius: 12px; font-size: .875rem; line-height: 1.5; box-shadow: 0 4px 20px #0005; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript-note { position: fixed; inset: 40% 24px auto; text-align: center; font-size: 1rem; }
.reveal { animation: reveal .55s both; animation-delay: var(--delay, 0ms); }
.slide-copy { --delay: 40ms; }
.slide-description.reveal { --delay: 350ms; }
.stat-card:nth-child(1) { --delay: 160ms; }
.stat-card:nth-child(2) { --delay: 280ms; }
.stat-card:nth-child(3) { --delay: 400ms; }
.stat-card:nth-child(4) { --delay: 520ms; }
.navigation-reveal { animation: reveal .3s .8s both; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes progress-in { from { transform: scaleX(.08); } to { transform: scaleX(1); } }
@keyframes grow-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes card-reveal { from { opacity: 0; transform: perspective(1000px) rotateY(-24deg) rotateZ(-3deg) scale(.96); } to { opacity: 1; transform: perspective(1000px) rotateY(0) rotateZ(0) scale(1); } }
@media (max-width: 1000px) {
  .screen { padding-inline: 42px; }
  .slide { gap: 30px; }
  .slide-description { font-size: 1.125rem; }
  .stat-card { padding: 17px; }
  .summary-slide { gap: 28px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .summary-actions { grid-template-columns: 1fr; }
  .summary-actions .button { font-size: .875rem; }
  .summary-table th, .summary-table td { padding-inline: 10px; }
}
@media (max-width: 700px) {
  .recap-shell { padding: 16px 12px 22px; }
  .recap-panel { min-height: calc(100svh - 44px); height: auto; border-radius: 22px; }
  .screen { flex: 1; padding: 26px 24px; }
  .progress { margin-inline: 12px; gap: 4px; }
  .slide { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 30px; }
  .slide-title { font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: 18px; }
  .slide-description { font-size: 1rem; line-height: 1.5; }
  .intro-heading { gap: 12px; margin-bottom: 18px; }
  .intro-title { font-size: clamp(2.7rem, 10.5vw, 4rem); }
  .brand-label { font-size: .75rem; }
  .intro-slide { gap: 34px; padding-block: 10px; }
  .profile-box { padding: 14px; gap: 12px; border-radius: 16px; }
  .profile-avatar { width: 60px; height: 60px; border-radius: 14px; }
  .profile-name { font-size: 1.35rem; }
  .start-button { min-height: 54px; margin-top: 17px; font-size: 1rem; }
  .form-help { font-size: .875rem; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 15px 13px; border-radius: 15px; }
  .stat-value { font-size: 2rem; }
  .stat-label { font-size: .875rem; }
  .big-number { font-size: 3.75rem; margin-top: 18px; }
  .big-number-label { margin-bottom: 20px; }
  .feedback-row { padding: 17px 14px; gap: 12px; grid-template-columns: minmax(80px, 1.15fr) minmax(30px, 1fr) auto; }
  .identity-card { max-width: 440px; width: 100%; margin-inline: auto; }
  .identity-art { min-height: 150px; }
  .identity-art > .icon { width: 70px; height: 70px; }
  .identity-title { font-size: 1.6rem; }
  .identity-body { padding: 18px; }
  .feature-caption { font-size: .875rem; margin-top: 18px; }
  .summary-slide { padding-top: 0; gap: 24px; }
  .summary-actions { grid-template-columns: 1fr 1fr; }
  .summary-actions .button { font-size: .75rem; padding-inline: 8px; }
  .summary-period { margin-top: 18px; }
  .summary-table { font-size: .875rem; }
  .summary-table th, .summary-table td { padding: 12px 9px; }
  .summary-table th:first-child { width: 46%; }
  .summary-table .icon { display: none; }
  .summary-disclaimer { font-size: .875rem; }
  .panel-controls { min-height: 66px; padding: 0 12px 14px; gap: 4px; }
  .mode-label { font-size: .75rem; margin-left: 2px; max-width: 160px; }
  .button-next { min-width: 92px; padding-inline: 14px; font-size: .875rem; }
  .back-button { width: 36px; }
}
@media (max-width: 360px) {
  .screen { padding-inline: 18px; }
  .intro-heading { gap: 10px; }
  .year-badge { font-size: .75rem; padding-inline: 6px; }
  .mode-label { max-width: 120px; }
  .summary-actions { grid-template-columns: 1fr; }
  .summary-actions .button { font-size: .875rem; }
}
@media (max-height: 650px) and (min-width: 701px) {
  .recap-shell { padding-block: 18px 24px; }
  .recap-panel { height: auto; min-height: calc(100svh - 48px); }
  .screen { padding-block: 22px; }
  .summary-slide { padding-top: 0; }
  .identity-art { min-height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .progress-step[aria-current="step"] .progress-fill { transform: scaleX(1); }
}
