/* トンテンかんてん！ — about page. Colours from the game (css/game.css): sign yellow, ink, paper, wood, cone, sky. Light only, like the game. */
:root {
  --sign: #FFC93C; --ink: #2D2A26; --paper: #FFF6DF; --wood: #C8894B; --wood2: #d49a5c; --cone: #FF7A2F; --sky: #8FD3F4;
  --grass: #7cc35a; --blue: #2f6fd6; --bp: #1f5fa8; --muted: #6b6258;
  --ui: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --disp: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--sky); }
body { margin: 0; color: var(--ink); background: var(--sky); font: 500 16px/1.85 var(--ui); letter-spacing: .02em; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
.wrap { width: min(1100px, 100% - 40px); margin: 0 auto; }
@media (max-width: 480px) { .wrap { width: calc(100% - 32px); } }
p { margin: 0 0 1em; }
h2 { font: 400 clamp(26px, 4.4vw, 40px)/1.3 var(--disp); margin: 0 0 20px; }
h2 .hl { color: var(--cone); }
h3 { font-size: 19px; font-weight: 800; margin: 0 0 6px; line-height: 1.45; }
.note { font-size: 13.5px; color: var(--muted); }
/* the construction sign label */
.kicker { display: inline-block; font: 400 14px/1 var(--disp); letter-spacing: .1em; color: var(--ink); background: var(--sign); border: 3px solid var(--ink); border-radius: 8px; padding: 8px 14px 7px; margin: 0 0 16px; box-shadow: 0 4px 0 var(--ink); }
.kicker.blue { background: var(--bp); color: #fff; }

.btn { display: inline-block; font: 800 18px/1.2 var(--ui); color: var(--ink); background: var(--sign); border: 3px solid var(--ink); border-radius: 14px; padding: 13px 28px; box-shadow: 0 5px 0 var(--ink); text-decoration: none; transition: transform .07s, box-shadow .07s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.white { background: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--cone); outline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* hero: demo race behind, a wooden sign board in front */
.hero { position: relative; min-height: min(760px, 94vh); display: grid; align-items: center; overflow: hidden; isolation: isolate; background: #7cc35a url(image/about/poster.webp) center/cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; z-index: -2; }
.hero-video.on { opacity: 1; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; z-index: 1; background: repeating-linear-gradient(-45deg, var(--sign) 0 16px, var(--ink) 16px 32px); }
.hero-in { padding: 70px 0 80px; }
.sign { position: relative; max-width: 560px; background: var(--paper); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 var(--ink); padding: 26px 28px 28px; }
.sign::before, .sign::after { content: ""; position: absolute; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: #a9a9a9; border: 3px solid var(--ink); }
.sign::before { left: 14px; } .sign::after { right: 14px; }
.logo { margin: 4px 0 6px; }
.logo img { width: min(460px, 100%); margin: 0 auto; }
.hero .sub { text-align: center; font-weight: 800; color: var(--cone); margin: 0 0 14px; }
.hero .lead { font-size: 16px; margin: 0; }
.vid-toggle { position: absolute; right: 16px; bottom: 28px; font: 800 12px/1 var(--ui); color: var(--ink); background: rgba(255, 246, 223, .9); border: 2px solid var(--ink); border-radius: 99px; padding: 8px 12px; cursor: pointer; }
@media (max-width: 600px) { .hero { align-items: end; } .hero-in { padding: 160px 0 52px; } .sign { padding: 22px 18px; } }

.sec { padding: 84px 0; }
.card { background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); padding: 20px 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }

/* flow: wooden planks nailed in a row */
.flow { list-style: none; padding: 0; margin: 28px 0 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.flow li { position: relative; background: linear-gradient(180deg, var(--wood2), var(--wood)); color: #2b1a0c; border: 3px solid var(--ink); border-radius: 10px; padding: 34px 16px 14px; box-shadow: 0 5px 0 var(--ink); }
.flow li::before, .flow li::after { content: ""; position: absolute; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: #9a9a9a; border: 2px solid var(--ink); }
.flow li::before { left: 10px; } .flow li::after { right: 10px; }
.flow b { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--sign); border: 3px solid var(--ink); display: grid; place-items: center; font: 400 17px/1 var(--disp); }
.flow h3 { font: 400 20px/1.3 var(--disp); text-align: center; }
.flow p { font-size: 14px; line-height: 1.7; margin: 0; }
.flow .g, .flow .o, .flow .r { font-weight: 800; padding: 0 4px; border-radius: 4px; color: #fff; }
.flow .g { background: #2fa35f; } .flow .o { background: var(--cone); } .flow .r { background: #d63b3b; }
@media (max-width: 980px) { .flow { grid-template-columns: 1fr 1fr; row-gap: 30px; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* newspaper */
.news-sec { background: var(--grass); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.news { background: #f7f2e4; color: #222; border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink); padding: 28px clamp(18px, 3vw, 36px) 32px; transform: rotate(-.4deg); font-family: var(--ui); }
.news-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 4px double #222; padding-bottom: 8px; margin-bottom: 16px; }
.news-name { font: 400 clamp(20px, 3vw, 28px)/1 var(--disp); margin: 0; }
.news-ex { margin: 0; background: #d63b3b; color: #fff; font: 400 22px/1 var(--disp); padding: 8px 14px; transform: rotate(4deg); }
.news-title { font-size: clamp(30px, 5.4vw, 56px); line-height: 1.15; margin: 0 0 22px; }
.news-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.news-col p { font-size: 15px; }
.news .lede { font-weight: 800; font-size: 17px; }
.news-photo { margin: 0; }
.news-photo img { border: 2px solid #222; filter: saturate(.85) contrast(1.05); }
.news-photo figcaption { font-size: 12.5px; margin-top: 6px; color: #444; }
.score h3 { font: 400 20px var(--disp); border-bottom: 2px solid #222; padding-bottom: 4px; }
.score table { width: 100%; border-collapse: collapse; font-size: 14px; }
.score th { text-align: left; white-space: nowrap; padding: 7px 12px 7px 0; vertical-align: top; }
.score td { padding: 7px 0; border-bottom: 1px dotted #888; }
.score .small { font-size: 13px; margin-top: 10px; }
.bridge-names { margin-top: 26px; border-top: 2px solid #222; padding-top: 16px; }
.bridge-names h3 { font: 400 20px var(--disp); }
.bridge-names ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bridge-names li { background: #fff; border: 2px solid #222; padding: 4px 12px; font-weight: 800; font-size: 14px; }
@media (max-width: 800px) { .news-body { grid-template-columns: 1fr; } .news { transform: none; } }

/* crew */
.crew { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 26px 0 16px; }
@media (max-width: 960px) { .crew { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .crew { grid-template-columns: 1fr; } .member { display: grid; grid-template-columns: 112px 1fr; column-gap: 14px; align-items: start; } .member img { grid-row: span 5; margin: 0; } .bars i { width: 84px; } }
.member { background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); padding: 16px; }
.member img { border-radius: 14px; border: 3px solid var(--ink); margin-bottom: 12px; }
.member h3 { font: 400 22px/1.2 var(--disp); margin: 0; display: flex; align-items: center; gap: 8px; }
.member h3::before { content: ""; width: 16px; height: 16px; border-radius: 4px 4px 2px 2px; background: var(--hat); border: 2px solid var(--ink); }
.member .type { font-size: 13px; font-weight: 800; color: var(--muted); margin: 2px 0 8px; word-break: keep-all; }
.member p { font-size: 14px; line-height: 1.7; margin: 0; }
.bars { list-style: none; padding: 0; margin: 0 0 10px; font-size: 13px; font-weight: 800; }
.bars li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bars i { flex: none; width: 110px; height: 10px; background: repeating-linear-gradient(90deg, var(--ink) 0 calc(20% - 3px), transparent calc(20% - 3px) 20%); -webkit-mask: linear-gradient(90deg, #000 calc(var(--v) * 20%), rgba(0, 0, 0, .18) 0); mask: linear-gradient(90deg, #000 calc(var(--v) * 20%), rgba(0, 0, 0, .18) 0); }

/* stages on a blueprint */
.plans { background-color: var(--bp); color: #eaf3ff; background-image: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 28px 28px; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.plans h2 .hl { color: var(--sign); }
.plans .note { color: #cfe0f5; margin-top: 28px; }
.cup { font: 400 22px/1.3 var(--disp); margin: 36px 0 14px; color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cup small { font: 800 13px var(--ui); background: var(--sign); color: var(--ink); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.cup.hot small { background: var(--cone); color: #fff; }
.sites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .sites { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sites { grid-template-columns: 1fr; } }
.site { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 5px 0 var(--ink); }
.site img { border-bottom: 3px solid var(--ink); }
.site h4 { font: 400 17px/1.3 var(--disp); margin: 12px 14px 4px; display: flex; align-items: center; gap: 8px; }
.site h4 b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sign); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 13px; }
.site p { font-size: 13.5px; line-height: 1.65; margin: 0 14px 12px; }
.site .more { color: var(--muted); }
.site.noimg { background: var(--paper) repeating-linear-gradient(-45deg, rgba(200, 137, 75, .12) 0 12px, transparent 12px 24px); padding-top: 6px; }

/* controls */
.keys { width: 100%; border-collapse: collapse; font-size: 15px; }
.keys th { text-align: left; white-space: nowrap; vertical-align: top; padding: 8px 14px 8px 0; color: var(--muted); }
.keys td { padding: 8px 0; border-bottom: 2px dashed #e5d7b8; }
kbd { display: inline-block; min-width: 26px; padding: 1px 7px; margin: 0 2px 2px 0; text-align: center; font: 800 13px/1.6 var(--ui); background: var(--sign); border: 2px solid var(--ink); border-radius: 7px; box-shadow: 0 2px 0 var(--ink); }
.card p { font-size: 15px; }
.tut { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin-top: 36px; }
.tut img { border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--ink); }
@media (max-width: 860px) { .tut { grid-template-columns: 1fr; } }

.online { background: var(--paper); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }

.faq dt { font-weight: 800; margin-top: 20px; font-size: 17px; }
.faq dd { margin: 4px 0 0; }

.final { text-align: center; padding: 28px 0 80px; }   /* follows the FAQ on the same background, whose 84px bottom padding already opens the space */
.final-word { font: 400 clamp(40px, 8vw, 76px)/1.1 var(--disp); margin: 0 0 10px; color: #fff; text-shadow: 0.055em 0.000em 0 var(--ink), 0.051em 0.021em 0 var(--ink), 0.039em 0.039em 0 var(--ink), 0.021em 0.051em 0 var(--ink), 0.000em 0.055em 0 var(--ink), -0.021em 0.051em 0 var(--ink), -0.039em 0.039em 0 var(--ink), -0.051em 0.021em 0 var(--ink), -0.055em 0.000em 0 var(--ink), -0.051em -0.021em 0 var(--ink), -0.039em -0.039em 0 var(--ink), -0.021em -0.051em 0 var(--ink), -0.000em -0.055em 0 var(--ink), 0.021em -0.051em 0 var(--ink), 0.039em -0.039em 0 var(--ink), 0.051em -0.021em 0 var(--ink), 0 .1em 0 var(--ink); }
.final .cta-row { justify-content: center; }
.games-nav { margin-top: 26px; font-size: 14px; }
footer { background: var(--ink); color: #d8cfc0; padding: 26px 0 40px; font-size: 13px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: #d8cfc0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: 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; }
@media (max-width: 480px) { .keys, .keys tbody, .keys tr, .keys th, .keys td { display: block; } .keys th { padding: 10px 0 2px; } .keys td { padding: 0 0 10px; } }
