/* Seaworthy — Modernist tokens (Archivo, red on light ground, zero radius) */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&display=swap');
:root {
  --bg: #f3f2f2; --surface: #eae9e9; --text: #201e1d; --accent: #ec3013;
  --divider: color-mix(in srgb, #201e1d 40%, transparent);
  --n100: #f8f4f4; --n200: #eae7e7; --n300: #d7d3d3; --n500: #9b9797;
  --n600: #7d7979; --n700: #605d5d; --n800: #444141;
  --a100: #fff2ef; --a600: #dd2b0f; --a700: #ae1800; --a800: #7c1405;
  --heading: 'Archivo', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--n300); color: var(--text); font: 400 15px/1.55 'Archivo', system-ui, sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--a600); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

#shell {
  max-width: 430px; min-height: 100dvh; margin: 0 auto; background: var(--bg);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--divider); border-right: 1px solid var(--divider);
}
#app { flex: 1; }

/* splash */
#splash {
  position: fixed; inset: 0; z-index: 50; background: var(--accent);
  display: grid; place-items: center; transition: opacity .45s ease;
}
#splash.gone { opacity: 0; pointer-events: none; }
.splash-logo {
  font-family: var(--heading); font-weight: 800; font-size: clamp(34px, 9vw, 52px);
  letter-spacing: -0.02em; color: var(--bg);
  animation: rise .6s ease both .1s;
}
.splash-logo span { color: var(--text); }
.splash-tag {
  font-size: 15px; color: var(--bg); opacity: .85; margin-top: 6px;
  animation: rise .6s ease both .3s;
}
.splash-wave {
  height: 2px; background: var(--bg); margin-top: 18px;
  animation: grow 1s ease both .45s; transform-origin: left;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* gate */
#gate {
  position: fixed; inset: 0; z-index: 40; background: var(--accent);
  display: grid; place-items: center; padding: 24px;
}
.gate-inner { width: min(320px, 100%); }
.gate-msg { color: var(--bg); font-size: 14px; margin: 6px 0 16px; }
.gate-err {
  color: var(--bg); font-family: var(--heading); font-weight: 800;
  font-size: 13px; margin-top: 10px; border-top: 2px solid var(--bg); padding-top: 8px;
}
#gate .cta { background: var(--text); }
#gate .cta:hover { background: #000; }

/* shared bits */
.pad { padding: 24px 20px; }
.kicker {
  font-family: var(--heading); font-weight: 800; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--n700);
}
h1 { font-family: var(--heading); font-weight: 800; font-size: 34px; line-height: 1.05; margin: 0; letter-spacing: -0.015em; }
.input {
  width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; font-size: 15px;
  color: var(--text); caret-color: var(--accent); background: var(--surface);
  border: 1px solid var(--divider); border-radius: 0;
}
.input:focus-visible { border-color: var(--accent); outline-offset: 0; }
textarea.input { min-height: 84px; resize: vertical; }
.tag {
  display: inline-flex; align-items: center; font-size: 11px; letter-spacing: .02em;
  padding: 3px 10px;
}
.tag-accent { background: var(--a100); color: var(--a800); }
.tag-neutral { background: var(--n100); color: var(--n800); }
.tag-outline { border: 1px solid var(--accent); color: var(--accent); }
.cta {
  background: var(--accent); color: var(--bg); padding: 14px 16px; cursor: pointer;
  font-family: var(--heading); font-weight: 800; font-size: 14px;
}
.cta:hover { background: var(--a600); }
.cta:active { background: var(--a700); }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--divider); cursor: pointer; }
.row:hover { background: var(--n200); }
.bar { height: 8px; background: var(--n300); }
.bar > div { height: 8px; background: var(--text); }
.seg { display: flex; border: 1px solid var(--divider); }
.seg > div {
  flex: 1; text-align: center; padding: 11px 0; font-size: 13px; cursor: pointer;
  font-family: var(--heading); font-weight: 800;
}
.seg > div + div { border-left: 1px solid var(--divider); }
.seg > div.on { background: var(--accent); color: var(--bg); }
.seg > div:not(.on):hover { background: var(--n200); }
.seg.ink > div.on { background: var(--text); }
.score-btns { display: flex; }
.score-btns > div {
  width: 20%; height: 40px; display: grid; place-items: center; cursor: pointer;
  font-family: var(--heading); font-weight: 800; font-size: 13px;
  border: 1px solid var(--divider); background: var(--surface);
}
.score-btns > div + div { border-left: 0; }
.score-btns > div:hover { background: var(--n200); }
.score-btns > div.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
#tabbar {
  display: flex; border-top: 2px solid var(--divider); background: var(--bg);
  position: sticky; bottom: 0; padding-bottom: env(safe-area-inset-bottom);
}
#tabbar > div {
  flex: 1; text-align: center; padding: 13px 0; cursor: pointer;
  font-family: var(--heading); font-weight: 800; font-size: 11px; letter-spacing: .06em;
  color: var(--n600);
}
#tabbar > div.on { color: var(--accent); }
.photo {
  height: 180px; background: var(--n800); color: var(--n300);
  display: grid; place-items: center; filter: grayscale(1);
}
.quote { background: var(--surface); padding: 12px; margin-bottom: 10px; }
.itembox { border: 1px solid var(--divider); padding: 8px 12px; display: flex; flex-direction: column; gap: 5px; }
