/* The Luminous Archipelago: warm parchment over deep sea and living greens. */
:root {
  --ink: #f3f4e9;
  --muted: #a2b9af;
  --gold: #e3d09a;
  --line: rgba(190,220,202,.18);
  --glass: rgba(8,27,29,.94);
}
button { transition: background-color .18s, border-color .18s, box-shadow .18s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
button:disabled { cursor: not-allowed; }
.glass {
  background: linear-gradient(145deg,rgba(21,44,42,.96),var(--glass));
  box-shadow: 0 16px 48px #00131940, inset 0 1px #eff6d912;
  border-color: var(--line);
  backdrop-filter: blur(16px);
}
.eyebrow { font-size: 10px; letter-spacing: .18em; color: #e1d09e; }
.top { border-radius: 18px; }
.brand-copy b { font-size: 15px; letter-spacing: .15em; }
.top .controls button, .economy-link { font-size: 11px; letter-spacing: .04em; }
.stats small, .live-clock { font-size: 10px; }
.bottom .hint { font-size: 11px; letter-spacing: .05em; color: #acbdb4; }
.bottom small { font-size: 10px; }
.bottom b { font-size: 12px; }
.intro { background: #041719b5; backdrop-filter: blur(10px); }
.intro > .genesis-landing {
  border-radius: 28px;
  background: linear-gradient(130deg,#102a2b,#0b1e23);
  box-shadow: 0 40px 120px #00101488, inset 0 1px #e3ebc812;
}
.genesis-copy { padding: 60px 48px 44px; }
.intro .genesis-copy h1 { font-weight: 500; line-height: 1.09; letter-spacing: -.055em; }
.genesis-copy em { color: #e5d3a0; }
.intro .genesis-copy p { color: #b8c9be; font-size: 16px; line-height: 1.75; }
.landing-proof { gap: 10px; font-size: 12px; margin: 24px 0; }
.landing-proof span { padding: 8px 10px; background: #afceb409; border: 1px solid #bed4bd16; border-radius: 7px; }
#enter, .creator .awaken {
  min-height: 52px; border-radius: 12px;
  background: linear-gradient(180deg,#ecdbab,#d2bd82);
  color: #142c29; font-size: 13px; font-weight: 700; letter-spacing: .05em;
  box-shadow: 0 8px 24px #d1bc7616, inset 0 1px #fff7d866;
}
#enter:hover, .creator .awaken:hover { background: linear-gradient(180deg,#f3e4bc,#dfca91); box-shadow: 0 8px 28px #d1bc7624; }
.quiet { font-size: 13px; color: #c2d4c4; }
.quiet:hover { text-decoration: underline; text-underline-offset: 4px; }
.landing-note { font-size: 12px; color: #a0b9af; }
.genesis-art {
  min-height: 490px;
  background: radial-gradient(ellipse at 48% 38%,#265457,#102f38 58%,#0b242e);
}
.genesis-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg,#071e2a45,transparent 55%); }
.scene-caption { position: absolute; top: 28px; left: 28px; color: #c0d4c5; font-size: 10px; letter-spacing: .16em; z-index: 1; }
#landing-island { width: 100%; height: calc(100% - 84px); min-height: 360px; display: block; object-fit: contain; }
.island-label {
  bottom: 22px; left: 22px; right: 22px; z-index: 1;
  padding: 18px 20px; border-radius: 14px; background: #102b31e8;
  box-shadow: inset 0 1px #dce9c910;
}
.island-label b { font-size: 20px; margin: 8px 0; font-weight: 500; }
.island-label small { font-size: 12px; color: #bed1c1; }
.creator-card { border-radius: 24px; }
.creator-copy > .eyebrow::after { content: ''; display: block; width: 26px; height: 1px; background: #dfcc8b77; margin-top: 12px; }
.creator h1 { font-size: clamp(32px,3.3vw,45px); line-height: 1.13; }
.creator-copy > p { font-size: 14px; line-height: 1.8; color: #aec4b8; }
.creator label { font-size: 11px; }
.creator input, .creator select { border-radius: 9px; min-height: 46px; font-size: 14px; background: #0a1d20; }
.creator .seed-row button { border-radius: 9px; width: 30%; font-size: 12px; color: #bfcec0; }
.creator .preview { background: radial-gradient(ellipse at 50% 48%,#37655740,#0d282a 50%,#091e24); position: relative; }
.creator .preview canvas { image-rendering: pixelated; }
.creator .preview > span, .creator .preview > small { font-size: 10px; letter-spacing: .14em; }
.creator .preview #traits span { font-size: 10px; border-radius: 6px; padding: 7px 9px; }
.approach-options summary { font-size: 13px; color: #d3ddcc; }
.world-modes { padding: 6px; gap: 5px; border-radius: 16px; box-shadow: 0 8px 32px #00131955, inset 0 1px #e5efd412; }
.world-modes button { min-height: 44px; font-size: 12px; border-radius: 11px; padding: 10px 18px; }
.world-modes button[aria-pressed=true] { background: #decd98; color: #142b28; box-shadow: inset 0 1px #fff4c855; }
.world-modes button:disabled { color: #9bafa6; opacity: .8; }
#map-own:disabled::before { content: '◇ '; }
.map-mode-label { display: none; }
.colony-panel { border-radius: 20px; }
.colony-panel h2 { font-weight: 500; letter-spacing: -.03em; }
.colony-resources > div { background: #c8ddaf08; border-color: #b5cebb19; border-radius: 12px; }
.colony-resources b { font-variant-numeric: tabular-nums; font-weight: 500; color: #f1e6c1; }
.colony-builds button { background: #c2d4b109; border-radius: 12px; border-color: #a8c4b32b; }
.colony-builds button:hover:enabled { border-color: #d5c98d77; background: #d1dcae12; }
.colony-builds button b { font-size: 14px; }
.colony-builds button small { font-size: 11px; }
.leaderboard { width: 282px; border-radius: 20px; }
.board-row { border-radius: 8px; }
.board-row:hover { background: #bfd5ad0c; }
.dashboard-dialog, .registration-dialog { background: linear-gradient(140deg,#142e2e,#091f24); border-radius: 22px; }
.zoom-tools { border-radius: 12px; }
.zoom-tools button { min-width: 44px; min-height: 44px; border-radius: 8px; }
@media (max-width:760px) {
  .intro > .genesis-landing { border-radius: 22px; }
  .genesis-copy { padding: 22px; }
  .intro .genesis-copy h1 { font-size: clamp(32px,8.8vw,41px); line-height: 1.12; margin: 18px 0; letter-spacing: -.045em; }
  .intro .genesis-copy p { font-size: 14px; }
  .landing-proof { font-size: 12px; gap: 6px; margin: 16px 0; }
  .landing-proof span { padding: 6px 8px; }
  .genesis-art { min-height: 205px; height: 205px; }
  #landing-island { width: 100%; height: 205px; min-height: 0; }
  .scene-caption { font-size: 9px; top: 16px; left: 18px; }
  .island-label { left: auto; right: 14px; bottom: 12px; width: 180px; padding: 10px 12px; background: #0a252be8; }
  .island-label .eyebrow { font-size: 9px; }
  .island-label b { font-size: 14px; margin: 5px 0; }
  .island-label small { font-size: 10px; }
  .creator-card { border-radius: 20px; }
  .creator .preview { min-height: 178px; padding: 10px; border-bottom: 1px solid #bfceae13; }
  .creator .preview canvas { width: 165px; height: 165px; margin: 0; }
  .creator-copy { padding: 6px 22px 25px; }
  .creator h1 { font-size: 30px; }
  .creator-copy > p { font-size: 13px; }
  .creator input, .creator select { font-size: 16px; }
  .creator .close { background: #183638; border: 1px solid #c9d9bc23; }
  .world-modes { width: calc(100% - 24px); bottom: calc(12px + env(safe-area-inset-bottom)); justify-content: stretch; }
  .world-modes button { flex: 1; padding: 10px 6px; font-size: 12px; }
  .colony-panel { border-radius: 20px 20px 0 0; }
  .colony-panel.minimized { border-radius: 18px; }
  .colony-panel header { background: #142f2ff7; }
  .colony-panel header .eyebrow { font-size: 10px; }
  .colony-panel.minimized header { border-radius: 18px; }
  .dashboard-dialog > header, .registration-dialog > header { background: #142e2efa; }
  .top .controls button { font-size: 10px; min-height: 40px; }
}
@media (max-width:420px) { .minimap { display: none; } .brand-copy b { font-size: 11px; } }
@media (max-height:500px) and (max-width:980px) { .genesis-art { display: none; } .genesis-copy { padding: 22px; } }
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.creator .close { z-index: 20; }
.creator .preview { pointer-events: none; }
.creator .seed-row { display: grid; grid-template-columns: minmax(0,1fr) 104px; align-items: stretch; }
.creator .seed-row input, .creator .seed-row button { width: 100%; min-width: 0; }
.creator .seed-row button { white-space: nowrap; }
/* Sacred Dioramas: portraits, realm controls and a world-first competition rail. */
:root { --realm-accent: #b7d88c; }
.colony-identity { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.colony-identity > canvas { width: 80px; height: 80px; flex: none; image-rendering: pixelated; background: radial-gradient(ellipse,#b5cf9820,transparent 70%); border: 1px solid color-mix(in srgb,var(--realm-accent) 30%,transparent); border-radius: 18px; }
.colony-identity > div { min-width: 0; }
.colony-identity small { font-size: 10px; letter-spacing: .12em; color: var(--realm-accent); text-transform: uppercase; }
.colony-identity #colony-name { font-size: 23px; margin: 6px 0 8px; }
.colony-identity #colony-goal { margin: 0; line-height: 1.6; font-size: 12px; }
.sheet-actions { display: flex; align-items: center; gap: 4px; }
#colony-expand { display: none; }
.period-tabs { display: flex; padding: 4px; border: 1px solid #b7ccb326; border-radius: 12px; margin: 12px 0; background: #041b2133; }
.period-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 8px; color: #bdd0c5; background: transparent; font-size: 12px; cursor: pointer; }
.period-tabs button[aria-pressed=true] { background: #d7d3ae; color: #162c2b; }
.board-podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; align-items: end; margin: 18px 0; }
.podium-place { background: linear-gradient(180deg,#a5c98b0a,#031b2029); border: 1px solid color-mix(in srgb,var(--realm-accent) 24%,transparent); border-radius: 14px; padding: 12px 4px; display: flex; align-items: center; flex-direction: column; min-width: 0; cursor: pointer; color: #e4eadb; }
.podium-place[data-place="1"] { padding-top: 24px; border-color: #e5cd8570; }
.podium-place canvas { width: 64px; height: 64px; image-rendering: pixelated; }
.podium-place small { font-size: 11px; color: var(--realm-accent); }
.podium-place b { font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.podium-place span { font-size: 10px; color: #adc0b4; margin-top: 7px; }
.board-row { grid-template-columns: 24px 42px minmax(0,1fr) auto; column-gap: 8px; }
.board-row canvas { width: 42px; height: 42px; image-rendering: pixelated; background: #b5cb9010; border-radius: 10px; }
.board-row b { font-size: 12px; }
.board-row > span:last-child { font-size: 11px; color: #decea1; }
.board-you { display: grid; gap: 6px; padding: 14px; background: #b4ce9010; border: 1px solid #c3d7a12b; border-radius: 12px; margin: 14px 0; }
.board-you:empty { display: none; }
.board-you small { font-size: 9px; letter-spacing: .15em; color: #b8cfa9; }
.board-you b { font-size: 14px; font-weight: 500; }
.board-you span { font-size: 11px; color: #b7c7b9; }
.ranking-rules { margin: 14px 0; font-size: 12px; color: #afc5b8; }
.ranking-rules summary { min-height: 44px; cursor: pointer; display: flex; align-items: center; }
.leaderboard { width: 306px; max-height: calc(100dvh - 240px); overflow: auto; }
.leaderboard header { position: sticky; top: -18px; background: #112c2df5; z-index: 1; border-radius: 14px; }
.realm-switcher { display: flex; position: absolute; z-index: 3; top: 54px; left: 22px; right: 22px; gap: 4px; flex-wrap: wrap; }
.realm-switcher button { border: 1px solid #cae0b526; border-radius: 8px; min-height: 36px; flex: 1; padding: 5px 7px; background: #08232a88; color: #bbd2c7; font-size: 10px; cursor: pointer; }
.realm-switcher button[aria-pressed=true] { background: #d8d0a9; color: #132d2d; }
.creator .preview { border-left-color: color-mix(in srgb,var(--realm-accent) 25%,transparent); background: radial-gradient(ellipse at 50% 45%,color-mix(in srgb,var(--realm-accent) 17%,transparent),#102b30 55%,#071c26); }
.creator .preview > span { color: var(--realm-accent); }
#traits span { border-color: color-mix(in srgb,var(--realm-accent) 22%,transparent); }
@media (max-width:760px) {
  .colony-identity { margin: 14px 0; gap: 12px; }
  .colony-identity > canvas { width: 64px; height: 64px; border-radius: 14px; }
  .colony-identity #colony-name { font-size: 20px; }
  #colony-expand { display: block; width: 44px; min-height: 44px; font-size: 21px; padding: 3px; }
  .colony-panel.full { max-height: calc(100dvh - 170px); }
  .colony-panel.minimized #colony-expand { display: none; }
  .colony-panel.minimized { width: min(280px,calc(100vw - 85px)); }
  .colony-panel header .eyebrow { font-size: 9px; }
  .colony-panel header { padding-left: 16px; padding-right: 10px; }
  .sheet-actions #colony-focus { font-size: 11px; padding: 5px; }
  .zoom-tools { top: auto; bottom: calc(86px + env(safe-area-inset-bottom)); right: 10px; }
  .intro > .genesis-landing { flex-direction: column; }
  .genesis-art { height: 320px; min-height: 320px; }
  #landing-island { height: 285px; min-height: 0; }
  .scene-caption { top: 16px; }
  .realm-switcher { top: 39px; left: 12px; right: 12px; gap: 4px; }
  .realm-switcher button { font-size: 10px; min-height: 44px; padding: 4px 2px; }
  .genesis-art .island-label { width: auto; right: 12px; left: 12px; bottom: 12px; padding: 8px 14px; }
  .genesis-art .island-label .eyebrow { display: none; }
  .genesis-art .island-label b { font-size: 13px; display: inline; margin-right: 8px; }
  .genesis-art .island-label small { font-size: 10px; }
  .board-row { grid-template-columns: 21px 34px minmax(0,1fr) auto; column-gap: 6px; }
  .board-row canvas { width: 34px; height: 34px; }
  .board-row b { font-size: 11px; }
}
.approach-options summary::after, .ranking-rules summary::after { content: '+'; margin-left: auto; color: #c7d5b6; font-size: 18px; }
.approach-options[open] > summary::after, .ranking-rules[open] > summary::after { content: '−'; }
.podium-place b, .podium-place span { font-size: 11px; }
/* Shrine desk: warm ink, carved edges and a clear task beside the living world. */
:root { --ink:#f1e8d2; --muted:#bdc4ac; --gold:#e4c276; --line:#d6c49a35; --glass:#182d2b; }
.glass { background:linear-gradient(120deg,#253c34f7,#172d2af7); border:1px solid #b6af7a55; border-radius:9px; backdrop-filter:none; box-shadow:0 3px 0 #071715,0 12px 32px #04151555,inset 0 1px #e4dec51c; }
.top { border-radius:9px; background:#162c29f5; }
.brand-copy b { letter-spacing:.06em; font-size:17px; }
.stats > span:nth-child(n+2) { display:none; }
.eyebrow { color:#d8c292; letter-spacing:.09em; }
.colony-panel { width:350px; padding:19px; }
.colony-panel header,.leaderboard header { background:#223a31; border-radius:5px; }
.colony-identity > canvas { background:#d5cda416; border-radius:5px; }
.colony-identity #colony-name { font-family:Georgia,serif; font-size:25px; font-weight:400; }
.quest-card { background:linear-gradient(115deg,#f1e5c7,#dfd0a9); color:#302b1c; padding:15px; border:1px solid #f9f1d4; border-radius:5px; box-shadow:0 3px 0 #0b201c; margin:14px 0; }
.quest-heading { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.quest-card .eyebrow { font-size:9px; color:#635234; }
.quest-heading > b { white-space:nowrap; font-size:11px; color:#594115; }
.quest-card h3 { font:400 20px/1.2 Georgia,serif; margin:11px 0 8px; }
.quest-card p { color:#554e39; font-size:12px; line-height:1.55; margin:0 0 12px; }
.quest-card small { font-size:11px; color:#5c5339; }
.goal-track { background:#c9bb95; height:7px; margin:12px 0 8px; border-radius:2px; }
.goal-track i { background:#587848; border-radius:2px; transition:width .3s; }
.colony-resources div { background:#e7dbb211; border:1px solid #cfcc9b23; border-radius:4px; }
.colony-resources b { color:#efe5c6; font-family:Georgia,serif; }
.legacy-path { margin:10px 0; }
.legacy-path summary { display:flex; align-items:center; justify-content:space-between; min-height:44px; font-size:12px; }
.legacy-step { display:grid; grid-template-columns:20px 1fr 35px; gap:6px; padding:9px 0; border-top:1px solid #bbcca31a; font-size:11px; color:#b9c3aa; }
.legacy-step b { font-weight:400; }
.legacy-step[data-complete=true] { color:#dacf91; }
.build-heading { display:flex; align-items:center; justify-content:space-between; font:400 19px Georgia,serif; }
.build-heading small { font:11px system-ui; color:#b8c5ad; }
.colony-builds { gap:9px; }
.colony-builds button { position:relative; padding:12px 10px; background:#e8deb312; border:1px solid #bdb38150; border-radius:5px; box-shadow:0 2px 0 #081b16; color:#f2e9d0; text-align:left; }
.colony-builds button:hover:enabled { background:#d7cb9c25; border-color:#e2c585; }
.colony-builds button:active:enabled { transform:translateY(2px); box-shadow:none; }
.colony-builds button:disabled { opacity:.6; }
.colony-builds button[data-recommended=true] { background:#d7c382; color:#28372a; border-color:#ede0b4; }
.colony-builds button[data-recommended=true] small { color:#435238; }
.colony-builds small { color:#b8c6ad; font-size:11px; line-height:1.4; }
.build-icon { width:40px; height:40px; object-fit:contain; image-rendering:pixelated; display:block; margin-bottom:7px; }
.build-shortage { color:#edba93 !important; }
.priority-choices { display:flex; gap:6px; margin:9px 0 13px; }
.priority-choices button { flex:1; min-height:44px; font-size:12px; color:#d8dcc4; background:#091f1c55; border:1px solid #c0c69c35; border-radius:4px; }
.priority-choices button[aria-pressed=true] { background:#6d8651; color:#fff9e9; border-color:#adc28c; }
.registry-link { font-size:11px; }
.colony-thought { border-left-color:#a8b77d; font-style:normal; }
.world-modes { background:#1c342b; border-radius:7px; }
.world-modes button { border-radius:4px; }
.world-modes button[aria-pressed=true] { background:#e5d2a1; color:#24382c; }
.leaderboard { border-radius:9px; }
.leaderboard h2,.dashboard-dialog h2,.registration-dialog h2 { font-family:Georgia,serif; font-weight:400; letter-spacing:-.02em; }
.period-tabs,.podium-place,.board-you { border-radius:5px; }
.period-tabs button { border-radius:3px; }
.podium-place { background:#dfcf9b0c; }
.dashboard-dialog,.registration-dialog { background:#20372f; border:1px solid #b5a37166; border-radius:9px; }
.dashboard-dialog > header,.registration-dialog > header { background:#20372f; }
.intro { background:#0a2328cc; backdrop-filter:blur(5px); }
.intro > .genesis-landing { border:1px solid #c3bf8e55; border-radius:12px; background:#1c352e; }
.genesis-copy { padding:48px 38px; }
.intro .genesis-copy h1 { font-family:Georgia,serif; font-size:clamp(38px,4vw,58px); letter-spacing:-.045em; line-height:1.07; }
.intro .genesis-copy p { line-height:1.65; color:#c7d0bb; }
.landing-proof span { background:#ede1b90a; border-radius:4px; font-size:11px; }
#enter,.creator .awaken { border-radius:5px; background:#e1c78f; box-shadow:0 3px 0 #91764c; color:#29362a; }
.genesis-art { background:radial-gradient(ellipse,#537c6644,#163e40 70%); }
.island-label { border-radius:5px; background:#203a30ef; }
.creator-card { border-radius:10px; }
.creator h1 { font-family:Georgia,serif; font-weight:400; letter-spacing:-.035em; }
.creator input,.creator select,.creator .seed-row button { border-radius:4px; background:#122a24; }
.creator .preview { background:radial-gradient(ellipse,color-mix(in srgb,var(--realm-accent) 20%,transparent),#203d33 65%); }
.bottom { background:#132b25e8; }
.bottom .hint { display:none; }
.achievement-toast { position:fixed; left:50%; top:105px; transform:translateX(-50%); z-index:60; width:min(340px,calc(100vw - 36px)); padding:18px 22px; border:1px solid #d9c284; border-radius:7px; background:#efe2c0; color:#343321; box-shadow:0 5px 0 #817044,0 18px 50px #02191477; pointer-events:none; animation:reward-arrive .25s ease-out; }
.achievement-toast[hidden] { display:none; }
.achievement-toast small,.achievement-toast b,.achievement-toast span { display:block; }
.achievement-toast small { font-size:10px; color:#716139; letter-spacing:.1em; }
.achievement-toast b { font:400 23px/1.2 Georgia,serif; margin:8px 0; }
.achievement-toast span { font-size:13px; color:#5b512b; }
@keyframes reward-arrive { from { opacity:0; margin-top:-10px; } to { opacity:1; margin-top:0; } }
@media(max-width:760px) {
 .colony-panel { width:auto; padding:14px 16px; border-radius:10px 10px 0 0; max-height:46dvh; }
 .colony-panel.full { max-height:calc(100dvh - 170px); }
 .colony-identity { margin:8px 0; gap:10px; }
 .colony-identity > canvas { width:50px; height:50px; }
 .colony-identity #colony-name { font-size:21px; margin:4px 0; }
 .quest-card { padding:12px; margin:9px 0; }
 .quest-card h3 { font-size:18px; }
 .quest-card p { display:none; }
 .colony-panel.full .quest-card p { display:block; }
 .intro .genesis-copy h1 { font-size:36px; }
 .genesis-copy { padding:22px; }
 .intro > .genesis-landing { border-radius:10px; }
 .genesis-art { min-height:290px; height:290px; }
 .world-modes { border-radius:6px; }
 .achievement-toast { top:83px; }
}
.quest-action { width:100%; min-height:48px; padding:10px 12px; border:1px solid #e8d5a2; border-radius:4px; background:#dac188; color:#26372a; font-size:12px; font-weight:600; box-shadow:0 2px 0 #877146; }
.quest-action:disabled { background:#34473a; color:#bcc7ac; border-color:#bdc49b44; box-shadow:none; }
@media(max-width:760px) {
 .colony-panel:not(.full):not(.minimized) .colony-identity { margin:4px 0; }
 .colony-panel:not(.full):not(.minimized) .colony-resources { margin:6px 0; }
 .colony-panel:not(.full):not(.minimized) .colony-resources div { padding:6px 9px; }
 .colony-panel:not(.full):not(.minimized) .colony-resources b { font-size:18px; }
 .colony-panel:not(.full):not(.minimized) .quest-card { padding:9px 12px; }
 .colony-panel:not(.full):not(.minimized) .quest-card h3 { margin:6px 0; }
 .colony-panel:not(.full):not(.minimized) .goal-track { margin:7px 0 4px; }
}
