

:root {
  color-scheme: dark;
  --ink: #e9f4ec;
  --muted: #9aafa4;
  --mint: #9ce6bf;
  --mint-strong: #62d99a;
  --panel: rgba(8, 26, 25, .84);
  --panel-border: rgba(183, 235, 202, .16);
  --gold: #f1c878;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #091816; color: var(--ink); font-family: Manrope, system-ui, sans-serif; }
body { overflow-x: hidden; }
button { font: inherit; }
#game-shell { position: relative; height: 100vh; min-height: 650px; overflow: hidden; background: #0b201c; isolation: isolate; }
#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.vignette { pointer-events: none; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4,16,15,.62), transparent 22%, transparent 68%, rgba(3,14,13,.58)), radial-gradient(ellipse at center, transparent 38%, rgba(3,12,11,.32) 100%); }
.topbar { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 82px; display: flex; align-items: center; gap: 28px; padding: 0 30px; background: linear-gradient(180deg, rgba(5,18,17,.92), rgba(5,18,17,.38)); border-bottom: 1px solid rgba(194,239,209,.11); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 245px; }
.brand-mark { width: 39px; height: 39px; border: 1px solid rgba(156,230,191,.5); border-radius: 12px; display: grid; place-items: center; color: var(--mint); font-size: 24px; background: rgba(112,207,152,.09); box-shadow: 0 0 24px rgba(98,217,154,.12); }
.brand-name { font-weight: 800; letter-spacing: .16em; font-size: 14px; }
.brand-name span { color: var(--mint); }
.brand-sub { color: #81998d; letter-spacing: .22em; font: 9px 'DM Mono', monospace; margin-top: 4px; }
.top-stats { display: flex; align-items: center; gap: 25px; flex: 1; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label { color: #789187; letter-spacing: .16em; font: 9px 'DM Mono', monospace; }
.stat strong { color: #eff9f0; font: 600 16px 'DM Mono', monospace; }
.water-stat strong { color: #9dddf0; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .small-button { border: 1px solid rgba(188,232,203,.18); background: rgba(13,39,34,.76); color: #dff1e4; cursor: pointer; transition: .18s ease; }
.icon-button { width: 38px; height: 38px; border-radius: 11px; font-size: 17px; }
.small-button { border-radius: 8px; padding: 10px 12px; font: 9px 'DM Mono', monospace; letter-spacing: .1em; }
.icon-button:hover, .small-button:hover { border-color: rgba(156,230,191,.6); background: rgba(30,76,57,.8); }
.muted-button { color: #91a59b; background: rgba(9,27,25,.54); }
.panel { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 15px; box-shadow: 0 16px 45px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.035); backdrop-filter: blur(16px); }
.mission-panel { position: absolute; z-index: 3; left: 28px; top: 105px; width: 300px; padding: 19px 19px 17px; }
.panel-kicker { color: #8ca99a; letter-spacing: .18em; font: 9px 'DM Mono', monospace; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-strong); box-shadow: 0 0 10px var(--mint-strong); }
.mission-panel h1 { font-size: 16px; line-height: 1.35; letter-spacing: -.025em; margin: 13px 0 17px; font-weight: 800; }
.mission-heading { display: flex; align-items: center; justify-content: space-between; font: 10px 'DM Mono', monospace; color: var(--mint); }
.mission-tag { padding: 5px 7px; border-radius: 5px; color: #b7d9c2; background: rgba(117,197,146,.12); font-size: 8px; letter-spacing: .1em; }
.mission-panel h2 { margin: 12px 0 6px; font-size: 20px; letter-spacing: -.04em; }
.mission-panel p { color: #a5b9ad; font-size: 11px; line-height: 1.65; margin: 0 0 17px; min-height: 53px; }
.progress-row { display: flex; justify-content: space-between; color: #80988b; font: 9px 'DM Mono', monospace; letter-spacing: .1em; margin-bottom: 8px; }
.progress-row strong { color: #e7f7e9; font-weight: 500; }
.progress-track { height: 5px; border-radius: 10px; background: rgba(181,220,192,.13); overflow: hidden; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #55c987, #b4efbf); box-shadow: 0 0 12px rgba(105,222,154,.38); transition: width .3s ease; }
.mission-list { display: grid; gap: 8px; margin-top: 18px; padding-top: 15px; border-top: 1px solid rgba(185,225,198,.1); }
.mission-step { display: flex; align-items: center; gap: 9px; color: #8ca297; font-size: 10px; }
.mission-step .step-check { width: 16px; height: 16px; flex: 0 0 16px; border: 1px solid rgba(169,208,180,.25); border-radius: 50%; display: grid; place-items: center; font-size: 9px; }
.mission-step.active { color: #e6f7e9; }
.mission-step.active .step-check { border-color: var(--mint); color: var(--mint); background: rgba(107,211,148,.13); }
.mission-step.done { color: #78c995; }
.mission-step.done .step-check { border-color: rgba(103,213,145,.4); background: rgba(103,213,145,.16); }
.right-panel { position: absolute; z-index: 3; top: 105px; right: 28px; width: 230px; display: grid; gap: 12px; }
.task-panel, .mini-map-panel { padding: 16px; }
.status-line { display: flex; gap: 9px; align-items: flex-start; margin-top: 13px; color: #d3e5d8; font-size: 10px; line-height: 1.5; }
.status-icon { color: var(--mint); font-size: 17px; line-height: 1; }
.status-divider { height: 1px; background: rgba(188,228,198,.1); margin: 14px 0; }
.inventory-title { color: #819a8c; letter-spacing: .15em; font: 9px 'DM Mono', monospace; }
.tool-readout { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.tool-readout > span { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(117,201,151,.12); color: var(--mint); font-size: 20px; }
.tool-readout strong { display: block; font-size: 11px; }
.tool-readout small { display: block; margin-top: 3px; color: #8fa69a; font-size: 9px; }
.inventory-note { color: #789084; font-size: 9px; line-height: 1.55; margin-top: 12px; }
.check-row { color: #9bb1a3; font-size: 9px; margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.check-dot { width: 5px; height: 5px; border-radius: 50%; background: #78d7a0; box-shadow: 0 0 8px rgba(120,215,160,.6); }
.objective-toast { position: absolute; z-index: 8; top: 104px; left: 50%; transform: translate(-50%,-12px); opacity: 0; pointer-events: none; padding: 11px 17px; border: 1px solid rgba(166,233,190,.32); border-radius: 9px; background: rgba(8,31,25,.94); color: #dff8e7; box-shadow: 0 10px 35px rgba(0,0,0,.3); font-size: 11px; transition: .25s ease; white-space: nowrap; }
.objective-toast.show { opacity: 1; transform: translate(-50%,0); }
.bottom-hud { position: absolute; z-index: 4; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(760px, calc(100% - 32px)); pointer-events: none; }
.control-hint { color: rgba(220,239,224,.78); font: 9px 'DM Mono', monospace; letter-spacing: .08em; text-shadow: 0 2px 7px #07110f; }
.control-hint span { color: #70c994; margin: 0 5px; }
kbd { display: inline-block; min-width: 19px; text-align: center; padding: 3px 5px; margin: 0 2px; border-radius: 4px; border: 1px solid rgba(207,239,215,.25); background: rgba(8,25,22,.72); color: #e6f7e9; font: 9px 'DM Mono', monospace; }
.toolbelt { display: flex; align-items: center; gap: 6px; padding: 7px; border: 1px solid rgba(190,233,203,.17); border-radius: 14px; background: rgba(7,24,21,.87); backdrop-filter: blur(15px); box-shadow: 0 14px 35px rgba(0,0,0,.3); pointer-events: auto; }
.tool-slot { position: relative; width: 67px; height: 62px; border: 1px solid transparent; border-radius: 9px; color: #90a99a; background: rgba(255,255,255,.025); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; transition: .18s ease; }
.tool-slot:hover { background: rgba(120,202,151,.1); color: #e8f8ec; }
.tool-slot.active { border-color: rgba(151,233,184,.55); background: rgba(92,190,128,.15); color: #e7f9e9; box-shadow: inset 0 0 18px rgba(93,209,139,.08); }
.tool-key { position: absolute; top: 5px; left: 7px; font: 8px 'DM Mono', monospace; color: #789184; }
.tool-symbol { font-size: 21px; line-height: 1.1; color: var(--mint); }
.tool-label { font: 8px 'DM Mono', monospace; letter-spacing: .12em; }
.interaction-hint { color: #b4e8c5; font: 9px 'DM Mono', monospace; letter-spacing: .18em; text-shadow: 0 2px 8px #06110f; }
.pause-overlay, .complete-overlay { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(4,16,14,.72); backdrop-filter: blur(9px); }
.hidden { display: none !important; }
.pause-card, .complete-card { width: min(390px, calc(100% - 32px)); text-align: center; padding: 34px; border: 1px solid rgba(172,230,190,.25); border-radius: 18px; background: linear-gradient(145deg, rgba(17,49,38,.98), rgba(7,26,23,.98)); box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.pause-kicker { color: var(--mint); letter-spacing: .2em; font: 9px 'DM Mono', monospace; }
.pause-card h2, .complete-card h2 { margin: 13px 0 8px; font-size: 29px; letter-spacing: -.05em; }
.pause-card p, .complete-card p { color: #9fb7a8; font-size: 12px; line-height: 1.7; margin: 0 0 22px; }
.primary-button { width: 100%; padding: 14px; border: 0; border-radius: 9px; background: linear-gradient(90deg, #6bd69b, #a5e8b6); color: #0c2a1d; font: 800 10px 'DM Mono', monospace; letter-spacing: .14em; cursor: pointer; transition: transform .18s ease, filter .18s ease; }
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.complete-flower { color: #9ce6bf; font-size: 40px; margin-bottom: 10px; text-shadow: 0 0 30px rgba(111,225,155,.4); }
.complete-reward { color: #f1d18a; font: 700 23px 'DM Mono', monospace; margin: 0 0 22px; }
.complete-reward span { display: block; color: #9aaf9f; font: 9px 'DM Mono', monospace; letter-spacing: .17em; margin-top: 5px; }
.loading-screen { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #091b18; transition: opacity .6s ease, visibility .6s ease; }
.loading-screen.loaded { opacity: 0; visibility: hidden; }
.loader-flower { font-size: 44px; color: var(--mint); animation: bloom 1.4s ease-in-out infinite alternate; }
.loading-title { font-size: 14px; font-weight: 800; letter-spacing: .22em; margin-top: 15px; }
.loading-sub { font: 9px 'DM Mono', monospace; color: #769284; letter-spacing: .2em; margin-top: 7px; }
.loading-track { width: 170px; height: 3px; margin-top: 22px; background: rgba(155,218,175,.13); overflow: hidden; border-radius: 5px; }
.loading-track div { width: 40%; height: 100%; background: var(--mint); animation: load 1.1s ease-in-out infinite; }
@keyframes bloom { from { transform: scale(.88) rotate(-12deg); } to { transform: scale(1.12) rotate(12deg); } }
@keyframes load { from { transform: translateX(-110%); } to { transform: translateX(280%); } }
.seo-copy { background: #0a1c19; border-top: 1px solid rgba(166,221,181,.12); padding: 65px 24px 80px; }
.seo-inner { max-width: 1000px; margin: auto; color: #a9bdb0; font-size: 13px; line-height: 1.8; }
.seo-inner .eyebrow { color: #80d8a2; font: 10px 'DM Mono', monospace; letter-spacing: .2em; }
.seo-inner h2 { color: #e8f4e9; font-size: clamp(25px,4vw,38px); letter-spacing: -.05em; line-height: 1.2; max-width: 700px; margin: 10px 0 18px; }
.seo-inner h3 { color: #d8eadc; font-size: 15px; margin: 22px 0 8px; }
.seo-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 25px 0; }
.seo-inner li { padding: 3px 0; }
.seo-inner details { border-top: 1px solid rgba(166,221,181,.13); padding: 12px 0; }
.seo-inner summary { color: #d9e9dc; cursor: pointer; font-size: 12px; }
.seo-inner details p { margin: 8px 0 0; }
@media (max-width: 1050px) {
  .mission-panel { width: 270px; left: 16px; }
  .right-panel { right: 16px; width: 205px; }
  .topbar { padding: 0 18px; gap: 16px; }
  .top-stats { gap: 15px; }
}
@media (max-width: 760px) {
  #game-shell { min-height: 680px; height: 100svh; }
  .topbar { height: 66px; padding: 0 12px; gap: 10px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; font-size: 20px; }
  .brand-name { font-size: 10px; }
  .brand-sub { font-size: 7px; }
  .top-stats { gap: 10px; justify-content: flex-end; }
  .stat-label { font-size: 7px; }
  .stat strong { font-size: 12px; }
  .top-actions { gap: 5px; }
  .icon-button { width: 31px; height: 31px; }
  .small-button { display: none; }
  .mission-panel { top: 78px; left: 10px; width: min(255px, calc(100% - 20px)); padding: 13px; }
  .mission-panel h1 { font-size: 13px; margin: 8px 0 10px; }
  .mission-panel h2 { font-size: 16px; margin: 8px 0 4px; }
  .mission-panel p { min-height: auto; font-size: 10px; margin-bottom: 10px; }
  .mission-list { display: none; }
  .right-panel { top: auto; bottom: 150px; right: 10px; width: 175px; gap: 8px; }
  .task-panel, .mini-map-panel { padding: 11px; }
  .mini-map-panel { display: none; }
  .inventory-note { display: none; }
  .bottom-hud { bottom: 10px; gap: 7px; }
  .control-hint { font-size: 7px; text-align: center; line-height: 1.8; }
  .tool-slot { width: 57px; height: 55px; }
  .toolbelt { gap: 4px; padding: 5px; }
  .interaction-hint { font-size: 8px; }
  .objective-toast { top: 72px; max-width: calc(100% - 24px); white-space: normal; text-align: center; }
  .seo-columns { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 420px) {
  .top-stats { gap: 7px; }
  .stat:nth-child(3) { display: none; }
  .right-panel { bottom: 143px; }
  .mission-panel { width: 220px; }
  .control-hint { max-width: 340px; }
}
