/* 遡上 Salmon Ascent — about page. Colours and type follow the game (css/game.css): 藍・胡粉・朱・水・金, Yuji Syuku / Shippori Mincho / Zen Kaku / Oswald. */
:root {
  --ink: #06222a; --deep: #041a20; --ai: #1d2c47; --ai-deep: #101a2c; --gofun: #eef1ea; --shu: #c8372d; --mizu: #86c0b8; --kin: #caa04a; --glacier: #9fd8d2;
  --brush: "Yuji Syuku", "Shippori Mincho", serif;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --num: "Oswald", "Zen Kaku Gothic New", sans-serif;
  --washi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--deep); }
body { margin: 0; background: var(--ink) var(--washi); color: var(--gofun); font: 400 16px/1.95 var(--gothic); letter-spacing: .03em; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--glacier); }
.wrap { width: min(1040px, 100% - 40px); margin: 0 auto; }
@media (max-width: 480px) { .wrap { width: calc(100% - 32px); } }
@media (min-width: 1180px) { .wrap { padding-left: 60px; } }
p { margin: 0 0 1em; }
h2 { font: 400 clamp(24px, 4.6vw, 46px)/1.45 var(--brush); margin: 0 0 26px; letter-spacing: .04em; word-break: keep-all; overflow-wrap: anywhere; }
h3 { font: 600 20px/1.5 var(--mincho); margin: 0 0 10px; color: #fff; }
.note { font-size: 13.5px; color: #a7c1c0; }
kbd { display: inline-block; min-width: 24px; padding: 0 6px; margin: 0 2px 2px 0; text-align: center; font: 500 12.5px/1.75 var(--gothic); color: var(--ink); background: var(--gofun); border-radius: 3px; }

/* section name, like the in-game section card: kanji + English */
.sec-name { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; font: 400 15px/1 var(--num); letter-spacing: .2em; text-transform: uppercase; color: var(--mizu); }
.sec-name b { font: 400 34px/1 var(--brush); letter-spacing: .1em; color: #fff; text-transform: none; }

.btn { display: inline-block; font: 400 22px/1 var(--brush); letter-spacing: .3em; padding: 16px 30px 15px 36px; color: #fff; background: var(--shu); text-decoration: none; border: 1px solid rgba(255, 255, 255, .25); transition: background .2s; }
.btn:hover { background: #a92a22; }
.btn.ghost { background: transparent; border-color: rgba(238, 241, 234, .6); font: 600 15px/1 var(--mincho); letter-spacing: .1em; padding: 18px 22px; }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--kin); outline-offset: 4px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }

/* left course indicator */
.course { position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 20; height: min(420px, 60vh); width: 52px; }
.course::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: linear-gradient(0deg, rgba(134, 192, 184, .15), rgba(134, 192, 184, .6)); }
.course ol { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; flex-direction: column-reverse; justify-content: space-between; }
.course a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: rgba(238, 241, 234, .45); font: 400 13px/1.3 var(--brush); writing-mode: vertical-rl; padding-left: 4px; }
.course a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--deep); border: 2px solid var(--mizu); margin-bottom: 6px; writing-mode: horizontal-tb; }
.course a.on { color: #fff; }
.course a.on::before { background: var(--shu); border-color: var(--shu); }
.course .fish { position: absolute; left: 3px; bottom: calc(var(--p, 0) * (100% - 24px)); width: 16px; height: 24px; background: var(--shu); clip-path: polygon(50% 0, 86% 30%, 70% 72%, 96% 100%, 50% 84%, 4% 100%, 30% 72%, 14% 30%); transition: bottom .15s linear; }
@media (max-width: 1179px) { .course { display: none; } }

/* hero */
.hero { position: relative; min-height: min(820px, 100vh); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 34, 42, .2) 0, rgba(6, 34, 42, .35) 35%, rgba(6, 34, 42, .85) 62%, rgba(6, 34, 42, .92) 100%), linear-gradient(0deg, var(--ink) 0, rgba(6, 34, 42, 0) 25%); }
.hero-in { width: min(1120px, 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 8vw, 120px); align-items: center; padding: 70px 0; }
.title { position: relative; display: flex; gap: 14px; align-items: flex-start; padding-left: clamp(0px, 4vw, 60px); }
.title h1 { margin: 0; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .55)); }
.title h1 img { width: clamp(110px, 14vw, 170px); }
.seal { margin: 0; width: 34px; height: 34px; display: grid; place-items: center; background: var(--shu); color: #fff; font: 400 20px/1 var(--brush); border-radius: 3px; }
.title .en { position: absolute; left: calc(clamp(0px, 4vw, 60px) + clamp(110px, 14vw, 170px) + 22px); top: 54px; margin: 0; writing-mode: vertical-rl; font: 400 13px/1.3 var(--num); letter-spacing: .4em; color: rgba(255, 255, 255, .85); }
.hero-text { max-width: 36em; }
.hero .lead { word-break: keep-all; overflow-wrap: anywhere; font: 600 clamp(19px, 2.3vw, 24px)/1.75 var(--mincho); color: #fff; }
@media (max-width: 760px) {
  .hero { align-items: end; }
  .hero::after { background: linear-gradient(180deg, rgba(6, 34, 42, .15) 0, rgba(6, 34, 42, .5) 35%, rgba(6, 34, 42, .92) 62%, var(--ink) 100%); }
  .hero-in { grid-template-columns: 1fr; padding: 40px 0 50px; gap: 30px; }
  /* phones: the logo block sits in the middle — logo on the left, the seal
     and the vertical Salmon Ascent stacked beside it, as on wide screens */
  .title { padding-left: 0; display: grid; grid-template-columns: auto auto; justify-content: center; column-gap: 14px; align-items: start; }
  .title h1 { grid-row: 1 / 3; }
  .title .en { position: static; justify-self: start; margin-top: 10px; }
}

.sec { padding: 96px 0; }
.dark { background: var(--ai-deep) var(--washi); border-top: 1px solid rgba(134, 192, 184, .15); border-bottom: 1px solid rgba(134, 192, 184, .15); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.shot, .wide { margin: 0; }
.shot img, .wide img, .river figure img { box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.shot figcaption, .wide figcaption { font-size: 13px; color: #a7c1c0; margin-top: 12px; }
.wide { margin: 50px 0 10px; }

/* controls */
.controls { background: rgba(29, 44, 71, .55); border: 1px solid rgba(134, 192, 184, .25); padding: 20px 22px; }
.controls table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.controls th { text-align: left; vertical-align: top; white-space: nowrap; padding: 8px 16px 8px 0; font: 600 14px var(--mincho); color: var(--mizu); }
.controls td { padding: 8px 0; border-bottom: 1px solid rgba(134, 192, 184, .18); }

/* tricks */
.tricks { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 50px 0; }
@media (max-width: 860px) { .tricks { grid-template-columns: 1fr; } }
.trick { border-top: 2px solid var(--kin); padding-top: 18px; }
.names { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.names li { font: 400 17px/1 var(--brush); color: var(--kin); border: 1px solid rgba(202, 160, 74, .55); padding: 9px 12px 8px; }

/* rings */
.tbl-title { margin-top: 10px; }
.rings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 10px 0 14px; }
@media (max-width: 900px) { .rings { grid-template-columns: repeat(2, 1fr); } }
.rings div { background: rgba(29, 44, 71, .55); border: 1px solid rgba(134, 192, 184, .2); padding: 16px 14px; text-align: center; }
.rings i { display: block; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; border: 4px solid; }
.rings .r1 { border-color: #7fd6e6; } .rings .r2 { border-color: #f09a3e; } .rings .r3 { border-color: #e9f2f2; } .rings .r4 { border-color: #cfe3ff; } .rings .r5 { border-color: var(--kin); box-shadow: 0 0 14px rgba(202, 160, 74, .6); }
.rings b { display: block; font: 600 14px/1.4 var(--mincho); }
.rings span { display: block; font: 500 26px/1.3 var(--num); color: #fff; }
.rings small { display: block; font-size: 12px; color: #a7c1c0; }

.grade { display: grid; grid-template-columns: auto auto 1fr; gap: 28px; align-items: center; margin-top: 46px; padding: 24px 0 0; border-top: 1px solid rgba(134, 192, 184, .2); }
.hanko { margin: 0; width: 70px; height: 70px; display: grid; place-items: center; background: var(--shu); color: #fff; font: 400 38px/1 var(--brush); border-radius: 6px; transform: rotate(-6deg); }
.grade dl { margin: 0; display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 16px; }
.grade dt { font: 500 22px/1.3 var(--num); color: var(--kin); }
.grade dd { margin: 0; font: 500 16px/1.9 var(--num); }
.grade p:not(.hanko) { margin: 0; font-size: 15px; }
@media (max-width: 700px) { .grade { grid-template-columns: auto 1fr; } .grade p:not(.hanko) { grid-column: 1 / -1; } }

/* rivers */
.rivers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 34px; }
@media (max-width: 960px) { .rivers { grid-template-columns: 1fr; max-width: 560px; } }
.river figure { margin: 0 0 18px; }
.river h3 { margin: 0 0 6px; height: 44px; }
.river .brush { height: 100%; width: auto; }
.rsub { font: 600 16px/1.4 var(--mincho); color: var(--mizu); margin: 0 0 8px; }
.rnote { font-size: 14.5px; }
.rdata { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; margin: 0 0 12px; font-size: 14px; }
.rdata dt { color: #a7c1c0; }
.rdata dd { margin: 0; font-family: var(--num); letter-spacing: .1em; }
.falls { list-style: none; counter-reset: f; padding: 0; margin: 0; border-left: 2px solid rgba(134, 192, 184, .35); }
.falls li { counter-increment: f; position: relative; padding: 4px 0 4px 18px; font: 400 17px/1.5 var(--brush); }
.falls li::before { content: ""; position: absolute; left: -6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); border: 2px solid var(--mizu); }
.falls li:last-child::before { background: var(--shu); border-color: var(--shu); }

.species, .challenge { margin-top: 56px; }
.species dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0 0; }
@media (max-width: 860px) { .species dl { grid-template-columns: 1fr; } }
.species dt { font: 400 21px/1.3 var(--brush); color: #fff; padding-top: 12px; border-top: 1px solid rgba(202, 160, 74, .5); grid-row: auto; }
.species dt small { display: block; font: 500 12px/1.6 var(--gothic); color: var(--kin); letter-spacing: .05em; }
.species dd { margin: 6px 0 0; font-size: 14px; color: #cfdcda; }
.challenge ul { list-style: none; padding: 0; margin: 0 0 12px; }
.challenge li { padding: 10px 0; border-bottom: 1px solid rgba(134, 192, 184, .18); }
.challenge li b { display: inline-block; min-width: 6.5em; font: 600 15px var(--mincho); color: var(--mizu); }

.after { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 10px 0 14px; }
@media (max-width: 860px) { .after { grid-template-columns: 1fr; } }
.after-card { border-top: 2px solid var(--kin); padding-top: 16px; }
.after-card h3 { font: 400 22px/1.4 var(--brush); color: var(--kin); }
.after-card p { font-size: 15px; margin: 0; }
.faq-title { margin: 64px 0 0; padding-top: 22px; border-top: 1px solid rgba(134, 192, 184, .2); }
.faq { margin: 0; }
.faq dt { font: 600 17px/1.6 var(--mincho); margin-top: 22px; color: #fff; }
.faq dd { margin: 4px 0 0; }

.final { text-align: center; padding: 90px 0 10px; }
.final .go { font: 400 clamp(64px, 12vw, 120px)/1 var(--brush); letter-spacing: .2em; margin: 0 0 6px; padding-left: .2em; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.final .cta-row { justify-content: center; }
.games-nav { margin-top: 26px; font-size: 14px; }
footer { background: var(--deep); padding: 26px 0 40px; font-size: 13px; color: #8aa3a2; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: #8aa3a2; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .course .fish { transition: none; } }

/* headings break between phrases only (<wbr> marks the phrase ends) */
h1, h2, h3, h4, .sub, .tag, .news-title, .final-word { word-break: keep-all; overflow-wrap: anywhere; }
