:root {
  color-scheme: light;
  --bg: #eff3ea;
  --surface: #fcfdf8;
  --ink: #132d22;
  --green: #245c3e;
  --soft: #526457;
  --line: #cbd7c9;
  --lime: #d3ef86;
  font: 100%/1.5 "Roboto", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible { outline: 3px solid #48995d; outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
header { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar, nav, .brand, .channel, .section-head, .card-top, .detail-head, footer { display: flex; align-items: center; }
.bar, .section-head, footer { justify-content: space-between; gap: 20px; }
.bar { min-height: 72px; }
nav { gap: 28px; }
nav a, .brand, .primary, .more, h3 a { text-decoration: none; }
nav a, .more, footer a, .crumb { font-weight: 650; }
nav a:hover, h3 a:hover, .more:hover { text-decoration: underline; }
.brand { gap: 12px; font-size: 1.16rem; font-weight: 780; letter-spacing: -.04em; }
.mark { width: 26px; height: 26px; transform: rotate(-12deg); background: var(--green); display: grid; place-items: center; border-radius: 3px; }
.mark::after { content: ""; width: 8px; height: 8px; background: var(--lime); }
.channel { gap: 9px; border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; }
.play { display: inline-block; width: 18px; height: 13px; border-radius: 4px; background: var(--green); position: relative; }
.play::after { content: ""; position: absolute; top: 4px; left: 7px; border-left: 5px solid white; border-block: 3px solid transparent; }
main { flex: 1; padding-block: 28px 56px; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #103829; border-radius: 20px; }
.scene { width: 72%; height: 100%; object-fit: cover; object-position: 55% center; position: absolute; inset: 0 0 0 auto; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #103829 24%, rgba(16,56,41,.93) 36%, rgba(16,56,41,.38) 57%, transparent 76%); }
.hero-text { padding: clamp(32px, 4vw, 56px); color: #fafdf3; }
h1, h2, h3, p { margin: 0; }
.hero h1 { font-size: clamp(3.2rem, 6.4vw, 5.6rem); font-weight: 800; line-height: .96; letter-spacing: -.065em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-text p { margin: 20px 0 24px; color: #e2eee3; }
.primary, .more { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; min-height: 44px; padding: 9px 18px; }
.primary { color: #122e20; background: var(--lime); font-weight: 730; }
.primary:hover { background: #e6ffac; }
#catalog { scroll-margin-top: 20px; margin-top: 40px; }
.section-head { margin-bottom: 18px; flex-wrap: wrap; gap: 8px 16px; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.08; letter-spacing: -.055em; }
.status { color: var(--soft); font-size: .94rem; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--surface); }
.card:is(:hover,:focus-within) { border-color: #80a78c; }
.card-top, .detail-head { gap: 12px; color: var(--soft); font-size: .94rem; font-weight: 600; }
.tile { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #d9e8d2; color: #2f6644; }
.tile i { position: relative; display: block; }
.shaders i { width: 18px; height: 18px; transform: rotate(30deg) skew(-20deg); border: 2px solid currentColor; background: #d9e8d2; box-shadow: 2px 3px 0 #d9e8d2, 3px 5px 0 currentColor; }
.chat { background: #dcece4; color: #286452; }
.chat i { width: 25px; height: 18px; border: 2px solid; border-radius: 6px; }
.chat i::after { content: ""; position: absolute; bottom: -5px; left: 3px; width: 7px; height: 7px; background: #dcece4; border: solid currentColor; border-width: 0 0 2px 2px; transform: skewY(-32deg); }
.chat i::before { content: ""; position: absolute; top: 5px; left: 4px; height: 2px; width: 13px; background: currentColor; }
.robux { background: #eee8ca; color: #71612c; }
.robux i { width: 23px; height: 23px; border: 2px solid; border-radius: 50%; display: grid; place-items: center; box-shadow: 2px 1px 0 currentColor; }
.robux i::after { content: ""; width: 7px; height: 7px; border: 1.5px solid; transform: rotate(45deg); }
h3 { margin-top: 20px; font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.15; letter-spacing: -.045em; }
.card p { margin: 8px 0 24px; color: var(--soft); }
.more { margin-top: auto; align-self: flex-start; background: #e8f0df; color: #254c34; }
.more:hover { background: #dae8ce; }
footer { border-top: 1px solid var(--line); padding-block: 20px; color: var(--soft); font-size: .94rem; }
.crumb { display: inline-block; margin: 8px 0 20px; }
.detail { max-width: 800px; background: var(--surface); padding: clamp(24px, 5vw, 60px); border: 1px solid var(--line); border-radius: 20px; }
.detail h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); margin-block: 16px; line-height: 1; letter-spacing: -.06em; }
.detail .lead { font-size: 1.13rem; }
.detail .status { margin-block: 24px; padding: 12px 16px; background: #edf2e8; border-left: 3px solid #718a65; }
.note { max-width: 65ch; }
.note a { display: inline-block; margin-top: 12px; color: var(--green); font-weight: 650; }
@media (max-width: 790px) {
  .wrap { width: calc(100% - 36px); }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .card p { margin-bottom: 16px; }
  h3 { margin-top: 12px; }
  .hero::after { background: linear-gradient(90deg,#103829 12%, rgba(16,56,41,.91) 37%, rgba(16,56,41,.35) 77%, rgba(16,56,41,.15)); }
}
@media (max-width: 520px) {
  .bar { min-height: 60px; }
  .catlink { display: none; }
  .brand { gap: 10px; font-size: 1.05rem; }
  .channel { padding: 6px 12px; }
  main { padding-block: 16px 36px; }
  .hero { border-radius: 14px; }
  .hero-text { padding: 26px 20px 112px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .scene { width: 100%; height: 78%; top: auto; bottom: 0; object-position: center bottom; }
  .hero::after { background: linear-gradient(180deg,#103829 16%, rgba(16,56,41,.97) 34%, rgba(16,56,41,.75) 53%, rgba(16,56,41,.16) 82%, transparent); }
  .hero-text p { margin-block: 14px 18px; }
  #catalog { margin-top: 28px; }
  .section-head { align-items: flex-start; flex-direction: column; }
}

[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #48995d; outline-offset: 3px; }
.footer-links, .choices { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; }
footer { flex-wrap: wrap; }
.text-button { border: 0; background: transparent; padding: 6px 0; text-decoration: underline; text-underline-offset: .23em; }
#motion { position: absolute; right: 16px; bottom: 16px; padding: 7px 12px; min-height: 36px; border: 1px solid #9fae9c; border-radius: 20px; background: #19392e; color: #f3faed; font-size: .875rem; }
#motion::before { content: "Ⅱ"; margin-right: 7px; }
html[data-motion="paused"] #motion::before { content: "▷"; }
#cookie-panel { position: fixed; z-index: 4; bottom: max(16px, env(safe-area-inset-bottom)); right: 20px; width: min(390px, calc(100% - 40px)); max-height: 80vh; overflow: auto; padding: 22px; background: #fbfdf6; border: 1px solid #becfb9; border-top: 3px solid #457450; border-radius: 16px; box-shadow: 0 12px 44px #102f2229; }
#cookie-panel h2 { font-size: 1.35rem; letter-spacing: -.035em; }
#cookie-panel p { margin: 8px 0 16px; color: var(--soft); line-height: 1.45; }
.choices { gap: 8px; }
.choices button { flex: 1 1 auto; min-height: 42px; border-radius: 8px; border: 1px solid #b1c6ac; background: #f1f5ea; font-size: .94rem; font-weight: 650; }
#accept { color: #fff; background: var(--green); border-color: var(--green); }
#accept:hover { background: #1c4932; }
#reject:hover { background: #e2ecda; }
@keyframes forest-pan { from { transform: scale(1.035); } to { transform: scale(1.095) translateX(-.8%); } }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  html[data-motion] .scene { animation: forest-pan 20s ease-in-out infinite alternate; animation-play-state: paused; }
  html[data-motion="running"] .scene { animation-play-state: running; }
  .hero-text, #cookie-panel:not([hidden]) { animation: settle .32s ease-out both; }
  :is(.primary, .more, .channel, .choices button, #motion, .mark, .tile) {
    transition: transform .18s ease-out, background-color .18s, box-shadow .18s;
  }
  .card { transition: transform .22s ease-out, box-shadow .22s, border-color .22s; }
  @media (hover: hover) {
    .brand:hover .mark { transform: rotate(0) scale(1.06); }
    .card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px #163c2610; }
    .card:hover .tile { transform: rotate(-4deg); }
    :is(.more,.channel,.primary,.choices button,#motion):hover { transform: translateY(-2px); }
  }
  :is(.more,.channel,.primary,.choices button,#motion):active { transform: scale(.97); }
}
@media (max-width: 520px) {
  #cookie-panel { right: 12px; width: calc(100% - 24px); padding: 16px; }
  .footer-links { gap: 8px 14px; }
}
/* One link per card, with a pointer target covering the entire surface. */
.card { position: relative; }
.more::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.card:focus-within { outline: 2px solid var(--green); outline-offset: 3px; }
.card:hover .more { background: #dae8ce; }
.card .more:is(:hover, :active) { transform: none; }
.hero h1 { letter-spacing: -.045em; line-height: 1.02; }
.card h3 { letter-spacing: -.025em; }
@media (max-width: 520px) {
  .hero-text { padding-bottom: 88px; }
}

.related { display: none; }
@media (min-width: 1024px) {
  .hero-text p { font-size: 1.125rem; line-height: 1.5; }
  .cards { gap: 20px; }
  .card { padding: 28px; }
  .card .more { border: 1px solid #c9dbc1; }
  .reading-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(248px, 1fr); gap: 28px; align-items: start; }
  .reading-layout .detail { max-width: none; }
  .note p { max-width: 58ch; line-height: 1.65; }
  .related { display: block; padding: 24px; border-top: 3px solid var(--green); background: var(--surface); border-radius: 4px 4px 16px 16px; }
  .related h2 { font-size: 1.25rem; letter-spacing: -.025em; margin-bottom: 12px; }
  .related a { display: flex; align-items: center; gap: 16px; padding: 16px 4px; text-decoration: none; font-weight: 650; }
  .related a + a { border-top: 1px solid var(--line); }
  .related small { display: block; color: var(--soft); font-size: .875rem; font-weight: 400; }
  .related a:hover { color: var(--green); text-decoration: underline; }
  #cookie-panel { position: static; width: min(1200px, calc(100% - 72px)); margin: 0 auto 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px; border: 1px solid var(--line); box-shadow: none; }
  #cookie-panel h2 { font-size: 1rem; }
  #cookie-panel p { margin: 4px 0 0; }
  #cookie-panel .choices button { padding-inline: 16px; }
}
