.record-page { min-height: 100vh; }
.record-hero { position: relative; overflow: hidden; padding: 52px 0 48px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #ffffff, var(--bg)); }
.record-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(15,23,42,.032) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.032) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent); }
.record-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .13; pointer-events: none; animation: glowFloat 8s ease-in-out infinite alternate; }
.record-orb-one { width: 420px; height: 420px; top: -280px; left: -120px; background: var(--primary); }
.record-orb-two { width: 310px; height: 310px; right: -120px; bottom: -210px; background: #ff4967; animation-delay: -3s; }
.record-hero-inner { position: relative; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; color: #667085; font-size: 12px; font-weight: 700; transition: .2s ease; }
.back-link:hover { color: var(--primary-light); transform: translateX(-3px); }
.record-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.record-title-row > div { min-width: 0; }
.record-title-row h1 { max-width: 820px; margin: 10px 0 12px; font: 800 clamp(38px, 5vw, 62px)/1.04 'Outfit', sans-serif; letter-spacing: -.035em; text-transform: uppercase; animation: heroRise .7s .1s cubic-bezier(.22,1,.36,1) both; }
.record-title-row p { margin: 0; color: var(--muted); font-size: 15px; animation: heroRise .7s .2s cubic-bezier(.22,1,.36,1) both; }
.print-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: #475467; font: 700 12px 'Inter', sans-serif; cursor: pointer; transition: .2s ease; box-shadow: 0 8px 24px rgba(30,41,59,.07); }
.print-button:hover { border-color: rgba(255,176,0,.28); color: var(--primary-light); transform: translateY(-2px); }

.record-stats { display: grid; grid-template-columns: .8fr .8fr 1.2fr; gap: 12px; margin-top: 36px; }
.stat-card { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); box-shadow: 0 10px 28px rgba(30,41,59,.07); }
.stat-card > span { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: var(--primary); background: rgba(255,176,0,.1); }
.stat-card > div { min-width: 0; display: grid; gap: 3px; }
.stat-card small { color: #7a8495; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stat-card strong { font: 800 20px/1 'Outfit', sans-serif; }
.stat-highlight { position: relative; border-color: rgba(245,164,0,.22); background: linear-gradient(135deg, #fff8e7, #ffffff); }
.stat-highlight strong { color: var(--primary-light); font-size: 27px; }
.stat-highlight time { margin-left: auto; color: #9aa4b4; font-size: 10px; font-weight: 600; white-space: nowrap; }

.archive-section { padding: 54px 0 80px; }
.game-navigation { margin-bottom: 38px; }
.game-navigation-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.game-navigation-heading h2 { margin: 6px 0 5px; font: 800 clamp(25px, 3vw, 34px)/1.1 'Outfit', sans-serif; }
.game-navigation-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.game-navigation-count { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; color: #667085; background: #fff; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.game-navigation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.game-nav-card { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 9px 26px rgba(30,41,59,.06); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.game-nav-card:hover { transform: translateY(-3px); border-color: rgba(245,164,0,.38); box-shadow: 0 14px 32px rgba(30,41,59,.11); }
.game-nav-card.current { border-color: rgba(245,164,0,.48); background: linear-gradient(140deg, #fff8e6, #fff); box-shadow: 0 12px 30px rgba(245,164,0,.11); }
.game-nav-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: var(--primary-light); background: #fff4d7; }
.game-nav-card.current .game-nav-icon { color: #171107; background: var(--primary); }
.game-nav-copy { min-width: 0; display: grid; gap: 3px; }
.game-nav-copy small { color: #8a94a5; font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.game-nav-copy strong { overflow: hidden; color: #273142; font: 800 13px/1.2 'Outfit', sans-serif; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.game-nav-copy time { color: #7a8495; font-size: 9px; font-weight: 600; }
.game-nav-copy time i { margin-right: 3px; color: var(--primary-light); }
.game-nav-arrow { color: #a0a8b5; font-size: 10px; }
.game-nav-card.current .game-nav-arrow { color: #0a8a40; font-size: 14px; }
.archive-controls { display: grid; grid-template-columns: .8fr 1.2fr; gap: 14px; }
.filter-group { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.filter-heading > span { color: #344054; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.filter-heading i { margin-right: 5px; color: var(--primary); }
.filter-heading small { color: #677285; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.year-filter, .month-filter { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 5px; scrollbar-width: thin; scrollbar-color: #c5cad3 transparent; }
.year-button, .month-button { flex: 0 0 auto; border: 1px solid var(--line); background: #f8f9fb; color: #667085; cursor: pointer; font-family: 'Inter', sans-serif; transition: .2s ease; }
.year-button { min-height: 42px; padding: 0 15px; border-radius: 11px; font-size: 12px; font-weight: 800; }
.year-button i { margin-right: 6px; }
.year-button:hover, .month-button:hover { color: #202632; border-color: rgba(245,164,0,.38); background: #fffaf0; }
.year-button.active { color: #171107; border-color: var(--primary); background: var(--primary); box-shadow: 0 8px 22px rgba(255,176,0,.15); }
.month-button { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 11px; font-size: 11px; font-weight: 700; }
.month-button small { min-width: 22px; height: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 6px; color: #727d8e; background: #e9edf3; font-size: 8px; }
.month-button.active { color: var(--primary-light); border-color: rgba(255,176,0,.34); background: rgba(255,176,0,.1); }
.month-button.active small { color: #171107; background: var(--primary); }
.month-empty-label { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px dashed #d6dae1; border-radius: 11px; color: #7a8495; background: #f8f9fb; font-size: 10px; font-weight: 700; }
.month-empty-label i { color: var(--primary-light); }

.archive-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 48px 0 22px; }
.archive-summary h2 { margin: 7px 0 0; font: 800 clamp(26px, 3vw, 36px)/1.1 'Outfit', sans-serif; }
.mobile-scroll-note { display: none; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.mobile-scroll-note i { margin-right: 5px; color: var(--primary); }
.year-archive { display: grid; gap: 18px; }
.year-archive[hidden], .month-card[hidden] { display: none !important; }
.year-empty-state { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; border: 1px dashed #d4d9e2; border-radius: 20px; background: linear-gradient(145deg, #fff, #f8f9fc); text-align: center; }
.year-empty-state > span { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; color: var(--primary-light); background: #fff4d7; font-size: 23px; }
.year-empty-state h3 { margin: 18px 0 6px; color: #273142; font: 800 23px/1.2 'Outfit', sans-serif; }
.year-empty-state p { margin: 0; color: var(--muted); font-size: 12px; }
.month-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 16px 42px rgba(30,41,59,.09); }
.month-card-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,176,0,.075), transparent 45%); }
.month-identity { display: flex; align-items: center; gap: 12px; }
.month-icon { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 11px; color: var(--primary); background: rgba(255,176,0,.1); }
.month-identity div { display: grid; gap: 3px; }
.month-identity small { color: #737f91; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.month-identity h3 { margin: 0; font: 800 20px/1.1 'Outfit', sans-serif; }
.result-count { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: #667085; background: #f5f7fa; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.archive-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.archive-table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; }
.archive-table th:nth-child(1), .archive-table td:nth-child(1) { width: 46%; }
.archive-table th:nth-child(2), .archive-table td:nth-child(2) { width: 27%; }
.archive-table th:nth-child(3), .archive-table td:nth-child(3) { width: 27%; }
.archive-table th, .archive-table td { padding: 13px 22px; border-bottom: 1px solid var(--line); }
.archive-table thead th { color: #667085; background: #f2f4f7; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.archive-table thead th:last-child, .archive-table tbody td:last-child { text-align: right; }
.archive-table tbody tr { transition: background .2s ease; }
.archive-table tbody tr:hover { background: rgba(255,176,0,.035); }
.archive-table tbody tr:last-child td { border-bottom: 0; }
.archive-table time { display: flex; align-items: center; gap: 10px; }
.date-day { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--primary-light); background: #fff5dc; font: 800 15px 'Outfit', sans-serif; }
.archive-table time > span:last-child { display: grid; gap: 1px; }
.archive-table time strong { color: #344054; font-size: 11px; text-transform: uppercase; }
.archive-table time small { color: #667184; font-size: 9px; }
.weekday { color: #667085; font-size: 11px; font-weight: 600; }
.record-number { min-width: 54px; display: inline-grid; place-items: center; padding: 9px 13px; border: 1px solid rgba(255,176,0,.22); border-radius: 10px; color: #171107; background: linear-gradient(145deg, var(--primary-light), var(--primary)); box-shadow: 0 7px 20px rgba(255,176,0,.11); font: 800 17px/1 'Outfit', sans-serif; }

.empty-archive { min-height: 410px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); text-align: center; }
.empty-archive > span { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 20px; color: var(--primary); background: rgba(255,176,0,.1); font-size: 27px; }
.empty-archive h2 { margin: 20px 0 7px; font: 800 28px 'Outfit', sans-serif; }
.empty-archive p { margin: 0 0 23px; color: var(--muted); font-size: 13px; }
.record-mobile-nav { display: none; }

.animations-ready .record-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.22,1,.36,1) var(--record-delay, 0ms), transform .6s cubic-bezier(.22,1,.36,1) var(--record-delay, 0ms); }
.animations-ready .record-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .record-hero { padding: 40px 0; }
  .record-title-row { align-items: flex-start; }
  .record-title-row h1 { font-size: 40px; }
  .print-button { width: 44px; min-width: 44px; padding: 0; }
  .print-button span { display: none; }
  .record-stats { grid-template-columns: 1fr 1fr; }
  .stat-highlight { grid-column: 1 / -1; }
  .archive-controls { grid-template-columns: 1fr; }
  .game-navigation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-scroll-note { display: inline-block; }
}

@media (max-width: 580px) {
  .record-page { padding-bottom: 74px; }
  .record-hero { padding: 27px 0 32px; }
  .back-link { margin-bottom: 24px; }
  .record-title-row h1 { font-size: clamp(32px, 10vw, 42px); }
  .record-title-row p { max-width: 290px; font-size: 12px; line-height: 1.55; }
  .record-stats { gap: 8px; margin-top: 27px; }
  .stat-card { padding: 13px; border-radius: 13px; }
  .stat-card > span { width: 34px; height: 34px; }
  .stat-card strong { font-size: 18px; }
  .stat-highlight strong { font-size: 23px; }
  .archive-section { padding: 30px 0 50px; }
  .game-navigation { margin-bottom: 30px; }
  .game-navigation-heading { align-items: flex-start; }
  .game-navigation-heading h2 { font-size: 24px; }
  .game-navigation-heading p { max-width: 260px; line-height: 1.5; }
  .game-navigation-count { display: none; }
  .game-navigation-grid { display: flex; gap: 9px; overflow-x: auto; padding: 2px 1px 9px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #c5cad3 transparent; }
  .game-nav-card { min-width: 205px; scroll-snap-align: start; }
  .filter-group { padding: 14px; border-radius: 15px; }
  .filter-heading small { display: none; }
  .archive-summary { align-items: flex-start; margin: 34px 0 16px; }
  .archive-summary h2 { font-size: 24px; }
  .month-card { border-radius: 16px; }
  .month-card-header { padding: 15px; }
  .month-icon { width: 36px; height: 36px; }
  .month-identity h3 { font-size: 17px; }
  .archive-table th, .archive-table td { padding: 11px 10px; }
  .archive-table thead th { font-size: 8px; letter-spacing: .06em; }
  .archive-table tbody td:last-child { padding-right: 9px; }
  .record-number { min-width: 43px; padding: 8px 7px; font-size: 15px; }
  .weekday { font-size: 10px; }
  .record-mobile-nav { position: fixed; z-index: 100; left: 9px; right: 9px; bottom: 8px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px; border: 1px solid rgba(15,23,42,.10); border-radius: 17px; background: rgba(255,255,255,.96); box-shadow: 0 15px 45px rgba(30,41,59,.18); backdrop-filter: blur(16px); }
  .record-mobile-nav a, .record-mobile-nav button { display: grid; justify-items: center; gap: 4px; padding: 5px 2px; border: 0; background: transparent; color: #667085; font: 600 9px 'Inter', sans-serif; }
  .record-mobile-nav i { font-size: 16px; }
}

@media (max-width: 340px) {
  .record-title-row { gap: 10px; }
  .record-title-row h1 { font-size: 30px; }
  .record-stats { grid-template-columns: 1fr; }
  .stat-highlight { grid-column: auto; }
  .stat-highlight time { font-size: 8px; }
  .record-mobile-nav { left: 5px; right: 5px; }
  .record-mobile-nav a, .record-mobile-nav button { font-size: 8px; }
  .archive-table th, .archive-table td { padding-inline: 7px; }
  .archive-table time { gap: 6px; }
  .date-day { width: 30px; height: 30px; font-size: 13px; }
  .weekday { font-size: 9px; }
  .record-number { min-width: 38px; padding: 7px 5px; font-size: 13px; }
}

@media print {
  .site-header, .record-orb, .back-link, .print-button, .game-navigation, .archive-controls, .record-mobile-nav, .site-footer { display: none !important; }
  body, .record-hero, .archive-section { color: #000; background: #fff; }
  .record-hero { padding: 15px 0; border: 0; }
  .record-title-row h1 { color: #000; font-size: 28px; }
  .record-title-row p, .record-stats { display: none; }
  .archive-section { padding: 0; }
  .archive-summary { margin: 15px 0; }
  .archive-summary h2 { color: #000; }
  .year-archive[hidden], .month-card[hidden] { display: block !important; }
  .month-card { break-inside: avoid; margin-bottom: 16px; border: 1px solid #ccc; box-shadow: none; }
  .year-empty-state { min-height: 160px; break-inside: avoid; }
  .month-card-header, .archive-table thead th { color: #000; background: #f2f2f2; }
  .archive-table th, .archive-table td { color: #000; border-color: #ddd; }
}

@media (prefers-reduced-motion: reduce) {
  .animations-ready .record-reveal { opacity: 1 !important; transform: none !important; }
}
