@import "tailwindcss";

:root {
  --abyss: #012624;
  --deep: #011d1c;
  --deepest: #001514;
  --kelp: #003734;
  --kelp-soft: #06413d;
  --mist: #edfffe;
  --silver: #bbc7c6;
  --aqua: #59f2db;
  --pink: #ff9db1;
  --ink: #03100f;
  --line: rgba(203, 255, 252, 0.2);
  --content: 1440px;
  --scroll-progress: 0;
  --cave-shift: 0px;
  --glow-shift: 0px;
  --copy-shift: 0px;
  --profile-shift: 0px;
}

* { box-sizing: border-box; }
html { background: var(--deepest); scroll-behavior: smooth; }
body {
  background: var(--deepest);
  color: var(--mist);
  font-family: var(--font-geist-sans), "Yu Gothic UI", "Hiragino Sans", system-ui, sans-serif;
  font-weight: 400;
  margin: 0;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--pink); color: var(--ink); }

.game-page,
.privacy-page {
  background: var(--abyss);
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
}

.game-page::before,
.privacy-page::before {
  background: var(--deepest);
  clip-path: polygon(0 0, 100% 0, 100% 31%, 95% 22%, 91% 37%, 85% 19%, 79% 32%, 72% 14%, 65% 29%, 56% 11%, 48% 27%, 40% 13%, 33% 33%, 25% 18%, 18% 36%, 12% 21%, 6% 32%, 0 24%);
  content: "";
  height: 210px;
  inset: 0 0 auto;
  opacity: 0.72;
  pointer-events: none;
  position: fixed;
  transform: translateY(var(--cave-shift));
  z-index: 0;
}

.game-page::after,
.privacy-page::after {
  background: var(--aqua);
  content: "";
  height: 76px;
  opacity: 0.5;
  pointer-events: none;
  position: fixed;
  right: 5vw;
  top: -70px;
  transform: translateY(var(--glow-shift));
  width: 1px;
  z-index: 0;
}

.game-hero,
.game-section,
.game-footer,
.privacy-content { position: relative; z-index: 1; }

.game-hero { min-height: calc(100svh - 36px); padding: 22px 32px 70px; }
.game-nav,
.game-shell,
.section-inner,
.game-footer > div,
.privacy-content { margin-inline: auto; max-width: var(--content); }

.game-nav {
  align-items: center;
  animation: nav-enter 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
}
.game-brand { color: #fff; font-size: 18px; font-weight: 500; }
.game-brand::before {
  background: var(--aqua);
  content: "";
  display: inline-block;
  height: 8px;
  margin-right: 12px;
  transform: rotate(45deg);
  width: 8px;
}
.game-nav-links { align-items: center; color: var(--silver); display: flex; font-size: 13px; gap: 26px; }
.game-nav-links a,
.game-footer a { transition: color 180ms ease; }
.game-nav-links a:hover,
.game-footer a:hover { color: #fff; }

.game-shell {
  align-items: center;
  display: grid;
  gap: 4vw;
  grid-template-columns: minmax(0, 1.05fr) minmax(480px, 0.95fr);
  min-height: calc(100svh - 150px);
  padding: 46px 0 20px;
}
.game-copy {
  animation: copy-enter 820ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
  max-width: 760px;
  translate: 0 var(--copy-shift);
}
.game-kicker,
.section-label { color: var(--aqua); font-size: 13px; font-weight: 500; letter-spacing: 0; margin: 0; }
.game-kicker { align-items: center; display: flex; gap: 12px; margin-bottom: 24px; }
.game-kicker::before { background: var(--pink); content: ""; height: 2px; width: 38px; }

h1, h2, h3, p { margin-top: 0; }
h1 {
  color: #fff;
  font-size: 82px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 30px;
}
h1 span { color: #fff; display: block; }
h2 {
  color: #fff;
  font-size: 54px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 0;
}
h3 { color: #fff; font-size: 23px; font-weight: 500; line-height: 1.35; margin-bottom: 10px; }
.game-lead,
.section-copy,
.section-head > p,
.quest p,
.game-card p,
.privacy-card p { color: var(--silver); font-size: 16px; line-height: 1.75; }
.game-lead { max-width: 650px; }

.process-route { display: flex; list-style: none; margin: 32px 0 0; max-width: 500px; padding: 0; }
.process-route li {
  align-items: center;
  color: var(--mist);
  display: flex;
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  gap: 10px;
  position: relative;
}
.process-route li::before { background: var(--abyss); border: 1px solid var(--aqua); content: ""; height: 10px; width: 10px; }
.process-route li:not(:last-child)::after { background: var(--line); content: ""; height: 1px; position: absolute; right: 12px; top: 50%; width: 36%; }
.game-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.game-button {
  align-items: center;
  border: 1px solid rgba(203, 255, 252, 0.55);
  border-radius: 6px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.game-button:hover { transform: translateY(-2px); }
.game-button.primary { background: var(--mist); border-color: var(--mist); color: var(--ink); }
.game-button.primary:hover { background: var(--aqua); border-color: var(--aqua); }
.game-button.secondary { background: transparent; color: var(--mist); }
.game-button.secondary:hover { border-color: #fff; color: #fff; }
.email-link {
  font-family: Consolas, "Cascadia Mono", "SFMono-Regular", monospace;
  font-variant-numeric: slashed-zero;
  letter-spacing: 0.03em;
  text-transform: none;
}

.portal-stage {
  align-items: center;
  animation: portal-enter 950ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
  display: flex;
  justify-content: center;
  min-height: 660px;
  position: relative;
  translate: 0 var(--profile-shift);
}
.portal-canvas { height: 100%; inset: 0; pointer-events: none; position: absolute; width: 100%; z-index: 0; }
.portal-ring {
  border: 1px solid rgba(89, 242, 219, 0.32);
  border-radius: 50%;
  height: 69%;
  position: absolute;
  transform: rotate(-12deg);
  width: 88%;
  z-index: 1;
}
.portal-ring::after {
  border: 1px solid rgba(255, 157, 177, 0.34);
  border-radius: 50%;
  content: "";
  inset: 8% -3%;
  position: absolute;
  transform: rotate(22deg);
}
.status-window {
  background: rgba(0, 55, 52, 0.91);
  border-radius: 8px;
  max-width: 340px;
  padding: 14px;
  position: relative;
  width: 62%;
  z-index: 2;
}
.window-bar { align-items: center; color: var(--silver); display: flex; font-size: 11px; justify-content: space-between; min-height: 26px; }
.window-bar span:first-child { color: var(--aqua); }
.avatar-tile { aspect-ratio: 1; background: var(--deep); border-radius: 6px; margin: 8px 0 18px; overflow: hidden; }
.avatar-image { display: block; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1); width: 100%; }
.portal-stage:hover .avatar-image { transform: scale(1.02); }
.status-copy { padding-inline: 4px; }
.status-copy h2 { font-size: 32px; }
.status-copy p { color: var(--silver); font-size: 14px; line-height: 1.65; margin: 8px 0 18px; }
.stat-grid { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { min-width: 0; padding: 13px 6px 2px 4px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 10px; }
.stat span, .stat strong { display: block; }
.stat span { color: var(--silver); font-size: 10px; margin-bottom: 4px; }
.stat strong { color: var(--mist); font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
.depth-readout { bottom: 12%; color: var(--silver); font-size: 11px; left: 4%; margin: 0; position: absolute; z-index: 2; }
.depth-readout span { color: var(--pink); font-family: var(--font-geist-mono), Consolas, monospace; font-size: 26px; margin-left: 7px; }

.game-section { padding: 118px 32px; }
#about { background: var(--deep); }
#career { background: var(--abyss); }
#notes { background: var(--deep); }
.section-inner { position: relative; }
.section-head { align-items: end; display: grid; gap: 64px; grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr); padding-bottom: 46px; }
.section-head > p { border-left: 1px solid var(--line); margin: 0; max-width: 660px; padding-left: 30px; }
.section-label { margin-bottom: 18px; }
.about-center { margin-inline: auto; max-width: 900px; text-align: center; }
.about-center .section-label { margin-inline: auto; max-width: 720px; text-align: left; }
.about-center h2 { font-size: 58px; }
.about-center .section-copy { margin: 30px auto 0; max-width: 720px; }

.quest-list { --quest-progress: 0%; display: grid; margin-top: 22px; padding-left: 28px; position: relative; }
.quest-list::before,
.quest-list::after { content: ""; left: 51px; position: absolute; top: 35px; width: 1px; }
.quest-list::before { background: var(--line); bottom: 35px; }
.quest-list::after { background: var(--aqua); height: var(--quest-progress); max-height: calc(100% - 70px); }
.quest { align-items: start; border-bottom: 1px solid rgba(203, 255, 252, 0.12); display: grid; gap: 28px; grid-template-columns: 48px 130px minmax(0, 1fr); padding: 36px 0; position: relative; }
.quest-marker {
  align-items: center;
  background: var(--deep);
  border: 1px solid var(--aqua);
  border-radius: 6px;
  color: var(--aqua);
  display: flex;
  font-family: var(--font-geist-mono), Consolas, monospace;
  font-size: 11px;
  height: 48px;
  justify-content: center;
  position: relative;
  width: 48px;
  z-index: 1;
}
.quest-year { color: var(--pink); font-family: var(--font-geist-mono), Consolas, monospace; font-size: 15px; padding-top: 14px; }
.quest h3 { margin-top: 7px; }
.quest p { margin-bottom: 0; }

.note-grid { display: grid; gap: 20px; grid-template-columns: repeat(12, 1fr); margin-top: 30px; }
.game-card {
  background: var(--kelp);
  border-radius: 8px;
  min-height: 260px;
  padding: 34px;
  transition: background-color 180ms ease, transform 180ms ease;
}
.game-card:nth-child(1) { grid-column: span 7; }
.game-card:nth-child(2) { background: var(--kelp-soft); grid-column: span 5; }
.game-card:nth-child(3) { grid-column: span 5; margin-top: 34px; }
.game-card:nth-child(4) { grid-column: span 7; }
.game-card:hover { background: var(--kelp-soft); transform: translateY(-3px); }
.game-card > span { color: var(--aqua); display: block; font-family: var(--font-geist-mono), Consolas, monospace; font-size: 11px; margin-bottom: 58px; }
.game-card > span::before { background: var(--pink); content: ""; display: inline-block; height: 6px; margin-right: 9px; transform: rotate(45deg); width: 6px; }
.game-card p { margin-bottom: 0; max-width: 580px; }

.contact-section { background: var(--deepest); padding-bottom: 64px; padding-top: 64px; }
.contact-panel {
  align-items: center;
  background: linear-gradient(100deg, #00827c 0%, #cbfffc 54%, #fad1ff 100%);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 36px;
  justify-content: space-between;
  padding: 46px 52px;
}
.contact-panel .section-label,
.contact-panel h2 { color: var(--ink); }
.contact-panel .game-button.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.contact-panel .game-button.primary:hover { background: var(--kelp); }
.game-footer { background: var(--deepest); padding: 0 32px 36px; }
.game-footer > div { align-items: center; border-top: 1px solid var(--line); color: var(--silver); display: flex; font-size: 13px; justify-content: space-between; padding-top: 25px; }
.game-footer p { margin-bottom: 0; }
.game-footer div div { display: flex; gap: 24px; }

.privacy-page { background: var(--deep); padding: 22px 32px 84px; }
.privacy-header { max-width: 920px; padding: 92px 0 58px; }
.privacy-header h1 { font-size: 64px; }
.privacy-stack { border-top: 1px solid var(--line); display: grid; }
.privacy-card { border-bottom: 1px solid var(--line); display: grid; gap: 32px; grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr); padding: 40px 0; }
.privacy-card h2 { font-size: 26px; }
.privacy-card p { grid-column: 2; margin-bottom: 0; }
.privacy-card .game-button { grid-column: 2; justify-self: start; }
a:focus-visible { outline: 3px solid var(--pink); outline-offset: 5px; }

@keyframes nav-enter { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes copy-enter { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: translateX(0); } }
@keyframes portal-enter { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 1160px) {
  h1 { font-size: 66px; }
  .game-shell { gap: 34px; grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr); }
  .portal-stage { min-height: 590px; }
  .about-center h2, h2 { font-size: 46px; }
}

@media (max-width: 900px) {
  .game-hero, .game-section, .game-footer, .privacy-page { padding-left: 22px; padding-right: 22px; }
  .game-shell { grid-template-columns: 1fr; padding-top: 72px; }
  .portal-stage { margin-inline: auto; max-width: 620px; min-height: 650px; width: 100%; }
  .section-head { align-items: start; grid-template-columns: 1fr; }
  .section-head > p { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .game-card:nth-child(n) { grid-column: span 12; margin-top: 0; }
  .contact-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .game-nav-links { display: none; }
  .game-hero { min-height: auto; padding-top: 12px; }
  .game-nav { min-height: 58px; }
  .game-shell { min-height: auto; padding-bottom: 54px; padding-top: 56px; }
  h1 { font-size: 48px; }
  .about-center h2, h2 { font-size: 36px; }
  .game-section { padding-bottom: 82px; padding-top: 82px; }
  .process-route li:not(:last-child)::after { display: none; }
  .portal-stage { min-height: 560px; }
  .portal-ring { height: 62%; width: 96%; }
  .status-window { max-width: 310px; width: 68%; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 4px; }
  .depth-readout { bottom: 5%; }
  .quest-list { padding-left: 0; }
  .quest-list::before, .quest-list::after { left: 23px; }
  .quest { gap: 16px; grid-template-columns: 48px minmax(0, 1fr); }
  .quest-year { grid-column: 2; padding-top: 4px; }
  .quest > div:last-child { grid-column: 2; }
  .game-card { min-height: 230px; padding: 26px; }
  .contact-panel { padding: 34px 24px; }
  .contact-panel .email-link { font-size: 12px; max-width: 100%; padding-inline: 14px; }
  .game-footer > div { align-items: flex-start; flex-direction: column; gap: 14px; }
  .privacy-header h1 { font-size: 42px; overflow-wrap: anywhere; }
  .privacy-card { gap: 18px; grid-template-columns: 1fr; }
  .privacy-card p, .privacy-card .game-button { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .game-page::before, .game-page::after, .privacy-page::before, .privacy-page::after,
  .game-copy, .portal-stage, .section-inner { transform: none !important; translate: none !important; }
  .quest-list { --quest-progress: 100% !important; }
}
