/* Cardume Lógico: one scoped play surface, with shape + color region cues.
   Watermarks are static; confirmed fish keep the existing four-frame artwork. */
#fish-game {
  position:relative;
  --fish-surface:#102d3b;
  --fish-surface-raised:#1b4050;
  --fish-outline:#446d78;
  --fish-ink:#eff8ee;
  --fish-muted:#b4cbd0;
  --fish-accent:#a7e3d4;
  --fish-gold:#f2d387;
  --fish-focus:#ffdf88;
  font-family:system-ui,sans-serif;
}
body.game-screen-active[data-arcade-screen="fish-game"] .app-shell {
  padding: max(8px,var(--safe-top)) max(8px,var(--safe-right)) max(8px,var(--safe-bottom)) max(8px,var(--safe-left));
}
body.game-screen-active #fish-game .game-header {
  display:grid; grid-template-columns:52px minmax(0,1fr) auto;
  align-items:center; gap:6px 12px; flex:0 0 auto;
  width:100%; max-width:960px; margin:0 auto 8px; padding:8px 10px;
  border:1px solid var(--fish-outline); border-radius:17px;
  color:var(--fish-ink); background:var(--fish-surface); box-shadow:none;
}
#fish-game .fish-title-wrap { grid-column:2; grid-row:1; min-width:0; }
#fish-game .fish-title-art { width:min(100%,310px); height:58px; max-height:58px; object-fit:contain; border-radius:0; }
#fish-game .game-header>.game-menu-trigger {
  grid-column:1; grid-row:1; min-width:44px; width:52px; height:52px; min-height:52px;
  padding:6px; gap:4px; border:1px solid var(--fish-outline); border-radius:12px;
  background:var(--fish-surface-raised); color:var(--fish-ink); font-size:10px;
}
#fish-game .game-header>.game-menu-trigger::before {
  width:18px; height:18px; opacity:.85;
  background:linear-gradient(currentColor,currentColor) 0 0/7px 7px,linear-gradient(currentColor,currentColor) 100% 0/7px 7px,linear-gradient(currentColor,currentColor) 0 100%/7px 7px,linear-gradient(currentColor,currentColor) 100% 100%/7px 7px;
  background-repeat:no-repeat;
}
#fish-game .game-header .fish-header-stats {
  grid-column:3; grid-row:1; display:flex; align-items:center; width:auto; margin:0; gap:14px;
}
#fish-game .fish-header-stats .level-box,
#fish-game .fish-header-stats .score-box {
  min-width:66px; padding:0; border:0; border-radius:0; background:none; text-align:right;
}
#fish-game .fish-header-stats span { color:var(--fish-muted); font-size:.57rem; letter-spacing:.12em; }
#fish-game .fish-header-stats strong { margin:2px 0 0; color:var(--fish-ink); font-size:1rem; line-height:1.15; font-variant-numeric:tabular-nums; }
#fish-game .fish-action-bar { grid-column:1/-1; display:flex; justify-content:center; gap:7px; padding-top:6px; border-top:1px solid var(--fish-outline); }
#fish-game .fish-action,
#fish-game .fish-howto-button {
  display:inline-flex; flex:0 1 auto; align-items:center; justify-content:center; gap:7px;
  min-width:44px; min-height:44px; padding:8px 14px; margin:0;
  border:1px solid var(--fish-outline); border-radius:10px;
  color:var(--fish-ink); background:var(--fish-surface-raised); box-shadow:none;
  font:750 .78rem/1.1 system-ui,sans-serif; white-space:nowrap;
  transition:background 120ms ease,border-color 120ms ease;
}
#fish-game .fish-action svg { flex:0 0 18px; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
#fish-game #fish-hint { border-color:#b59858; color:#ffebbb; background:#493e2a; }
#fish-game #fish-hint-count { display:grid; place-items:center; min-width:22px; height:22px; padding:0 4px; border-radius:6px; color:#392f20; background:var(--fish-gold); font-size:.72rem; font-variant-numeric:tabular-nums; }
#fish-game #fish-haptics[aria-pressed="false"] { color:var(--fish-muted); background:transparent; }
#fish-game #fish-haptics[aria-pressed="false"] svg { opacity:.5; }
#fish-game .fish-action:disabled { opacity:.52; cursor:default; }
#fish-game .fish-howto-button>span { width:18px; height:18px; font-size:.75rem; color:var(--fish-surface); background:var(--fish-accent); }
#fish-game .fish-action:active:not(:disabled),
#fish-game .fish-howto-button:active { transform:none; background:#315866; }
#fish-game #fish-hint:active:not(:disabled) { background:#625033; }
#fish-game :is(.fish-action,.fish-howto-button,.game-menu-trigger):focus-visible {
  outline:3px solid var(--fish-focus); outline-offset:2px; transform:none; box-shadow:none;
}
body.game-screen-active #fish-game .fish-area {
  width:100%; max-width:960px; padding:9px 12px; gap:0;
  justify-content:center; border:1px solid var(--fish-outline); border-radius:18px;
  background:radial-gradient(ellipse at 50% 15%,#234b59 0%,var(--fish-surface) 74%);
  box-shadow:inset 0 1px #ffffff0a;
}
body.game-screen-active #fish-game .fish-tools {
  flex:0 0 auto; width:100%; max-width:900px; margin:0 0 7px; padding:0 2px;
  min-height:26px; gap:10px; align-items:center; color:var(--fish-accent); font-size:.8rem;
}
#fish-game .fish-life-status { display:inline-flex; align-items:center; gap:8px; color:var(--fish-muted); font-size:.69rem; font-weight:650; }
#fish-game .fish-life-status .fish-chances { color:#ffb9a3 !important; letter-spacing:4px; font-size:1rem; line-height:1; }
body.game-screen-active #fish-game .fish-board {
  flex-basis:var(--fish-board-size,min(100%,900px,70dvh));
  width:var(--fish-board-size,min(100%,900px,70dvh)); height:var(--fish-board-size,min(100%,900px,70dvh));
  padding:4px; gap:0; border:2px solid #c7dccd; border-radius:12px;
  background:#254452; box-shadow:0 9px 22px #06131b33;
}
#fish-game .fish-cell {
  isolation:isolate; overflow:hidden; border:1px solid #23445230; border-radius:2px;
  background:linear-gradient(150deg,#ffffff3b,transparent 82%),var(--cell-tint) !important;
  box-shadow:none;
}
#fish-game .fish-cell.region-edge-top { border-top:2px solid #244955c7 !important; }
#fish-game .fish-cell.region-edge-right { border-right:2px solid #244955c7 !important; }
#fish-game .fish-cell.region-edge-bottom { border-bottom:2px solid #244955c7 !important; }
#fish-game .fish-cell.region-edge-left { border-left:2px solid #244955c7 !important; }
#fish-game .fish-region-watermark {
  position:absolute; inset:17%; z-index:0; pointer-events:none;
  background-color:#183f4a; opacity:.26;
  -webkit-mask:var(--fish-region-art) center / contain no-repeat;
  mask:var(--fish-region-art) center / contain no-repeat;
}
/* Eleven distinct marine silhouettes, repeated by region, not by individual cell. */
#fish-game [data-region-pattern="0"] { --fish-region-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 25C1 10 10 5 14 11C15 3 25 3 26 11C30 5 39 10 33 25L24 33H16ZM20 10V30M12 15L17 29M28 15L23 29M15 33V36H25V33'/%3E%3C/g%3E%3C/svg%3E"); }
#fish-game [data-region-pattern="1"] { --fish-region-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 4L24 15L36 14L27 23L31 35L20 28L9 35L13 23L4 14L16 15Z' fill='none' stroke='black' stroke-width='2.5' stroke-linejoin='round'/%3E%3Ccircle cx='20' cy='21' r='3'/%3E%3C/svg%3E"); }
#fish-game [data-region-pattern="2"] { --fish-region-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M4 13Q8 7 13 13T23 13T36 13M4 22Q8 16 13 22T23 22T36 22M4 31Q8 25 13 31T23 31T36 31' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
#fish-game [data-region-pattern="3"] { --fish-region-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 35V7M20 21L10 15V6M10 15L5 12M20 28L31 20V10M31 20L36 17M20 13L26 8M20 30L9 26V21' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#fish-game [data-region-pattern="4"] { --fish-region-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='black' stroke-width='2.5'%3E%3Ccircle cx='13' cy='12' r='7'/%3E%3Ccircle cx='28' cy='23' r='8'/%3E%3Ccircle cx='10' cy='31' r='4'/%3E%3Cpath d='M10 9L12 7M25 20L27 18' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E"); }
#fish-game [data-region-pattern="5"] { --fish-region-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M8 23C8 1 32 1 32 23ZM11 26C5 31 16 31 10 37M20 26C14 31 25 31 19 37M29 26C23 31 34 31 28 37M16 10C12 12 11 16 11 19' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#fish-game [data-region-pattern="6"] { --fish-region-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 10V35M11 16H29M20 35C12 33 6 29 6 22M20 35C28 33 34 29 34 22M3 26L6 21L10 25M30 25L34 21L37 26' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='20' cy='7' r='4' fill='none' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E"); }
#fish-game [data-region-pattern="7"] { --fish-region-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='15' fill='none' stroke='black' stroke-width='2.5'/%3E%3Cpath d='M20 10V15M10 17L15 19M30 17L25 19M14 30L17 25M26 30L23 25' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E"); }
#fish-game [data-region-pattern="8"] { --fish-region-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 37C13 28 28 22 20 11C16 7 20 3 22 3M17 30C7 29 7 22 9 19C15 20 17 24 17 30ZM23 21C23 14 28 11 33 12C32 18 29 21 23 21ZM18 14C10 13 9 9 10 5C15 6 18 9 18 14Z' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#fish-game [data-region-pattern="9"] { --fish-region-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M31 34C9 38 1 18 13 8C27 -3 40 12 32 23C26 33 12 26 16 17C19 10 28 15 25 21C24 24 20 22 21 20' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
#fish-game [data-region-pattern="10"] { --fish-region-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M11 23V14C11 2 29 2 29 14V23M11 21C2 20 1 31 8 32C12 33 14 27 14 25M17 25V31C17 37 23 37 23 31V25M26 25C26 33 33 35 36 29C38 25 34 20 29 21' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='17' cy='16' r='1.7'/%3E%3Ccircle cx='24' cy='16' r='1.7'/%3E%3C/svg%3E"); }
#fish-game .fish-cell:is(.selected,.marked,.mistake) .fish-region-watermark { opacity:.1; }
#fish-game .fish-cell.selected { background:linear-gradient(150deg,#ffffff3b,transparent 82%),var(--cell-tint) !important; box-shadow:inset 0 0 0 1px #f9f4cd90; }
#fish-game .fish-cell.selected[aria-disabled="true"] { cursor:pointer; }
#fish-game .fish-cell:focus-visible { z-index:4; outline:3px solid #143b4b; outline-offset:-4px; box-shadow:inset 0 0 0 6px #ffe7a8; }
#fish-game .fish-symbol { z-index:2; width:100%; height:100%; background-size:126% auto; }
#fish-game .fish-cell.hinted { box-shadow:inset 0 0 0 3px #ffe080; }
#fish-game .fish-cell.fish-hint-reveal { animation:fish-hint-arrival 650ms ease-out; }
/* Tiny, bounded effects sit outside the clipped cells and never take input. */
#fish-game .fish-celebration {
  position:absolute; z-index:7; pointer-events:none; transform:translate(-50%,-50%);
}
#fish-game .fish-celebration>span { position:absolute; display:block; pointer-events:none; }
#fish-game .fish-celebration-sprite {
  inset:0; background:url('../games/sobe-pisquinho/assets/pisquinho_fish_02.png') center / 126% auto no-repeat;
  filter:drop-shadow(0 2px 2px #12374155); transform-origin:50% 62%;
}
#fish-game .fish-cell[data-fish-celebrating]>.fish-symbol { opacity:0; }
#fish-game .fish-celebration-pool {
  left:5%; top:57%; width:90%; height:30%; border-radius:50%;
  background:radial-gradient(ellipse,#e9ffffb3 0%,#3ddccd99 46%,transparent 74%);
}
#fish-game .fish-celebration-ring {
  left:15%; top:62%; width:70%; height:22%; border:2px solid #c8fff4;
  border-radius:50%; box-shadow:0 1px 0 #237c8899,inset 0 1px 0 #34bbca;
}
#fish-game .fish-celebration-drop {
  left:47%; top:63%; width:6%; height:10%; min-width:3px; min-height:5px;
  border-radius:60% 60% 55% 55%; background:linear-gradient(#f0fffd,#6bede1);
  box-shadow:0 1px 1px #215b6955;
}
#fish-game .fish-celebration-glow {
  inset:12%; border-radius:50%; border:2px solid #bcf4dd;
  box-shadow:inset 0 0 10px #75e7d277,0 0 9px #9bffe066;
}
body.game-screen-active #fish-game #fish-message {
  display:flex; flex:0 0 auto; align-items:center; justify-content:center;
  width:100%; max-width:900px; min-height:34px; margin:7px 0 0; padding:4px 8px;
  border:0; border-radius:8px; color:var(--fish-muted); background:transparent;
  font:600 .76rem/1.35 system-ui,sans-serif; text-wrap:pretty; overflow-wrap:normal; word-break:normal;
}
#fish-howto-dialog .fish-howto-panel { padding:26px; }
#fish-game .fish-sync-bar {
  display:flex; flex:0 0 auto; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:5px 9px; width:100%; max-width:900px; margin-top:3px;
  color:var(--fish-muted); font:500 .65rem/1.3 system-ui,sans-serif; text-align:center;
}
#fish-game #fish-sync-status { min-height:17px; overflow-wrap:normal; word-break:normal; text-wrap:pretty; }
#fish-game .fish-sync-action {
  min-width:44px; min-height:44px; padding:8px 12px; margin:0; border:1px solid var(--fish-outline);
  border-radius:9px; color:var(--fish-ink); background:var(--fish-surface-raised); box-shadow:none;
  font:700 .72rem/1.2 system-ui,sans-serif; overflow-wrap:normal; word-break:normal;
}
#fish-game .fish-sync-action[hidden] { display:none; }
#fish-game .fish-sync-action:disabled { opacity:.52; cursor:default; }
#fish-game .fish-sync-action:focus-visible { outline:3px solid var(--fish-focus); outline-offset:2px; }
#fish-game .fish-sync-action:hover:not(:disabled) { border-color:var(--fish-accent); }
#fish-game .fish-sync-action:active:not(:disabled) { transform:none; background:var(--fish-surface); }
#fish-howto-dialog .fish-howto-close { width:44px; height:44px; min-width:44px; min-height:44px; }
#fish-howto-dialog .fish-howto-panel .eyebrow { padding-right:38px; }
#fish-howto-dialog .fish-howto-copy { margin-bottom:15px; }
#fish-howto-dialog .fish-howto-steps { gap:7px; }
#fish-howto-dialog .fish-howto-steps li { padding:9px 11px; font-size:.88rem; }
#fish-howto-dialog .fish-howto-tip { margin:12px 0; }
#fish-howto-dialog .fish-howto-close:focus-visible { outline:3px solid #efc56d; outline-offset:3px; }
@keyframes fish-hint-arrival { from { box-shadow:inset 0 0 0 5px #ffe080,0 0 16px #ffe080; } to { box-shadow:inset 0 0 0 3px #ffe080; } }
@media (hover:hover) {
  #fish-game :is(.fish-action,.fish-howto-button,.game-menu-trigger):hover:not(:disabled) { border-color:var(--fish-accent); background:#2c5260; color:var(--fish-ink); transform:none; box-shadow:none; }
  #fish-game #fish-hint:hover:not(:disabled) { border-color:#ffe3a0; background:#5c4b2f; color:#fff0c8; }
  #fish-game .fish-cell:hover:not(:disabled) { filter:brightness(1.05); }
}
@media (min-width:1000px) and (min-height:561px) {
  body.game-screen-active #fish-game .game-header { grid-template-columns:52px minmax(170px,1fr) auto auto; gap:12px; }
  #fish-game .fish-title-art { width:min(100%,270px); }
  #fish-game .fish-action-bar { grid-column:4; grid-row:1; padding:0 0 0 12px; border-top:0; border-left:1px solid var(--fish-outline); }
  #fish-game :is(.fish-action,.fish-howto-button) { padding:8px 10px; font-size:.73rem; }
}
@media (max-width:540px) {
  body.game-screen-active #fish-game .game-header { grid-template-columns:44px minmax(0,1fr) 80px; gap:4px 6px; padding:6px; margin-bottom:6px; border-radius:13px; }
  #fish-game .game-header>.game-menu-trigger { width:44px; height:48px; min-height:48px; border-radius:10px; font-size:9px; }
  #fish-game .fish-title-art { height:53px; max-height:53px; }
  #fish-game .game-header .fish-header-stats { flex-direction:column; align-items:stretch; gap:3px; }
  #fish-game .fish-header-stats :is(.level-box,.score-box) { display:flex; align-items:baseline; justify-content:space-between; gap:4px; min-width:0; padding:0; }
  #fish-game .fish-header-stats span { font-size:.48rem; letter-spacing:.02em; }
  #fish-game .fish-header-stats strong { font-size:.73rem; }
  #fish-game .fish-action-bar { gap:5px; padding-top:5px; }
  #fish-game :is(.fish-action,.fish-howto-button) { flex:1 1 0; min-width:0; padding:7px 5px; font-size:.7rem; gap:5px; }
  #fish-game .fish-action svg { width:16px; height:16px; flex-basis:16px; }
  body.game-screen-active #fish-game .fish-area { padding:7px 3px; border-radius:13px; }
  body.game-screen-active #fish-game .fish-tools { padding-inline:5px; margin-bottom:5px; min-height:24px; font-size:.74rem; }
  #fish-game .fish-life-status { font-size:.62rem; }
  body.game-screen-active #fish-game #fish-message { min-height:34px; margin-top:5px; font-size:.7rem; }
  body.game-screen-active #fish-game .fish-board { padding:2px; border-width:1px; border-radius:8px; }
  #fish-game .fish-cell { border-radius:1px; }
  #fish-howto-dialog { padding:10px; }
  #fish-howto-dialog .fish-howto-panel { padding:22px 16px; }
}
/* A side deck on short landscape screens buys back board height. */
@media (min-width:650px) and (max-height:560px) {
  body.game-screen-active #fish-game.active { display:grid; grid-template-columns:210px minmax(0,1fr); gap:9px; align-items:stretch; }
  body.game-screen-active #fish-game .game-header { grid-template-columns:44px minmax(0,1fr); grid-auto-rows:min-content; align-content:start; height:100%; margin:0; padding:9px; overflow-y:auto; }
  #fish-game .game-header>.game-menu-trigger { width:44px; height:48px; min-height:48px; }
  #fish-game .fish-title-art { height:58px; }
  #fish-game .game-header .fish-header-stats { grid-column:1/-1; grid-row:2; flex-direction:row; justify-content:space-between; padding:9px 3px; }
  #fish-game .fish-action-bar { grid-row:3; flex-direction:column; padding-top:10px; }
  #fish-game :is(.fish-action,.fish-howto-button) { width:100%; flex:none; }
  body.game-screen-active #fish-game .fish-area { height:100%; margin:0; padding:7px; }
  body.game-screen-active #fish-game #fish-message { font-size:.65rem; min-height:28px; }
}
@media (prefers-color-scheme:light) {
  #fish-game { --fish-surface:#f0f6f3; --fish-surface-raised:#fff; --fish-outline:#a9c4c6; --fish-ink:#173c49; --fish-muted:#416471; --fish-accent:#136f69; --fish-focus:#956208; }
  body.game-screen-active #fish-game .fish-area { background:radial-gradient(ellipse at 50% 15%,#fff 0%,#e3efeb 74%); }
  #fish-game #fish-hint { color:#624507; background:#fff3ce; border-color:#b69b58; }
  #fish-game #fish-hint-count { background:#e9ce88; }
  #fish-game .fish-life-status .fish-chances { color:#a3472e !important; }
  #fish-game :is(.fish-action,.fish-howto-button,.game-menu-trigger):hover:not(:disabled) { background:#dfefea; color:#173c49; }
  #fish-game #fish-hint:hover:not(:disabled) { color:#533b04; background:#f5e3b3; border-color:#9d7b32; }
  #fish-game :is(.fish-action,.fish-howto-button):active:not(:disabled) { background:#c5dfd7; }
  #fish-game #fish-hint:active:not(:disabled) { background:#e7cd8c; }
  #fish-howto-dialog :is(.fish-howto-copy,.fish-howto-steps li) { color:#416471; }
  #fish-howto-dialog .fish-howto-steps li { background:#eef6f3; border-color:#bed4cd; }
  #fish-howto-dialog .fish-howto-steps strong { color:#173c49; }
  #fish-howto-dialog .fish-howto-tip { color:#735317; }
  #fish-howto-dialog .fish-howto-close { color:#173c49; background:#e6f0ec; border-color:#a9c4c6; }
}
@media (prefers-reduced-motion:reduce) {
  #fish-game .fish-cell.fish-hint-reveal { animation:none; }
  #fish-game :is(.fish-action,.fish-howto-button) { transition:none; }
}

#fish-game .fish-final-view {
  align-self:center;
  min-height:44px;
  margin:8px auto 0;
  padding:8px 16px;
  border:1px solid #a9d7bd;
  border-radius:8px;
  background:#21474b;
  color:#f2faed;
  font:700 .84rem/1.2 system-ui,sans-serif;
  cursor:pointer;
}
#fish-final {
  box-sizing:border-box;
  position:fixed;
  inset:0;
  width:min(954px, calc(100% - 32px));
  max-width:none;
  max-height:calc(100% - 32px);
  max-height:calc(100dvh - 32px);
  margin:auto;
  padding:0;
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid #577c75;
  border-radius:22px;
  background:#102b30;
  color:#eff8ec;
  color-scheme:dark;
  font-family:system-ui,sans-serif;
  box-shadow:0 24px 96px #021318c9;
}
#fish-final::backdrop { background:#041319d9; }
#fish-final .fish-final-layout {
  display:grid;
  grid-template-columns:minmax(0,1.13fr) minmax(0,1fr);
}
#fish-final .fish-final-art {
  position:relative;
  min-width:0;
  min-height:310px;
  margin:0;
  overflow:hidden;
  background:#21394a;
}
#fish-final .fish-final-art img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 52%;
}
#fish-final .fish-final-art figcaption {
  position:absolute;
  inset:auto 0 0;
  padding:38px 22px 18px;
  background:linear-gradient(transparent,#05161ce8);
  color:#fff3d8;
  font:italic 650 1rem/1.2 Georgia,serif;
}
#fish-final .fish-final-copy { min-width:0; padding:clamp(24px, 4vw, 40px); }
#fish-final .fish-final-kicker {
  margin:0 0 12px;
  color:#a8e4ce;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.105em;
  text-transform:uppercase;
}
#fish-final h2 {
  margin:0;
  color:#ffebbe;
  font:700 clamp(2rem,4vw,3.2rem)/1.01 Georgia,serif;
  letter-spacing:-.035em;
  outline:none;
}
#fish-final-message { margin:14px 0 18px; color:#d2e5dc; font-size:.92rem; line-height:1.5; }
#fish-final .fish-final-stats {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:0 0 18px;
}
#fish-final .fish-final-stats div { border-top:1px solid #577c75; padding:8px 0 0; }
#fish-final .fish-final-stats dt { color:#bfdbd2; font-size:.72rem; }
#fish-final .fish-final-stats dd {
  margin:1px 0 0;
  color:#fff0cf;
  font:700 1.55rem/1.12 Georgia,serif;
  overflow-wrap:anywhere;
}
#fish-final .fish-final-actions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
#fish-final .fish-final-actions button {
  min-height:44px;
  padding:8px 10px;
  border:1px solid #577c75;
  border-radius:9px;
  background:#1e4449;
  color:#f2faed;
  font:750 .82rem/1.18 system-ui,sans-serif;
  cursor:pointer;
}
#fish-final .fish-final-actions button:hover { background:#2b5760; }
#fish-final #fish-final-replay { background:#ffdc92; border-color:#ffdc92; color:#1b3334; }
#fish-final #fish-final-replay:hover { background:#ffe8b8; }
#fish-final #fish-final-save { grid-column:1/-1; background:transparent; color:#bbf0d6; }
#fish-final #fish-final-save:hover { background:#1a3a3f; }
#fish-final .fish-final-credits { margin:12px 0 0; font-size:.76rem; color:#c2dcd3; }
#fish-final .fish-final-credits summary { min-height:44px; align-content:center; cursor:pointer; color:#dcf3df; font-weight:750; }
#fish-final .fish-final-credits dl { display:grid; gap:5px; margin:2px 0 10px; }
#fish-final .fish-final-credits dl div { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:0 8px; }
#fish-final .fish-final-credits dd { margin:0; color:#f1f8e9; }
#fish-final .fish-final-credits p { margin:0; color:#ffebbe; font-style:italic; }
#fish-final :is(button,summary):focus-visible,
#fish-game .fish-final-view:focus-visible { outline:3px solid #ffdc92; outline-offset:2px; }
@media (max-width:650px) {
  #fish-final { width:calc(100% - 20px); max-height:calc(100dvh - 20px); border-radius:16px; }
  #fish-final .fish-final-layout { grid-template-columns:minmax(0,1fr); }
  #fish-final .fish-final-art { min-height:0; height:clamp(112px, 38vw, 240px); }
  #fish-final .fish-final-art figcaption { padding:26px 14px 10px; font-size:.85rem; }
  #fish-final .fish-final-copy { padding:17px 16px 12px; }
  #fish-final .fish-final-kicker { margin-bottom:7px; letter-spacing:.075em; }
  #fish-final h2 { font-size:clamp(1.75rem, 6.2vw, 2.4rem); }
  #fish-final-message { margin:10px 0 12px; font-size:.87rem; }
  #fish-final .fish-final-stats { margin-bottom:12px; }
  #fish-final .fish-final-credits { margin-top:5px; }
}
@media (max-height:480px) and (min-width:651px) {
  #fish-final .fish-final-copy { padding:16px 20px; }
  #fish-final .fish-final-art { min-height:0; }
  #fish-final h2 { font-size:2rem; }
  #fish-final-message, #fish-final .fish-final-stats { margin-bottom:10px; }
  #fish-final .fish-final-credits { margin-top:5px; }
}
