/* Separate visual study. Game rules and the original index.html are shared. */
:root {
  color-scheme: light;
  --bg:#e8e4d7; --panel:#f8f4e8; --line:#d6d2c0; --text:#294b51; --dim:#667b78;
  --r0:#65746f; --r1:#367351; --r2:#2468a0; --r3:#8052ac; --r4:#97631d; --r5:#b83b59;
  --teal:#286e70; --cream:#f8f4e8;
}
body { background:#dce3db; font-family:"Segoe UI",sans-serif; font-size:14px; }
button, summary, a { -webkit-tap-highlight-color:transparent; }
button { background:#eeeadd; border-color:#d2d0bd; border-radius:12px; min-height:44px; transition:background .15s, transform .15s; }
button:hover:not(:disabled) { background:#e2e5d6; }
button:active:not(:disabled) { transform:translateY(1px); }
button:disabled { opacity:.62; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline:3px solid #377f94; outline-offset:3px; }
.primary, .primary:hover:not(:disabled) { background:var(--teal); color:#fff9e9; border-color:transparent; }
.strike, .strike:hover:not(:disabled) { background:#e5b866; color:#3e3c24; border-color:#f6d395; }
#app { max-width:1120px; background:var(--cream); box-shadow:0 0 70px #234e5220; }
.hud { position:relative; z-index:5; padding:12px 22px; gap:16px; border-bottom:1px solid var(--line); background:var(--cream); }
.wallet { margin-right:0; text-align:right; }
.wallet b { font-size:24px; color:var(--text); white-space:nowrap; }
.wallet small { margin-top:4px; font-size:11px; color:var(--dim); }
.rank-title { color:var(--dim); }
.coin { color:#bc8c35; font-size:23px; text-shadow:0 1px #fff; }
.tools { position:relative; }
.tools > summary { list-style:none; display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--line); border-radius:12px; cursor:pointer; font-size:20px; }
.tools > summary::-webkit-details-marker { display:none; }
.tools-panel { position:absolute; top:52px; right:0; width:min(310px,calc(100vw - 32px)); display:flex; flex-direction:column; gap:12px; padding:20px; background:var(--cream); border:1px solid var(--line); border-radius:16px; box-shadow:0 10px 36px #163d4733; max-height:calc(100dvh - 100px); overflow:auto; }
.tools-panel a { color:var(--teal); padding:10px 0; }
main { overflow:hidden; }
.view { padding:20px; gap:14px; scrollbar-width:thin; scrollbar-color:#a9b7a6 transparent; }
#v-fish { padding:0; gap:0; }
.tabs { padding:12px 20px 6px; gap:8px; }
.tab { border:1px solid var(--line); background:transparent; font-size:13px; min-width:0; }
.tab.on { background:#e0e9da; color:#275954; border-color:#aabda7; }
.tab.locked { font-size:12px; }
.gate { padding:0 22px 10px; gap:8px; }
.gate .hint { font-size:11px; }
.cells { flex:1 1 110px; max-width:180px; gap:3px; }
.g { height:5px; background:#e0dfd0; border:0; }
.g.on, .g.free { background:#659381; }
.fishing-room { position:relative; flex:1; min-height:100px; overflow:hidden; isolation:isolate; }
.scene-caption { position:absolute; top:18px; left:22px; padding:13px 18px; background:#f8f4e8ed; border:1px solid #fff7; border-radius:14px; box-shadow:0 5px 22px #244b5312; }
.eyebrow { font-size:9px; letter-spacing:2px; color:#6c8277; }
h1 { margin:3px 0 4px; font:24px/1.15 Georgia,serif; font-weight:normal; }
.stage { position:absolute; bottom:14px; right:18px; width:360px; max-width:calc(100% - 36px); max-height:64%; min-height:0; flex:initial; align-items:stretch; gap:10px; padding:16px; border-radius:16px; background:#faf6ebf5; border:1px solid #fff9; box-shadow:0 8px 32px #153f4b26; text-align:left; scrollbar-width:thin; }
.stage:empty { display:none; }
.stage > :first-child { margin-top:0; }
.stage > :last-child { margin-bottom:0; }
.wait { font-size:13px; line-height:1.6; color:var(--text); }
.bite { font:28px Georgia,serif; }
.float { display:none; }
.profit { font-size:11px; color:var(--dim); padding-bottom:9px; border-bottom:1px solid var(--line); }
.catch-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.catch-heading b { font:18px Georgia,serif; }
.cards { display:flex; flex-direction:column; gap:10px; }
.card { background:#fffdf5; border-color:#d7d8c8; border-radius:14px; padding:14px; }
.catch { grid-template-columns:82px minmax(0,1fr); padding:10px; gap:8px 10px; border-left:3px solid var(--catch-rank,var(--line)); }
.catch .thumb { width:82px; height:72px; object-fit:contain; background:#e8eadf; border-radius:9px; }
.catch .name { font-family:Georgia,serif; font-size:17px; line-height:1.25; }
.catch .kg { display:block; font-family:"Segoe UI",sans-serif; font-size:12px; margin-top:4px; }
.catch .rank { margin:4px 0; font-size:11px; }
.catch .price { font-weight:600; }
.catch .price .hint { display:none; }
.catch .new, .catch .rec, .catch .hint { font-size:11px; line-height:1.4; }
.card .row { gap:8px; flex-wrap:wrap; }
.card .row button { min-height:44px; padding:6px 8px; font-size:12px; }
.card .row .primary { color:var(--teal); border-color:#97b4a3; background:#e9efe2; }
.fishing-footer { position:relative; z-index:2; padding:10px 22px 14px; background:var(--cream); border-top:1px solid var(--line); }
.status { flex-direction:row; align-items:center; justify-content:space-between; gap:12px; font-size:11px; }
#pity { display:block; max-width:70%; }
.conditions { position:relative; }
.conditions summary { cursor:pointer; min-height:44px; display:flex; align-items:center; white-space:nowrap; color:var(--teal); }
.conditions[open] { position:absolute; bottom:100%; right:14px; width:min(360px,calc(100vw - 28px)); padding:10px 16px 16px; border:1px solid var(--line); background:var(--cream); border-radius:14px; box-shadow:0 5px 24px #163d4729; }
.conditions[open] summary { font-weight:600; }
#odds, #sched { line-height:1.7; }
#sched:not(:empty) { display:block; margin-top:10px; }
.action-note { font-size:11px; line-height:1.4; color:var(--dim); margin:0 0 9px; }
.bar { gap:10px; }
.bar > button, #phase button { min-height:54px; font-size:16px; border-radius:12px; }
.track { width:100%; min-height:30px; background:#dee4d8; border-color:#c3cebd; }
.zone { background:#78a28a66; }
.zone.mid { background:#45876b88; }
.marker { background:#a26823; }
.tabbar { padding:3px 16px max(4px,env(safe-area-inset-bottom)); background:var(--cream); gap:8px; }
.tabbar button { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-height:64px; font-size:11px; border-radius:10px; color:#6d7e75; }
.tabbar button svg { width:23px; height:23px; }
.tabbar button.on { color:var(--teal); background:#e5eadc; box-shadow:none; }
.tabbar button i { position:absolute; top:4px; left:calc(50% + 10px); background:#b68a44; font-size:10px; min-width:15px; }
.gear { grid-template-columns:minmax(0,1fr) 48px; }
.cell { background:#eaeade; border-color:#c8cdbc; }
.cell.got { background:#fffdf5; }
.cell .q { background:#e0e4d7; }
.cell .pic { object-fit:contain; }
.cell.locked .pic { filter:grayscale(1); opacity:.5; }
.list > .hint { padding:12px; }
@media (max-width:600px) {
  .hud { padding:9px 14px; gap:10px; }
  .wallet b { font-size:21px; }
  .wallet small { font-size:9px; }
  .tabs { padding:9px 12px 5px; gap:6px; }
  .tab { padding:6px; font-size:11px; line-height:1.2; }
  .tab.locked { font-size:10px; }
  .gate { padding:0 14px 8px; gap:5px; }
  .gate .hint { font-size:10px; }
  .cells { flex:1 1 100%; max-width:none; }
  .scene-caption { top:12px; left:14px; padding:10px 13px; }
  h1 { font-size:21px; }
  .scene-caption .eyebrow { font-size:8px; }
  .stage { right:10px; bottom:10px; width:calc(100% - 20px); max-width:none; max-height:64%; padding:12px; }
  .fishing-footer { padding:3px 14px 10px; }
  .status { gap:8px; font-size:10px; }
  .conditions summary { font-size:10px; }
  .action-note { font-size:10px; }
  .tabbar { padding-left:10px; padding-right:10px; gap:4px; }
  .tabbar button { min-height:59px; }
}
@media (max-height:600px) {
  .hud { padding-top:4px; padding-bottom:4px; }
  .gate, .scene-caption .eyebrow { display:none; }
  .tabs { padding-top:4px; padding-bottom:4px; }
  .scene-caption { top:8px; left:10px; padding:6px 10px; }
  h1 { font-size:18px; }
  .stage { max-height:calc(100% - 16px); width:52%; right:8px; bottom:8px; }
  .fishing-footer { padding-top:0; padding-bottom:6px; }
  .status { min-height:44px; }
  .action-note { display:none; }
  .tabbar button { min-height:44px; flex-direction:row; gap:6px; }
  .tabbar button svg { width:18px; height:18px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; }
}
@media (max-height:600px) and (min-width:600px) {
  #v-fish { display:grid; grid-template-columns:minmax(0,1fr) 260px; grid-template-rows:auto minmax(0,1fr); }
  .fishing-room { grid-column:1; grid-row:2; }
  .fishing-footer { grid-column:2; grid-row:1 / 3; display:flex; flex-direction:column; border-top:0; border-left:1px solid var(--line); padding:12px; }
  .fishing-footer .status { flex-direction:column; align-items:stretch; gap:4px; }
  #pity { max-width:none; line-height:1.6; }
  .fishing-footer .bar { margin-top:auto; flex-direction:column; }
  .stage { width:calc(100% - 16px); }
  .fishing-room:has(.cards) .scene-caption { display:none; }
}
