/* ==========================================================================
   Reel Rush Fishing — site styles
   One stylesheet for every page. Deep-water dark theme, matched to the
   game's flat-vector art: navy water, orange fish, gold highlights.
   ========================================================================== */

:root {
  /* Water */
  --abyss:      #04121f;
  --deep:       #08203a;
  --mid:        #0d3050;
  --shallow:    #12496f;

  /* Surfaces */
  --card:       #0d2438;
  --card-2:     #11304a;
  --line:       rgba(146, 196, 226, 0.16);
  --line-soft:  rgba(146, 196, 226, 0.09);

  /* Ink */
  --text:       #e9f3fa;
  --muted:      #9bb9cf;
  --dim:        #7093ac;

  /* Accents */
  --orange:     #f5883c;
  --orange-lt:  #ffa658;
  --gold:       #ffc94a;
  --green:      #2ecc71;
  --green-dk:   #21a75a;
  --red:        #e5604d;

  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 18px 44px rgba(0, 0, 0, 0.45);
  --shadow-sm:  0 6px 18px rgba(0, 0, 0, 0.3);

  --wrap:       1080px;
  --font: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI",
          system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--abyss);
  background-image:
    radial-gradient(1200px 600px at 50% -220px, rgba(28, 122, 178, 0.55), transparent 70%),
    linear-gradient(180deg, #0a2a45 0%, #061b2e 42%, #04121f 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--orange-lt);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 2.5rem 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: 0.88em;
  background: rgba(146, 196, 226, 0.1);
  border: 1px solid var(--line-soft);
  padding: 0.12em 0.42em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #10202c;
  padding: 12px 18px;
  font-weight: 700;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 18, 31, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}
.brand span small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 10px;
}
.site-nav a:hover {
  color: var(--text);
  background: rgba(146, 196, 226, 0.09);
  text-decoration: none;
}
.site-nav a[aria-current="page"] { color: var(--gold); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, background 0.14s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.07); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; opacity: 0.65; transform: none; filter: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dk) 100%);
  color: #04231a;
  box-shadow: 0 10px 26px rgba(46, 204, 113, 0.26);
}
.btn-ghost {
  background: rgba(146, 196, 226, 0.08);
  border-color: var(--line);
  color: var(--text);
}
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: clamp(46px, 8vw, 84px) 0 clamp(40px, 7vw, 72px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 201, 74, 0.11);
  border: 1px solid rgba(255, 201, 74, 0.28);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 0.35em; }
.hero h1 .accent {
  background: linear-gradient(180deg, var(--orange-lt), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  color: var(--muted);
  max-width: 54ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--dim);
  font-weight: 600;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* Hero artwork ------------------------------------------------------------ */

.hero-art {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #1a5f8c 0%, #0d3a5c 45%, #06203a 100%);
}
.hero-art svg { width: 100%; height: 100%; display: block; }

.bubble { animation: rise 9s linear infinite; }
.bubble:nth-of-type(2n) { animation-duration: 12s; animation-delay: -3s; }
.bubble:nth-of-type(3n) { animation-duration: 15s; animation-delay: -6s; }
@keyframes rise {
  0%   { transform: translateY(0);      opacity: 0; }
  12%  { opacity: 0.85; }
  100% { transform: translateY(-460px); opacity: 0; }
}

.swim { animation: swim 22s linear infinite; }
.swim-slow { animation: swim 34s linear infinite; animation-delay: -8s; }
@keyframes swim {
  from { transform: translateX(-180px); }
  to   { transform: translateX(760px); }
}

.bob { animation: bob 4.5s ease-in-out infinite; transform-origin: center; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubble, .swim, .swim-slow, .bob { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------- sections */

.section {
  padding: clamp(46px, 7vw, 78px) 0;
  border-top: 1px solid var(--line-soft);
}
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-alt { background: rgba(6, 26, 44, 0.55); }

.kicker {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

/* Cards ------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.card {
  background: linear-gradient(180deg, var(--card-2) 0%, var(--card) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: 0.97rem; }

.card-icon {
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

/* Stat strip -------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--card);
  padding: 24px 18px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gold);
  line-height: 1.1;
}
.stat span {
  display: block;
  font-size: 0.85rem;
  color: var(--dim);
  font-weight: 600;
  margin-top: 4px;
}

/* Tag list ---------------------------------------------------------------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.tags li {
  background: rgba(146, 196, 226, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.tags li b { color: var(--text); font-weight: 700; }

/* Waters list — unlock order, name, the game's own subtitle, max depth ----- */

.waters {
  list-style: none;
  counter-reset: water;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.waters li {
  counter-increment: water;
  background: var(--card);
  padding: 16px 20px 16px 52px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.waters li::before {
  content: counter(water);
  position: absolute;
  left: 18px;
  top: 17px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.waters b { font-weight: 800; letter-spacing: -0.01em; }
.waters span {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.waters em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--gold);
  background: rgba(255, 201, 74, 0.1);
  border: 1px solid rgba(255, 201, 74, 0.22);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Screenshot gallery ------------------------------------------------------ */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}
.shot figure { margin: 0; }
.shot img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--deep);
}
.shot figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--dim);
  text-align: center;
  font-weight: 600;
}

/* ---------------------------------------------------------------- prose */

.page-head {
  padding: clamp(38px, 6vw, 66px) 0 8px;
}
.page-head p.lede { margin-bottom: 0; }
.page-head .updated {
  font-size: 0.88rem;
  color: var(--dim);
  font-weight: 600;
  margin-top: 14px;
}

.prose {
  max-width: 74ch;
  padding-bottom: 20px;
}
.prose h2 {
  margin-top: 2.2em;
  padding-top: 0.2em;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
}
.prose h2:first-child { margin-top: 0.6em; }
.prose h3 { margin-top: 1.9em; font-size: 1.08rem; color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--orange); }
.prose strong { color: #fff; }

.callout {
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.28);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 0 0 1.6em;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn {
  background: rgba(255, 201, 74, 0.08);
  border-color: rgba(255, 201, 74, 0.3);
}

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 2.4em;
}
.toc h2 {
  margin: 0 0 0.6em;
  font-size: 0.78rem !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0;
}
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 0.3em; }
.toc a { color: var(--muted); font-weight: 600; }
.toc a:hover { color: var(--orange-lt); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 1.6em;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 0.94rem;
}
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
th {
  background: rgba(146, 196, 226, 0.07);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- FAQ */

.faq-group { margin-bottom: 2.6em; }
.faq-group > h2 { margin-bottom: 0.7em; }

.qa {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  margin-bottom: 12px;
  overflow: hidden;
}
.qa > summary {
  cursor: pointer;
  padding: 17px 52px 17px 20px;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  position: relative;
  line-height: 1.45;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  color: var(--orange);
  transition: transform 0.18s ease;
}
.qa[open] > summary::after { content: "\2013"; }
.qa > summary:hover { background: rgba(146, 196, 226, 0.05); }
.qa .answer {
  padding: 0 20px 4px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.98rem;
}
.qa .answer > :last-child { margin-bottom: 16px; }

/* ---------------------------------------------------------------- forms */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.form-card {
  background: linear-gradient(180deg, var(--card-2) 0%, var(--card) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 20px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.93rem;
  margin-bottom: 7px;
  color: var(--text);
}
label .opt {
  font-weight: 500;
  color: var(--dim);
  font-size: 0.86rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(4, 18, 31, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
textarea { resize: vertical; min-height: 148px; line-height: 1.55; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239bb9cf' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(4, 18, 31, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 201, 74, 0.16);
}
input::placeholder, textarea::placeholder { color: #6d92aa; }

.hint {
  font-size: 0.86rem;
  color: var(--dim);
  margin: 7px 0 0;
}
.err {
  font-size: 0.86rem;
  color: var(--red);
  margin: 7px 0 0;
  font-weight: 600;
  display: none;
}
.field.invalid .err { display: block; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--red); }

/* honeypot — hidden from people, visible to naive bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.96rem;
}
.form-status.show { display: block; }
.form-status.ok {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #adf0cb;
}
.form-status.bad {
  background: rgba(229, 96, 77, 0.12);
  border: 1px solid rgba(229, 96, 77, 0.4);
  color: #ffc3b9;
}

.aside-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
}
.aside-card h3 { margin-bottom: 0.5em; font-size: 1.05rem; }
.aside-card p, .aside-card li { color: var(--muted); font-size: 0.95rem; }
.aside-card ul { padding-left: 1.15em; margin: 0; }
.aside-card li { margin-bottom: 0.45em; }
.aside-card li:last-child { margin-bottom: 0; }
.aside-card p:last-child { margin-bottom: 0; }

.mail-big {
  display: inline-block;
  font-weight: 800;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- CTA + footer */

.cta {
  text-align: center;
  padding: clamp(48px, 8vw, 86px) 0;
  border-top: 1px solid var(--line-soft);
}
.cta h2 { margin-bottom: 0.4em; }
.cta p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 26px; }

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(3, 13, 22, 0.6);
  padding: 42px 0 34px;
  font-size: 0.93rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { max-width: 34ch; }
.footer-brand p { color: var(--dim); margin: 10px 0 0; font-size: 0.9rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}
.footer-bottom p { margin: 0; }

/* ---------------------------------------------------------------- 404 */

.center-page {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 0;
}
.center-page img { width: 108px; border-radius: 26px; margin-bottom: 26px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin-inline: auto; aspect-ratio: 1 / 1; }
  .form-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 18px;
    background: rgba(4, 18, 31, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
  .site-header .wrap { position: relative; }
  .field-row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 auto; min-width: 200px; }
}

@media print {
  .site-header, .site-footer, .hero-art, .cta { display: none; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; }
  a { color: #000; }
}
