:root {
  color-scheme: light;
  --ink: #163d3b;
  --muted: #4b7270;
  --seafoam: #dff5e8;
  --paper: #fffdf5;
  --mint: #b8e7d2;
  --teal: #0d776e;
  --coral: #ff8b75;
  --line: #9ccdc2;
  --shadow: #1d5852;
  --font: "Trebuchet MS", "Avenir Next", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font: 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--seafoam);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 4% 7%, #f5fff3 0, transparent 29%),
              radial-gradient(circle at 98% 71%, #b4e7dc 0, transparent 29%),
              var(--seafoam);
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.skip { position: absolute; top: -4rem; left: 1rem; z-index: 20; padding: .6rem 1rem; background: var(--paper); }
.skip:focus { top: .5rem; }
.site-header { border-bottom: 2px solid var(--ink); background: #f5fff3d9; }
.nav-wrap, .page-shell, .site-footer { width: min(1150px, calc(100% - 2.5rem)); margin-inline: auto; }
.nav-wrap, .nav-links { display: flex; align-items: center; }
.nav-wrap { min-height: 76px; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .15rem; font-size: 1.55rem; font-weight: 900; letter-spacing: -.085em; text-decoration: none; white-space: nowrap; }
.brand-bubble { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; margin-right: .4rem; border: 2px solid var(--ink); border-radius: 50%; background: #b9eee0; font-size: 1.7rem; line-height: 1; }
.brand-dot { color: var(--coral); }
.nav-links { gap: .5rem; flex-wrap: wrap; justify-content: flex-end; font-weight: 700; font-size: .9rem; }
.nav-links > a, .nav-button { display: inline-block; padding: .55rem .78rem; border: 2px solid transparent; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.nav-links > a:hover, .nav-button:hover { border-color: var(--ink); background: var(--mint); color: var(--ink); }
.nav-button { background: transparent; color: var(--ink); font-weight: 700; }
.nav-links form { margin: 0; }
.page-shell { flex: 1; padding-block: clamp(2.5rem, 6vw, 5rem); }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.4rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 700; }
.eyebrow { margin: 0 0 .8rem; color: var(--teal); font-size: .74rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { margin-inline: .3rem; color: var(--coral); }
h1, h2 { margin: 0; line-height: 1.08; letter-spacing: -.055em; }
h1 { font-size: clamp(3.4rem, 7.1vw, 6.9rem); font-weight: 900; }
h1 em { color: var(--teal); font-style: normal; }
h2 { font-size: clamp(2rem, 3vw, 3rem); font-weight: 850; }
p { margin: .7rem 0 1rem; }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); align-items: center; gap: clamp(2rem, 6vw, 6.5rem); }
.welcome h1 { margin-top: .8rem; }
.welcome-copy { max-width: 37ch; margin-block: 1.4rem 2rem; font-size: 1.1rem; }
.tank-scene {
  position: relative;
  width: min(100%, 570px);
  aspect-ratio: 1.72;
  overflow: hidden;
  border: 9px solid var(--ink);
  border-radius: 33px 33px 48px 48px;
  background: linear-gradient(180deg, #9cdef0 0 22%, #4fbac1 22% 68%, #1c8e98 100%);
  box-shadow: 8px 10px 0 var(--shadow), inset 0 0 0 3px #baf8ef;
}
.tank-waterline { position: absolute; z-index: 3; top: 21%; left: 0; right: 0; height: 4px; background: #d1faf5a8; box-shadow: 0 7px 0 #e5fffa5c; }
.tank-bubble { position: absolute; z-index: 2; display: block; border: 3px solid #d7fff7b8; border-radius: 50%; }
.bubble-one { width: 24px; height: 24px; left: 20%; top: 38%; }
.bubble-two { width: 14px; height: 14px; left: 25%; top: 27%; }
.bubble-three { width: 19px; height: 19px; right: 20%; top: 48%; }
.tank-fish { position: absolute; z-index: 4; display: block; width: 21%; height: 17%; border-radius: 55% 45% 45% 55%; background: var(--coral); box-shadow: inset 0 -9px 0 #ed6e60; }
.tank-fish::before { content: ""; position: absolute; left: -23%; top: 15%; width: 37%; height: 72%; background: #ffc097; clip-path: polygon(100% 50%, 0 0, 0 100%); }
.tank-fish::after { content: ""; position: absolute; right: 18%; top: 32%; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.fish-one { left: 42%; top: 43%; transform: rotate(-7deg); }
.fish-two { right: 17%; top: 65%; width: 13%; height: 12%; background: #ffe191; box-shadow: inset 0 -6px 0 #f9bd70; transform: rotate(8deg); }
.fish-two::before { background: #ffe7a7; }
.tank-plant { position: absolute; bottom: 8%; z-index: 2; width: 6%; height: 42%; border-left: 8px solid #136d65; border-radius: 50%; transform: rotate(12deg); }
.tank-plant::before, .tank-plant::after { content: ""; position: absolute; width: 28px; height: 16px; border-radius: 100% 0 100% 0; background: #3fb784; }
.tank-plant::before { left: -28px; top: 30%; transform: rotate(-25deg); }
.tank-plant::after { left: 1px; top: 60%; transform: rotate(55deg); }
.plant-one { left: 13%; }
.plant-two { left: 82%; height: 35%; transform: rotate(-15deg); }
.tank-floor { position: absolute; z-index: 3; left: -3%; right: -3%; bottom: -4%; height: 16%; border-radius: 50% 50% 0 0; background: #f0c897; box-shadow: inset 0 7px 0 #f7dcb2; }
.tank-caption { display: flex; justify-content: space-between; width: min(100%, 570px); margin-top: 1.2rem; padding-left: .4rem; color: var(--muted); font-size: .88rem; font-weight: 800; }
.form-card, .profile-card, .controls-card, .error-card { border: 2px solid var(--ink); border-radius: 24px; background: var(--paper); box-shadow: 7px 8px 0 var(--shadow); }
.form-card { position: relative; padding: clamp(1.6rem, 3.5vw, 3rem); }
.card-sticker { position: absolute; top: -22px; right: 1rem; padding: .38rem .8rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--coral); font-weight: 900; transform: rotate(6deg); }
.form-card h2 { margin-bottom: .55rem; }
.form-intro { margin-bottom: 1.5rem; color: var(--muted); }
label { display: block; margin: .95rem 0 .35rem; font-size: .9rem; font-weight: 800; }
input:not([type=hidden]) { width: 100%; min-width: 0; padding: .8rem .85rem; border: 2px solid var(--ink); border-radius: 11px; background: #fbfffb; color: var(--ink); }
input:not([type=hidden]):focus { border-color: var(--teal); }
.help { margin: .4rem 0; color: var(--muted); font-size: .82rem; }
.primary, .secondary, .copy { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; border: 2px solid var(--ink); border-radius: 12px; color: var(--ink); font-weight: 900; text-decoration: none; }
.primary { width: 100%; margin-top: 1.4rem; padding: .78rem 1rem; background: var(--coral); box-shadow: 4px 4px 0 var(--ink); }
.primary:hover, .secondary:hover, .copy:hover { color: var(--ink); background: #ffb29a; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.secondary { width: fit-content; margin-top: .5rem; padding: .65rem .85rem; background: var(--mint); box-shadow: 4px 4px 0 var(--ink); }
.form-switch { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .9rem; }
.form-switch a { font-weight: 900; }
.notice { padding: .75rem .9rem; border: 2px solid #bd564e; border-radius: 10px; background: #ffe3dc; }
.profile-intro { margin-bottom: 2.2rem; }
.profile-intro h1 { font-size: clamp(3.5rem, 7vw, 6rem); }
.profile-intro > p:last-child { max-width: 43ch; font-size: 1.1rem; }
.profile-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(1.5rem, 4vw, 3rem); }
.profile-card, .controls-card { min-height: 385px; padding: clamp(1.4rem, 3vw, 2.4rem); }
.profile-card { background: #f2fff7; }
.profile-avatar { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 1.3rem; border: 2px solid var(--ink); border-radius: 23px; background: var(--coral); font-size: 2rem; font-weight: 900; transform: rotate(-5deg); }
.profile-card h2 { overflow-wrap: anywhere; }
dl { display: grid; grid-template-columns: 4.1rem minmax(0,1fr); gap: .7rem .8rem; margin: 1.7rem 0 0; padding-top: 1.25rem; border-top: 1px dashed var(--line); }
dt { color: var(--muted); font-size: .82rem; font-weight: 800; }
dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.role-pill { display: inline-block; padding: .12rem .65rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--mint); font: 700 .82rem var(--mono); }
.controls-card { background: #e8f8ee; scroll-margin-top: 1.5rem; }
.controls-top { display: flex; justify-content: space-between; align-items: start; }
.controls-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%; background: #ffe08b; font-size: 1.5rem; }
.controls-card h2 { margin: .15rem 0 1.3rem; }
.controls-card > p { max-width: 37ch; }
.controls-status { display: inline-flex; align-items: center; gap: .55rem; padding: .38rem .7rem; border-radius: 999px; background: #c8f0dc; font-weight: 800; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #159b67; }
.locked-message { display: grid; justify-items: start; gap: .8rem; margin-top: 2rem; padding: 1.5rem; border: 2px dashed var(--line); border-radius: 16px; background: #f8fff8; }
.locked-message p { max-width: 31ch; margin: 0; font-size: 1.1rem; font-weight: 800; }
.locked-message a { font-weight: 900; }
.lock-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--coral); font-size: 1.5rem; }
.flag-card { margin-top: 1.4rem; padding: 1.15rem; border: 2px solid var(--ink); border-radius: 15px; background: var(--paper); }
.flag-label { font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
pre { margin: .7rem 0 1rem; padding: .9rem; border-radius: 9px; background: #dcf3e9; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font-family: var(--mono); }
.copy { padding: .55rem .8rem; background: var(--mint); box-shadow: 3px 3px 0 var(--ink); }
.error-card { max-width: 42rem; padding: clamp(1.5rem, 4vw, 3rem); }
.error-card h1 { font-size: clamp(3rem, 7vw, 5rem); }
.error-card .primary { width: fit-content; }
@media (max-width: 760px) {
  .landing-grid, .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .landing-grid { gap: 3.2rem; }
  .tank-scene { max-width: 530px; }
  .profile-card, .controls-card { min-height: 0; }
}
@media (max-width: 560px) {
  .nav-wrap, .page-shell, .site-footer { width: calc(100% - 2rem); }
  .nav-wrap { align-items: start; flex-direction: column; gap: .2rem; padding-block: .7rem; }
  .nav-links { justify-content: flex-start; gap: .1rem; }
  .nav-links > a, .nav-button { padding: .4rem .55rem; }
  .page-shell { padding-block: 2.2rem; }
  .site-footer { flex-direction: column; gap: .25rem; }
  .welcome h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
  .tank-scene { border-width: 7px; }
  .form-card { margin-top: .3rem; }
}
