@font-face { font-family: "Russo One"; src: url("/fonts/RussoOne-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("/fonts/Exo2-Variable.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
body { font-family: "Exo 2", sans-serif; }
h1, h2, h3, .logo { font-family: "Russo One", sans-serif; font-weight: 400; }
.ocean-word { font-family: 'Russo One', sans-serif; font-style: normal; font-weight: 400; }
/* Nemos game identity. The ocean stays readable behind the HUD. */
#game {
  --acid: #d5ff3f; --hot: #ff7048; --ice: #a7eee4; --panel: #0b191e;
  --ink: #eef3e9; --muted: #a5b6b3; --line: #304043;
  width: 100%; max-width: none; margin: 90px 0; padding: 72px max(24px, calc((100vw - 1280px) / 2));
  color: var(--ink); background: #080f13;
  background-image: linear-gradient(#ffffff03 1px, transparent 1px), linear-gradient(90deg, #ffffff03 1px, transparent 1px);
  background-size: 48px 48px;
}
#game .section-heading { align-items: flex-end; margin-bottom: 34px; gap: 24px; }
#game .section-heading .eyebrow { color: #9eaeaa; font: 10px/1.8 "Exo 2", sans-serif; letter-spacing: 1.5px; margin-bottom: 25px; }
#game .degen-tag { display: inline-block; color: #0b1517; background: var(--acid); padding: 3px 9px; margin-right: 12px; font-weight: 800; }
#game h2 { font-family: 'Russo One', sans-serif; font-size: clamp(24px, 3vw, 40px); font-weight: 400; line-height: 1.15; letter-spacing: .2px; margin: 0; }
#game h2 span { color: var(--acid); }
#game .game-intro { text-align: right; padding-bottom: 3px; }
#game .game-intro p { color: #a5b6b3; font-size: 13px; line-height: 1.8; margin: 18px 0 0; }
#game .edition-stamp { display: inline-block; border: 1px solid #738051; color: var(--acid); padding: 8px 14px; transform: rotate(5deg); text-align: center; font: 700 10px/1.5 "Exo 2", sans-serif; letter-spacing: 1px; }
#game .game-shell { background: var(--panel); border: 1px solid #3e5050; border-radius: 0; box-shadow: 8px 8px 0 #02080b; color: var(--ink); }
#game button, #game select, #game input { font-family: inherit; }
#game button { transition: color .15s, background .15s, border-color .15s; }
#game button:focus-visible, #game select:focus-visible, #game input:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
#game button:disabled { cursor: not-allowed; }
#game .button { border-radius: 2px; background: var(--acid); color: #101910; border: 1px solid var(--acid); font-weight: 750; }
#game .button:hover:not(:disabled) { background: #e3ff83; box-shadow: 3px 3px 0 #56682b; transform: none; }
#game .button.outline { color: #dfe9dd; border-color: #455956; background: #132428; }
#game .button.outline:hover:not(:disabled) { color: var(--acid); border-color: var(--acid); background: #1b2e29; box-shadow: none; }
#game .plain-button { color: #b9c8c4; }
#game .game-topbar { padding: 12px 18px; gap: 12px; min-height: 51px; background: #101c20; font-size: 10px; }
#game .game-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 900; letter-spacing: -1px; color: #f3f7ee; white-space: nowrap; }
#game .live-dot { background: var(--acid); box-shadow: 0 0 0 4px #d5ff3f12; height: 6px; width: 6px; margin: 0; }
#game .practice-label { margin: 0; border-left: 1px solid #445341; padding-left: 12px; color: #b1c7a4; font: 8px "Exo 2", sans-serif; letter-spacing: 1px; }
#game .game-topbar > div { width: auto; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; font-size: 9px; }
#game .game-topbar .plain-button { font-size: 10px; text-decoration: none; padding: 4px 0; }
#game #network-status { color: #a6c6bb; font: 9px "Exo 2", sans-serif; }
#game #online-count { font-size: 9px; color: #b7c7c2; }
#game #effects-toggle { border: 1px solid #40564a; padding: 4px 7px; color: var(--acid); }
#game .character-lobby { background: #0b171b; padding: 15px 18px; border-color: #263a3c; gap: 20px; flex-direction: row; align-items: center; }
#game .character-lobby .eyebrow { color: #9fb4aa; font: 8px "Exo 2", sans-serif; letter-spacing: 1.3px; }
#game .character-lobby strong { font-size: 14px; margin: 5px 0 4px; font-weight: 650; }
#game .character-lobby p { font-size: 10px; color: #92a8a5; margin: 0; }
#game .character-actions { gap: 8px; flex-shrink: 0; }
#game select, #game input { background: #101f24; color: #e8eee2; border: 1px solid #3b5051; border-radius: 2px; }
#game .character-actions select { font-size: 11px; padding: 10px; max-width: 210px; }
#game .character-actions .button { font-size: 11px; padding: 10px 14px; }
#game .zone-tabs { background: #0e1b20; padding: 0; gap: 0; border-bottom: 1px solid #3c5552; display: grid; grid-template-columns: repeat(4, 1fr); }
#game .zone-tabs button { color: #a3b6b3; border: 0; border-right: 1px solid #2b4040; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; font-size: 11px; padding: 12px 14px; text-align: left; }
#game .zone-tabs button b { color: #748e86; font: 10px "Exo 2", sans-serif; margin-right: 8px; }
#game .zone-tabs small { font-size: 8px; color: #94a9a2; margin-left: 26px; }
#game .zone-tabs button.current { background: #d5ff3f0c; color: var(--acid); border-bottom-color: var(--acid); }
#game .zone-tabs button.current b { color: var(--acid); }
#game .zone-tabs button:hover { background: #d5ff3f12; }
#game .game-viewport { height: clamp(560px, 65vh, 720px); isolation: isolate; }
#game #game-canvas { width: 100%; height: 100%; display: block; outline: none; }
#game #game-canvas:focus-visible { outline: 1px solid #d5ff3f60; outline-offset: -2px; }
#game .game-hud { top: 22px; left: 22px; right: auto; display: grid; grid-template-columns: 210px 49px; gap: 7px; pointer-events: none; }
#game .vitals-card { padding: 11px 13px; border: 1px solid #c9eee832; background: #07171fe6; backdrop-filter: blur(10px); }
#game .vitals-title { display: flex; justify-content: space-between; align-items: baseline; font: 8px "Exo 2", sans-serif; letter-spacing: 1px; color: #c3d5cf; }
#game .vitals-title b { font: 800 22px/1 "Exo 2", sans-serif; color: #f5f9ec; padding: 0; letter-spacing: -1px; }
#game .vitals-title small { font-size: 8px; color: #8ba69f; }
#game .health-track, #game .energy-track, #game .xp-track { overflow: hidden; background: #4d66533d; height: 5px; border-radius: 0; margin-top: 8px; }
#game .health-track i, #game .xp-track i { display: block; height: 100%; width: 100%; transform-origin: left; transition: transform .2s; background: var(--acid); }
#game .energy-readout { min-width: 0; width: 100%; margin-top: 9px; font: 8px "Exo 2", sans-serif; color: #b4cfca; }
#game .energy-readout b { color: var(--ice); font-size: 9px; padding: 0; }
#game .energy-track { height: 3px; margin-top: 4px; }
#game #energy-fill { display: block; height: 100%; background: #9ae7de; border-radius: 0; }
#game .level-badge { border: 1px solid #d5ff3f60; background: #15251fed; color: var(--acid); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
#game .level-badge small { font: 9px "Exo 2", sans-serif; letter-spacing: 1px; }
#game .level-badge b { color: var(--acid); font: 800 30px "Exo 2", sans-serif; padding: 0; }
#game .loot-readout { grid-column: 1 / -1; display: flex; gap: 16px; background: #08191cd4; border-left: 2px solid #819e94; padding: 7px 11px; font: 10px "Exo 2", sans-serif; color: #bcd0c5; }
#game .loot-readout small { color: #a6bdb5; font-size: 7px; margin-right: 7px; }
#game .loot-readout b { font-size: 12px; color: #f2f7e7; padding: 0; }
#game .game-objective { top: 171px; left: 22px; max-width: 255px; padding-left: 12px; border-left: 2px solid var(--acid); }
#game .game-objective > span { color: #d8ff83; opacity: 1; font: 8px "Exo 2", sans-serif; letter-spacing: 1px; }
#game .game-objective strong { font-size: 11px; font-weight: 550; line-height: 1.55; margin: 7px 0; }
#game .game-objective small { font-size: 8px; color: #e3eee6; }
#game .xp-track { margin: 7px 0; height: 2px; width: 120px; }
#game .xp-track i { transform: scaleX(0); }
#game .depth-gauge { top: 24px; right: 24px; border-right: 2px solid #d1f0d36b; padding-right: 12px; }
#game .depth-gauge b { font: 700 33px/1.4 "Exo 2", sans-serif; letter-spacing: -2px; }
#game .depth-gauge span { font: 8px "Exo 2", sans-serif; }
#game .depth-gauge small { font-size: 9px; }
#game .world-navigation { top: 118px; right: 23px; bottom: auto; width: 113px; }
#game .world-navigation canvas { width: 113px; height: 113px; background: #08191ede; border: 1px solid #b9e9d75c; box-shadow: 0 0 0 5px #08191e52; }
#game .world-navigation span { font: 8px "Exo 2", sans-serif; margin-top: 9px; }
#game .game-reticle { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
#game .game-reticle::after { content: ''; width: 3px; height: 3px; background: #efffde; box-shadow: 0 0 3px #00191f; border-radius: 50%; }
#game .game-reticle i { position: absolute; width: 6px; height: 14px; border: 1px solid #efffde9e; }
#game .game-reticle i:first-child { left: -2px; border-right: 0; }
#game .game-reticle i:last-child { right: -2px; border-left: 0; }
#game .combat-panel { position: absolute; z-index: 2; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(760px, calc(100% - 44px)); padding: 0; background: transparent; border: 0; pointer-events: none; }
#game .combat-summary { display: flex; justify-content: space-between; margin: 0 0 8px; gap: 10px; font: 8px "Exo 2", sans-serif; color: #deeedc; text-shadow: 0 1px 5px #000; }
#game #combo-readout { color: #edffd7; }
#game .attack-slots { gap: 7px; }
#game .attack-slot { pointer-events: auto; min-height: 90px; padding: 10px 9px 8px; border-radius: 2px; background: #091920f2; border: 1px solid #92b3a36e; color: #f1f8e8; box-shadow: 0 3px 0 #0007; text-align: left; }
#game .attack-slot::before { background: #7fa49c38; }
#game .attack-slot svg { display: block; width: 24px; height: 24px; color: var(--ability-color); margin: 0 0 6px; }
#game .attack-key { position: absolute; top: 8px; right: 8px; margin: 0; padding: 1px 5px; border-color: #78968870; border-radius: 1px; font: 9px "Exo 2", sans-serif; color: #dbeacb; }
#game .attack-title { display: block; font-size: 12px; font-weight: 700; line-height: 1.3; min-height: 0; }
#game .attack-stats { font: 9px "Exo 2", sans-serif; color: #b9cabc; margin-top: 6px; }
#game .attack-state { font: 8px "Exo 2", sans-serif; color: var(--acid); min-height: 10px; margin-top: 5px; }
#game .attack-slot.locked { background: #0c1b22e8; border-style: solid; border-color: #52685c70; }
#game .attack-slot.locked svg { color: #88a395; opacity: .65; }
#game .attack-slot.locked .attack-title { color: #a9b9b0; }
#game .attack-slot.locked .attack-state { color: #a0b7ab; }
#game .attack-slot.locked .attack-key { border-style: dashed; color: #9ab1a5; }
#game .attack-slot:hover:not(:disabled) { background: #21352b; border-color: var(--acid); }
#game .attack-slot.cast { border-color: var(--ability-color); box-shadow: inset 0 0 18px #e7ff732b, 0 0 9px #e7ff7329; }
#game .defence-controls { margin-top: 8px; display: flex; gap: 6px; flex-wrap: nowrap; }
#game .defence-controls button { pointer-events: auto; background: #0b1b20eb; border: 1px solid #809d9361; color: #d4e4d8; border-radius: 1px; padding: 8px 10px; font-size: 9px; min-height: 31px; }
#game .defence-controls button:disabled { opacity: .7; }
#game .defence-controls button.active, #game .defence-controls button[aria-pressed=true] { background: var(--hot); color: #111a12; border-color: var(--hot); }
#game .defence-controls > span { display: none; }
#game #pvp-button { margin-left: auto; color: #ffc4a7; }
#game #pvp-button[aria-pressed=true] { color: #101912; }
#game .control-hint { bottom: 201px; left: 50%; transform: translateX(-50%); text-align: center; max-width: 65%; width: max-content; font-size: 8px; color: #daebdf; opacity: .9; }
#game .game-overlay { align-items: flex-start; justify-content: center; padding: 48px; text-align: left; z-index: 5; background: linear-gradient(90deg, #061219ed 0%, #071721cf 35%, #07172020 75%), linear-gradient(0deg, #05141dad, transparent 70%); backdrop-filter: none; }
#game .game-overlay .eyebrow { color: var(--acid); font: 9px "Exo 2", sans-serif; letter-spacing: 1px; }
#game .game-overlay h3 { font: 400 clamp(36px, 4vw, 52px)/1.1 'Russo One', sans-serif; letter-spacing: 0; margin: 18px 0; max-width: 570px; }
#game .game-overlay h3 em { color: var(--acid); font-style: normal; }
#game .game-overlay p { color: #c1d2ca; font-size: 12px; line-height: 1.8; margin: 0 0 22px; max-width: 380px; }
#game .game-overlay .button { gap: 32px; padding: 17px 20px; font-size: 13px; box-shadow: 4px 4px 0 #1c3425; }
#game .game-overlay .engine-label { color: #a1b8ae; font: 8px/1.6 "Exo 2", sans-serif; margin-top: 18px; max-width: 380px; }
#game .lobby-coordinates { position: absolute; right: 35px; bottom: 32px; color: #daefd6; font: 9px/1.8 "Exo 2", sans-serif; text-align: right; letter-spacing: 1px; }
#game .lobby-coordinates span { display: block; margin-top: 18px; font: 900 26px/.95 "Russo One", sans-serif; letter-spacing: -1px; color: #e2ffad; }
#game .game-shell:not([data-playing=true]) .combat-panel { visibility: hidden; }
#game .game-shell:not([data-playing=true]) :is(.game-hud, .game-objective, .world-navigation, .depth-gauge, .control-hint, .game-reticle) { opacity: 0; }
#game .game-controls { padding: 13px 18px; gap: 10px; background: #0b191e; border-top: 1px solid #354e4d; }
#game .keyboard-help { font-size: 9px; color: #a1b6aa; }
#game kbd { color: #dfebd9; border: 1px solid #4b6358; border-radius: 1px; background: #16272a; font-size: 8px; }
#game .game-buttons { width: auto; gap: 8px; }
#game .game-buttons .button { padding: 9px 12px; font-size: 10px; }
#game #attack-button { display: none; }
#game .game-shell > p { color: #9ab0a4; font-size: 10px; padding: 0 18px 14px; line-height: 1.6; margin: 0; }
#game .touch-controls button { color: #dff5d5; background: #16282a; border-color: #496353; border-radius: 2px; }
#game .player-roster { z-index: 7; background: #09171bf7; border: 1px solid #4e6658; color: #e5efdf; backdrop-filter: blur(12px); border-radius: 2px; }
#game .roster-heading .eyebrow { color: var(--acid); }
#game .roster-heading h3 { font-weight: 800; }
#game .roster-heading h3 span { color: var(--acid); }
#game .roster-filter input { background: #14272b; }
#game .roster-scroll th { background: #15292b; color: #b6cebd; }
#game .roster-scroll td, #game .roster-scroll th { border-color: #354b42; }
#game .roster-scroll tr.self { background: #d5ff3f12; color: var(--acid); }
#game .roster-filter span, #game .roster-footer small { color: #a8c1b0; }
#game .combat-feedback { top: 33%; z-index: 3; font: 800 13px/1.5 "Exo 2", sans-serif; letter-spacing: .5px; background: #091b21c9; border-bottom: 2px solid #ecffb6; padding: 7px 12px; }
#game .combat-feedback.defence { border-color: var(--ice); }
#game .area-notice { top: 28%; z-index: 3; font: 800 25px "Russo One", sans-serif; color: var(--acid); background: #07171bc9; padding: 8px 15px; border-left: 3px solid var(--acid); }
#game #hit-marker { position: absolute; z-index: 3; left: 50%; top: 50%; width: 32px; height: 32px; transform: translate(-50%, -50%); color: var(--acid); pointer-events: none; }
#game #hit-marker i { position: absolute; height: 8px; width: 2px; background: currentColor; }
#game #hit-marker i:nth-child(1) { top: 0; left: 3px; transform: rotate(-45deg); }
#game #hit-marker i:nth-child(2) { top: 0; right: 3px; transform: rotate(45deg); }
#game #hit-marker i:nth-child(3) { bottom: 0; left: 3px; transform: rotate(45deg); }
#game #hit-marker i:nth-child(4) { bottom: 0; right: 3px; transform: rotate(-45deg); }
#game #hit-marker[data-kind=kill] { color: var(--hot); }
#game #hit-marker[data-kind=defend], #game #hit-marker[data-kind=parry] { color: var(--ice); }
#game #battle-feed { position: absolute; right: 24px; top: 278px; z-index: 3; list-style: none; padding: 0; margin: 0; max-width: 245px; pointer-events: none; }
#game #battle-feed li { margin-bottom: 5px; padding: 7px 9px; border-right: 2px solid var(--acid); background: #07171bdf; font: 8px/1.5 "Exo 2", sans-serif; color: #e6f5db; }
#game #battle-feed li[data-kind=incoming] { border-color: var(--hot); color: #ffcbad; }
#game #reward-toast { position: absolute; z-index: 6; top: 21px; left: 50%; transform: translateX(-50%); padding: 12px 20px; border-top: 2px solid var(--acid); background: #07171eee; text-align: center; pointer-events: none; box-shadow: 0 5px 25px #071b2955; max-width: 360px; width: max-content; }
#game #reward-title { display: block; color: var(--acid); font: 900 22px "Russo One", sans-serif; letter-spacing: -1px; }
#game #reward-detail { display: block; color: #dfebd4; margin-top: 5px; font-size: 10px; line-height: 1.5; }
#game #reward-toast[data-kind=level] { border: 1px solid var(--acid); box-shadow: 0 0 35px #d5ff3f20; }
#game .health-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; box-shadow: inset 0 0 100px #ad2b158c; transition: opacity .3s; }
#game .low-health .health-vignette { opacity: 1; }
#game .low-health #health-fill { background: var(--hot); }
#game .damage-flash { z-index: 1; box-shadow: inset 0 0 60px #ff572a8a; background: transparent; }
#game .mechanic-grid { gap: 24px; margin-top: 35px; }
#game .mechanic-grid article { border-top: 1px solid #34423c; padding: 20px 0 0; background: transparent; }
#game .mechanic-grid article > span { color: var(--acid); font: 11px "Exo 2", sans-serif; }
#game .mechanic-grid h3 { font-size: 18px; font-weight: 750; margin-top: 10px; }
#game .mechanic-grid p { color: #a5b6a9; font-size: 12px; line-height: 1.8; }
#game [data-effects=reduced] *, #game [data-effects=reduced] *::before { transition: none !important; animation: none !important; }
#game [data-effects=reduced] .damage-flash { display: none; }
#game .game-shell:fullscreen { box-shadow: none; }
#game .game-shell:fullscreen .game-viewport { flex: 1; height: auto; min-height: 320px; }
#game .game-shell:fullscreen .combat-panel { padding: 0; }
#game .game-shell:fullscreen .zone-tabs { background: #0e1b20; }
#game .game-shell:fullscreen .zone-tabs button.current { background: #d5ff3f0c; color: var(--acid); }
@media (max-width: 1000px) {
  #game .game-topbar { flex-wrap: wrap; }
  #game .game-topbar > div { width: 100%; justify-content: space-between; }
  #game .game-controls { flex-wrap: wrap; }
  #game .game-intro p { font-size: 11px; }
  #game #battle-feed { top: 270px; max-width: 180px; }
}
@media (max-width: 650px) {
  #game { margin: 50px 0; padding: 42px 12px; }
  #game .section-heading { display: block; margin-bottom: 24px; }
  #game .section-heading .eyebrow { font-size: 7px; letter-spacing: .6px; margin-bottom: 22px; }
  #game .degen-tag { margin-right: 5px; padding: 3px 5px; }
  #game h2 { font-size: 27px; letter-spacing: 0; }
  #game .game-intro { display: flex; align-items: center; flex-direction: row-reverse; justify-content: space-between; text-align: left; gap: 15px; margin-top: 22px; }
  #game .game-intro p { font-size: 10px; margin: 0; line-height: 1.7; }
  #game .edition-stamp { flex-shrink: 0; font-size: 7px; padding: 7px; }
  #game .game-shell { box-shadow: 4px 4px 0 #02080b; }
  #game .game-topbar { padding: 10px; gap: 10px; }
  #game .game-topbar > div { gap: 8px; justify-content: flex-start; }
  #game #online-count { order: -1; flex-basis: 100%; }
  #game #network-status { font-size: 8px; margin-right: auto; }
  #game .game-topbar .plain-button { font-size: 8px; }
  #game .character-lobby { flex-direction: column; align-items: stretch; padding: 12px 10px; gap: 12px; }
  #game .character-lobby strong { font-size: 12px; }
  #game .character-lobby p { font-size: 9px; }
  #game .character-actions select { font-size: 10px; width: auto; flex: 1; max-width: none; }
  #game .character-actions .button { font-size: 10px; padding: 10px; }
  #game .zone-tabs { grid-template-columns: repeat(2, 1fr); }
  #game .zone-tabs button { font-size: 9px; padding: 9px; border-bottom-width: 1px; }
  #game .zone-tabs small { font-size: 7px; }
  #game .game-viewport { height: 610px; }
  #game .game-hud { top: 12px; left: 10px; grid-template-columns: 148px 36px; gap: 5px; }
  #game .vitals-card { padding: 8px; }
  #game .vitals-title { font-size: 7px; }
  #game .vitals-title b { font-size: 19px; }
  #game .level-badge b { font-size: 24px; }
  #game .loot-readout { gap: 12px; padding: 7px; font-size: 8px; }
  #game .loot-readout small { font-size: 6px; margin-right: 3px; }
  #game .game-objective { top: 150px; left: 10px; max-width: 185px; padding-left: 8px; }
  #game .game-objective > span { font-size: 7px; }
  #game .game-objective strong { font-size: 10px; }
  #game .game-objective small { font-size: 7px; }
  #game .depth-gauge { top: 13px; right: 10px; padding-right: 7px; }
  #game .depth-gauge b { font-size: 26px; }
  #game .depth-gauge small { max-width: 90px; font-size: 7px; }
  #game .world-navigation { top: 115px; right: 10px; width: 81px; }
  #game .world-navigation canvas { height: 81px; width: 81px; }
  #game .world-navigation span { font-size: 7px; }
  #game .combat-panel { width: calc(100% - 16px); bottom: 12px; }
  #game .combat-summary { font-size: 7px; gap: 5px; display: block; }
  #game #pvp-status { display: block; font-size: 6px; margin-top: 4px; }
  #game .attack-slots { gap: 4px; }
  #game .attack-slot { min-height: 103px; padding: 9px 5px 6px; }
  #game .attack-slot svg { width: 21px; height: 21px; margin: 8px 0 8px; }
  #game .attack-key { top: 3px; right: 3px; padding: 0 3px; font-size: 7px; }
  #game .attack-title { font-size: 9px; min-height: 24px; line-height: 1.3; overflow-wrap: normal; }
  #game .attack-stats { font-size: 8px; margin-top: 5px; }
  #game .attack-cost { display: none; }
  #game .attack-state { font-size: 8px; min-height: 10px; margin-top: 5px; }
  #game .defence-controls { gap: 4px; }
  #game .defence-controls button { font-size: 8px; padding: 8px 5px; min-height: 34px; }
  #game .control-hint { bottom: 209px; font-size: 7px; max-width: 84%; }
  #game .game-overlay { padding: 26px 22px; }
  #game .game-overlay h3 { font-size: 36px; letter-spacing: 0; }
  #game .game-overlay .eyebrow { font-size: 7px; }
  #game .game-overlay p { font-size: 11px; max-width: 270px; }
  #game .game-overlay .button { font-size: 12px; padding: 15px; }
  #game .game-overlay .engine-label { max-width: 270px; font-size: 7px; }
  #game .lobby-coordinates { right: 20px; bottom: 20px; font-size: 7px; }
  #game .lobby-coordinates span { font-size: 17px; margin-top: 8px; }
  #game .game-controls { padding: 12px 10px; gap: 12px; }
  #game .keyboard-help { font-size: 7px; line-height: 2; }
  #game .game-buttons { width: 100%; justify-content: space-between; gap: 4px; }
  #game .game-buttons .button { font-size: 9px; padding: 9px; }
  #game .game-buttons .plain-button { font-size: 9px; }
  #game .game-shell > p { padding: 0 10px 12px; font-size: 9px; }
  #game #battle-feed { top: 259px; right: 10px; max-width: 185px; }
  #game #battle-feed li { font-size: 6px; padding: 5px 7px; }
  #game .combat-feedback { top: 38%; font-size: 9px; max-width: 88%; width: max-content; }
  #game .area-notice { top: 42%; font-size: 17px; max-width: 90%; white-space: normal; }
  #game #reward-toast { top: 236px; width: max-content; max-width: 90%; padding: 9px 15px; }
  #game #reward-title { font-size: 18px; }
  #game #reward-detail { font-size: 8px; }
  #game .mechanic-grid { gap: 18px; margin-top: 28px; }
  #game .mechanic-grid h3 { font-size: 17px; }
  #game .mechanic-grid p { font-size: 11px; }
  #game .game-shell:fullscreen .character-lobby, #game .game-shell:fullscreen .zone-tabs, #game .game-shell:fullscreen .keyboard-help, #game .game-shell:fullscreen > p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #game *, #game *::before { scroll-behavior: auto; }
}

/* The expedition occupies the window; the website is only the entry point. */
html.nemos-playing { overflow:hidden; overscroll-behavior:none; }
body.nemos-playing { overflow:hidden; position:fixed; inset:0; width:100%; overscroll-behavior:none; }
#game { font-family: 'Exo 2', sans-serif; --acid: #bbdc65; background-image: none; }
#game .game-brand, #game .level-badge b, #game .vitals-title b, #game .depth-gauge b { font-family: 'Russo One', sans-serif; font-weight: 400; letter-spacing: 0; }
#game .game-overlay .eyebrow, #game .game-overlay .engine-label { font-size: 11px; }
#game .game-overlay p { font-size: 16px; }
#game .lobby-coordinates { font-size: 12px; letter-spacing: .2px; line-height: 1.8; text-align: left; }
#game .lobby-coordinates span { font: 400 17px 'Russo One', sans-serif; margin: 0 0 10px; color: #e1ecd6; }
#game .in-session { position: fixed; inset: 0; z-index: 1000; width: 100%; height: 100dvh; margin: 0; display: flex; flex-direction: column; border: 0; box-shadow: none; }
#game .in-session .character-lobby, #game .in-session .zone-tabs, #game .in-session > #game-status { display: none; }
#game .in-session .game-viewport { flex: 1; height: auto; min-height: 0; }
#game .in-session .game-topbar { min-height: 45px; padding: 8px 20px; flex-shrink: 0; }
#game .in-session .game-topbar > div { font-size: 12px; }
#game .in-session .game-topbar .plain-button { font-size: 12px; }
#game .in-session #online-count { font-size: 12px; }
#game .in-session #network-status { font-size: 11px; }
#game .in-session .practice-label { font-size: 10px; letter-spacing: .5px; }
#game .in-session .game-hud { grid-template-columns: 235px 53px; }
#game .in-session .vitals-title { font-size: 11px; letter-spacing: .5px; }
#game .in-session .energy-readout, #game .in-session .energy-readout b { font-size: 11px; }
#game .in-session .loot-readout { font-size: 12px; padding: 9px 11px; }
#game .in-session .loot-readout small { font-size: 9px; }
#game .in-session .game-objective { top: 186px; max-width: 275px; }
#game .in-session .game-objective > span { font-size: 10px; }
#game .in-session .game-objective strong { font-size: 15px; line-height: 1.45; }
#game .in-session .game-objective small { font-size: 11px; }
#game .in-session .depth-gauge span, #game .in-session .depth-gauge small { font-size: 11px; }
#game .in-session .world-navigation { width: 132px; }
#game .in-session .world-navigation canvas { width: 132px; height: 132px; }
#game .in-session .world-navigation span { font-size: 11px; }
#game .in-session .attack-slot { min-height: 115px; padding: 12px; }
#game .in-session .attack-slot svg { height: 30px; width: 30px; }
#game .in-session .attack-title { font-size: 15px; }
#game .in-session .attack-stats { font-size: 11px; }
#game .in-session .attack-state { font-size: 11px; }
#game .in-session .attack-key { font-size: 12px; }
#game .in-session .combat-summary { font-size: 11px; }
#game .in-session .defence-controls button { font-size: 12px; min-height: 35px; }
#game .in-session .combat-panel { width: min(850px, calc(100% - 48px)); }
#game .in-session .control-hint { display: none; }
#game .system-notice { position: absolute; left: 22px; bottom: 27px; max-width: 235px; z-index: 3; padding: 10px 12px; color: #d2e2d7; font-size: 12px; line-height: 1.6; background: #0a1b22e0; border-left: 2px solid #8ead9f; pointer-events: none; }
#game .in-session .game-controls { flex-shrink: 0; min-height: 47px; padding: 8px 20px; }
#game .in-session .game-buttons .button { font-size: 12px; padding: 8px 14px; }
#game .in-session .keyboard-help, #game .in-session kbd { font-size: 10px; }
#game .in-session .combat-feedback { font: 400 16px 'Russo One', sans-serif; top: 34%; }
#game .in-session #battle-feed { top: 290px; }
#game .in-session #battle-feed li { font-size: 11px; }
#game .pause-menu { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; padding: 20px; background: #07141dcc; backdrop-filter: blur(8px); }
#game .pause-card { width: min(370px, 100%); max-height: 100%; overflow: auto; padding: 28px; background: #0d1c24; border: 1px solid #577173; box-shadow: 0 15px 70px #0007; }
#game .pause-card h3 { font: 400 29px 'Russo One', sans-serif; margin: 9px 0; }
#game .pause-card .eyebrow { color: #98b9bc; font-size: 10px; letter-spacing: 1px; }
#game #pause-player { font-size: 14px; color: #b3c9c9; margin: 0 0 22px; }
#game .pause-card .button { width: 100%; margin: 0 0 8px; justify-content: space-between; font-size: 14px; padding: 12px 15px; }
#game .pause-bindings { display: grid; gap: 8px; font-size: 12px; color: #a4bec1; margin: 17px 0; }
#game .pause-bindings span { display: flex; justify-content: space-between; }
#game .pause-bindings b { color: #dfebdf; font-weight: 600; }
#game .pause-note { font-size: 11px; line-height: 1.5; color: #92a9ae; padding-top: 12px; border-top: 1px solid #354b53; }
#game #pause-leave { margin-top: 18px; color: #e6b6a3; }
@media (max-width: 1000px) {
  #game .in-session .game-topbar { flex-wrap: nowrap; }
  #game .in-session .game-topbar > div { width: auto; }
  #game .in-session #network-status, #game .in-session .practice-label { display: none; }
  #game .in-session .keyboard-help { display: none; }
  #game .in-session .game-controls { justify-content: flex-end; }
}
@media (max-width: 650px) {
  #game .in-session .game-topbar { padding: 8px 10px; min-height: 44px; gap: 8px; }
  #game .in-session .game-brand { font-size: 14px; }
  #game .in-session .game-topbar > div { flex: 1; flex-wrap: nowrap; justify-content: flex-end; gap: 10px; }
  #game .in-session .game-topbar .plain-button { font-size: 11px; }
  #game .in-session #effects-toggle, #game .in-session #online-count, #game .in-session #fullscreen-game { display: none; }
  #game .in-session .game-hud { grid-template-columns: 159px 35px; }
  #game .in-session .vitals-title { font-size: 9px; }
  #game .in-session .energy-readout, #game .in-session .energy-readout b { font-size: 9px; }
  #game .in-session .loot-readout { font-size: 10px; padding: 7px; gap: 10px; }
  #game .in-session .loot-readout small { font-size: 8px; }
  #game .in-session .depth-gauge small, #game .in-session .depth-gauge span { font-size: 9px; }
  #game .in-session .game-objective { top: 158px; max-width: 190px; }
  #game .in-session .game-objective > span { font-size: 9px; }
  #game .in-session .game-objective strong { font-size: 12px; }
  #game .in-session .game-objective small { font-size: 9px; }
  #game .in-session .world-navigation, #game .in-session .world-navigation canvas { width: 82px; }
  #game .in-session .world-navigation canvas { height: 82px; }
  #game .in-session .world-navigation span { font-size: 9px; }
  #game .in-session .combat-panel { width: calc(100% - 16px); bottom: 10px; }
  #game .in-session .attack-slot { padding: 6px; min-height: 111px; }
  #game .in-session .attack-slot svg { width: 24px; height: 24px; }
  #game .in-session .attack-title { font-size: 10px; min-height: 26px; }
  #game .in-session .attack-stats, #game .in-session .attack-state, #game .in-session .attack-key { font-size: 9px; }
  #game .in-session .combat-summary { font-size: 9px; }
  #game .in-session #pvp-status { font-size: 8px; }
  #game .in-session .defence-controls button { font-size: 10px; padding: 8px 6px; }
  #game .in-session .control-hint { display: none; }
  #game .in-session .game-controls { padding: 7px 10px; min-height: 43px; }
  #game .in-session .game-buttons .button { font-size: 11px; padding: 7px 10px; }
  #game .in-session .touch-controls { margin: 0; padding: 6px 10px 10px; flex-shrink: 0; }
  #game .in-session .touch-controls button { min-height: 37px; }
  #game .in-session #battle-feed { top: 256px; }
  #game .in-session #battle-feed li { font-size: 9px; }
  #game .in-session .combat-feedback { font-size: 12px; top: 40%; }
  #game .system-notice { left: 10px; top: 280px; bottom: auto; max-width: 180px; font-size: 10px; padding: 7px 9px; }
  #game .game-overlay .eyebrow, #game .game-overlay .engine-label { font-size: 10px; }
  #game .game-overlay p { font-size: 14px; }
  #game .lobby-coordinates { font-size: 10px; }
  #game .pause-card { padding: 20px; }
}
@media (max-height: 650px) and (min-width: 651px) {
  #game .in-session .game-objective { display: none; }
  #game .in-session .combat-panel { width: 610px; bottom: 8px; }
  #game .in-session .attack-slot { min-height: 86px; padding: 8px; }
  #game .in-session .attack-slot svg { width: 20px; height: 20px; }
  #game .in-session .attack-title { font-size: 12px; }
  #game .in-session .attack-stats { display: none; }
  #game .in-session .control-hint { display: none; }
}

/* Native mouse capture and persistent controls, shared by desktop and touch. */
#game .control-settings { margin: 14px 0; border: 1px solid #41595e; }
#game .control-settings summary { padding: 13px; cursor: pointer; color: #e2f0d6; font-weight: 650; }
#game .settings-fields { display: grid; gap: 16px; padding: 14px; border-top: 1px solid #41595e; }
#game .settings-fields label { color: #c1d5d5; font-size: 13px; }
#game .settings-fields output { float: right; color: var(--acid); }
#game .settings-fields input[type=range] { width: 100%; height: 32px; padding: 0; margin: 4px 0 0; accent-color: var(--acid); }
#game .settings-fields input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--acid); flex-shrink: 0; }
#game .setting-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
#game .settings-fields p { font-size: 11px; color: #9bb6bb; line-height: 1.6; }
#game .settings-fields .button { font-size: 12px; margin: 0; }
#game .fish-threat { position: absolute; top: 158px; left: 22px; font-size: 11px; color: #eff6d8; background: #0b222add; padding: 4px 8px; pointer-events: none; }
#game .mobile-controls { display: none; }
#game [data-pointer-mode=locked] { cursor: none; }
#game .game-viewport { overflow: hidden; }
#game .in-session { padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); }
#game [data-touch=true] .mobile-controls { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 4; }
#game [data-touch=true] { --touch-scale: 1; user-select: none; -webkit-user-select: none; }
#game [data-touch=true] input { user-select: auto; -webkit-user-select: auto; }
#game [data-touch=true] #swim-stick { position: absolute; left: 20px; bottom: 175px; width: calc(128px * var(--touch-scale)); height: calc(128px * var(--touch-scale)); border-radius: 50%; touch-action: none; pointer-events: auto; background: #09242b45; border: 1px solid #caeddf66; }
#game .stick-ring { position: absolute; inset: 18%; border: 1px dashed #d4efe24a; border-radius: 50%; }
#game .stick-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40%; height: 40%; border: 2px solid #d8f5dfaa; border-radius: 50%; background: #c5e7de40; }
#game .active .stick-knob { background: #bcdc6599; border-color: #eaffb2; }
#game .stick-label { position: absolute; top: calc(100% + 5px); left: 0; width: 100%; text-align: center; font-size: 9px; color: #cee9e2; letter-spacing: 2px; }
#game .depth-controls { position: absolute; right: 20px; bottom: 175px; display: grid; gap: 8px; pointer-events: auto; }
#game .depth-controls button { width: calc(62px * var(--touch-scale)); height: calc(52px * var(--touch-scale)); min-width: 44px; min-height: 44px; color: #e6f5e8; font: 600 10px 'Exo 2', sans-serif; border: 1px solid #aacac58c; border-radius: 8px; background: #102932b8; touch-action: none; }
#game .depth-controls b { display: block; font-size: 20px; line-height: 1; }
#game .depth-controls button:active { background: #719c4a; }
#game .touch-look-hint { position: absolute; right: 18px; top: 45%; font-size: 8px; letter-spacing: 1px; opacity: .7; color: #d5f2e4; }
#game [data-touch=true][data-handedness=left] #swim-stick { left: auto; right: 20px; }
#game [data-touch=true][data-handedness=left] .depth-controls { right: auto; left: 20px; }
#game [data-touch=true][data-handedness=left] .touch-look-hint { right: auto; left: 18px; }
#game [data-touch=true] .combat-panel { bottom: 10px; width: calc(100% - 24px); z-index: 5; }
#game [data-touch=true] .attack-slot { min-height: calc(72px * var(--touch-scale)); padding: 5px; touch-action: none; }
#game [data-touch=true] .attack-slot svg { width: 22px; height: 22px; margin: 3px 0; }
#game [data-touch=true] .attack-key, #game [data-touch=true] .attack-stats { display: none; }
#game [data-touch=true] .attack-title { min-height: 0; font-size: 10px; line-height: 1.2; }
#game [data-touch=true] .attack-state { font-size: 9px; margin-top: 4px; }
#game [data-touch=true] .combat-summary { display: none; }
#game [data-touch=true] .defence-controls { margin-top: 7px; gap: 6px; }
#game [data-touch=true] .defence-controls button { flex: 1; min-height: calc(44px * var(--touch-scale)); padding: 6px; font-size: 11px; touch-action: none; }
#game [data-touch=true] .game-topbar .plain-button { min-width: 44px; min-height: 44px; padding: 6px; }
#game [data-touch=true] .game-controls { min-height: 48px; padding: 2px 10px; }
#game [data-touch=true] .game-buttons .button, #game [data-touch=true] .game-buttons .plain-button { min-height: 44px; font-size: 11px; }
#game [data-touch=true] .keyboard-help { display: none; }
#game [data-touch=true] .system-notice { top: 220px; bottom: auto; max-width: 230px; font-size: 10px; }
#game [data-touch=true] .fish-threat { top: 125px; left: 10px; font-size: 9px; }
#game [data-touch=true] .game-objective { top: 151px; }
#game [data-touch=true] .game-overlay { z-index: 7; }
#game [data-touch=true] .lobby-coordinates { display: none; }
#game [data-touch=true] .game-reticle { pointer-events: none; }
@media (max-width: 650px) {
  #game .fish-threat { top: 126px; left: 10px; font-size: 9px; }
  #game [data-touch=true] .world-navigation { top: 93px; }
  #game [data-touch=true] .game-buttons { width: 100%; }
}
@media (orientation: landscape) and (max-height: 650px) {
  #game .in-session[data-touch=true] .game-viewport { min-height:0; }
#game [data-touch=true] .game-topbar { padding: 0 10px; min-height: 44px; }
  #game [data-touch=true] .game-brand { font-size: 16px; }
  #game [data-touch=true] #online-count, #game [data-touch=true] #effects-toggle, #game [data-touch=true] .practice-label { display: none; }
  #game [data-touch=true] .game-hud { top: 7px; left: 10px; grid-template-columns: 145px 34px; gap: 4px; }
  #game [data-touch=true] .vitals-card { padding: 6px; }
  #game [data-touch=true] .vitals-title { font-size: 8px; }
  #game [data-touch=true] .vitals-title b { font-size: 20px; }
  #game [data-touch=true] .level-badge b { font-size: 24px; }
  #game [data-touch=true] .energy-readout, #game [data-touch=true] .energy-readout b { font-size: 8px; }
  #game [data-touch=true] .loot-readout { font-size: 9px; padding: 4px 6px; }
  #game [data-touch=true] .fish-threat { top: 104px; }
  #game [data-touch=true] .depth-gauge { top: 8px; right: 10px; }
  #game [data-touch=true] .depth-gauge b { font-size: 26px; }
  #game [data-touch=true] .depth-gauge span { display: none; }
  #game [data-touch=true] .world-navigation { top: 10px; right: 116px; width: 64px; }
  #game [data-touch=true] .world-navigation canvas { width: 64px; height: 64px; }
  #game [data-touch=true] .world-navigation span { font-size: 8px; }
  #game [data-touch=true] .combat-panel { width: min(440px, calc(100% - 320px)); bottom: 6px; }
  #game [data-touch=true] .attack-title { font-size: 9px; }
  #game [data-touch=true] .attack-slot { min-height: calc(62px * var(--touch-scale)); }
  #game [data-touch=true] .attack-slot svg { width: 18px; height: 18px; }
  #game [data-touch=true] #swim-stick { bottom: 21px; width: calc(112px * var(--touch-scale)); height: calc(112px * var(--touch-scale)); }
  #game [data-touch=true] .depth-controls { bottom: 21px; }
  #game [data-touch=true] .touch-look-hint { top: 37%; right: 22%; }
  #game [data-touch=true] .system-notice { top: 7px; left: 28%; max-width: 240px; font-size: 9px; }
  #game [data-touch=true] #battle-feed { display: none; }
  #game [data-touch=true] .game-controls { min-height: 44px; }
  #game [data-touch=true] .game-buttons { width: 100%; justify-content: flex-end; }
  #game [data-touch=true] .pause-menu { padding: 8px; }
  #game [data-touch=true] .pause-card { width: min(540px, 100%); padding: 18px; }
}

.species-section { padding-top: 20px; padding-bottom: 70px; }
.species-section > p:not(.eyebrow) { color: #607967; font-size: 13px; max-width: 660px; margin-top: 18px; }
.species-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.species-grid article { border: 1px solid #ccd6c6; border-top: 3px solid #8dba96; padding: 22px; background: #edf1e6; }
.species-grid h3 { font-size: 22px; letter-spacing: -.5px; margin: 14px 0; }
.species-grid p { font-size: 12px; min-height: 57px; color: #607967; }
.species-grid strong { display: block; margin-top: 16px; font-size: 13px; }
.species-grid [data-threat='4'], .species-grid [data-threat='5'] { border-top-color: #d57751; }
.fish-danger { color: #476941 !important; font-weight: 650; }
.fish-danger[data-threat='4'], .fish-danger[data-threat='5'] { color: #a25433 !important; }
.collection-toolbar .filters { flex-wrap: wrap; }
.play-entry { margin: 80px auto; padding-top: 45px; padding-bottom: 45px; }
.play-entry > p:not(.eyebrow) { margin: 20px 0; max-width: 480px; }
.game-page { background: #081820; font-family: 'Exo 2', sans-serif; }
.game-page-header { height: 82px; color: #d6e5d6; }
.game-page-header a[aria-current=page] { color: #bbdc65; border-bottom: 2px solid #bbdc65; }
.game-page #game { margin-top: 0; padding-top: 32px; }
.game-page .game-shell { --touch-scale: 1; }
.header .language-picker { flex-shrink: 0; font-size: 12px; padding: 8px; color: inherit; }
.game-page .language-picker { background: #11242d; }
#game .language-setting { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #c1d5d5; margin: 16px 0; gap: 12px; }
#game .language-setting select { background: #142e35; color: #e0eddc; border-color: #41595e; }
#game .hazard-warning { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); padding: 7px 12px; border: 1px solid #e59c71; color: #ffe4ba; background: #332218dd; font-size: 12px; z-index: 3; pointer-events: none; max-width: 50%; text-align: center; }
#game .photo-countdown { position: absolute; left: 50%; top: 25%; transform: translateX(-50%); padding: 12px 20px; color: #ffecb3; background: #142430cc; font: 20px 'Russo One', sans-serif; z-index: 8; white-space: nowrap; pointer-events: none; }
#game .photo-flash { position: absolute; inset: 0; background: #e3ffffb3; z-index: 8; pointer-events: none; }
#game .photo-dialog { max-width: 960px; width: calc(100% - 32px); max-height: 90dvh; overflow: auto; color: #d9eadc; background: #11242d; padding: 22px; }
#game .photo-dialog h3 { margin: 0 0 14px; font: 23px 'Russo One', sans-serif; }
#game .photo-dialog img { width: 100%; height: auto; max-height: 62dvh; object-fit: contain; background: #071923; border-radius: 0; }
#game .photo-dialog p { color: #c5d6cb; margin-bottom: 15px; }
#game .photo-dialog > div { display: flex; gap: 12px; flex-wrap: wrap; }
#game .voice-actions { display: flex; gap: 8px; }
#game .voice-actions button, #game #voice-people button { min-height: 44px; padding: 6px 10px; border: 1px solid #567072; background: #223f45; color: #d9eddf; }
#game #voice-people { display: grid; gap: 8px; }
#game #voice-people > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#game #voice-people > [data-connection=connected] { border-left: 2px solid #bbdc65; padding-left: 8px; }
#game .voice-talk { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); min-height: 44px; padding: 10px; color: #e3f4d5; background: #19373bdd; border: 1px solid #95bba0; border-radius: 8px; z-index: 5; touch-action: none; }
#game .voice-talk.talking { background: #607c36; }
#game [data-touch=false] .voice-talk { display: none; }
#game [data-touch=true] .hazard-warning { top: 63px; font-size: 10px; }
@media (max-width: 650px) {
  .game-page-header { height: auto; min-height: 70px; gap: 10px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
  .game-page-header .logo { font-size: 23px; }
  .game-page-header nav { gap: 14px; }
  .game-page-header #wallet-button { font-size: 10px; padding: 9px; }
  #game [data-touch=true] .game-topbar { padding: 0 8px; min-height: 44px; gap: 5px; }
  #game [data-touch=true] .game-topbar > div { gap: 1px; }
  #game [data-touch=true] .game-topbar .plain-button { font-size: 10px; }
  #game [data-touch=true] .game-brand { font-size: 14px; }
  #game .photo-countdown { font-size: 14px; }
  #game .hazard-warning { top: 207px; max-width: 80%; }
  #game [data-touch=true] .voice-talk { top: 197px; }
  #game [data-touch=true] .hazard-warning { top: 250px; max-width: 80%; }
}
@media (max-width: 650px) {
  .species-grid { grid-template-columns: 1fr; }
  .species-grid p { min-height: 0; }
  .collection-toolbar { align-items: stretch; }
  .collection-toolbar .filters { display: grid; grid-template-columns: auto 1fr; width: 100%; }
}

/* MVP expedition: readable journal, visible power-ups and compact touch toolbar. */
#game .mvp-badge { font: 700 10px 'Exo 2', sans-serif; letter-spacing: 1px; color: #d7f295; border: 1px solid #698a58; padding: 3px 5px; margin-left: 8px; }
#game .story-intro { background: #152a2c; border-left: 3px solid #b5d970; padding: 16px 20px; font-size: 13px; line-height: 1.6; }
#game .in-session .story-intro { display: none; }
#game .zone-tabs { grid-template-columns: repeat(6, 1fr); }
#game .pause-card { width: min(580px, 100%); overscroll-behavior: contain; }
#game .settings-fields select { display: block; width: 100%; min-height: 44px; margin-top: 8px; background: #1a3238; border: 1px solid #5c7775; color: #e0eee2; padding: 8px; }
#game .quest-dialog { width: min(790px, calc(100% - 24px)); max-height: 88dvh; overflow: auto; overscroll-behavior: contain; background: #10252e; color: #e4efdf; border: 1px solid #728478; padding: 24px; }
#game .quest-dialog h3 { font: 24px 'Russo One', sans-serif; margin: 0 45px 16px 0; }
#game #quest-close { float: right; color: #e4efdf; min-height: 44px; }
#game #quest-greeting { line-height: 1.7; color: #b8d2c8; margin-bottom: 20px; }
#game #quest-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
#game #quest-list article { padding: 18px; background: #193239; border: 1px solid #486562; display: flex; flex-direction: column; gap: 10px; }
#game #quest-list h4 { color: #d3ee9a; font: 700 18px 'Exo 2', sans-serif; margin: 0; }
#game #quest-list p { font-size: 13px; line-height: 1.7; margin: 0; }
#game #quest-list strong { font-size: 12px; color: #f4d8a2; margin-top: auto; }
#game #quest-list small, #game .quest-save-note { font-size: 11px; color: #bdd0c6; line-height: 1.7; }
#game #quest-list article > div { display: flex; flex-wrap: wrap; gap: 8px; }
#game #quest-list button { min-height: 44px; padding: 10px 12px; font-size: 12px; }
#game #quest-list button:disabled { opacity: .45; cursor: default; }
#game .quest-save-note { margin-top: 18px; }
#game .buff-bar { position: absolute; left: 24px; top: 300px; display: flex; flex-direction: column; gap: 5px; pointer-events: none; z-index: 3; }
#game .buff-bar span { padding: 8px 12px; background: #10252eed; border-left: 3px solid; font-size: 12px; color: #efffde; }
#game .talk-guide { position: absolute; left: 50%; bottom: 220px; transform: translateX(-50%); min-height: 48px; padding: 12px 20px; background: #d2e598; color: #142529; border: 1px solid #f2ecc3; z-index: 4; font-weight: 700; }
@media (max-width: 950px) {
  #game .zone-tabs { grid-template-columns: repeat(3, 1fr); }
  #game [data-touch=true] .game-topbar { gap: 3px; }
  #game [data-touch=true] .game-topbar > div { gap: 1px; }
  #game [data-touch=true] :is(#effects-toggle,#network-status,#online-count,#fullscreen-game,.practice-label) { display: none; }
  #game [data-touch=true] .buff-bar { top: 155px; left: 12px; }
  #game [data-touch=true] .buff-bar span { font-size: 10px; padding: 5px 8px; }
  #game [data-touch=true] .talk-guide { bottom: 144px; font-size: 12px; }
}
@media (max-width: 650px) {
  #game #quest-list { grid-template-columns: 1fr; }
  #game .quest-dialog { padding: 16px; }
  #game [data-touch=true] .game-topbar { flex-wrap: wrap; padding: 0 8px; }
  #game [data-touch=true] .game-topbar .game-brand { height: 25px; }
  #game [data-touch=true] .game-topbar > div { width: 100%; flex: auto; justify-content: space-between; }
  #game [data-touch=true] .game-topbar .plain-button { font-size: 11px; }
  #game [data-touch=true] .buff-bar { top: 240px; }
  #game [data-touch=true] .talk-guide { bottom: 185px; }
}

@media (max-width: 650px) {
  #game [data-touch=true] .game-objective { max-width: 175px; top: 155px; }
  #game [data-touch=true] .game-objective strong { font-size: 11px; margin: 4px 0; }
  #game [data-touch=true] .game-objective small, #game [data-touch=true] .xp-track { display: none; }
  #game [data-touch=true] .system-notice { top: 220px; max-width: calc(100% - 32px); font-size: 10px; padding: 7px 10px; }
  #game [data-touch=true] #reward-toast { top: 286px; padding: 7px 12px; }
  #game [data-touch=true] #reward-title { font-size: 17px; }
  #game [data-touch=true] .fish-threat { display: none; }
}

#game .quest-dialog { max-width: min(790px, calc(100% - 24px)); border-radius: 2px; }
#game #quest-list:not(:has(article + article)) { grid-template-columns: 1fr; }
#game .photo-dialog { border-radius: 2px; }

/* Timed runs, server queues and the player-controlled predator. */
#game .server-browser { padding: 20px; background: #10252b; border-bottom: 1px solid #48605c; }
#game .in-session .server-browser { display: none; }
#game .run-mode-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
#game .run-mode-heading b { font: 18px 'Russo One', sans-serif; color: #d4e799; }
#game .run-mode-heading p, #game #selected-mode { font-size: 12px; color: #b6cfc4; margin: 9px 0; }
#game .run-servers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 10px; }
#game .server-card { background: #193238; color: #dce9de; border: 1px solid #46625f; padding: 16px; text-align: left; display: grid; gap: 8px; min-height: 100px; }
#game .server-card strong { font: 18px 'Russo One', sans-serif; }
#game .server-card span { font-size: 12px; }
#game .server-card small { color: #a3c0bc; font-size: 11px; }
#game .server-card[aria-pressed=true] { border-color: #c8e586; background: #2d4031; box-shadow: inset 3px 0 #c8e586; }
#game .run-hud { position: absolute; z-index: 4; top: 22px; left: 50%; transform: translateX(-50%); background: #11232deb; border-top: 2px solid #efb888; color: #f4e7cf; padding: 12px 18px; min-width: 310px; max-width: 40%; }
#game .run-hud strong { font-size: 12px; text-transform: uppercase; }
#game #run-timer { float: right; margin-left: 16px; font: 22px 'Russo One', sans-serif; color: #f6ba91; }
#game .run-hud p { font-size: 13px; line-height: 1.5; margin: 12px 0 5px; }
#game .run-hud small { font-size: 11px; color: #e0b39c; }
#game .run-announcement { position: absolute; z-index: 12; left: 50%; top: 30%; transform: translateX(-50%); width: min(680px, 85%); border-left: 5px solid #ffae76; padding: 22px 28px; background: #0a1829f0; color: #ffe4b9; text-align: center; pointer-events: none; box-shadow: 0 14px 40px #0005; }
#game .run-announcement b { display: block; font: clamp(22px, 3vw, 42px) 'Russo One', sans-serif; }
#game .run-announcement span { display: block; margin-top: 12px; color: #d5dfdc; font-size: 14px; line-height: 1.6; }
#game .run-announcement.arrive { animation: run-alert .42s cubic-bezier(.2,.8,.3,1) both; }
@keyframes run-alert { from { opacity: 0; transform: translate(-50%,-35px) scale(.92); } to { opacity: 1; transform: translate(-50%,0) scale(1); } }
#game .predator-offer { width: min(560px, calc(100% - 28px)); max-width: 560px; border: 1px solid #e09f85; border-radius: 2px; background: #182732; color: #e9edda; padding: 26px; }
#game .predator-offer h3 { font: 25px 'Russo One', sans-serif; margin: 0 0 16px; color: #ffbd8b; }
#game .predator-offer p { line-height: 1.7; font-size: 14px; }
#game .predator-offer strong { display: block; font: 26px 'Russo One', sans-serif; margin: 18px 0; }
#game .predator-offer > div { display: flex; flex-wrap: wrap; gap: 10px; }
#game [data-predator=true] :is(.combat-panel,.game-objective,.fish-threat) { display: none; }
#game .predator-powers { position: absolute; z-index: 5; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; width: min(760px, calc(100% - 28px)); }
#game .predator-powers button { flex: 1; min-height: 72px; border: 1px solid #c89072; background: #281c2cee; color: #ffe4ad; padding: 12px; font-size: 14px; }
#game .predator-powers button:disabled { opacity: .65; }
#game [data-run=true] #extract-button { display: none; }
#game [data-effects=reduced] .run-announcement.arrive { animation: none; }
@media (prefers-reduced-motion: reduce) { #game .run-announcement.arrive { animation: none; } }
@media (max-width: 950px) {
 #game .run-hud { min-width: 220px; max-width: 36%; padding: 8px 12px; }
 #game .run-hud p { font-size: 11px; }
 #game [data-run=true] .game-objective { display: none; }
}
@media (max-width: 650px) {
 #game .run-servers { grid-template-columns: 1fr; }
 #game .run-mode-heading { align-items: flex-start; flex-direction: column; }
 #game .run-hud { left: 12px; top: 154px; transform: none; width: calc(100% - 24px); max-width: none; }
 #game .run-announcement { padding: 16px; top: 37%; }
 #game .run-announcement span { font-size: 12px; }
 #game .predator-powers { bottom: 15px; }
 #game .predator-powers button { font-size: 11px; padding: 7px; }
}

#game [data-run=true] .game-objective { display: none; }
/* Recovery and treasure use the same controls on desktop and touch. */
#game .recovery-controls { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; pointer-events:auto; }
#game .heal-button { min-height:38px; border:1px solid #67998a; background:#143c34; color:#c7ffe3; padding:8px 11px; font-weight:700; }
#game .heal-button:disabled { opacity:.65; }
#game .healing-status { font-size:10px; color:#a3d7c8; }
#game .chest-interact { position:absolute; z-index:18; left:50%; top:61%; transform:translateX(-50%); min-height:48px; min-width:200px; padding:12px 18px; color:#231f16; border:1px solid #ffe4a0; background:#f5cf7c; font-weight:800; touch-action:none; pointer-events:auto; }
#game .chest-interact progress { display:block; height:5px; width:100%; margin-top:6px; accent-color:#65442a; }
#game .chest-tracker { position:absolute; right:22px; top:310px; z-index:6; padding:10px 12px; background:#182323e8; border:1px solid #9d8553; color:#ffe0a5; font-size:12px; pointer-events:auto; }
@media(max-width:700px) { #game .chest-tracker { top:255px; right:12px; font-size:10px; padding:8px; } #game .heal-button { min-height:40px; padding:7px; font-size:10px; } #game .healing-status { font-size:9px; } }
@media(max-height:520px) { #game .recovery-controls { gap:3px; } #game .heal-button { min-height:36px; padding:6px; font-size:10px; } #game .healing-status { display:none; } #game .chest-tracker { top:112px; right:12px; max-width:150px; font-size:10px; padding:7px; } #game .chest-interact { top:36%; min-height:44px; min-width:160px; font-size:11px; padding:8px; } }

/* Keep recovery and species in the HUD flow; both stay clear of the objective. */
#game .game-hud .fish-threat { position:static; grid-column:1 / -1; width:fit-content; margin:0; }
#game .game-hud .recovery-controls { padding:0; background:transparent; border:0; }
#game .game-hud .recovery-controls .heal-button { font-size:12px; min-height:38px; padding:8px 11px; }
#game .in-session .game-objective { top:266px; }
@media(max-width:700px) { #game .in-session .game-objective { top:230px; } #game .game-hud .recovery-controls .heal-button { font-size:10px; } }
@media(orientation:landscape) and (max-height:650px) { #game [data-touch=true] .game-hud .fish-threat { display:none; } #game [data-touch=true] .game-hud .recovery-controls .heal-button { min-height:36px; font-size:10px; padding:6px; } }

/* Dedicated phone controls. Desktop HUD stays in its original DOM locations. */
#game :is(.touch-status,.touch-notices,.touch-interactions,.touch-dock,.touch-archive,.touch-menu-info,.mobile-battle,.mobile-ability-picker,.mobile-launch-button) { display:none; }
#game #screenshot-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; }
#game #screenshot-button svg { width:20px; height:20px; flex-shrink:0; }
#game .install-game-dialog { width:min(440px,calc(100% - 24px)); max-height:90dvh; overflow:auto; padding:24px; border:1px solid #507781; background:#0a202c; color:#e9f5df; }
#game .install-game-dialog :is(p,ol) { margin:16px 0; font-size:14px; }
#game .install-game-dialog h3 { font:22px 'Russo One',sans-serif; }
#game .install-game-dialog button { min-height:44px; margin-top:8px; }
#game .install-game-dialog #install-game-cancel { color:#c0d5d5; display:block; }
#game #presentation-notice { margin:12px 0; padding:10px; color:#e7f5bd; background:#152f39; font-size:13px; }
#game .rotate-game-dialog { position:fixed; inset:0; width:100%; height:100dvh; max-width:none; max-height:none; margin:0; padding:24px; border:0; background:#071b25; color:#eaf7ed; overscroll-behavior:none; touch-action:none; }
#game .rotate-game-dialog::backdrop { background:#071b25; }
#game .rotate-game-dialog[open] { display:grid; place-items:center; }
#game .rotate-game-card { display:flex; flex-direction:column; align-items:center; gap:18px; max-width:330px; text-align:center; padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
#game .rotate-game-brand { font-weight:900; letter-spacing:.12em; font-size:18px; }
#game .rotate-game-card svg { width:120px; height:100px; fill:none; stroke:#c4df6c; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
#game .rotate-game-card h2 { margin:0; font-size:clamp(24px,8vw,34px); line-height:1.1; }
#game .rotate-game-card p { margin:0; font-size:16px; line-height:1.5; }
#game .rotate-game-card small { color:#93adb5; font-size:12px; line-height:1.5; }
#game .rotate-game-card .button { min-height:44px; margin-top:8px; }
#game .in-session[data-touch=true] { top:var(--game-top,0px); bottom:auto; height:var(--game-height,100dvh); overflow:hidden; }
#game [data-touch=true] { --thumb-size:max(88px,calc(104px * var(--hud-scale,1))); --action-small:max(44px,calc(44px * var(--hud-scale,1))); --action-big:max(60px,calc(72px * var(--hud-scale,1))); --action-span:calc(var(--action-small) + var(--action-big) + 8px); }
#game [data-touch=true] .game-topbar { flex-wrap:nowrap; padding:0 8px; min-height:44px; height:44px; gap:4px; }
#game .in-session[data-touch=true] .game-topbar { position:absolute; z-index:7; top:calc(8px + env(safe-area-inset-top)); right:calc(8px + env(safe-area-inset-right)); left:auto; padding:0; background:none; border:0; }
#game [data-touch=true] .game-topbar > div { width:auto; flex-wrap:nowrap; gap:5px; }
#game [data-touch=true] .game-topbar :is(.game-brand,#effects-toggle,#online-count) { display:none; }
#game [data-touch=true] .game-topbar .plain-button, #game [data-touch=true] #voice-talk { width:44px; height:44px; min-width:44px; min-height:44px; margin:0; padding:0; border-radius:50%; border:1px solid #d5f4e649; background:#08243070; color:#f0ffea; box-shadow:0 2px 8px #03131928; }
#game [data-touch=true] #menu-button { font-size:0; }
#game [data-touch=true] #menu-button::before { content:'☰'; font-size:23px; }
#game [data-touch=true] #screenshot-button span { display:none; }
#game [data-touch=true] #voice-talk { position:static; transform:none; font-size:9px; }
#game [data-touch=true] .mobile-launch-button { display:block; min-height:44px; margin-top:8px; }
#game [data-touch=true] :is(.game-controls,.mobile-controls,.stick-label,.touch-look-hint,.healing-status,.fish-threat,#battle-feed,.touch-status-right) { display:none; }
#game [data-touch=true] .touch-status { display:block; position:absolute; top:10px; left:10px; width:154px; z-index:3; pointer-events:none; }
#game [data-touch=true] .touch-status-left { width:100%; }
#game [data-touch=true] .touch-status :is(.game-hud,.depth-gauge,.run-hud) { position:static; transform:none; width:100%; min-width:0; max-width:none; margin:0; }
#game [data-touch=true] .game-hud { grid-template-columns:minmax(0,1fr) 28px; gap:3px; }
#game [data-touch=true] .vitals-card { padding:5px 7px; border:0; border-radius:8px; background:#05222f75; backdrop-filter:none; }
#game [data-touch=true] .vitals-title { font-size:8px; line-height:1; }
#game [data-touch=true] .vitals-title b { font-size:20px; }
#game [data-touch=true] .vitals-title small { display:none; }
#game [data-touch=true] .energy-readout, #game [data-touch=true] .energy-readout b { font-size:8px; margin-top:4px; }
#game [data-touch=true] .health-track { margin-top:4px; height:3px; }
#game [data-touch=true] .energy-track { height:2px; }
#game [data-touch=true] .level-badge { gap:2px; padding:3px; border:0; border-radius:7px; background:#05222f75; }
#game [data-touch=true] .level-badge b { font-size:20px; }
#game [data-touch=true] .level-badge span { font-size:8px; }
#game [data-touch=true] .touch-status .depth-gauge { display:flex; align-items:baseline; gap:7px; padding:4px 5px; border:0; text-align:left; text-shadow:0 1px 3px #001720; }
#game [data-touch=true] .depth-gauge b { font-size:14px; line-height:1; }
#game [data-touch=true] .depth-gauge span { display:none; }
#game [data-touch=true] .depth-gauge small { font-size:9px; }
#game [data-touch=true] .touch-status .run-hud { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:3px; margin-top:3px; padding:5px; border-radius:5px; font-size:10px; line-height:1.3; background:#182635bf; }
#game [data-touch=true] .run-hud strong { font-size:9px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#game [data-touch=true] .run-hud p { display:none; }
#game [data-touch=true] .run-hud small { grid-column:1 / -1; font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#game [data-touch=true] #run-timer { float:none; font-size:14px; margin:0; }
#game [data-touch=true] .touch-dock { display:block; position:absolute; left:8px; right:8px; bottom:8px; height:max(128px,var(--action-span)); z-index:5; pointer-events:none; }
#game [data-touch=true] .touch-movement { position:absolute; left:0; bottom:0; }
#game [data-touch=true] .touch-dock #swim-stick { position:relative; inset:auto; margin:0; width:var(--thumb-size); height:var(--thumb-size); background:#092f3833; border:1px solid #e0ffeb55; box-shadow:none; opacity:.72; }
#game [data-touch=true] .touch-dock #swim-stick.active { opacity:1; background:#123a474d; }
#game [data-sprinting=true] .touch-dock #swim-stick.active { border-color:#d9f578; box-shadow:0 0 18px #bddf6426; }
#game [data-sprinting=true] #energy-fill { background:#d9f578; }
#game .energy-readout #energy-label { font-size:inherit; }
#game [data-touch=true][data-stick-mode=floating] .touch-dock #swim-stick:not(.active) { opacity:.35; }
#game [data-touch=true][data-stick-mode=floating] .touch-dock #swim-stick.active { pointer-events:none; }
#game [data-touch=true] .stick-ring { background:none; border:1px solid #d5f7ec47; }
#game [data-touch=true] .stick-knob { border:1px solid #e3fff4a6; background:#bcf7e526; }
#game [data-touch=true] .touch-utility { position:absolute; left:12px; bottom:calc(var(--thumb-size) + 14px); width:72px; pointer-events:auto; }
#game [data-touch=true] .touch-utility .recovery-controls { position:static; transform:none; width:100%; margin:0; padding:0; background:none; border:0; }
#game [data-touch=true] .touch-utility .heal-button { width:100%; min-height:44px; padding:4px; font-size:10px; border-radius:24px; background:#173c2fc9; }
#game [data-touch=true] .touch-depth { display:none; position:absolute; bottom:calc(var(--action-span) + 8px); right:4px; }
#game [data-touch=true][data-depth-buttons=true] .touch-depth { display:block; }
#game [data-touch=true] .touch-depth .depth-controls { position:static; transform:none; display:flex; gap:6px; }
#game [data-touch=true] .depth-controls button { width:44px; height:44px; font-size:8px; border-radius:50%; background:#08243070; }
#game [data-touch=true] .depth-controls b { font-size:15px; }
#game [data-touch=true][data-playing=true] .mobile-battle { display:grid; grid-template-columns:var(--action-small) var(--action-big); grid-template-rows:var(--action-small) var(--action-big); grid-template-areas:'choose guard' 'dodge attack'; gap:8px; position:absolute; right:12px; bottom:12px; width:var(--action-span); height:var(--action-span); align-items:center; justify-items:center; z-index:5; pointer-events:none; }
#game [data-touch=true] .mobile-battle > button { min-width:44px; min-height:44px; pointer-events:auto; touch-action:none; color:#eefff2; background:#08243066; border:1px solid #d0f3e568; border-radius:50%; padding:0; }
#game [data-touch=true] .mobile-battle > button:disabled { opacity:.45; }
#game [data-touch=true] .mobile-battle > button[aria-disabled=true] { opacity:.45; }
#game [data-touch=true] :is(.mobile-battle,.mobile-primary *) { touch-action:none; -webkit-touch-callout:none; }
#game [data-gesture-guard=true] .game-viewport { touch-action:none; overscroll-behavior:none; -webkit-touch-callout:none; }
#game [data-touch=true] .mobile-battle > button:active { background:#bde974b3; }
#game [data-touch=true] #mobile-primary { grid-area:attack; width:var(--action-big); height:var(--action-big); display:flex; flex-direction:column; justify-content:center; align-items:center; gap:3px; border:2px solid #f4e8aac9; background:conic-gradient(#fff3c24d calc(var(--cooldown,0) * 1turn),#08243066 0); box-shadow:0 2px 12px #09243138; }
#game [data-touch=true] .mobile-primary-glyph svg { display:block; width:27px; height:27px; }
#game [data-touch=true] .mobile-primary-state { font-size:9px; line-height:1.15; max-width:64px; max-height:22px; overflow:hidden; }
#game [data-touch=true] #mobile-abilities { grid-area:choose; width:var(--action-small); height:var(--action-small); }
#game [data-touch=true] #mobile-abilities svg { width:23px; height:23px; }
#game [data-touch=true] .mobile-battle #guard-button { grid-area:guard; width:var(--action-small); height:var(--action-small); font-size:0; }
#game [data-touch=true] .mobile-battle #guard-button::before { content:'◇'; font-size:29px; }
#game [data-touch=true] .mobile-battle #guard-button.active { background:#bdd876aa; }
#game [data-touch=true] .mobile-battle #dodge-button { grid-area:dodge; width:var(--action-small); height:var(--action-small); font-size:0; }
#game [data-touch=true] .mobile-battle #dodge-button::before { content:'»'; font-size:32px; line-height:1; }
#game [data-touch=true][data-predator=true] .mobile-battle :is(#guard-button,#dodge-button) { visibility:hidden; }
#game [data-touch=true][data-handedness=left] .touch-movement { left:auto; right:0; }
#game [data-touch=true][data-handedness=left] .touch-utility { left:auto; right:12px; }
#game [data-touch=true][data-handedness=left] .touch-depth { right:auto; left:4px; }
#game [data-touch=true][data-handedness=left] .mobile-battle { right:auto; left:12px; }
#game [data-touch=true] .mobile-ability-picker { display:block; position:absolute; z-index:8; bottom:152px; left:50%; transform:translateX(-50%); width:min(390px,calc(100% - 20px)); background:#0b2432ef; border:1px solid #9ad2c56b; border-radius:16px; padding:12px; color:#e8f6dd; box-shadow:0 8px 32px #03151b55; }
#game [data-touch=true] .mobile-ability-picker > strong { display:block; font-size:12px; padding:3px 40px 10px 0; }
#game [data-touch=true] .mobile-picker-close { position:absolute; right:6px; top:0; width:44px; height:44px; padding:0; border:0; background:none; color:#dfefde; font-size:24px; }
#game [data-touch=true] .mobile-ability-choices { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; }
#game [data-touch=true] .mobile-ability-choices button { min-width:44px; min-height:92px; padding:7px 2px; background:#143442; border:1px solid #79a6a05c; border-radius:10px; color:#e4f6e8; }
#game [data-touch=true] .mobile-ability-choices button[aria-pressed=true] { border-color:#d9ef8c; background:#304b3a; }
#game [data-touch=true] .mobile-ability-choices svg { display:block; width:24px; height:24px; margin:0 auto 6px; }
#game [data-touch=true] .mobile-ability-choices span { display:block; font-size:9px; line-height:1.25; min-height:23px; }
#game [data-touch=true] .mobile-ability-choices small { font-size:8px; color:#cbe595; }
#game [data-touch=true] .touch-interactions { display:flex; justify-content:center; position:absolute; bottom:152px; left:8px; right:8px; z-index:6; pointer-events:none; }
#game [data-touch=true] .touch-interactions > button { position:static; transform:none; min-width:120px; width:auto; max-width:min(220px,100%); min-height:44px; margin:0; padding:7px 12px; font-size:11px; border-radius:22px; pointer-events:auto; }
#game [data-touch=true] .touch-notices { display:grid; position:absolute; top:calc(var(--status-height,82px) + 18px); left:10px; right:10px; z-index:6; justify-items:center; pointer-events:none; }
#game [data-touch=true] .touch-notices > *, #game [data-touch=true] .touch-notices #reward-toast { position:static; transform:none; width:auto; min-width:0; max-width:100%; padding:5px 8px; margin:0; font-size:10px; line-height:1.3; text-align:center; border-radius:5px; }
#game [data-touch=true] .touch-notices #reward-title { font-size:12px; line-height:1.3; letter-spacing:0; }
#game [data-touch=true] .touch-notices .run-announcement { animation:none; }
#game [data-touch=true] .run-announcement b { font-size:13px; }
#game [data-touch=true] .run-announcement span { display:none; }
#game [data-touch=true] .touch-notices .system-notice { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; max-height:38px; }
#game [data-touch=true] [data-touch-suppressed] { display:none !important; }
#game [data-touch=true][data-touch-layout=wide] .touch-notices { top:12px; left:178px; right:116px; }
#game [data-touch=true][data-touch-layout=wide] .touch-interactions { bottom:auto; top:74px; left:178px; right:116px; }
#game [data-touch=true][data-compact=true] .touch-notices #reward-detail { display:none; }
#game [data-touch=true] .pause-menu { padding:8px; z-index:10; }
#game [data-touch=true] .pause-card { max-height:100%; padding:16px; overscroll-behavior:contain; }
#game [data-touch=true] .touch-menu-info { display:grid; grid-template-columns:1fr; gap:10px; margin-top:16px; }
#game [data-touch=true] .touch-menu-info :is(.loot-readout,.game-objective,.world-navigation,.chest-tracker,.buff-bar) { position:static; transform:none; width:100%; min-width:0; max-width:none; margin:0; }
#game [data-touch=true] .touch-menu-info .world-navigation { width:150px; justify-self:center; }
#game [data-touch=true] .touch-menu-info .world-navigation canvas { width:150px; height:150px; }
#game [data-touch=true] .touch-menu-info .chest-tracker { min-height:44px; padding:8px; }
#game [data-touch=true] .touch-menu-info .game-objective strong { font-size:13px; }
#game [data-touch=true] .touch-menu-info .loot-readout { padding:8px; font-size:12px; }
#game [data-touch=true] .touch-menu-info #network-status { display:block; font-size:12px; text-align:center; }
#game [data-touch=true] .touch-menu-info .game-objective { display:block; }
#game [data-touch=true][data-run=true] .touch-menu-info .game-objective { display:none; }
#game [data-touch=true] .touch-menu-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:16px; }
#game [data-touch=true] .touch-menu-actions button { min-height:44px; margin:0; padding:8px; background:#18343c; color:#e3efdf; border:1px solid #527172; border-radius:8px; font-size:12px; white-space:normal; }
#game [data-touch=true] .touch-menu-actions #fullscreen-game { display:block; }
#game [data-touch=true] #install-game { margin-top:12px; min-height:44px; }
#game [data-touch=true] dialog { max-height:calc(var(--game-height,100dvh) - 16px); overscroll-behavior:contain; }
#game [data-touch=true] :is(input,select,textarea) { font-size:16px; }
#game [data-touch=true] .photo-dialog { padding:12px; }
#game [data-touch=true] .photo-dialog h3 { font-size:18px; margin-bottom:8px; }
#game [data-touch=true] .photo-dialog p { margin:6px 0; font-size:12px; }
#game [data-touch=true] .photo-dialog img { max-height:calc(var(--game-height,100dvh) - 170px); }
#game [data-touch=true] .photo-dialog > div { gap:8px; }
#game [data-touch=true] .photo-dialog :is(a,button) { min-height:44px; padding:10px; font-size:12px; }
@media(max-height:350px) { #game [data-touch=true] .mobile-ability-picker { bottom:8px; } }

/* Expedition flags and unobtrusive route guidance. */
#game .checkpoint-card { margin-top:16px; padding:12px; border:1px solid #617453; background:#12282b; }
#game .checkpoint-card strong { color:#ffe1a1; font-size:13px; }
#game .checkpoint-card p { margin:7px 0 0; font-size:12px; line-height:1.5; }
#game .checkpoint-card .checkpoint-help { color:#a9c4bf; }
#game .route-compass { position:absolute; top:142px; left:50%; transform:translateX(-50%); max-width:260px; padding:6px 10px; border-left:2px solid #ffe1a1; color:#ffedb9; background:#09232dbd; font:600 12px/1.35 "Exo 2",sans-serif; pointer-events:none; text-align:center; border-radius:4px; z-index:3; }
#game .route-compass[data-refuge=true] { color:#b6ffe0; border-color:#82efbf; }
#game #checkpoint-respawn { margin:8px; }
#game #checkpoint-death-hint { margin:4px 0 8px; max-width:450px; font-size:12px; color:#ffdfa0; }
#game [data-touch=true] .route-compass { top:auto; bottom:10px; max-width:calc(100% - 330px); padding:4px 6px; font-size:10px; }
#game [data-touch=true] .checkpoint-card { margin-top:12px; }
#game [data-touch=true] .game-overlay #checkpoint-respawn { min-height:44px; padding:9px 14px; }
#game [data-touch=true] .game-overlay #checkpoint-death-hint { font-size:10px; line-height:1.25; margin:2px 0; }
#game [data-touch=true] .game-overlay:has(#checkpoint-respawn:not([hidden])) .lobby-coordinates { display:none; }

/* Live-game menus leave the centre and the left side of the ocean visible. */
#game .game-shell { --live-panel-width:min(390px,44vw); }
#game .pause-menu { place-items:center end; padding:12px; background:linear-gradient(90deg,transparent 45%,#04151d35); backdrop-filter:none; }
#game .pause-card.live-menu-panel { width:var(--live-panel-width); max-height:100%; padding:14px; }
#game .live-menu-panel { box-sizing:border-box; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#638a87 #10252e; }
#game .player-roster.live-menu-panel { inset:12px 12px 12px auto; width:var(--live-panel-width); padding:14px; overflow:auto; backdrop-filter:none; }
#game dialog.live-menu-panel { position:fixed; inset:12px max(12px,env(safe-area-inset-right)) 12px auto; margin:0; width:var(--live-panel-width); max-width:var(--live-panel-width); height:fit-content; max-height:calc(var(--game-height,100dvh) - 24px); overflow:auto; padding:14px; border:1px solid #577173; border-radius:6px; background:#0d222bed; box-shadow:0 8px 28px #0005; }
#game dialog.live-menu-panel::backdrop { background:transparent; backdrop-filter:none; }
#game .live-menu-panel .menu-safety { position:sticky; top:-14px; z-index:5; display:grid; grid-template-columns:1fr auto; align-items:center; gap:5px 8px; margin:-14px -14px 14px; padding:10px 14px; background:#102a32; border-bottom:1px solid #63857e; }
#game .menu-safety strong { color:#eff9db; font:700 14px 'Exo 2',sans-serif; }
#game .menu-safety span { color:#b6cfc9; font-size:10px; text-align:right; }
#game .menu-safety progress { appearance:none; display:block; width:100%; height:5px; grid-column:1/-1; margin:0; border:0; background:#304953; accent-color:#c4e377; }
#game .menu-safety progress::-webkit-progress-bar { background:#304953; }
#game .menu-safety progress::-webkit-progress-value { background:#c4e377; }
#game .menu-safety button { grid-column:1/-1; min-height:44px; margin:3px 0 0; padding:8px; width:100%; background:#c4e377; color:#142c2c; border:1px solid #dcedac; border-radius:4px; font:700 13px 'Exo 2',sans-serif; cursor:pointer; touch-action:manipulation; }
#game .menu-safety[data-danger=true] { background:#57262a; border-color:#ff8e81; }
#game .menu-safety[data-danger=true] span { color:#ffd2b3; font-weight:700; }
#game .live-menu-panel :is(h2,h3) { font-size:20px; overflow-wrap:anywhere; }
#game .live-menu-panel :is(.economy-grid,.quest-grid) { grid-template-columns:1fr; }
#game .live-menu-panel .economy-heading { padding:8px 44px 14px 0; }
#game .live-menu-panel .economy-heading h2 { font-size:20px; }
#game .live-menu-panel .economy-close { right:0; top:0; width:44px; height:44px; }
#game .live-menu-panel .economy-body { padding:14px 0; }
#game .live-menu-panel .economy-tabs { position:static; flex-wrap:wrap; }
#game .live-menu-panel .economy-tabs button { flex:1 0 30%; min-height:44px; padding:8px 5px; }
#game .live-menu-panel .economy-message { padding:10px 0; }
#game .live-menu-panel .economy-wallet { padding:4px 10px; }
#game .live-menu-panel .economy-wallet strong { font-size:32px; }
#game .live-menu-panel .economy-card { padding:12px; }
#game .economy-dialog[aria-busy=true] .menu-safety button { pointer-events:auto; opacity:1; }
#game .live-menu-panel .roster-scroll { min-height:100px; overflow:auto; }
#game .live-menu-panel .roster-heading { flex-wrap:wrap; gap:8px; }
#game .live-menu-panel .roster-heading h3 { font-size:18px; }
#game .live-menu-panel .settings-fields { grid-template-columns:minmax(0,1fr); }
#game .live-menu-panel .settings-fields > label { min-width:0; }
#game .live-menu-panel #pause-player { margin-bottom:12px; }
#game .live-menu-panel.photo-dialog img { max-height:35dvh; }
#game [data-touch=true] { --live-panel-width:min(340px,44vw); }
#game [data-touch=true] .pause-menu { place-items:center end; padding:8px max(8px,env(safe-area-inset-right)); }
#game [data-touch=true] .pause-card.live-menu-panel { width:var(--live-panel-width); padding:12px; }
#game [data-touch=true] dialog.live-menu-panel { inset:8px max(8px,env(safe-area-inset-right)) 8px auto; max-height:calc(var(--game-height,100dvh) - 16px); padding:12px; }
#game [data-touch=true] .player-roster.live-menu-panel { inset:8px max(8px,env(safe-area-inset-right)) 8px auto; padding:12px; }
#game [data-touch=true] .live-menu-panel .menu-safety { top:-12px; margin:-12px -12px 10px; padding:8px 12px; gap:4px; }
#game [data-touch=true] .menu-safety strong { font-size:12px; }
#game [data-touch=true] .menu-safety span { font-size:9px; }
#game [data-touch=true] .live-menu-panel :is(h2,h3) { font-size:17px; }
#game [data-touch=true] .live-menu-panel.photo-dialog img { max-height:35dvh; }
#game [data-touch=true] .live-menu-panel .setting-toggle { font-size:12px; }
#game [data-touch=true] .live-menu-panel .touch-menu-actions { gap:6px; }
#game [data-touch=true] .live-menu-panel .button { min-height:44px; }
#game .game-shell:has(.pause-menu:not([hidden]),.player-roster:not([hidden]),dialog.live-menu-panel[open]) .game-topbar { visibility:hidden; }
#game .live-menu-panel .roster-footer { flex-wrap:wrap; gap:6px; }
#game .live-menu-panel .roster-filter { flex-wrap:wrap; }
#game .live-menu-panel .roster-filter input { min-width:0; width:100%; }
#game .player-roster.live-menu-panel { display:block; }
#game .player-roster.live-menu-panel[hidden] { display:none; }
#game .live-menu-panel .roster-scroll { width:100%; max-height:40dvh; }
#game .live-menu-panel .roster-scroll table { min-width:440px; }
#game .live-menu-panel .pause-bindings span { flex-wrap:wrap; gap:4px 8px; }
#game .live-menu-panel .language-setting { flex-wrap:wrap; }
#game .live-menu-panel :is(p,label,button,summary) { overflow-wrap:anywhere; }
#game .live-menu-panel .menu-safety #resume-game { margin:3px 0 0; padding:8px; font-size:13px; }
#game .live-menu-panel label:has(> select) { overflow:hidden; }
#game .live-menu-panel select { min-width:0; max-width:100%; text-overflow:ellipsis; overflow:hidden; }
