/* Colors and typography mirror puzzle-mine-app/src/global.css and libs/theme.ts.
   Card/button styles follow the app's shared UI components. */
:root {
  color-scheme: dark;
  --background: #0d1117;
  --foreground: #c9d1d9;
  --card: #161b22;
  --primary: #58a6ff;
  --secondary: #21262d;
  --muted-foreground: #8b949e;
  --destructive: #f85149;
  --success: #3fb950;
  --border: #30363d;
  --radius: 0.625rem;
  --font-display: Spline Sans, Inter, ui-sans-serif, system-ui, sans-serif,
    Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:30px
}
body {
  margin:0;
  background:var(--background);
  color:var(--foreground);
  font:15px/1.6 var(--font-display);
  -webkit-font-smoothing:antialiased
}
button,input {
  font:inherit
}
button,a,input,label {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
a {
  color:inherit;
  text-decoration:none
}
button:disabled,input:disabled,fieldset:disabled label {
  cursor:wait;
  opacity:.65
}
button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:2px solid var(--primary);
  outline-offset:5px
}
input:focus-visible {
  outline:2px solid var(--primary);
  outline-offset:1px
}
input[type=radio]:focus-visible+span {
  outline:2px solid var(--primary)
}
.wrap {
  max-width:1216px;
  margin:auto;
  width:calc(100% - 96px)
}
[v-cloak] {
  display:none!important
}
.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
}
.site-header {
  height:112px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--border)
}
.brand {
  display:flex;
  align-items:center;
  font-weight:650;
  font-size:23px;
  letter-spacing:-.9px
}
.brand-icon {
  width:40px;
  height:40px;
  object-fit:cover;
  border:1px solid var(--border);
  border-radius:12px;
  margin-right:10px
}
nav {
  display:flex;
  gap:36px;
  align-items:center;
  font-size:12px
}
nav a:hover,.text-button:hover {
  color:var(--primary)
}
.nav-note {
  color:var(--muted-foreground);
  display:flex;
  align-items:center;
  gap:9px
}
.live-dot {
  width:6px;
  height:6px;
  border-radius:100%;
  background:var(--primary)
}
.hero {
  display:grid;
  grid-template-columns:1.04fr 1fr;
  gap:64px;
  align-items:center;
  padding-top:76px;
  padding-bottom:100px;
  min-height:715px
}
.eyebrow {
  font-size:10px;
  font-weight:650;
  letter-spacing:1.8px;
  margin:0 0 25px
}
.hero-copy .eyebrow {
  display:flex;
  gap:12px;
  align-items:center;
  color:var(--primary)
}
.short-rule {
  height:1px;
  width:25px;
  background:var(--primary)
}
h1,h2,h3,p {
  overflow-wrap:anywhere
}
h1 {
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(44px,5vw,68px);
  line-height:1.08;
  letter-spacing:-1.8px;
  margin:0 0 25px
}
h1 em {
  font-weight:700;
  font-style:normal;
  color:var(--primary)
}
.hero-description {
  font-size:16px;
  color:var(--muted-foreground);
  max-width:438px;
  line-height:1.8;
  margin:0 0 29px
}
.provider-switch {
  border:0;
  display:flex;
  margin:0 0 22px;
  padding:4px;
  background:var(--background);
  border-radius:8px;
  width:max-content;
  gap:2px
}
.provider-switch label {
  position:relative;
  display:flex;
  align-items:center;
  gap:7px;
  border-radius:6px;
  padding:8px 22px;
  font-size:12px;
  cursor:pointer;
  color:var(--muted-foreground);
  transition:background .15s,color .15s
}
.provider-switch label.selected {
  background:var(--secondary);
  color:var(--foreground);
}
.provider-switch input {
  position:absolute;
  opacity:0;
  width:100%;
  height:100%;
  margin:0;
  inset:0;
  cursor:pointer
}
.provider-switch label:focus-within {
  outline:2px solid var(--primary);
  outline-offset:2px
}
.field-label {
  display:block;
  font-size:11px;
  color:var(--foreground);
  margin-bottom:8px
}
.input-action {
  display:flex;
  gap:8px
}
.input-action input {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  width:100%;
  min-width:0;
  color:var(--foreground);
  padding:13px 15px;
  font-size:12px;
  height:49px
}
.input-action input::placeholder {
  color:var(--muted-foreground)
}
.primary-button {
  background:var(--primary);
  color:var(--background);
  border:1px solid var(--primary);
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  white-space:nowrap;
  font-size:12px;
  font-weight:700;
  padding:12px 18px;
  min-height:49px;
  transition:background .15s
}
.primary-button:hover:not(:disabled) {
  background:var(--primary);
  opacity:.82
}
.form-note {
  font-size:10px;
  color:var(--muted-foreground);
  margin:10px 0 20px
}
.form-bottom {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  color:var(--muted-foreground);
  font-size:10px
}
.tiny-shield {
  margin-right:4px;
  color:var(--primary)
}
.text-button {
  background:none;
  border:0;
  padding:0;
  color:var(--foreground);
  font-size:11px;
  line-height:1.7;
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-color:var(--muted-foreground)
}
.text-button span {
  display:inline-block;
  margin-left:4px
}
.hero-visual {
  min-width:0;
  position:relative;
  display:flex;
  justify-content:center
}
.sample-composition {
  position:relative;
  width:100%;
  max-width:445px;
  padding:7px 12px 23px 12px
}
.sample-card {
  position:relative;
  background:var(--card);
  color:var(--foreground);
  border:1px solid var(--border);
  padding:25px 28px 21px;
  border-radius:8px;
}
.sample-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--border);
  padding-bottom:17px
}
.mini-brand {
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-weight:700;
  font-size:13px;
  letter-spacing:-.5px
}
.sample-badge {
  font-size:8px;
  font-weight:700;
  letter-spacing:1px;
  padding:5px 7px;
  border:1px solid var(--border);
  border-radius:4px;
  white-space:nowrap
}
.sample-kicker {
  font-size:8px;
  font-weight:650;
  letter-spacing:1.5px;
  margin:23px 0 10px;
  color:var(--muted-foreground)
}
.sample-card h2 {
  font-family:var(--font-display);
  font-size:31px;
  line-height:1.18;
  letter-spacing:-.7px;
  font-weight:700;
  margin:0
}
.sample-score {
  display:flex;
  gap:27px;
  align-items:center;
  padding:28px 0
}
.score-ring {
  width:145px;
  height:145px;
  flex-shrink:0;
  border-radius:50%;
  padding:11px;
  background:conic-gradient(from -90deg,var(--success) calc(var(--score)*1%),var(--destructive) 0)
}
.score-ring>div {
  border-radius:50%;
  background:var(--card);
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column
}
.score-ring strong {
  font-size:43px;
  line-height:1;
  font-weight:550;
  letter-spacing:-2px
}
.score-ring strong span {
  font-size:20px;
  letter-spacing:0
}
.score-ring>div>span {
  font-size:9px;
  margin-top:8px;
  color:var(--muted-foreground)
}
.sample-numbers {
  flex:1
}
.sample-numbers>div {
  display:grid;
  grid-template-columns:7px 1fr;
  column-gap:10px;
  align-items:center
}
.sample-numbers>div+div {
  margin-top:14px
}
.sample-numbers strong {
  font-size:27px;
  line-height:1.2;
  font-weight:550
}
.sample-numbers>div>span:last-child {
  grid-column:2;
  font-size:10px;
  color:var(--muted-foreground)
}
.stat-dot {
  display:inline-block;
  border-radius:100%;
  width:7px;
  height:7px;
  flex-shrink:0
}
.success-dot {
  background:var(--success)
}
.danger-dot {
  background:var(--destructive)
}
.sample-impact {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid var(--border);
  padding:12px 0;
  font-size:10px
}
.sample-impact>span {
  display:flex;
  align-items:center;
  gap:10px
}
.impact-icon {
  width:23px;
  height:23px;
  border-radius:5px;
  background:var(--secondary);
  color:var(--primary);
  display:grid;
  place-items:center;
  font-size:16px
}
.sample-impact strong {
  font-size:16px;
  font-weight:550
}
.sample-card-footer {
  margin-top:8px;
  padding-top:14px;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  font-size:8px;
  color:var(--muted-foreground)
}
.how-section {
  padding:38px 0 70px;
  border-top:1px solid var(--border)
}
.how-heading .eyebrow {
  color:var(--muted-foreground);
  font-size:9px;
  margin-bottom:10px
}
.how-heading h2 {
  font-family:var(--font-display);
  font-weight:700;
  font-size:31px;
  letter-spacing:-.5px;
  margin:0 0 30px
}
.steps {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:55px
}
.step-number {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:var(--primary);
  border-bottom:1px solid var(--border);
  padding-bottom:12px;
  margin-bottom:15px
}
.step-number span {
  color:var(--muted-foreground)
}
.steps h3 {
  font-size:14px;
  font-weight:500;
  margin:0 0 7px
}
.steps p {
  font-size:12px;
  color:var(--muted-foreground);
  margin:0;
  max-width:280px;
  line-height:1.8
}
.site-footer {
  border-top:1px solid var(--border);
  padding:27px 0 32px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:9px;
  color:var(--muted-foreground);
  gap:20px
}
.footer-brand {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:650;
  letter-spacing:-.5px;
  font-size:15px;
  color:var(--foreground)
}
.site-footer>div {
  display:flex;
  gap:22px
}
.site-footer a:hover {
  color:var(--primary)
}
.error-message {
  color:var(--destructive);
  font-size:12px;
  border-left:2px solid var(--destructive);
  padding-left:12px
}
.cancel-button {
  color:var(--muted-foreground)
}
.loading-card {
  width:100%;
  max-width:430px;
  min-height:450px;
  border:1px solid var(--border);
  background:var(--card);
  border-radius:8px;
  text-align:center;
  padding:54px 30px;
  display:flex;
  flex-direction:column;
  align-items:center
}
.loading-orbit img {
  border-radius:12px;
  object-fit:cover
}
.loading-orbit {
  position:relative;
  width:90px;
  height:90px;
  margin-bottom:30px;
  display:grid;
  place-items:center;
  font-size:46px;
  color:var(--primary)
}
.spinner {
  display:inline-block;
  border-radius:50%;
  border:2px solid var(--border);
  border-top-color:var(--primary);
  animation:spin 1s linear infinite;
  flex-shrink:0
}
.spinner.small {
  width:14px;
  height:14px;
  border-top-color:var(--background)
}
.spinner.large {
  position:absolute;
  inset:0;
  border-width:2px
}
.loading-card .eyebrow {
  font-size:8px;
  color:var(--primary);
  margin-bottom:14px
}
.loading-card h2 {
  font-family:var(--font-display);
  font-size:30px;
  font-weight:700;
  line-height:1.25;
  margin:0 0 12px
}
.loading-detail {
  font-size:12px;
  color:var(--muted-foreground);
  margin:0 0 20px;
  min-height:20px
}
.loading-card progress {
  width:100%;
  height:5px;
  border:0;
  border-radius:5px;
  overflow:hidden;
  accent-color:var(--primary);
  background:var(--secondary)
}
.loading-card progress::-webkit-progress-bar {
  background:var(--secondary)
}
.loading-card progress::-webkit-progress-value {
  background:var(--primary)
}
.estimate {
  font-size:12px;
  color:var(--primary);
  margin-top:16px
}
.keep-open {
  font-size:10px;
  color:var(--muted-foreground);
  max-width:240px
}
.report {
  padding:35px 0 65px
}
.report-topline {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:40px
}
.report-date {
  font-size:10px;
  color:var(--muted-foreground)
}
.report-heading {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  margin-bottom:35px
}
.report-heading .eyebrow {
  color:var(--primary);
  margin-bottom:13px
}
.report-heading h1 {
  font-size:48px;
  margin-bottom:15px
}
.report-heading p:last-child {
  font-size:12px;
  color:var(--muted-foreground);
  margin:0
}
.report-heading strong {
  color:var(--foreground);
  font-weight:500
}
.inline-dot {
  padding:0 10px
}
.report-mark {
  width:72px;
  height:72px;
  object-fit:cover;
  border:1px solid var(--border);
  border-radius:16px;
  margin-right:20px
}
.report-overview {
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:20px
}
.opportunity-card {
  background:var(--card);
  color:var(--foreground);
  border:1px solid var(--border);
  border-radius:8px;
  padding:32px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:20px;
  align-items:center
}
.opportunity-card .eyebrow {
  color:var(--primary);
  font-size:9px;
  margin-bottom:12px
}
.opportunity-card h2 {
  font-family:var(--font-display);
  font-size:30px;
  font-weight:700;
  line-height:1.2;
  margin:0 0 10px
}
.opportunity-card p:not(.eyebrow) {
  font-size:11px;
  color:var(--muted-foreground);
  max-width:230px
}
.report-ring {
  width:145px;
  height:145px
}
.opportunity-legend {
  grid-column:1/-1;
  display:flex;
  border-top:1px solid var(--border);
  padding-top:18px;
  gap:30px;
  font-size:12px
}
.opportunity-legend>span {
  display:flex;
  gap:7px;
  align-items:center
}
.rate-note {
  color:var(--muted-foreground);
  font-size:10px
}
.report-totals {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px
}
.report-totals article {
  padding:25px 22px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px
}
.total-icon {
  display:block;
  font-size:25px;
  color:var(--primary);
  margin-bottom:18px
}
.danger-text {
  color:var(--destructive)
}
.report-totals strong {
  font-size:44px;
  line-height:1;
  letter-spacing:-2px;
  font-weight:500;
  display:block;
  margin-bottom:16px
}
.report-totals h3 {
  font-size:12px;
  font-weight:500;
  line-height:1.5;
  margin:0 0 8px
}
.report-totals p {
  font-size:10px;
  color:var(--muted-foreground);
  margin:0
}
.impact-heading {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:end;
  margin:45px 0 22px
}
.impact-heading .eyebrow {
  color:var(--primary);
  font-size:9px;
  margin-bottom:10px
}
.impact-heading h2 {
  font:700 30px/1.2 var(--font-display);
  margin:0
}
.impact-heading>p {
  font-size:11px;
  color:var(--muted-foreground);
  max-width:240px;
  margin:0
}
.impact-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:13px
}
.impact-card {
  padding:22px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:8px
}
.impact-card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px
}
.impact-card-top span {
  color:var(--destructive);
  font-size:23px
}
.impact-card-top strong {
  font-size:29px;
  font-weight:500;
  line-height:1
}
.impact-card h3 {
  font-size:12px;
  font-weight:550;
  margin:0 0 6px
}
.impact-card p {
  font-size:10px;
  color:var(--muted-foreground);
  line-height:1.7;
  margin:0
}
.report-context {
  font-size:11px;
  color:var(--muted-foreground);
  margin:20px 0
}
.game-details {
  margin-top:30px;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:20px 0
}
.game-details summary {
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px
}
.game-details summary::-webkit-details-marker {
  display:none
}
.game-details summary>span {
  color:var(--muted-foreground);
  font-size:10px;
  display:flex;
  gap:20px
}
.game-table-scroll {
  overflow-x:auto
}
table {
  border-collapse:collapse;
  font-size:11px;
  width:100%;
  min-width:440px;
  margin-top:20px;
  text-align:left
}
th,td {
  padding:12px 10px;
  border-top:1px solid var(--border);
  font-weight:400
}
thead {
  color:var(--muted-foreground);
  font-size:10px
}
.game-name {
  margin-left:10px;
  color:var(--muted-foreground);
  overflow-wrap:anywhere
}
.report-footnote {
  display:flex;
  gap:12px;
  color:var(--muted-foreground);
  font-size:10px;
  max-width:780px;
  margin-top:25px
}
.report-footnote>span {
  font-size:20px;
  color:var(--primary)
}
.report-footnote p {
  margin:0
}
.notice {
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--secondary);
  color:var(--foreground);
  padding:13px 17px;
  font-size:12px;
  margin-bottom:20px
}
.fallback {
  max-width:600px;
  margin:80px auto;
  padding:24px;
  font-family:var(--font-display);
  color:var(--foreground)
}
@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}
@media(min-width:1440px) {
  .hero {
    padding-top:100px;
    padding-bottom:120px
  }
  .hero-description {
    max-width:460px
  }
  .sample-composition {
    max-width:460px
  }
}
@media(max-width:1050px) {
  .wrap {
    width:calc(100% - 64px)
  }
  .hero {
    gap:35px;
    padding-top:65px;
    padding-bottom:80px
  }
  .input-action {
    flex-wrap:wrap
  }
  .input-action .primary-button {
    width:100%
  }
  .form-bottom {
    flex-wrap:wrap
  }
  .sample-card {
    padding:22px
  }
  .sample-card h2 {
    font-size:27px
  }
  .score-ring {
    width:125px;
    height:125px
  }
  .sample-score {
    gap:20px
  }
  .sample-heading {
    gap:10px
  }
  .sample-badge {
    font-size:7px
  }
  .steps {
    gap:35px
  }
  .report-overview {
    grid-template-columns:1fr
  }
  .report-totals article {
    display:grid;
    grid-template-columns:40px 60px 1fr;
    align-items:center;
    gap:15px
  }
  .total-icon,.report-totals strong {
    margin:0
  }
  .report-totals h3 {
    margin:0
  }
  .report-totals p {
    grid-column:3
  }
  .opportunity-card p:not(.eyebrow) {
    max-width:none
  }
  .report-ring {
    width:145px;
    height:145px
  }
  .impact-grid {
    grid-template-columns:repeat(4,1fr)
  }
}
@media(max-width:760px) {
  .wrap {
    width:calc(100% - 40px)
  }
  .site-header {
    height:84px
  }
  .brand {
    font-size:21px
  }
  .brand-icon {
    width:36px;
    height:36px
  }
  nav {
    gap:15px
  }
  nav a {
    font-size:10px
  }
  .nav-note {
    display:none
  }
  .hero {
    grid-template-columns:1fr;
    padding-top:43px;
    gap:55px;
    padding-bottom:65px
  }
  .hero-copy {
    max-width:540px;
    margin:auto;
    width:100%
  }
  .hero h1 {
    font-size:clamp(42px,9.1vw,63px);
    letter-spacing:-1.5px
  }
  .hero .eyebrow {
    font-size:8px;
    letter-spacing:1.5px;
    margin-bottom:20px
  }
  .hero-description {
    font-size:14px;
    margin-bottom:25px
  }
  .input-action {
    flex-wrap:nowrap
  }
  .input-action .primary-button {
    width:auto
  }
  .form-bottom {
    font-size:10px
  }
  .hero-visual {
    padding:0 10px
  }
  .sample-composition {
    max-width:380px
  }
  .sample-card {
    padding:24px
  }
  .sample-card h2 {
    font-size:30px
  }
  .sample-score {
    gap:30px
  }
  .sample-badge {
    font-size:7px
  }
  .score-ring {
    width:135px;
    height:135px
  }
  .how-section {
    padding:30px 0 45px
  }
  .how-heading h2 {
    font-size:27px
  }
  .steps {
    grid-template-columns:1fr;
    gap:27px
  }
  .steps p {
    max-width:470px
  }
  .step-number {
    margin-bottom:12px
  }
  .site-footer {
    flex-wrap:wrap;
    padding:23px 0;
    gap:14px
  }
  .site-footer>span {
    display:none
  }
  .site-footer>div {
    gap:16px;
    font-size:8px
  }
  .report {
    padding:25px 0 45px
  }
  .report-heading h1 {
    font-size:38px
  }
  .report-heading .eyebrow {
    font-size:8px
  }
  .report-mark {
    display:none
  }
  .report-topline {
    margin-bottom:30px
  }
  .report-date {
    font-size:8px
  }
  .report-topline .text-button {
    font-size:10px
  }
  .opportunity-card {
    padding:24px;
    gap:15px
  }
  .opportunity-card h2 {
    font-size:27px
  }
  .report-ring {
    width:125px;
    height:125px
  }
  .report-ring strong {
    font-size:37px
  }
  .report-totals {
    gap:12px
  }
  .report-totals article {
    display:block;
    padding:20px
  }
  .total-icon {
    margin-bottom:12px
  }
  .report-totals strong {
    font-size:37px;
    margin-bottom:14px
  }
  .report-totals h3 {
    margin-bottom:8px
  }
  .impact-heading {
    display:block;
    margin-top:35px
  }
  .impact-heading h2 {
    font-size:27px
  }
  .impact-heading>p {
    margin-top:10px;
    max-width:none
  }
  .impact-grid {
    grid-template-columns:repeat(2,1fr);
    gap:12px
  }
  .impact-card {
    padding:19px
  }
  .impact-card-top {
    margin-bottom:12px
  }
  .loading-card {
    min-height:380px;
    padding:35px 25px
  }
}
@media(max-width:390px) {
  .wrap {
    width:calc(100% - 32px)
  }
  .input-action {
    flex-wrap:wrap
  }
  .input-action .primary-button {
    width:100%
  }
  .hero h1 {
    font-size:41px
  }
  .sample-heading {
    gap:7px
  }
  .sample-score {
    gap:20px
  }
  .sample-card {
    padding:20px
  }
  .sample-composition {
    padding-left:0;
    padding-right:0
  }
  .sample-card h2 {
    font-size:28px
  }
  .score-ring {
    width:122px;
    height:122px
  }
  .form-bottom {
    gap:12px;
    font-size:9px
  }
  .text-button {
    font-size:10px
  }
  .opportunity-card {
    grid-template-columns:1fr
  }
  .report-ring {
    grid-row:2;
    justify-self:center;
    width:145px;
    height:145px
  }
  .opportunity-card p:not(.eyebrow) {
    margin-bottom:0
  }
  .report-topline {
    flex-wrap:wrap
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    animation-duration:4s!important;
    transition:none!important
  }
}

.mini-brand img, .footer-brand img {
  border-radius:8px;
  border:1px solid var(--border);
  object-fit:cover;
}
