:root {
  color-scheme: dark;
  --hatnado-ink: #211427;
  --hatnado-ink-deep: #160e1d;
  --hatnado-panel: #302039;
  --hatnado-panel-elevated: #3a2943;
  --hatnado-cream: #fff1d9;
  --hatnado-gold: #f1cb8d;
  --hatnado-teal: #9adecb;
  --hatnado-coral: #eda59c;
  --hatnado-muted: #d0bfcc;
  --hatnado-line: rgba(255, 241, 217, .19);
  --hatnado-focus: #a7f3d9;
  --hatnado-shadow: 0 26px 72px rgba(12, 7, 17, .36);
  --hatnado-display: 'Iowan Old Style', 'Baskerville', 'Palatino Linotype', Georgia, serif;
  --hatnado-text: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --hatnado-radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hatnado-page {
  margin: 0;
  min-width: 320px;
  background: var(--hatnado-ink-deep);
  color: var(--hatnado-cream);
  font: 400 16px/1.55 var(--hatnado-text);
  -webkit-font-smoothing: antialiased;
}
.hatnado-page a { color: inherit; }
.hatnado-page button, .hatnado-page a { -webkit-tap-highlight-color: transparent; }
.hatnado-page button { font: inherit; }
.hatnado-page :focus-visible { outline: 3px solid var(--hatnado-focus); outline-offset: 4px; }
.hatnado-page .hn-shell { width: min(1200px, calc(100% - 56px)); margin-inline: auto; }
.hatnado-page .hn-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.hatnado-page .hn-header {
  position: relative;
  z-index: 5;
  background: rgba(32, 20, 39, .93);
  border-bottom: 1px solid rgba(255, 241, 217, .12);
}
.hatnado-page .hn-header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hatnado-page .hn-wordmark {
  display: inline-flex; align-items: center; gap: 13px; text-decoration: none;
  font: 700 25px/1 var(--hatnado-display); letter-spacing: .045em;
}
.hatnado-page .hn-wordmark svg { width: 43px; height: 43px; flex: none; }
.hatnado-page .hn-navigation { display: flex; align-items: center; gap: 36px; }
.hatnado-page .hn-navigation a { text-decoration: none; color: var(--hatnado-muted); font-size: .92rem; }
.hatnado-page .hn-navigation a:hover { color: var(--hatnado-cream); }
.hatnado-page .hn-locale-switch { display: inline-flex; border: 1px solid var(--hatnado-line); padding: 3px; border-radius: 100px; }
.hatnado-page .hn-locale-switch button { color: var(--hatnado-muted); background: transparent; border: 0; border-radius: 100px; padding: 5px 11px; cursor: pointer; font-size: .79rem; letter-spacing: .05em; }
.hatnado-page .hn-locale-switch button[aria-pressed="true"] { color: var(--hatnado-ink); background: var(--hatnado-gold); }

.hatnado-page .hn-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(96, 62, 105, .33), transparent 35%),
    radial-gradient(circle at 5% 85%, rgba(54, 95, 93, .16), transparent 43%),
    linear-gradient(145deg, #26172c 7%, #1a1121 70%, #211427 100%);
}
.hatnado-page .hn-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .11; pointer-events: none;
  background-image: radial-gradient(rgba(255, 240, 207, .9) .65px, transparent .9px);
  background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}
.hatnado-page .hn-hero-grid { min-height: 654px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: center; gap: 26px; padding-block: 64px 80px; }
.hatnado-page .hn-eyebrow { color: var(--hatnado-teal); letter-spacing: .22em; text-transform: uppercase; font-size: .72rem; font-weight: 800; }
.hatnado-page .hn-hero h1 { margin: 21px 0 22px; font: 500 clamp(3.7rem, 6.3vw, 6.1rem)/.97 var(--hatnado-display); letter-spacing: -.055em; max-width: 735px; }
.hatnado-page .hn-hero h1 em { display: block; font-weight: 400; font-style: italic; color: var(--hatnado-gold); }
.hatnado-page .hn-hero-description { max-width: 520px; color: var(--hatnado-muted); line-height: 1.78; font-size: clamp(1.02rem, 1.35vw, 1.12rem); }
.hatnado-page .hn-actions { margin-top: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hatnado-page .hn-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 13px 23px; border: 1px solid transparent; border-radius: 100px; text-decoration: none; font-weight: 740; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.hatnado-page .hn-button:hover { transform: translateY(-2px); }
.hatnado-page .hn-button-primary { background: var(--hatnado-gold); color: var(--hatnado-ink); }
.hatnado-page .hn-button-primary:hover { background: #ffe0a9; }
.hatnado-page .hn-button-outline { border-color: rgba(255, 241, 217, .36); color: var(--hatnado-cream); background: rgba(255, 255, 255, .03); }
.hatnado-page .hn-button-outline:hover { border-color: var(--hatnado-teal); }
.hatnado-page .hn-hero-footnote { color: var(--hatnado-muted); font-size: .82rem; margin-top: 28px; display: flex; gap: 8px; align-items: center; }
.hatnado-page .hn-hero-footnote .hn-spark { color: var(--hatnado-gold); font-size: 1.3rem; }

.hatnado-page .hn-theatre { position: relative; min-height: 490px; display: grid; place-items: center; }
.hatnado-page .hn-theatre::before { content: ''; position: absolute; width: 430px; height: 430px; max-width: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(251, 203, 134, .17) 0%, rgba(105, 75, 127, .08) 40%, transparent 70%); filter: blur(5px); }
.hatnado-page .hn-orbit { position: absolute; width: min(90%, 430px); height: 155px; border: 6px solid rgba(246, 207, 152, .82); border-right-color: rgba(126, 212, 185, .45); border-left-color: rgba(222, 137, 124, .55); border-radius: 50%; transform: rotate(-27deg); box-shadow: 0 0 30px rgba(233, 176, 115, .1); }
.hatnado-page .hn-orbit-second { width: min(94%, 470px); height: 222px; border-width: 2px; transform: rotate(28deg); opacity: .55; }
.hatnado-page .hn-orbit-third { width: min(76%, 360px); height: 95px; border-width: 3px; transform: rotate(15deg) translateY(89px); opacity: .5; }
.hatnado-page .hn-art-icon { position: relative; width: clamp(240px, 30vw, 366px); z-index: 2; filter: drop-shadow(0 28px 24px rgba(0, 0, 0, .38)); transform: rotate(-9deg); }
.hatnado-page .hn-art-icon path, .hatnado-page .hn-art-icon ellipse { stroke-linejoin: round; }
.hatnado-page .hn-float { position: absolute; color: var(--hatnado-gold); font-family: var(--hatnado-display); text-shadow: 0 0 35px rgba(251, 210, 144, .4); }
.hatnado-page .hn-float-one { font-size: 78px; top: 18px; right: 18%; transform: rotate(22deg); }
.hatnado-page .hn-float-two { font-size: 36px; top: 20%; left: 4%; }
.hatnado-page .hn-float-three { font-size: 53px; bottom: 42px; right: 10%; }
.hatnado-page .hn-micro-clock { position: absolute; width: 78px; height: 78px; right: 2%; top: 23%; border: 3px double var(--hatnado-gold); border-radius: 50%; background: #302039; box-shadow: 0 16px 28px rgba(0,0,0,.28); transform: rotate(16deg); }
.hatnado-page .hn-micro-clock::before { content: ''; position: absolute; width: 2px; height: 23px; background: var(--hatnado-cream); top: 12px; left: 35px; transform: rotate(25deg); transform-origin: bottom; }
.hatnado-page .hn-micro-clock::after { content: ''; position: absolute; height: 2px; width: 24px; background: var(--hatnado-cream); top: 33px; left: 34px; transform: rotate(-35deg); transform-origin: left; }
.hatnado-page .hn-theatre-caption { position: absolute; z-index: 3; bottom: -8px; left: 0; font-size: .65rem; color: var(--hatnado-muted); letter-spacing: .17em; text-transform: uppercase; }

.hatnado-page .hn-section { position: relative; padding: 92px 0; }
.hatnado-page .hn-section-dark { background: #1a111f; }
.hatnado-page .hn-section-head { max-width: 680px; margin-bottom: 36px; }
.hatnado-page .hn-section h2 { font: 500 clamp(2.35rem, 4.1vw, 4rem)/1.08 var(--hatnado-display); letter-spacing: -.045em; margin: 12px 0 16px; }
.hatnado-page .hn-section-head p { color: var(--hatnado-muted); margin: 0; }
.hatnado-page .hn-game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hatnado-page .hn-game-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 330px; overflow: hidden; border: 1px solid var(--hatnado-line); border-radius: var(--hatnado-radius); padding: 28px; background: linear-gradient(140deg, #32213a, #23182a); transition: transform .2s ease, border-color .2s ease; }
.hatnado-page .hn-game-card:hover { transform: translateY(-3px); border-color: rgba(241,203,141,.55); }
.hatnado-page .hn-game-card:nth-child(2) { background: linear-gradient(145deg, #243b3b, #1b282f); }
.hatnado-page .hn-game-card:nth-child(3) { background: linear-gradient(140deg, #503037, #2a1d2a); }
.hatnado-page .hn-game-symbol { display: grid; place-items: center; width: 82px; height: 82px; font: 400 70px/1 var(--hatnado-display); color: var(--hatnado-gold); margin: 5px 0 14px; }
.hatnado-page .hn-game-card:nth-child(2) .hn-game-symbol { color: var(--hatnado-teal); }
.hatnado-page .hn-game-card:nth-child(3) .hn-game-symbol { color: var(--hatnado-coral); }
.hatnado-page .hn-game-card h3 { font: 500 2rem/1.05 var(--hatnado-display); margin: auto 0 0; }
.hatnado-page .hn-game-card p { margin: 0; color: var(--hatnado-muted); font-size: .92rem; }
.hatnado-page .hn-game-card .hn-card-foot { color: var(--hatnado-cream); font-size: .84rem; margin-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.hatnado-page .hn-divider { width: 50px; height: 1px; background: var(--hatnado-gold); margin: 24px 0; }
.hatnado-page .hn-how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.hatnado-page .hn-space-card { border: 1px solid rgba(241,203,141,.35); background: linear-gradient(145deg, #34233a, #271a2e); box-shadow: var(--hatnado-shadow); border-radius: 30px; padding: 38px; transform: rotate(1.5deg); }
.hatnado-page .hn-space-card-eyebrow { color: var(--hatnado-teal); text-transform: uppercase; font-size: .74rem; letter-spacing: .15em; font-weight: 750; }
.hatnado-page .hn-space-card h3 { font: 500 2.65rem/1.1 var(--hatnado-display); margin: 14px 0 18px; }
.hatnado-page .hn-avatars { display: flex; margin: 24px 0; padding-left: 8px; }
.hatnado-page .hn-avatar { display: grid; place-items: center; margin-left: -8px; width: 45px; height: 45px; border: 3px solid #302039; border-radius: 50%; background: #b88080; color: var(--hatnado-ink); font-weight: 800; }
.hatnado-page .hn-avatar:nth-child(2) { background: #9adecb; }
.hatnado-page .hn-avatar:nth-child(3) { background: #f1cb8d; }
.hatnado-page .hn-avatar:nth-child(4) { background: #c7afec; }
.hatnado-page .hn-space-card-note { font-size: .91rem; color: var(--hatnado-muted); margin: 0; }
.hatnado-page .hn-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 24px; }
.hatnado-page .hn-steps li { display: flex; align-items: flex-start; gap: 16px; }
.hatnado-page .hn-step-number { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 1px solid rgba(241, 203, 141, .55); border-radius: 50%; color: var(--hatnado-gold); font: 600 1rem var(--hatnado-display); }
.hatnado-page .hn-step-text strong { display: block; font-size: 1rem; }
.hatnado-page .hn-step-text small { display: block; color: var(--hatnado-muted); font-size: .9rem; margin-top: 4px; }
.hatnado-page .hn-footer { border-top: 1px solid var(--hatnado-line); background: #130c19; padding: 27px 0; color: var(--hatnado-muted); }
.hatnado-page .hn-footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.hatnado-page .hn-footer strong { color: var(--hatnado-cream); font-family: var(--hatnado-display); letter-spacing: .05em; }
.hatnado-page .hn-footer span { font-size: .81rem; }
@media (max-width: 880px) {
  .hatnado-page .hn-hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 70px 0 62px; }
  .hatnado-page .hn-theatre { min-height: 370px; }
  .hatnado-page .hn-art-icon { width: 265px; }
  .hatnado-page .hn-how-grid { gap: 30px; }
  .hatnado-page .hn-game-card { padding: 23px; }
}
@media (max-width: 680px) {
  .hatnado-page .hn-shell { width: min(100% - 34px, 520px); }
  .hatnado-page .hn-header-inner { min-height: 70px; }
  .hatnado-page .hn-navigation a { display: none; }
  .hatnado-page .hn-wordmark { font-size: 22px; gap: 8px; }
  .hatnado-page .hn-wordmark svg { width: 35px; height: 35px; }
  .hatnado-page .hn-hero-grid { padding: 58px 0 64px; }
  .hatnado-page .hn-hero h1 { font-size: clamp(3.35rem, 12vw, 5.2rem); }
  .hatnado-page .hn-theatre { min-height: 315px; }
  .hatnado-page .hn-art-icon { width: 220px; }
  .hatnado-page .hn-orbit { width: 290px; height: 110px; }
  .hatnado-page .hn-orbit-second { width: 320px; height: 155px; }
  .hatnado-page .hn-orbit-third { width: 245px; height: 75px; }
  .hatnado-page .hn-float-one { right: 7%; font-size: 58px; }
  .hatnado-page .hn-micro-clock { right: 0; top: 24%; width: 60px; height: 60px; }
  .hatnado-page .hn-micro-clock::before { left: 27px; top: 7px; height: 21px; }
  .hatnado-page .hn-micro-clock::after { left: 27px; top: 27px; width: 19px; }
  .hatnado-page .hn-section { padding: 72px 0; }
  .hatnado-page .hn-game-grid, .hatnado-page .hn-how-grid { grid-template-columns: 1fr; }
  .hatnado-page .hn-game-card { min-height: 280px; }
  .hatnado-page .hn-space-card { padding: 29px; transform: none; }
  .hatnado-page .hn-footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hatnado-page *, .hatnado-page *::before, .hatnado-page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
