:root {
  --ink: #173345;
  --muted: #69818c;
  --line: #d8e6e6;
  --cream: #f7f5ee;
  --blue: #1b9aaa;
  --gold: #f0b44b;
  --orange: #ef795c;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: #edf2ef;
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
}

button { font: inherit; }

h1, h2, h3, p { margin: 0; }

.app-shell {
  width: min(100%, 1180px);
  margin: auto;
  padding: 24px 28px 20px;
}

.topbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2em;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: var(--orange);
  font-size: 25px;
  line-height: 1;
}

.day-pill,
.wallet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font: 500 11px 'DM Mono', monospace;
  letter-spacing: .1em;
}

.day-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.day-pill strong { color: var(--ink); }

.sun {
  color: var(--gold);
  font-size: 16px;
}

.divider {
  height: 13px;
  border-left: 1px solid var(--line);
}

.wallet {
  color: var(--orange);
  font-size: 13px;
}

.wallet strong {
  color: var(--ink);
  margin-left: 5px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, .9fr);
  gap: 20px;
}

.scene-card,
.side-panel,
.catch-card,
.quest-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(35, 68, 75, .05);
}

.scene-card { overflow: hidden; }

.scene-copy { padding: 27px 30px 18px; }

.eyebrow {
  color: var(--muted);
  font: 500 10px 'DM Mono', monospace;
  letter-spacing: .16em;
}

h1 {
  margin: 9px 0 10px;
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: -.055em;
  line-height: 1.05;
}

h2 {
  margin-top: 7px;
  font-size: 24px;
  letter-spacing: -.04em;
}

h3 { font-size: 14px; }

.scene-copy p {
  max-width: 440px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.water-art {
  position: relative;
  height: 355px;
  overflow: hidden;
  background: linear-gradient(#b9e1de 0 37%, #83cbc6 37% 52%, #258d9b 52% 100%);
}

.water-art::before,
.water-art::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.water-art::before {
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.14) 42%, transparent 57%);
  background-size: 230% 100%;
  animation: sunlight 9s ease-in-out infinite;
}

.bobber {
  position: absolute;
  left: 58%;
  top: 266px;
  width: 13px;
  height: 13px;
  border: 3px solid #f6e4c0;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px rgba(239, 121, 92, .3);
  transition: top .6s ease;
  animation: bob 1.8s ease-in-out infinite;
}

.mobile-menu-row,
.menu-drawer,
.bottom-nav,
.chapter-banner,
.activity-rail {
  display: none;
}

.side-panel {
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #e7eeee;
  color: var(--ink);
  cursor: pointer;
  font-size: 19px;
}

.gear-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.gear-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  font-size: 22px;
}

.rod-icon { background: #f8d9bc; color: #b75e47; }
.bait-icon { background: #c8e5e5; color: #18818b; }

.gear-card div:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 3px;
}

.muted,
small {
  color: var(--muted);
  font: 500 10px 'DM Mono', monospace;
  letter-spacing: .05em;
}

.gear-card strong { font-size: 13px; }

.gear-card em {
  margin-left: 4px;
  color: var(--orange);
  font-style: normal;
}

.level {
  color: #b9783d;
  font: 500 9px 'DM Mono', monospace;
}

.level.blue { color: var(--blue); }

.cast-button {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 25px;
  padding: 13px 15px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 0 #0f2734;
  text-align: left;
  transition: transform .1s, box-shadow .1s;
}

.cast-button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #0f2734;
}

.cast-button strong,
.cast-button small {
  display: block;
}

.cast-button small {
  margin-top: 3px;
  color: #a9c3c3;
  font-family: Manrope;
  font-size: 10px;
  letter-spacing: 0;
}

.cast-symbol {
  color: #f4c46a;
  font-size: 29px;
}

.keycap {
  margin-left: auto;
  padding: 5px 6px;
  border: 1px solid #49636a;
  border-radius: 5px;
  color: #bcd0cd;
  font: 500 9px 'DM Mono', monospace;
}

.log-wrap { margin-top: auto; }

.compact {
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.log-icon {
  color: var(--orange);
  font-size: 17px;
}

.log-entry p {
  display: grid;
  flex: 1;
  gap: 3px;
  font-size: 11px;
}

.log-entry time {
  color: #94a6a6;
  font: 500 9px 'DM Mono', monospace;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.catch-card,
.quest-card {
  padding: 23px 26px;
}

.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.streak {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font: 500 9px 'DM Mono', monospace;
}

.streak strong {
  margin-left: 4px;
  color: var(--orange);
}

.catch-strip {
  display: flex;
  align-items: center;
  min-height: 105px;
}

.empty-catch {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #abc0be;
}

.empty-catch span {
  color: #c6d8d4;
  font-size: 42px;
}

.empty-catch p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.catch-list {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.catch-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 70px;
  border-radius: 10px;
  background: #dcecea;
  font-size: 35px;
}

.catch-item small {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  color: var(--ink);
  font-size: 8px;
  text-align: center;
}

.quest-card { background: #e4f0eb; }

.quest-card h2 { font-size: 20px; }

.quest-card p {
  margin: 9px 0 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 20px;
  background: #c7dcd5;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 20px;
  background: var(--orange);
  transition: width .5s;
}

.quest-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font: 500 10px 'DM Mono', monospace;
}

.quest-foot strong { color: var(--orange); }

.footer-note {
  display: flex;
  justify-content: space-between;
  padding: 22px 3px 0;
  color: #91a5a4;
  font: 500 9px 'DM Mono', monospace;
  letter-spacing: .07em;
}

.footer-note b { color: var(--gold); }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 28px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border: 2px solid #17253b;
  border-radius: 10px;
  background: #17253b;
  color: #fff;
  box-shadow: 0 6px 0 rgba(17, 23, 36, .45);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity .25s, transform .25s;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes sunlight {
  0%, 100% { background-position: 180% 0; }
  50% { background-position: -40% 0; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (max-width: 800px) {
  .app-shell { padding: 16px; }
  .hero-grid,
  .bottom-grid { grid-template-columns: 1fr; }
  .side-panel { min-height: 500px; }
  .day-pill { display: none; }
  .scene-footer {
    gap: 8px;
    padding-inline: 16px;
    font-size: 8px;
  }
  .footer-note {
    flex-direction: column;
    gap: 15px;
    line-height: 1.5;
  }
}
