/* The daily route is factual; biome artwork is expressly illustrative. */
.mode-gate { display: block; overflow-y: auto; background: #0c1413; color: #e4ebe1; }
.mode-gate::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 55% 25%, #26352c40, transparent 65%); }
.home-page { position: relative; width: min(1560px, 100%); margin: 0 auto; padding: 0 clamp(24px, 4.2vw, 72px); }
.home-header { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 105px; border-bottom: 1px solid #dce6d812; gap: 24px; }
.home-header .gate-brand { justify-content: flex-start; margin: 0; gap: 12px; }
.home-header .brand-mark { background: transparent; border: 1px solid #d6bf7450; width: 42px; height: 42px; border-radius: 50%; }
.home-header .gate-brand .brand-mark svg { width: 25px; height: 25px; }
.home-header .gate-brand strong { font-size: 15px; letter-spacing: .18em; }
.home-header .gate-brand small { display: block; font-size: 10px; font-weight: 400; letter-spacing: .15em; margin-top: 5px; color: #84988c; }
.home-actions { display: flex; align-items: center; gap: 24px; }
.home-actions button, .home-open-replay { font: inherit; font-size: 12px; cursor: pointer; }
.home-live { display: flex; align-items: center; gap: 9px; color: #b3c0b7; background: transparent; border: 0; padding: 10px 0; }
.home-live i { width: 5px; height: 5px; border-radius: 50%; background: #829289; }
.home-live.has-runs i { background: #bdd88a; box-shadow: 0 0 10px #bdd88a55; }
.home-live-count { font-size: 10px; color: #798b81; font-variant-numeric: tabular-nums; }
.home-live:hover { color: #f0e2b3; }
.home-replay { display: flex; align-items: center; gap: 32px; padding: 11px 17px; border: 1px solid #aeb99544; border-radius: 5px; background: #d6dfbd0a; color: #e1e7d2; }
.home-replay:hover { background: #d6dfbd18; border-color: #cfce9a88; }
.home-replay span { color: #cfc395; font-size: 16px; }
.home-live-popover { position: absolute; right: 160px; top: 82px; padding: 18px; width: min(370px, calc(100vw - 48px)); border: 1px solid #78876b50; border-radius: 8px; background: #14201fee; box-shadow: 0 20px 50px #0006; z-index: 8; text-align: left; font-size: 12px; }
.home-live-popover[hidden], .home-live-popover [hidden] { display: none; }
.home-live-popover p { margin: 0; }
.home-live-popover .gate-live-row { font-size: 12px; border-width: 1px; border-radius: 5px; }
.home-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(35px, 4.5vh, 65px) 0 33px; }
.home-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 9px; font-weight: 500; letter-spacing: .22em; color: #b3be9b; }
.home-eyebrow > span { width: 16px; height: 1px; background: #b3be9b; }
.home-eyebrow b { font-weight: 400; letter-spacing: .07em; padding-left: 12px; margin-left: 3px; border-left: 1px solid #6b7d6355; color: #81978a; }
.home-intro h1 { margin: 0; font-size: clamp(28px, 3.2vw, 48px); font-weight: 450; line-height: 1.3; letter-spacing: .045em; }
.home-intro h1 em { font-style: normal; color: #b7c19f; font-weight: 350; }
.home-description { color: #81968a; font-size: 12px; margin: 15px 0 0; line-height: 1.8; letter-spacing: .04em; }
.home-date-block { text-align: right; flex-shrink: 0; padding-bottom: 3px; }
.home-date-block time { display: block; font-size: 40px; line-height: 1; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; color: #dbddc7; }
.home-date-block span { display: block; color: #819187; font-size: 10px; letter-spacing: .08em; margin-top: 12px; }
.home-route { border-top: 1px solid #a7b89c22; }
.home-route-heading { min-height: 51px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 10px; color: #a1b0a3; letter-spacing: .05em; }
.home-countdown { display: flex; align-items: center; gap: 7px; color: #819288; font-variant-numeric: tabular-nums; }
.home-countdown i { border: 1px solid #97a28a; width: 9px; height: 9px; border-radius: 50%; position: relative; }
.home-countdown i::after { content: ""; position: absolute; width: 2px; height: 3px; left: 3px; top: 1px; border-left: 1px solid #97a28a; border-bottom: 1px solid #97a28a; }
.home-countdown button { border: 0; background: none; color: #a8b49c; cursor: pointer; font-size: 18px; padding: 5px 0 5px 6px; }
.home-countdown button:disabled { opacity: .4; cursor: wait; }
.home-landscape { position: relative; min-height: 370px; height: clamp(420px, 52vh, 650px); isolation: isolate; overflow: hidden; }
.home-chapters { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 100%; }
.home-chapter { --chapter-tint: #d6c190; position: relative; min-width: 0; overflow: hidden; border-left: 1px solid #d8e2c614; background: linear-gradient(180deg, #23353222, transparent 60%); }
.home-chapter:last-child { border-right: 1px solid #d8e2c614; }
.home-chapter[data-theme="roots"], .home-chapter[data-theme="tropics"] { --chapter-tint: #a9bb83; }
.home-chapter[data-theme="alpine"] { --chapter-tint: #a9cbd0; }
.home-chapter[data-theme="mesa"] { --chapter-tint: #cf9f74; }
.home-chapter[data-theme="swamp"] { --chapter-tint: #a5b59a; }
.home-chapter[data-theme="volcano"] { --chapter-tint: #cb977a; }
.home-chapter::before { content: ""; pointer-events: none; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--chapter-tint) 11%, transparent), transparent 74%); }
.home-chapter::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; background: linear-gradient(180deg, #0c141330 0%, transparent 18%, transparent 55%, #0c1413aa 82%, #0c1413f2 100%); }
.home-chapter-button { appearance: none; width: 100%; height: 100%; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; padding: 0; }
.home-chapter-button:disabled { cursor: default; }
.home-chapter-button:focus-visible { outline: 1px solid #d4d4a1; outline-offset: -3px; }
.home-chapter-number { position: absolute; top: 20px; left: 24px; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .15em; color: #f1e8cb; z-index: 4; display: flex; align-items: center; gap: 12px; text-shadow: 0 1px 8px #0006; }
.home-chapter-number i { height: 1px; width: 20px; background: currentColor; opacity: .3; }
.home-model-status { position: absolute; z-index: 4; top: 21px; right: 18px; color: #84948a; font-size: 9px; opacity: .8; }
.home-chapter-copy { position: absolute; left: 24px; right: 22px; bottom: 24px; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.home-biome-en { font-size: 9px; letter-spacing: .24em; color: var(--chapter-tint); opacity: .95; }
.home-biome-title { font-size: clamp(23px, 2.1vw, 32px); letter-spacing: .1em; font-weight: 450; color: #e0e7d8; }
.home-biome-detail { color: #b4c0aa; font-size: 10px; line-height: 1.5; }
.home-chapter-link { display: flex; align-items: center; gap: 30px; border-top: 1px solid #9bae971c; width: 100%; padding-top: 13px; margin-top: 8px; font-size: 10px; color: #84988a; transition: color .18s; }
.home-chapter-link b { font-size: 16px; font-weight: 400; margin-left: auto; color: var(--chapter-tint); }
.home-chapter:has(button:not(:disabled):hover) .home-chapter-link { color: #e6e5ca; }
.home-chapter:has(button:not(:disabled):hover) { background-color: #d4dfb605; }
/* Lift the illustrated creatures above the copy without a hard image-card edge. */
.home-survey { position: absolute; inset: 0; width: 100%; height: calc(100% - 110px); object-fit: cover; object-position: center 60%; mask-image: linear-gradient(#000 80%, transparent); opacity: 1; transform: scale(1.015); transition: transform .7s ease, opacity .4s; }
.home-chapter:has(button:not(:disabled):hover) .home-survey { transform: scale(1.055); opacity: 1; }
.home-route-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #a7b89c22; min-height: 50px; color: #697e70; font-size: 10px; line-height: 1.7; }
.home-route-footer p { margin: 0; }
.home-finale { border-top: 1px solid #a7b89c22; border-bottom: 1px solid #a7b89c22; }
.home-finale[hidden] { display: none; }
.home-finale summary { display: flex; align-items: center; gap: 17px; padding: 13px 0; list-style: none; cursor: pointer; }
.home-finale summary::-webkit-details-marker { display: none; }
.home-finale summary > img { width: 46px; height: 56px; object-fit: cover; border-radius: 2px; opacity: .85; }
.home-finale-label { display: grid; gap: 7px; }
.home-finale-label small { font-size: 9px; letter-spacing: .13em; color: #7f9585; }
.home-finale-label strong { font-size: 16px; font-weight: 400; letter-spacing: .1em; color: #c2c8a8; }
.home-finale-expand { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 10px; color: #94a58d; }
.home-finale-expand b { font-size: 17px; font-weight: 400; transition: transform .2s; }
.home-finale[open] .home-finale-expand b { transform: rotate(45deg); }
.home-finale figure { display: flex; align-items: center; gap: clamp(20px, 5vw, 75px); margin: 0; padding: 10px 0 28px; }
.home-finale figure > img { width: min(42%, 280px); height: auto; border-radius: 2px; }
.home-finale figcaption { max-width: 340px; }
.home-finale figcaption small { font-size: 9px; letter-spacing: .12em; color: #c3b999; }
.home-finale figcaption p { color: #b2c0ab; font-size: clamp(12px, 1.5vw, 18px); line-height: 2; margin: 18px 0; }
.home-finale figcaption > span { color: #708473; font-size: 9px; }
.home-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0 35px; }
.home-bottom > div { display: flex; gap: 18px; align-items: center; }
.home-coordinate { color: #aeb891; font-size: 29px; font-family: Georgia, serif; }
.home-bottom p { margin: 0; display: grid; gap: 7px; }
.home-bottom strong { font-weight: 400; font-size: 13px; letter-spacing: .06em; color: #b9c4ae; }
.home-bottom p span { font-size: 10px; color: #6d8575; }
.home-open-replay { border: 0; border-bottom: 1px solid #c8cdad55; color: #c8cdad; padding: 9px 0; background: transparent; }
.home-open-replay span { margin-left: 28px; }
.home-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 18px 0 24px; border-top: 1px solid #dce6d80b; color: #4f6758; font-size: 9px; }
.home-footer details { margin-right: auto; }
.home-footer summary { cursor: pointer; list-style: none; }
.home-footer details button { background: transparent; border: 0; font-size: 10px; padding: 10px 0; color: #849785; cursor: pointer; }
.home-page button:focus-visible, .home-page summary:focus-visible { outline: 2px solid #d6c98c; outline-offset: 4px; }
@media (min-width: 1700px) { .home-landscape { height: 53vh; } }
/* iPad portrait (including the larger Pro); landscape keeps the desktop four columns.
   Phones and narrow Split View windows have no dedicated layout. */
@media (min-width: 744px) and (max-width: 1100px) and (orientation: portrait) {
  .home-header { min-height: 96px; }
  .home-intro { padding-top: 36px; }
  .home-date-block time { font-size: 36px; }
  .home-landscape { height: clamp(900px, 84vh, 1150px); }
  .home-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); }
  .home-chapter { border-bottom: 1px solid #d8e2c614; }
  .home-chapter:nth-child(2) { border-right: 1px solid #d8e2c614; }
  .home-biome-title { font-size: 30px; }
  .home-biome-detail { font-size: 12px; }
  .home-chapter-link { font-size: 12px; }
}
@media (pointer: coarse) and (min-width: 744px) {
  .home-actions button, .home-open-replay, .home-countdown button { min-height: 44px; }
  .home-countdown button { min-width: 44px; }
  .home-chapter:has(button:not(:disabled):hover) .home-survey { transform: scale(1.015); }
}

@media (prefers-reduced-motion: reduce) { .home-page * { transition: none !important; } }
