/* Enguia: lagoa contínua, HUD fora da pista e controles que não cobrem o corpo. */
#eel-game.active { display:grid; grid-template-rows:auto minmax(0,1fr); gap:12px; height:calc(100dvh - 28px); min-height:0; color:#d9f3e9; font-family:system-ui,sans-serif; }
.app-shell #eel-game.active { overflow:hidden; }
#eel-game .eel-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 4px; }
#eel-game h1 { margin:0; font-size:24px; font-weight:700; letter-spacing:-.04em; }
#eel-game .back-link { min-width:100px!important; font-size:12px!important; margin:0; }
.eel-hud { display:flex; gap:20px; margin-left:auto; }
.eel-hud>div { display:grid; gap:2px; }
.eel-hud span { color:#86b4ae; font-size:9px; letter-spacing:.11em; text-transform:uppercase; }
.eel-hud strong { font-size:20px; color:#dcffe9; font-variant-numeric:tabular-nums; }
.eel-layout { min-height:0; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); gap:10px; padding:10px; border:1px solid #27554f; border-radius:22px; background:radial-gradient(ellipse at 10% 0,#123b3b,#061e28 70%); }
#eel-stage { display:grid; place-items:center; min-width:0; min-height:0; overflow:hidden; }
#eel-game #eel-board { position:relative; display:block; padding:0; flex:none; overflow:hidden; border:0; border-radius:18px; background:#082e3b; box-shadow:0 16px 50px #0005; container:eel-pond / size; }
#eel-canvas { display:block; touch-action:none; user-select:none; outline-offset:-4px; }
#eel-canvas:focus-visible { outline:2px solid #9edcbe; }
.eel-touch-controls { display:none; min-width:0; align-items:center; justify-content:center; gap:18px; }
.eel-diet { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:20px 0; font-size:13px; line-height:1.4; }
.eel-diet span { padding:12px 6px; border:1px solid #386467; border-radius:12px; background:#163b43; text-align:center; }
.eel-diet strong { display:block; padding-top:4px; font-size:20px; }
.eel-diet span:nth-child(1) { color:#f2a3ad; }.eel-diet span:nth-child(2) { color:#ffbd70; }.eel-diet span:nth-child(3) { color:#7bdfed; }
.eel-space-label { display:flex; justify-content:space-between; color:#95b9b7; font-size:11px; }
#eel-fill { width:100%; height:5px; accent-color:#78dcb5; }
#eel-game .eel-controls { display:grid; grid-template-columns:repeat(3,48px); grid-template-rows:repeat(2,46px); gap:6px; justify-content:center; }
#eel-game button:not(.back-link) { border:1px solid #407269; border-radius:12px; color:#d8fff0; background:#163f42; font:600 13px/1.2 system-ui; min-height:44px; cursor:pointer; padding:8px 12px; touch-action:manipulation; }
#eel-game button:not(.back-link):hover { background:#205c55; }
#eel-game button:focus-visible { outline:3px solid #ffdc8c; outline-offset:3px; }
#eel-game .eel-controls button { padding:0; font-size:23px; user-select:none; }
#eel-game .eel-controls [data-eel-direction="up"] { grid-column:2; }
#eel-game .eel-controls [data-eel-direction="left"] { grid-column:1; grid-row:2; }
#eel-game .eel-controls [data-eel-direction="down"] { grid-column:2; grid-row:2; }
#eel-game .eel-controls [data-eel-direction="right"] { grid-column:3; grid-row:2; }
#eel-game #eel-boost { touch-action:none; user-select:none; width:130px; min-height:60px; }
#eel-game #eel-boost[aria-pressed="true"] { background:#8dcc9c; color:#102d29; border-color:#b9f5b9; }
.eel-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
#eel-overlay { position:absolute; inset:0; display:grid; place-items:center; padding:22px; text-align:center; background:#03202bd9; backdrop-filter:blur(3px); overflow:auto; overscroll-behavior:contain; touch-action:pan-y; }
#eel-overlay[hidden],#eel-overlay [hidden] { display:none; }
.eel-overlay-content { display:grid; justify-items:center; gap:14px; max-width:100%; }
#eel-overlay-title { font-size:clamp(20px,3vw,32px); color:#dfffef; line-height:1.15; }
#eel-overlay-copy { color:#a2cbc4; font-size:13px; max-width:270px; margin:0; line-height:1.55; }
#eel-game #eel-start { background:#9fe5bc; border-color:#b9f5d3; color:#07382d; min-width:156px; }
.eel-overlay-actions { display:flex; justify-content:center; gap:10px; width:100%; }
#eel-overlay:is([data-mode='over'],[data-mode='won']) { padding:18px; background:radial-gradient(ellipse at 50% 35%,#134442bd,#041c27eb 78%); backdrop-filter:blur(5px); }
#eel-overlay:is([data-mode='over'],[data-mode='won']) .eel-overlay-content { box-sizing:border-box; width:min(100%,416px); gap:12px; padding:24px; border:1px solid #8fcbb555; border-radius:24px; background:linear-gradient(155deg,#173e45ee,#092a34f5 65%); box-shadow:0 18px 50px #0005,inset 0 1px #d1ffee12; }
.eel-result-emblem { position:relative; width:112px; height:56px; color:#95e2bf; }
.eel-result-emblem span { position:absolute; inset:20px 0 0; border:1px solid currentColor; border-radius:50%; opacity:.18; }
.eel-result-emblem span:nth-child(2) { inset:24px 15px 4px; opacity:.36; }
.eel-result-emblem span:nth-child(3) { inset:28px 30px 8px; opacity:.65; }
.eel-result-emblem::before { content:''; position:absolute; left:calc(50% - 5px); top:10px; width:10px; height:14px; border-radius:60% 45% 65% 50%; transform:rotate(35deg); background:linear-gradient(135deg,#d4f9dd,#68baac); box-shadow:0 0 18px #9decc32b; }
#eel-result-kicker { margin:0; color:#9acfc0; font:700 9px/1.4 system-ui; letter-spacing:.18em; }
#eel-overlay:is([data-mode='over'],[data-mode='won']) #eel-overlay-title { font-size:clamp(21px,4cqw,30px); letter-spacing:-.035em; }
#eel-result-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; width:100%; margin:4px 0 6px; padding:14px 0; border-block:1px solid #9acfc025; }
#eel-result-stats > div + div { border-left:1px solid #9acfc025; }
#eel-result-stats dt { color:#92b7b5; font-size:10px; line-height:1.5; }
#eel-result-stats dd { margin:3px 0 0; color:#e0fae9; font-size:clamp(18px,3.8cqw,28px); font-weight:700; line-height:1.15; letter-spacing:-.025em; font-variant-numeric:tabular-nums; }
#eel-result-stats > div:first-child dd { color:#adebc8; }
#eel-game #eel-result-menu { min-width:74px; background:transparent; color:#c3e4d8; border-color:#80b5a64f; }
#eel-game #eel-result-menu:hover { background:#24524e; }
#eel-overlay[data-mode='won'] .eel-overlay-content { border-color:#dfce8a80; background:linear-gradient(155deg,#214940ee,#0b3035f5 65%); }
#eel-overlay[data-mode='won'] .eel-result-emblem,#eel-overlay[data-mode='won'] #eel-result-kicker { color:#e7d59b; }
@container eel-pond (max-width:400px) {
  #eel-overlay:is([data-mode='over'],[data-mode='won']) { padding:12px; }
  #eel-overlay:is([data-mode='over'],[data-mode='won']) .eel-overlay-content { padding:18px 14px; border-radius:20px; gap:9px; }
  #eel-game #eel-start { min-width:0; flex:1; }
  #eel-overlay[data-mode='idle'] #eel-start { min-width:156px; flex:none; }
  #eel-result-stats dd { font-size:20px; }
}
@container eel-pond (max-height:330px) {
  #eel-overlay:is([data-mode='over'],[data-mode='won']) { padding:8px; }
  #eel-overlay:is([data-mode='over'],[data-mode='won']) .eel-overlay-content { padding:14px 12px; gap:7px; border-radius:18px; }
  #eel-overlay .eel-result-emblem { display:none; }
  #eel-result-stats { padding:10px 0; margin:2px 0; }
  #eel-overlay-copy { font-size:12px; }
}
#eel-how-to { flex:none; }
#eel-game .eel-info-dialog { position:fixed; inset:0; margin:auto; width:min(440px,calc(100vw - 28px)); max-height:calc(100dvh - 28px); box-sizing:border-box; overflow:auto; padding:24px; border:1px solid #537e75; border-radius:22px; background:#0b2933; color:#d9f3e9; box-shadow:0 20px 60px #0008; text-align:left; touch-action:pan-y; }
#eel-game .eel-info-dialog:not([open]) { display:none; }
.eel-info-dialog::backdrop { background:#021820c9; backdrop-filter:blur(4px); }
.eel-info-dialog h2 { margin:0 0 12px; font-size:26px; }
.eel-info-dialog p { color:#b6d3ce; font-size:13px; line-height:1.55; }
.eel-how-to-keys { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px 14px; font-size:13px; }
.eel-how-to-keys dt { font-weight:700; color:#def7e7; }
.eel-how-to-keys dd { margin:0; color:#acd0c8; }
#eel-game #eel-how-to-close { width:100%; margin-top:18px; background:#9fe5bc; color:#07382d; }
#eel-game .eel-volume { margin:16px 0; padding:12px 0; border-block:1px solid #436579; text-align:left; }
.eel-volume label { display:flex; justify-content:space-between; gap:14px; }
#eel-game #eel-volume { width:100%; min-height:44px; margin:6px 0 0; padding:0; accent-color:#f3cc75; }
.eel-volume output { font-variant-numeric:tabular-nums; }
.eel-key-settings { margin:16px 0; }
.eel-key-settings h3 { margin:0 0 8px; font-size:18px; }
.eel-key-settings p { font-size:12px; line-height:1.5; color:#bdd6db; }
.eel-key-row { display:grid; grid-template-columns:70px minmax(0,1fr) minmax(0,1fr); gap:7px; align-items:center; margin:8px 0; }
.eel-key-row > span { font-size:12px; font-weight:700; }
#eel-game .eel-key-row select { width:100%; min-width:0; min-height:44px; padding:7px; border:1px solid #527384; border-radius:8px; background:#193b4b; color:#f2f8fb; font:13px system-ui; }
.eel-key-row select:focus-visible { outline:3px solid #f4cf79; outline-offset:2px; }
#eel-game #eel-controls-reset { width:100%; margin-top:10px; }
#eel-controls-status { min-height:18px; }
@media(any-pointer:coarse),(max-width:600px) {
  .eel-layout { grid-template-rows:minmax(0,1fr) auto; }
  .eel-touch-controls { display:flex; }
}
html[data-arcade-virtual-controls='off'] #eel-game .eel-layout { grid-template-rows:minmax(0,1fr); grid-template-columns:minmax(0,1fr); }
@media(max-width:600px) {
  #eel-game.active { gap:8px; }
  #eel-game .eel-toolbar { gap:8px; padding:0; }
  #eel-game h1 { display:none; }
  .eel-hud { gap:10px; margin-left:0; }.eel-hud strong { font-size:17px; }.eel-hud span { font-size:8px; letter-spacing:.03em; }
  #eel-game #eel-how-to { width:74px; padding:6px; font-size:11px; }
  .eel-layout { padding:6px; gap:8px; border-radius:16px; }
  #eel-game .eel-controls { grid-template-columns:repeat(3,44px); grid-template-rows:repeat(2,44px); gap:4px; }
  #eel-game #eel-boost { width:116px; font-size:12px; }
  #eel-game .eel-info-dialog { padding:18px; }
  .eel-key-row { grid-template-columns:62px minmax(0,1fr) minmax(0,1fr); gap:5px; }
}
@media(any-pointer:coarse) and (max-height:560px) and (orientation:landscape) {
  .eel-layout { padding:6px; grid-template-columns:minmax(0,1fr) 160px; grid-template-rows:minmax(0,1fr); }
  .eel-touch-controls { flex-direction:column; gap:10px; }
  #eel-game .eel-controls { grid-template-columns:repeat(3,44px); grid-template-rows:repeat(2,44px); gap:4px; }
  #eel-game #eel-boost { min-height:48px; }
}
@media(prefers-reduced-motion:reduce) { #eel-game * { animation:none!important; transition:none!important; } }
