/* Minibia Idle on minibia.com's look (owner 2026-11-04): only what differs from minibia.com's own stylesheets (site/*.css,
   recoloured to Idle's blue), loaded last. Idle's colours are website.css's: --bg #071521, --panel #0c2336,
   --line #294153, --gold #e9c575. */
html { background: #071521; }
body:has(> .site-header), .home-page { --site-background: #071521; --site-surface: #0c2336; --bg-dark: #071521; --home-surface: #0c2336; --home-edge: #294153; background: #071521; }
:root { --serif: 'Cinzel', Georgia, serif; }
/* minibia.com's headings: Cinzel, bold (website.css set Idle's old 500 after them). */
h1, h2, h3 { font-weight: 700; }

/* The header and footer carry Idle's title instead of minibia.com's word mark. */
.idle-brand img { display: block; height: 50px; width: auto; }
.idle-footer-brand img { display: block; height: 52px; width: auto; }
.idle-feature-welcome { background: url('/img/brand/hunting-dusk.webp') 30% 70% / cover !important; }
.idle-feature-online { background: url('/img/home/poster-naga-warriors.webp') center / cover !important; }

/* A gameplay clip's own Play / Pause (website-home.js). */
.hm-play { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #b4995d99; border-radius: 50%; background: #071521d9; color: #fff; cursor: pointer; }
.hm-play[hidden] { display: none; }
.hm-play:hover { border-color: #e9c575; }
.hm-play-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hm-play-icon { width: 12px; height: 12px; flex: none; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.hm-play[data-state="paused"] .hm-play-icon { background: currentColor; clip-path: polygon(10% 0, 100% 50%, 10% 100%); }

/* The Carlin harbour hero (owner 2026-11-24, Codex's handoff carlin-harbour-header/index.html): one picture of the shore
   house, the words above the gold button, the BUTTON ITSELF in the middle of the picture (rows 1fr auto 1fr), Log in under
   it, a soft dark shade behind the words. The picture keeps its own shape (1408 x 760) and never passes the first screen: 86 px is the site header at its
   tallest (68 to 74 px on smaller screens), and 92 px more leaves the Latest news bar under it in the first screen, as
   on minibia.com (owner 2026-11-24: "the latest news should also be visible a bit how the main minibia website does it"). */
.idle-harbour { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; grid-template-rows: 1fr auto 1fr; width: 100%; aspect-ratio: 1408/760; max-height: calc(100svh - 86px - 92px); background: #101c27; color: #fff4df; text-align: center; }
.idle-harbour-art, .idle-harbour-loop, .idle-harbour::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.idle-harbour-art, .idle-harbour-loop { z-index: -2; display: block; object-fit: cover; object-position: 50% 50%; }
/* the loop lies over the still from the moment it plays (website-home.js) */
.idle-harbour-loop { opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.idle-harbour-loop.is-on { opacity: 1; }
.idle-harbour::before { content: ''; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 39% 37% at 50% 44%, #131b22eb 0%, #162028b3 40%, #12202c4d 68%, transparent 100%); }
/* the picture melts into the page at its lower edge (owner 2026-11-24: "can this be a soft overflow instead of a hard cut") */
.idle-harbour::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: clamp(56px, 16%, 130px); pointer-events: none; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--site-background, #071521) 55%, transparent) 55%, var(--site-background, #071521) 100%); }
.idle-harbour-intro { align-self: end; padding: 0 12px clamp(10px, 1.65vw, 25px); text-shadow: 0 1px 4px #10161c, 0 1px 10px #131920; }
.idle-harbour h1 { margin: 0; font: 400 clamp(28px, 3.7vw, 60px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.045em; color: #fff4df; }
/* the slogan is two lines since 2026-11-24 ("Hunt, Build, Collect, and create / your own unique Tibia World"): the second line the gold one */
.idle-harbour h1 em { display: block; color: #f9d697; font-style: italic; white-space: nowrap; }
.idle-harbour-intro p { margin: clamp(7px, 1vw, 14px) 0 0; color: #fff3df; font-size: clamp(14px, 1.15vw, 19px); line-height: 1.42; text-wrap: balance; }
.idle-harbour-go { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding: 0 32px; border: 1px solid #f6da98; border-radius: 5px; background: linear-gradient(#f8dc98, #e5bb6b); color: #302417; font: 750 17px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-decoration: none; box-shadow: 0 3px 0 #855e32, 0 4px 12px #0c10186b; }
.idle-harbour-go:hover { background: #ffe1a0; color: #302417; }
.idle-harbour-in { align-self: start; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 3px; padding-inline: 10px; color: #fff5e3; font-size: 14px; font-weight: 600; text-decoration: none; text-shadow: 0 1px 3px #090f17, 0 1px 8px #101620; }
.idle-harbour-in:hover { color: #ffdb8c; }
/* "Join N other players" under Play now (owner 2026-11-28): in the third row with the log-in line, which moves down for it */
.idle-harbour-join { grid-row: 3; grid-column: 1; align-self: start; margin: 12px 0 0; color: #fff3df; font-size: 15px; line-height: 1.3; text-shadow: 0 1px 3px #090f17, 0 1px 8px #101620; }
.idle-harbour-join[hidden] { display: none; }
.idle-harbour-join strong { color: #ffdb8c; font-weight: 700; }
.idle-harbour[data-has-join] .idle-harbour-in { grid-row: 3; grid-column: 1; margin-top: 36px; }
/* on a phone the line is a little smaller and the log-in line follows it more closely (seen at 390, 360 and 320 px, 2026-11-28) */
@media (max-width: 760px) { .idle-harbour-join { margin-top: 8px; font-size: 13px; } .idle-harbour[data-has-join] .idle-harbour-in { margin-top: 26px; } }
.idle-harbour-in u { text-underline-offset: 3px; }
.idle-harbour :is(a):focus-visible { outline: 3px solid #ffe39e; outline-offset: 4px; }
@media (max-aspect-ratio: 1/1) { .idle-harbour { aspect-ratio: 100/76; } }   /* room for the two-line slogan */
.idle-harbour + main { position: relative; }

/* How it works: a desktop and a phone in minibia.com's device frames (owner: "show case mobile and desktop views not
   just mobile"). */
.idle-devices .device-frame-desktop, .idle-devices .device-frame-portrait { background: #071521; border-color: #4f6b82; }
.idle-devices .device-frame-portrait { width: 25%; bottom: 0; }
/* The laptop's build screen moves with the phone beside it (2026-11-25, owner: "can we make the laptop one animated too?"):
   its clip lies over the still, which is the clip's own frame, and shows once it has a frame to show. */
.idle-devices .device-desktop-screen { position: relative; display: block; line-height: 0; }
.idle-devices .device-desktop-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; opacity: 0; pointer-events: none; }
.idle-devices .device-desktop-screen video.has-frame { opacity: 1; }
.idle-devices .home-device-screen { aspect-ratio: 390 / 760; }
.idle-devices .home-device-screen video { opacity: 1; object-fit: cover; pointer-events: auto; }
/* A 44 px tap area around a smaller button, so it does not cover the little phone's screen. */
.idle-devices .hm-play { right: 1px; bottom: 1px; width: 44px; height: 44px; border-color: transparent; background: transparent; }
.idle-devices .hm-play::before { content: ''; position: absolute; inset: 6px; border: 1px solid #b4995d99; border-radius: 50%; background: #071521d9; }
.idle-devices .hm-play:hover::before { border-color: #e9c575; }
.idle-devices .hm-play .hm-play-icon { position: relative; }
.idle-emblem { display: grid; place-items: center; }
.idle-emblem img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 3px 6px #0009); }

/* Codex's paintings keep their figures in the upper half of a card and the right of a guide cover. */
.home-story .home-story-image { object-position: center 18%; }
.guide-cover-art img { object-position: right center; }
.idle-read > span { font-size: 1.3rem; line-height: 1; }

/* While you're away (owner 2026-11-25, Codex's mock-up while-youre-away): the clock on the left, the hunt and the
   alchemy station on the right; one column from 800 px down, the clock beside its words, and under them from 560 px.
   The heading in the page's title face, as the hunt cards below. */
.away-banner { display: grid; grid-template-columns: 36% 64%; overflow: hidden; border: 1px solid #405354; border-radius: 15px; background: #102530; color: #f7edd7; }
.away-clock { display: flex; flex-direction: column; justify-content: center; padding: 24px clamp(18px, 2.5vw, 33px); background: linear-gradient(145deg, #193440, #0f232e 75%); }
.idle-away h2 { margin: 0; font: 700 clamp(1.6rem, 2.6vw, 2.25rem)/1.1 'Cinzel', Georgia, serif; letter-spacing: -.02em; color: #fff1d0; }
.away-intro { max-width: 38ch; margin: 10px 0 15px; color: #c1ced1; font-size: 14px; line-height: 1.45; }
.away-timeframe { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.away-timeframe label { color: #f0e6d0; font-size: 13px; font-weight: 600; }
.away-timeframe output { color: #f6d494; font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; }
.away-slider { position: relative; display: grid; align-items: center; min-height: 44px; margin: -6px 0 -7px; }   /* a 44 px touch target round the 5 px track */
.away-slider[hidden], .away-times[hidden] { display: none; }
.away-slider input { --fill: 66.6667%; appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.idle-away .away-slider input[type="range"] { border: 0; border-radius: 0; padding: 0; min-height: 0; box-shadow: none; background: transparent; }   /* the site's field look is for text inputs */
.away-slider input::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(to right, #d0a15a 0%, #edcf8b var(--fill), #415761 var(--fill), #415761); }
.away-slider input::-moz-range-track { height: 5px; border-radius: 3px; background: #415761; }
.away-slider input::-moz-range-progress { height: 5px; border-radius: 3px; background: #ddba78; }
.away-slider input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 19px; height: 19px; margin-top: -7px; border: 3px solid #654c2f; border-radius: 50%; background: #f3db9c; box-shadow: 0 0 0 1px #dabb80; }
.away-slider input::-moz-range-thumb { width: 15px; height: 15px; border: 2px solid #654c2f; border-radius: 50%; background: #f3db9c; box-shadow: 0 0 0 1px #dabb80; }
.away-slider input:focus-visible { outline: 2px solid #f0cc80; outline-offset: 1px; border-radius: 5px; }
.away-times { display: flex; justify-content: space-between; color: #a8bac2; font-size: 11px; font-variant-numeric: tabular-nums; }
.away-scenes { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-width: 0; }
.away-scene { position: relative; isolation: isolate; overflow: hidden; min-height: 230px; border-left: 1px solid #495456; background: #142831; }
.away-shot { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.away-home .away-shot { object-position: 46% 53%; }
.away-end { display: none; }
.away-banner.is-finished .away-field .away-end { display: block; }
.away-banner.is-finished .away-field video { visibility: hidden; }
.away-scene::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #050e1405 20%, #050e1414 40%, #050e14b3 70%, #050e14f5 100%); }
.away-caption { position: absolute; right: 12px; bottom: 19px; left: 20px; text-shadow: 0 1px 3px #031015; }
.away-scene h3 { margin: 0 0 3px; color: #f5d593; font: 650 13px/1.35 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: .012em; }
.away-amount { margin: 0; color: #fff3d8; font: 500 clamp(19px, 2vw, 27px)/1.15 Georgia, serif; letter-spacing: -.025em; font-variant-numeric: lining-nums tabular-nums; }
.away-detail { display: block; margin-top: 4px; color: #d0dbdc; font-size: 12px; }
.away-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 800px) {
  .away-banner { grid-template-columns: 1fr; }
  .away-clock { display: grid; grid-template-columns: 1fr minmax(235px, 40%); gap: 4px 28px; align-items: center; padding: 16px 22px; }
  .away-clock .away-intro { margin: 6px 0 0; }
  .away-control { grid-column: 2; grid-row: 1 / 3; }
  .away-scene { min-height: 185px; border-left: none; border-top: 1px solid #495456; }
  .away-scene + .away-scene { border-left: 1px solid #495456; }
}
@media (max-width: 560px) {
  .away-banner { max-width: 510px; margin-inline: auto; }
  .away-clock { display: block; padding: 16px 17px 12px; }
  .away-intro { font-size: 13px; }
  .away-control { margin-top: 10px; }
  .away-timeframe output { font-size: 17px; }
  .away-scene { min-height: 174px; }
  .away-caption { right: 6px; bottom: 12px; left: 11px; }
  .away-scene h3 { font-size: 11px; }
  .away-amount { font-size: 19px; }
  .away-detail { font-size: 11px; line-height: 1.25; }
  .away-scene::after { background: linear-gradient(180deg, transparent 20%, #050e1424 36%, #050e14cf 68%, #050e14f7 100%); }
}
@media (max-width: 400px) {
  .away-caption { right: 5px; left: 9px; }
  .away-scene h3 { font-size: 10.5px; }
  .away-amount { font-size: 17px; }
  .away-detail { font-size: 10.5px; }
}


/* The questions: minibia.com's panels, one question each. */
.idle-faq-list { display: grid; gap: 10px; }
.idle-faq-item { border: 1px solid #294153; border-radius: 8px; background: #0c2336; }
.idle-faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 20px; cursor: pointer; list-style: none; color: #f1e9d7; font-weight: 600; font-size: 15px; }
.idle-faq-item summary::-webkit-details-marker { display: none; }
.idle-faq-mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #e9c57566; border-radius: 50%; color: #e9c575; font-size: 18px; line-height: 1; transition: transform .2s; }
.idle-faq-item[open] .idle-faq-mark { transform: rotate(45deg); }
.idle-faq-item p { margin: 0; padding: 0 20px 18px; color: #c8d3dc; font-size: 15px; line-height: 1.7; }
.idle-capture-note { margin: 8px 0 56px; color: #8fa3b3; font-size: 12px; text-align: center; }

/* minibia.com styles every <nav> as its menu bar; Idle's own in-page navigation (the guide's chapters) keeps its own
   look. Same weight as minibia.com's rules, so Idle's classes (website.css) still win over these. */
nav:where(:not(.site-nav)) { background: none; border-bottom: 0; box-shadow: none; padding: 0; }
nav:where(:not(.site-nav)) a { padding: 0; white-space: normal; border: 0; border-radius: 0; font-family: inherit; font-size: inherit; font-weight: inherit; text-transform: none; letter-spacing: normal; transition: none; }
nav:where(:not(.site-nav)) a:hover { background: none; border-color: transparent; text-shadow: none; }

/* Table headings stay on one line in Cinzel ("Rank" broke in two). */
th { white-space: nowrap; }

/* The Shop button is a link to the shop, not a menu: no caret. */
.site-shell .site-shop > a.nav-premium::after { display: none; }

/* The shop's painted header, minibia.com's store front: Codex's merchant painting, the words on its calm left; on a
   phone the painting on top and the words under it. */
main:has(> .idle-store-hero:first-child) { padding-top: 0; }   /* the painting starts under the header */
.idle-store-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 380px; display: flex; align-items: center; border-bottom: 1px solid #294153; }
.idle-store-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.idle-store-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #071521f2 0%, #071521cc 32%, #07152140 62%, transparent 100%), linear-gradient(180deg, transparent 70%, #071521 100%); }
.idle-store-hero .wrap { width: min(1160px, 100%); margin: 0 auto; padding: 56px 24px 48px; box-sizing: border-box; }
.idle-store-hero .eyebrow { margin: 0 0 12px; }
.idle-store-hero h1 { margin: 0 0 14px; font: 700 clamp(30px, 4vw, 48px)/1.15 Cinzel, Georgia, serif; color: #f1e9d7; text-shadow: 0 2px 8px #000a; }
.idle-store-hero .lede { max-width: 430px; margin: 0 0 18px; color: #dfe7ee; text-shadow: 0 1px 4px #000c; }
.idle-store-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #f2c96a; font-weight: 600; text-decoration: none; }
.idle-store-go:hover { color: #ffe0a0; }
@media (max-width: 700px) {
  .idle-store-hero { display: block; min-height: 0; }
  .idle-store-hero::before { display: none; }
  .idle-store-hero picture { position: relative; display: block; }
  .idle-store-hero picture::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #071521 100%); }
  .idle-store-hero img { position: static; display: block; height: auto; aspect-ratio: 4 / 3; object-position: 85% 40%; }
  .idle-store-hero .wrap { padding: 4px 16px 28px; }
}

/* The account page (site/account.css is minibia.com's): what Idle adds to it, under minibia.com's own prefix so it wins
   over its rules. Its plain links (Forgot your password?, Back to sign in, Send a new code) are buttons, which
   minibia.com's form buttons would otherwise fill and stretch. */
body.account-page .site-header ~ main .account-section .account-text-link { display: block; width: auto; min-height: 44px; margin: 6px auto 0; padding: 8px 12px; background: none; border: 0; box-shadow: none; color: var(--text-secondary); font: 13px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; text-decoration: underline; text-underline-offset: 3px; }
body.account-page .site-header ~ main .account-section .account-text-link:hover { background: none; color: #f1e9d7; }
body.account-page .site-header ~ main .account-section .account-form-note { margin: 0 0 12px; }
body.account-page .site-header ~ main .account-new-panel p { margin: 0 0 18px; color: var(--text-secondary); line-height: 1.7; }
body.account-page .site-header ~ main .account-inline-link[href] { color: #e9c575; }
body.account-page .site-header ~ main .account-char-emblem.has-look { clip-path: none; border-top: 0; background: none; }
body.account-page .site-header ~ main .account-char-emblem img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
body.account-page .site-header ~ main .account-points { color: #e9c575; font-weight: 700; }
body.account-page .site-header ~ main .account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.account-page .site-header ~ main .account-actions button { margin: 0; }
body.account-page .site-header ~ main :is(.account-buy, .account-cta) { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid #edd293; border-radius: 5px; background: linear-gradient(140deg, #efd394, #d4af61); color: #071a29; font-size: 12px; font-weight: 700; text-decoration: none; }
body.account-page .site-header ~ main :is(.account-buy, .account-cta):hover { background: #f3db9e; }
body.account-page .site-header ~ main .account-character-world { display: block; margin-top: 2px; font-size: 12px; color: #8ea5b7; }
body.account-page .site-header ~ main .account-profile-arrow { color: #d3b773; }
/* A ticket's subject shrinks inside its row instead of pushing the row out of the page (a grid item keeps its
   content's width unless told otherwise). */
body.account-page .site-header ~ main .account-support-list :is(li, a) { min-width: 0; }
@media (max-width: 480px) {
  /* the four tabs on one line, the two sign-in buttons one under the other, a ticket's subject on its own line */
  body.account-page .site-header ~ main .account-tabs { flex-wrap: nowrap; justify-content: space-between; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  body.account-page .site-header ~ main .account-tab-btn { flex: 0 0 auto; padding-inline: 2px; white-space: nowrap; }
  body.account-page .site-header ~ main .oauth-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
  body.account-page .site-header ~ main .oauth-btn { min-height: 46px; }
  body.account-page .site-header ~ main .account-support-list a { flex-wrap: wrap; row-gap: 6px; }
  body.account-page .site-header ~ main .account-support-subject { flex: 1 1 100%; white-space: normal; }
}

/* The news page. */
.news-page { padding-bottom: 72px; }
.news-post { padding: 26px 28px; margin: 0 0 18px; border: 1px solid #294153; border-radius: 10px; background: #0c2336; scroll-margin-top: 24px; }
.news-post:first-of-type { border-color: #e9c57588; box-shadow: inset 0 0 0 1px #e9c5751c; }
.news-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 13px; color: #a8b9c7; }
.news-post-tag { padding: 2px 9px; border: 1px solid #e9c57566; border-radius: 99px; color: #e9c575; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.news-post h2 { margin: 0 0 10px; font: 700 clamp(20px, 2.4vw, 26px)/1.3 'Cinzel', Georgia, serif; color: #f1e9d7; text-shadow: none; }
.news-post:first-of-type h2 { font-size: clamp(24px, 3vw, 32px); }
.news-post h2 a { color: inherit; text-decoration: none; }
/* the patch notes come from Discord: their line breaks are kept (a list is a line per item), headings are bold */
.patch-notes-page .news-post p { white-space: pre-line; }
.patch-notes-page .news-post p strong { color: #f1e9d7; }
.news-post p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.75; color: #d5dee6; white-space: pre-line; }
.news-post p:last-child { margin-bottom: 0; }
.news-empty { padding: 32px 20px; color: #a8b9c7; text-align: center; }

@media (max-width: 600px) {
  .idle-brand img { height: 40px; }
  .idle-harbour::before { background: radial-gradient(ellipse 58% 45% at 50% 44%, #141c24eb 0%, #162028b5 48%, transparent 100%); }
  .idle-harbour-intro { padding-bottom: 10px; }
  .idle-harbour h1 { font-size: clamp(20px, 6vw, 34px); }
  .idle-harbour-intro p { max-width: 28ch; margin: 5px auto 0; font-size: 13px; line-height: 1.25; }
  .idle-harbour-go { min-height: 44px; padding-inline: 22px; font-size: 15px; }
  .idle-harbour-in { margin-top: 0; font-size: 12px; }
  .news-post { padding: 20px 18px; }
}
@media (max-width: 360px) {
  .idle-brand img { height: 33px; }
}

/* The admin page (/admin/, admin.js): minibia.com's panels in Idle's blue, its forms like the Support page's. */
.admin-page { padding-bottom: 72px; }
.admin-panel { padding: 32px; }
.admin-signin p { color: #c8d3dc; }
.admin-form { display: grid; gap: 14px; margin-top: 20px; }
.admin-signin .admin-form { max-width: 420px; }
.admin-form label { display: flex; flex-direction: column; gap: 7px; font-size: .8rem; font-weight: 700; color: #a8b9c7; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 400; }
.admin-form textarea { min-height: 160px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.admin-form .button { justify-self: start; }
.admin-bar, .admin-view-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-bar { margin-bottom: 20px; }
.admin-view-head { margin: 22px 0 8px; }
.admin-view-head h3 { margin: 0; font: 700 1.25rem/1.3 'Cinzel', Georgia, serif; color: #f1e9d7; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid #294153; }
.admin-tab { min-height: 44px; padding: 10px 18px; border: 1px solid #294153; border-radius: 6px; background: #0b2234; color: #c8d3dc; font: 600 14px/1.3 inherit; cursor: pointer; }
.admin-tab[aria-selected="true"] { border-color: #e9c575; background: #102b40; color: #f1e9d7; box-shadow: inset 0 0 0 1px #e9c5751c; }
.admin-hint, .admin-count { color: #8fa3b3; font-size: 13px; line-height: 1.6; }
.admin-message { margin: 14px 0 0; color: #f1e9d7; }
.admin-list, .admin-thread { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.admin-row { display: grid; gap: 4px; width: 100%; min-height: 56px; padding: 14px 16px; border: 1px solid #294153; border-radius: 8px; background: #0b2234; color: #f1e9d7; font: inherit; text-align: left; cursor: pointer; }
.admin-row:hover, .admin-row:focus-visible { border-color: #e9c57599; }
.admin-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-row-title { font-weight: 700; }
.admin-row-meta, .admin-post-meta { color: #a8b9c7; font-size: 13px; }
.admin-badge { padding: 2px 9px; border: 1px solid #e9c57566; border-radius: 99px; color: #e9c575; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.admin-empty { padding: 24px 16px; border: 1px dashed #294153; border-radius: 8px; color: #a8b9c7; text-align: center; }
.admin-actions, .admin-post-actions, .admin-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-post { padding: 14px 16px; border: 1px solid #294153; border-radius: 8px; background: #0b2234; }
.admin-post.is-first { border-color: #e9c57566; }
.admin-post-meta { margin: 0 0 8px; }
.admin-post-body p { margin: 0 0 10px; color: #d5dee6; line-height: 1.7; white-space: pre-line; }
.admin-post-actions { margin-top: 8px; }
.admin-reply { margin-top: 16px; }
.admin-preview { margin-top: 28px; }
.admin-preview h4 { margin: 0 0 10px; color: #e9c575; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.admin-preview-card { padding: 22px 24px; border: 1px solid #294153; border-radius: 10px; background: #0b2234; }
.admin-preview-meta { margin: 0 0 8px; color: #a8b9c7; font-size: 13px; }
.admin-preview-heading { margin: 0 0 10px; font: 700 22px/1.3 'Cinzel', Georgia, serif; color: #f1e9d7; }
#admin-preview-body p { margin: 0 0 10px; color: #d5dee6; line-height: 1.7; white-space: pre-line; }
@media (max-width: 600px) { .admin-panel { padding: 22px 16px; } }
/* A phone held sideways: the words, the button and Log in in the first screen. */
@media (max-height: 410px) and (orientation: landscape) {
  .idle-harbour { max-height: calc(100svh - 74px - 44px); }   /* the top of the news bar shows */
  .idle-harbour h1 { font-size: 21px; }
  .idle-harbour-intro { padding-bottom: 6px; }
  .idle-harbour-intro p { max-width: none; margin-top: 4px; font-size: 13px; line-height: 1.25; }
  .idle-harbour-go { min-height: 44px; }
}

/* THE HOME SECTION IS ONE CARD, A SLIDESHOW (owner 2026-11-22: "this should just need one card that explains everything in
   one illustration", "use a slideshow instead"): the four choice cards of site/guides.css are four dots inside the card. */
.home-page .guide-show { position: relative; margin: 0 0 20px; }
.home-page .guide-show .guide-slide { margin: 0; }
/* the dots sit under the words, at the card's lower left, off the picture (owner 2026-11-24, of my note that they lay over the
   Room for friends scene: "Do the left overs") */
.home-page .guide-show .guide-choices { position: absolute; left: clamp(14px, 4.3vw, 58px); bottom: 8px; z-index: 3; display: flex; grid-template-columns: none; gap: 0; width: auto; margin: 0; padding: 0 6px; border-radius: 999px; background: #071521b3; }
.home-page .guide-show .guide-choice { display: grid; place-items: center; flex: none; flex-direction: row; gap: 0; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none; cursor: pointer; }
.home-page .guide-show .guide-choice > span:first-child { display: block; width: 10px; height: 10px; border-radius: 999px; background: #8ea5b8; font-size: 0; box-shadow: 0 0 0 1px #06101999; }
.home-page .guide-show .guide-choice:hover > span:first-child { background: #d9e3ea; }
.home-page .guide-show .guide-choice[aria-pressed=true] { background: none; box-shadow: none; }
.home-page .guide-show .guide-choice[aria-pressed=true] > span:first-child { width: 24px; background: #f0d49a; }
@media(prefers-reduced-motion:no-preference) {
  .home-page .guide-show .guide-slide:not([hidden]) { animation: guide-slide-in .45s ease; }
  .home-page .guide-show .guide-choice > span:first-child { transition: width .2s ease, background .2s ease; }
}
@keyframes guide-slide-in { from { opacity: 0; } to { opacity: 1; } }
/* on a phone the card is small and its button and Play/Pause fill its foot: the dots go under the card */
@media(max-width:700px) { .home-page .guide-show .guide-choices { position: static; translate: none; width: max-content; margin: 4px auto 0; background: none; } }

/* Room for friends, the share-a-home slide (owner 2026-11-24, Codex's layout shared-home-guide/index.html): the words on the
   left on their own ground, the room with both housemates on the right, uncovered; on a phone the room on top and the
   words under it ("so you can see both players"). */
:is(#g-share,#g-stations) .guide-media { border-color: #6c6351; border-radius: 12px; background: #14232a; }
:is(#g-share,#g-stations) .guide-play { display: grid; grid-template-columns: 39% 61%; align-items: stretch; background: linear-gradient(110deg,#192b30,#101e25 53%); }
:is(#g-share,#g-stations) .guide-play::after { display: none; }
:is(#g-share,#g-stations) .guide-cover-art { position: relative; grid-column: 2; grid-row: 1; inset: auto; width: 100%; height: 100%; overflow: hidden; }
:is(#g-share,#g-stations) .guide-cover-art video { width: 100%; height: 100%; object-fit: cover; object-position: 49% 55%; }
:is(#g-share,#g-stations) .guide-cover-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,#15242b80,transparent 9%); }
:is(#g-share,#g-stations) .guide-cover-copy { grid-row: 1; grid-column: 1; position: relative; inset: auto; transform: none; width: auto; align-self: center; padding: 20px clamp(20px,4.3vw,64px); }
:is(#g-share,#g-stations) .guide-cover-kicker { display: block; margin: 0 0 18px; color: #e2c483; font: 600 11px/1.3 system-ui,sans-serif; letter-spacing: .15em; }
:is(#g-share,#g-stations) .guide-cover-title { display: block; max-width: 10ch; color: #fff3db; font: 400 clamp(34px,5.2vw,70px)/1.02 Georgia,serif; letter-spacing: -.045em; text-shadow: none; }
:is(#g-share,#g-stations) .guide-cover-description { display: block; margin-top: 20px; color: #d6dfdb; font-size: clamp(14px,1.26vw,18px); line-height: 1.5; max-width: 29ch; }
:is(#g-share,#g-stations) .guide-cover-watch { display: inline-flex; margin: 24px 0 0; padding: 9px 0; gap: .65em; min-height: 44px; background: none; border: none; border-radius: 0; box-shadow: none; color: #f5d38b; font-size: 15px; font-weight: 650; }
:is(#g-share,#g-stations) .guide-cover-watch::after { content: '→'; }
:is(#g-share,#g-stations) .guide-play:is(:hover,:focus-visible) .guide-cover-watch { color: #ffe6ae; text-decoration: underline; text-underline-offset: 4px; }
@media(max-width:700px) {
  :is(#g-share,#g-stations) .guide-media { aspect-ratio: auto; }
  :is(#g-share,#g-stations) .guide-play { position: relative; display: flex; flex-direction: column; }
  :is(#g-share,#g-stations) .guide-cover-art { height: auto; aspect-ratio: 1.6; }
  :is(#g-share,#g-stations) .guide-cover-art video { position: absolute; inset: 0; object-position: center 57%; }
  :is(#g-share,#g-stations) .guide-cover-art::after { background: linear-gradient(0deg,#15242b50,transparent 14%); }
  :is(#g-share,#g-stations) .guide-cover-copy { width: 100%; padding: 20px 23px 14px; }
  :is(#g-share,#g-stations) .guide-cover-kicker { font-size: 10px; margin-bottom: 8px; }
  :is(#g-share,#g-stations) .guide-cover-title { max-width: none; font-size: clamp(32px,7.4vw,44px); }
  :is(#g-share,#g-stations) .guide-cover-description { max-width: 43ch; margin-top: 10px; }
  :is(#g-share,#g-stations) .guide-cover-watch { margin-top: 4px; }
  :is(#g-share,#g-stations) .hm-play { top: 9px; bottom: auto; }
}

/* Keep the station, character and in-game delivery message visible. */
#g-stations .guide-media { aspect-ratio: auto; }
#g-stations .guide-play { position: relative; }
#g-stations .guide-cover-art { aspect-ratio: 4 / 3; height: auto; align-self: center; }
#g-stations .guide-cover-art video { object-fit: contain; }
#g-stations .guide-cover-copy { padding-bottom: 52px; }
#g-stations .guide-cover-title { font-size: clamp(32px,4.5vw,60px); max-width: 13ch; }
#g-stations .guide-cover-watch > span { display: none; }
#g-stations .guide-cover-watch:is(:hover,:focus-visible) { background: none; }
@media (max-width:700px) {
  #g-stations .guide-cover-copy { padding-bottom: 14px; }
}

/* THE GUIDE (guide.html, tools/idle/website-guide-content.js; 2026-11-25): one document that reads top to bottom, like a
   PDF (owner: "Make it flow better like a pdf"): a single column on a sheet, the contents at its head, every picture
   under the paragraph it belongs to. Chapter and figure numbers are counters, so the text holds no digits. */
.guide-layout.guide-doc { display: block; width: min(900px, calc(100% - 32px)); margin-top: 6px; padding: 52px clamp(20px, 6.5vw, 76px) 60px; border: 1px solid var(--line); border-radius: 4px; background: #0a1b2a; box-shadow: 0 26px 70px #0007; counter-reset: chapter figure; }
.guide-doc .guide-nav { position: static; max-height: none; overflow: visible; display: block; columns: 2; column-gap: 44px; margin: 0; padding: 0 0 26px; border: 0; border-bottom: 1px solid var(--line); counter-reset: toc; }
.guide-doc .guide-nav .eyebrow { column-span: all; margin-bottom: 14px; }
.guide-doc .guide-nav a { break-inside: avoid; counter-increment: toc; font-size: .92rem; }
.guide-doc .guide-nav a::before { content: counter(toc); flex: none; display: inline-block; width: 2.2em; color: var(--gold); font-variant-numeric: tabular-nums; }
@media (min-width: 681px) { .guide-doc .guide-nav a { display: block; padding: 5px 0; } }
.guide-doc .guide-content { margin-top: 0; }
.guide-doc .guide-chapter { padding: 44px 0 0; border-bottom: 0; counter-increment: chapter; scroll-margin-top: 18px; }
.guide-doc .guide-chapter h2 { margin: 0 0 18px; font-size: clamp(1.45rem, 2.7vw, 1.95rem); line-height: 1.2; }
.guide-doc .guide-chapter h2::before { content: counter(chapter) ". "; color: var(--gold); }
.guide-doc .guide-chapter h3 { margin: 32px 0 10px; font: 400 1.2rem/1.3 var(--serif); color: var(--ink); }
.guide-doc .guide-chapter p, .guide-doc .guide-chapter li { font-size: 1rem; line-height: 1.75; }
.guide-chapter b { color: var(--ink, #f0e8df); font-weight: 600; }
.guide-chapter .guide-list, .guide-chapter .guide-steps { margin: 6px 0 16px; padding-left: 22px; color: var(--muted); }
.guide-chapter .guide-list li, .guide-chapter .guide-steps li { padding: 3px 0 3px 6px; }
.guide-chapter p + p, .guide-chapter ul + p, .guide-chapter ol + p, .guide-chapter figure + p { margin-top: 14px; }
.guide-chapter .text-link { margin-top: 0; }
.guide-part { margin: 58px 0 -14px; padding: 26px 0 0; border-top: 1px solid var(--line); }
.guide-part .eyebrow { margin: 0; font-size: .78rem; }
.guide-part p:not(.eyebrow) { margin-top: 6px; color: var(--muted); font: italic 1.02rem/1.5 var(--serif); }
.guide-note { margin: 20px 0 6px; padding: 12px 16px; border-left: 2px solid #b4995d; border-radius: 0 6px 6px 0; background: #0d2234; }
.guide-doc .guide-note p { font-size: .93rem; line-height: 1.65; color: var(--muted); }
.guide-figure { margin: 24px 0 28px; counter-increment: figure; }
.guide-figure img, .guide-figure video { display: block; width: 100%; height: auto; border: 1px solid #2a4660; border-radius: 6px; background: #06111a; }
.guide-figure figcaption { margin-top: 9px; text-align: center; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.guide-figure figcaption::before { content: "Figure " counter(figure) ". "; color: var(--gold); }
.guide-figure.is-clip figcaption::before { content: "Clip, figure " counter(figure) ". "; }
.guide-doc .guide-content details p { font-size: .95rem; }
@media (max-width: 680px) {
  .guide-layout.guide-doc { width: calc(100% - 20px); padding: 28px 16px 36px; }
  .guide-doc .guide-nav { column-gap: 14px; }
  .guide-doc .guide-chapter { padding-top: 34px; }
  .guide-doc .guide-chapter p, .guide-doc .guide-chapter li { font-size: .95rem; }
  .guide-figure { margin: 18px -6px 22px; }
}
/* printed or saved as a PDF: the sheet alone, dark ink on white, a clip as its poster */
@media print {
  body:has(.guide-doc) { background: #fff; }
  body:has(.guide-doc) > :not(main), body:has(.guide-doc) main > :not(.guide-doc) { display: none; }
  .guide-layout.guide-doc { width: auto; padding: 0; border: 0; box-shadow: none; background: #fff; }
  .guide-doc, .guide-doc .guide-chapter p, .guide-doc .guide-chapter li, .guide-doc .guide-nav a, .guide-doc .guide-note p, .guide-figure figcaption, .guide-part p:not(.eyebrow), .guide-chapter .guide-list, .guide-chapter .guide-steps { color: #222; }
  .guide-doc .guide-chapter h2, .guide-doc .guide-chapter h3, .guide-chapter b, .guide-doc summary { color: #000; }
  .guide-note { background: #f3efe6; }
  .guide-figure, .guide-chapter h2, .guide-chapter h3 { break-inside: avoid; break-after: avoid; }
  .guide-figure { break-after: auto; }
}

/* "Change cookie choice" on the privacy page (site/consent.js, launch tracking 2026-11-25): reads as the page's links do */
.legal-content .consent-change { padding: 4px 12px; min-height: 32px; border: 1px solid #214868; border-radius: 6px; background: transparent; color: #d6b46d; font: inherit; cursor: pointer; }
.legal-content .consent-change:hover { border-color: #d6b46d; }
.legal-content .consent-change:focus-visible { outline: 2px solid #d6b46d; outline-offset: 2px; }
/* THE WORKERS (owner 2026-11-27): three small cards under While you're away, a clip of the tap and Collect each. A row of
   three on a wide screen; on a phone a row to swipe, a card three quarters of the screen, so the section stays short. */
.workers-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.worker-card { overflow: hidden; border: 1px solid #405354; border-radius: 14px; background: #0b1c2b; }
.worker-clip { position: relative; aspect-ratio: 510 / 298; background: #071521; }
.worker-clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.worker-copy { padding: 12px 14px 14px; }
.worker-copy h3 { margin: 0 0 3px; color: #f5d593; font: 700 1.05rem/1.25 'Cinzel', Georgia, serif; }
.worker-copy p { margin: 0; color: #a6b8c6; font-size: 14px; line-height: 1.5; }
@media (max-width: 760px) {
  .workers-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .worker-card { scroll-snap-align: start; }
}

/* 2026-11-27: Google and Discord sign-in buttons as the game draws them (the providers own marks and colours) */
.points-providers { display: flex; flex-wrap: wrap; gap: 10px; }
.points-providers[hidden], .provider-button[hidden] { display: none; }
.provider-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 4px; font: 500 15px/1 Roboto, "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.provider-button svg { width: 20px; height: 20px; flex: none; }
.provider-button[data-provider="google"] { border: 1px solid #747775; background: #fff; color: #1f1f1f; }
.provider-button[data-provider="discord"] { border: 1px solid #5865f2; background: #5865f2; color: #fff; }
.provider-button:hover { filter: brightness(.96); }
.provider-button:focus-visible { outline: 2px solid #f0d28a; outline-offset: 2px; }
@media (max-width: 560px) { .provider-button { flex: 1 1 100%; } }
