/* =====================================================================
   Một Cần Câu — giao diện kính mờ (glassmorphism) + gradient biển
   Toàn bộ thiết kế theo hệ 960x600, JS sẽ scale #app cho vừa màn hình.
   ===================================================================== */

:root {
  --gold: #ffd166;
  --gold-deep: #f2a93b;
  --cyan: #5ad2f0;
  --mint: #6ee7b7;
  --coral: #ff6b6b;
  --ink: #050f19;
  --glass: rgba(7, 21, 35, .58);
  --glass-2: rgba(9, 26, 42, .82);
  --stroke: rgba(255, 255, 255, .14);
  --text: #e9f6ff;
  --muted: #a7c4d8;
  --display: 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
  --body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%; margin: 0; overflow: hidden;
  background: #03080f; color: var(--text);
  font-family: var(--body);
  user-select: none;
}

#stage {
  position: fixed; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(1200px 700px at 50% -10%, #123049 0%, #071522 45%, #03080f 100%);
}

.app {
  position: absolute;
  left: 50%; top: 50%;
  margin-left: -480px; margin-top: -300px;
  width: 960px; height: 600px;
  border-radius: 22px;
  overflow: hidden;
  transform-origin: center center;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, .8),
    0 0 0 1px rgba(255, 255, 255, .07),
    0 0 90px -20px rgba(90, 210, 240, .25);
  background: #08131f;
  touch-action: none;
}

canvas#scene {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; cursor: pointer;
}

.vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(2, 8, 14, .55) 100%);
  mix-blend-mode: multiply;
}

/* ---------------- HUD ---------------- */
.hud {
  position: absolute; top: 14px; left: 14px; z-index: 6;
  display: flex; gap: 8px; flex-wrap: wrap; max-width: 620px;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35));
}

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  font-weight: 800; font-size: 15px;
  letter-spacing: .2px;
  white-space: nowrap;
}
.chip b { font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.chip i { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 800; }
.chip-ico { font-size: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.chip.bait { cursor: pointer; pointer-events: auto; transition: transform .15s, border-color .2s; }
.chip.bait:hover { transform: translateY(-1px); border-color: rgba(255, 209, 102, .5); }
#uiCoins { color: var(--gold); }
#uiBaitName { color: var(--mint); }
.chip.flash { animation: chipFlash .5s ease; }
@keyframes chipFlash {
  0% { transform: scale(1); }
  35% { transform: scale(1.09); border-color: var(--gold); }
  100% { transform: scale(1); }
}

.toolbar {
  position: absolute; top: 14px; right: 14px; z-index: 6;
  display: flex; gap: 8px;
}
.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff; font-size: 19px; cursor: pointer;
  transition: transform .14s, background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(31, 62, 92, .8); transform: translateY(-2px); border-color: rgba(90,210,240,.45); }
.icon-btn:active { transform: scale(.93); }
.icon-btn.off { opacity: .45; }

/* ---------------- thanh lực ---------------- */
.power {
  position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%);
  width: 260px; height: 14px; border-radius: 999px; z-index: 6;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .22);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5), inset 0 1px 2px rgba(0,0,0,.7);
}
.power-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #4ade80, #facc15 55%, #f87171);
  box-shadow: 0 0 14px rgba(250, 204, 21, .7);
  transition: width .04s linear;
}
.power-mark {
  position: absolute; top: -4px; width: 3px; height: 22px;
  background: #fff; box-shadow: 0 0 10px #fff; opacity: .9;
  left: 0%;
}

/* ---------------- câu cá ---------------- */
.reel {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 11;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.reel-bars {
  position: absolute; top: 64px; left: 50%; transform: translateX(-50%);
  z-index: 11;
  width: 340px; padding: 10px 14px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 7px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.bar { display: flex; align-items: center; gap: 9px; }
.bar > span {
  width: 64px; font-size: 10px; font-weight: 900; letter-spacing: .8px;
  text-transform: uppercase; color: var(--muted);
}
.track {
  flex: 1; height: 9px; border-radius: 99px;
  background: rgba(0, 0, 0, .5);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8);
  overflow: hidden;
}
.fill { height: 100%; width: 0%; border-radius: 99px; transition: width .09s linear, background .3s; }
.fill.progress { background: linear-gradient(90deg, #2ea8e0, #7ee7ff); box-shadow: 0 0 10px rgba(90, 210, 240, .75); }
.fill.tension { background: linear-gradient(90deg, #4ade80, #facc15); box-shadow: 0 0 10px rgba(74, 222, 128, .5); }
.fill.tension.hot { background: linear-gradient(90deg, #f97316, #ef4444); box-shadow: 0 0 14px rgba(239, 68, 68, .8); }

.dial {
  position: relative; width: 132px; height: 132px; border-radius: 50%;
  background:
    radial-gradient(circle at 42% 34%, rgba(24, 56, 82, .96), rgba(4, 14, 24, .99) 70%);
  border: 2px solid rgba(255, 255, 255, .18);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, .65),
    inset 0 0 30px rgba(0, 0, 0, .85),
    0 0 0 6px rgba(6, 20, 34, .35);
  cursor: pointer;
  touch-action: none;
  transition: transform .12s;
}
.dial:active { transform: scale(.97); }
.dial-target {
  position: absolute; inset: 8px; border-radius: 50%; opacity: .8;
  border: 3px dashed rgba(110, 231, 183, .72);
  box-shadow: inset 0 0 18px rgba(110, 231, 183, .12);
}
.dial-needle {
  position: absolute; left: 50%; top: 50%;
  width: 5px; height: 48px; margin-left: -2.5px; margin-top: -48px;
  transform-origin: 50% 100%;
  background: linear-gradient(to top, #b8752f, #ffd98a);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(255, 209, 102, .7);
  pointer-events: none;
}
.dial-needle i {
  position: absolute; left: 50%; top: -7px; width: 18px; height: 18px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0bd, #d18c31 65%);
  border: 2px solid #6f441b; box-shadow: 0 3px 7px rgba(0,0,0,.5);
}
.dial-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; font-weight: 900; color: #7ee7bf;
  background: radial-gradient(circle at 40% 35%, #123049, #05121f);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 0 18px rgba(90, 210, 240, .35), inset 0 0 10px rgba(0,0,0,.8);
}
.reel-tip {
  font-size: 11px; font-weight: 800; letter-spacing: .4px;
  color: #bfe3f5; opacity: .9; text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.reel.turning .dial { box-shadow: 0 0 0 5px rgba(110,231,183,.2), 0 16px 34px rgba(0,0,0,.65), inset 0 0 30px rgba(0,0,0,.85); }
.mega-hud { position:absolute; z-index:24; top:62px; left:50%; width:520px; transform:translateX(-50%); padding:10px 14px; border:2px solid #8f1d2c; border-radius:13px; background:rgba(15,5,12,.9); box-shadow:0 8px 30px #000; }
.mega-phase { position:absolute; left:50%; top:-16px; transform:translateX(-50%); padding:4px 14px; border-radius:99px; background:#8f1d2c; color:#fff; font-size:11px; font-weight:900; letter-spacing:2px; }
.mega-health { display:grid; grid-template-columns:100px 1fr; align-items:center; gap:8px; margin:5px 0; color:#ff8092; font-size:11px; font-weight:900; }
.mega-health.player { color:#7ee7ff; }
.mega-health div { height:13px; border:2px solid rgba(255,255,255,.2); background:#13070b; overflow:hidden; }
.mega-health i { display:block; width:100%; height:100%; background:linear-gradient(90deg,#8b0e22,#ff334f); transition:width .18s; }
.mega-health.player i { background:linear-gradient(90deg,#168bb8,#7ee7ff); }
.mega-dialog { position:absolute; z-index:25; left:50%; bottom:76px; transform:translateX(-50%); width:650px; min-height:112px; padding:16px 142px 14px; border:4px solid #ffd166; border-radius:0; background:rgba(9,17,28,.97); text-align:center; box-shadow:0 7px 0 #101925, 0 0 0 4px #54390d, 0 14px 28px #000; }
.mega-dialog b { color:#ffd166; letter-spacing:2px; }
.mega-dialog p { margin:5px 0 0; color:#fff; font-size:18px; font-weight:900; }
.pixel-dialog { image-rendering:pixelated; }
.dialog-portrait { position:absolute; bottom:8px; width:124px; height:150px; overflow:hidden; image-rendering:pixelated; filter:drop-shadow(0 7px 0 rgba(0,0,0,.35)); }
.dialog-portrait.left { left:8px; }
.dialog-portrait.right { right:8px; }
.dialog-portrait canvas, canvas.dialog-portrait { object-fit:contain; }
.mega-boss-portrait { object-fit:contain; image-rendering:pixelated; }
.dialog-skip { position:absolute; right:8px; top:7px; z-index:3; padding:4px 8px; border:2px solid rgba(255,255,255,.35); border-radius:0; background:#182333; color:#d8e4ee; font:900 10px var(--body); cursor:pointer; box-shadow:2px 2px 0 #000; pointer-events:auto; }
.dialog-skip:active { transform:translate(2px,2px); box-shadow:none; }
.mega-controls { position:absolute; z-index:26; inset:auto 18px 16px; display:flex; justify-content:space-between; pointer-events:none; }
.mega-controls button { pointer-events:auto; min-width:76px; height:62px; border:3px solid rgba(255,255,255,.45); border-radius:14px; background:rgba(8,23,38,.9); color:#fff; font:900 13px var(--body); box-shadow:0 5px 0 rgba(0,0,0,.55); touch-action:none; }
.mega-controls #megaRight { margin-left:8px; }
.mega-actions { margin-left:auto; display:flex; gap:10px; pointer-events:none; }
.mega-controls .mega-actions button, .mega-controls .fire { min-width:68px; width:68px; height:68px; padding:0; border-radius:50%; font-size:31px; line-height:1; pointer-events:auto; }
.mega-controls #megaJump { background:#176a86; }
.mega-controls .fire { margin-left:12px; transform:translateY(-16px); background:#a51f34; }
#turnBattleControls { pointer-events:auto; width:100%; padding:12px 16px !important; background:rgba(9,18,29,.97) !important; border:2px solid #9b8055 !important; box-shadow:0 5px 0 #050b12; }
#turnBattleLog { min-height:36px; max-height:54px; overflow:auto; color:#eadfca; font-size:13px; line-height:1.5; padding:0 0 8px; }
.battle-tabs { display:flex; gap:6px; border-bottom:1px solid #45505c; padding-bottom:8px; margin-bottom:10px; }
.mega-controls #turnBattleControls button { height:auto; min-height:42px; min-width:0; border:1px solid #45576a; border-radius:3px; box-shadow:0 3px 0 #050b12; padding:9px 16px; font-size:13px; background:#1c2b3c; }
.mega-controls #turnBattleControls button[aria-selected="true"], .mega-controls #turnBattleControls button.selected { color:#ffe2a2; background:#4c3925; border-color:#d5b16d; }
.mega-controls #turnBattleControls button:disabled { opacity:.45; cursor:wait; }
.battle-panel { display:flex; align-items:center; gap:10px; min-height:52px; }
.battle-targets { display:none !important; }
.playing-cinematic > :not(canvas):not(#cinemaSkip) { visibility:hidden; }
.playing-intro > :not(canvas):not(#introSkip) { visibility:hidden; }
#turnBattleControls { padding:7px 12px !important; }
#turnBattleLog { min-height:20px; max-height:32px; padding-bottom:4px; }
.battle-tabs { padding-bottom:4px; margin-bottom:5px; }
.battle-panel { min-height:38px; justify-content:center; }
.mega-controls #turnBattleControls button { min-height:34px; padding:6px 14px; }
.mega-controls #turnBattleControls .battle-targets button { padding:9px 8px; font-size:12px; }
.mega-controls #turnShoot { background:#773342 !important; border-color:#c86a78 !important; }
body.mobile .battle-targets { grid-template-columns:repeat(2,1fr); }
body.mobile #turnBattleLog { font-size:12px; }
.mega-result { position:absolute; z-index:30; left:50%; top:50%; transform:translate(-50%,-50%); width:430px; padding:25px; border:3px solid #ff667e; border-radius:18px; background:rgba(12,5,12,.96); text-align:center; box-shadow:0 20px 80px #000; }
.mega-result h2 { margin:0; color:#ff667e; font-family:var(--display); }
.mega-result p { color:#d8c7cf; }
.reel.hit .dial { animation: dialHit .25s ease; }
@keyframes dialHit {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 183, .8), 0 16px 34px rgba(0,0,0,.65); }
  100% { box-shadow: 0 0 0 26px rgba(110, 231, 183, 0), 0 16px 34px rgba(0,0,0,.65); }
}

/* ---------------- QTE giật ---------------- */
.jerk {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  z-index: 14; text-align: center; pointer-events: none;
  animation: jerkShake .12s infinite;
}
.jerk-title {
  font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: 1px;
  color: #fff; text-shadow: 0 0 22px rgba(239, 68, 68, .95), 0 4px 18px rgba(0,0,0,.9);
}
.jerk-sub { font-size: 13px; font-weight: 900; letter-spacing: 2px; color: #ffd7d7; margin-top: 2px; }
.jerk-track {
  width: 220px; height: 12px; margin: 10px auto 0;
  border-radius: 99px; background: rgba(0,0,0,.7);
  border: 1px solid rgba(239, 68, 68, .8); overflow: hidden;
}
.jerk-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #ef4444, #ff8a5b); transition: width .06s linear; }
@keyframes jerkShake {
  0% { transform: translate(-50%, -50%) rotate(-1.6deg); }
  50% { transform: translate(-50%, -50%) rotate(1.6deg); }
  100% { transform: translate(-50%, -50%) rotate(-1.6deg); }
}

/* ---------------- bong bóng ---------------- */
.bubbles { position: absolute; inset: 0; z-index: 13; pointer-events: none; }
.bubble {
  position: absolute; border-radius: 50%; pointer-events: auto; cursor: pointer;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(180,240,255,.55) 35%, rgba(70,180,230,.25) 65%, rgba(30,120,180,.35));
  border: 1.5px solid rgba(255, 255, 255, .75);
  box-shadow: 0 0 18px rgba(90, 210, 240, .55), inset 0 0 12px rgba(255,255,255,.5);
  animation: bubbleFloat 1.6s ease-in-out infinite alternate;
  transition: transform .1s;
}
.bubble:active { transform: scale(.9); }
.bubble.pop { animation: bubblePop .3s ease forwards; pointer-events: none; }
@keyframes bubbleFloat { from { margin-top: 0; } to { margin-top: -12px; } }
@keyframes bubblePop {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------------- hint ---------------- */
.hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 7; padding: 9px 20px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--stroke);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13.5px; font-weight: 800; letter-spacing: .2px;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}
.hint.alert {
  background: linear-gradient(90deg, rgba(239,68,68,.92), rgba(249,115,22,.92));
  border-color: rgba(255, 220, 220, .5);
  animation: hintPulse .5s ease-in-out infinite alternate;
}
@keyframes hintPulse {
  from { transform: translateX(-50%) scale(1); }
  to { transform: translateX(-50%) scale(1.06); }
}
.hint.hide { opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px); transition: opacity .22s, visibility 0s .22s; }

/* ---------------- toast ---------------- */
.toasts {
  position: absolute; top: 70px; left: 50%; transform: translateX(-50%);
  z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 9px 18px; border-radius: 12px;
  background: rgba(6, 18, 30, .9);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  font-size: 13.5px; font-weight: 800;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .5);
  animation: toastIn .28s cubic-bezier(.2, 1.4, .5, 1);
  white-space: nowrap;
}
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.95); } }

/* ---------------- overlay & thẻ cá ---------------- */
.overlay {
  position: absolute; inset: 0; z-index: 30;
  display: grid; place-items: center;
  background: rgba(2, 8, 14, .72);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } }

/* ---------------- biến cố thời tiết ---------------- */
.weather-event { z-index: 35; background: rgba(2, 10, 18, .82); backdrop-filter: blur(9px); }
.weather-event-card {
  width: min(510px, 88%); padding: 26px 28px 24px; border-radius: 22px;
  text-align: center; color: #eef8ff;
  background: linear-gradient(165deg, rgba(20,54,76,.98), rgba(6,20,34,.99));
  border: 2px solid rgba(126,231,255,.35);
  box-shadow: 0 24px 70px rgba(0,0,0,.65), inset 0 0 34px rgba(90,210,240,.08);
  animation: eventCardIn .32s ease-out;
}
@keyframes eventCardIn { from { opacity: 0; transform: translateY(18px) scale(.94); } }
.weather-event-card.danger { border-color: rgba(255,100,100,.65); box-shadow: 0 24px 70px rgba(0,0,0,.7), 0 0 40px rgba(255,55,55,.15); }
.weather-event-card.reward { border-color: rgba(110,231,183,.65); }
.weather-event-icon { font-size: 64px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.weather-event-tag { margin-top: 5px; color: #8edcf4; font-size: 10px; font-weight: 900; letter-spacing: 2.4px; }
.weather-event-card h2 { margin: 8px 0 6px; font-family: var(--display); font-size: 27px; }
.weather-event-card p { margin: 0 auto 18px; color: #bed7e7; line-height: 1.6; font-size: 14px; }
.weather-event-actions { display: flex; gap: 10px; justify-content: center; }
.weather-event-actions .btn { flex: 1; max-width: 220px; margin: 0; }

.catch-card {
  position: relative; width: 366px; padding: 20px 20px 18px;
  border-radius: 26px; overflow: hidden;
  background: linear-gradient(168deg, #10283f 0%, #091724 60%, #070f19 100%);
  border: 1px solid var(--rc, #38bdf8);
  box-shadow:
    0 0 70px -12px var(--rc, #38bdf8),
    0 30px 70px rgba(0, 0, 0, .65),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  text-align: center;
  animation: pop .4s cubic-bezier(.2, 1.5, .5, 1);
}
@keyframes pop { from { transform: scale(.7) translateY(14px); opacity: 0; } }

.catch-card .shine {
  position: absolute; top: -60%; left: -40%; width: 60%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: rotate(18deg);
  animation: sweep 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep {
  0% { left: -60%; }
  55% { left: 130%; }
  100% { left: 130%; }
}

.catch-rarity {
  display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: 3px;
  padding: 4px 14px; border-radius: 99px; text-transform: uppercase;
  color: #06131f; background: var(--rc, #38bdf8);
  box-shadow: 0 0 24px -4px var(--rc, #38bdf8);
}
.catch-art { margin: 4px 0 -2px; }
.catch-art canvas { width: 220px; height: 145px; display: block; margin: 0 auto; }
.catch-card h2 {
  font-family: var(--display); font-size: 27px; font-weight: 800;
  margin: 2px 0 4px; letter-spacing: .3px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .6);
}
.catch-desc { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin: 0 6px 12px; min-height: 34px; }
.catch-foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.catch-value {
  font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--gold);
  text-shadow: 0 0 22px rgba(255, 209, 102, .55);
}
.catch-new {
  font-size: 10px; font-weight: 900; letter-spacing: 1.6px;
  padding: 3px 9px; border-radius: 6px;
  background: linear-gradient(180deg, #6ee7b7, #34d399); color: #06231a;
  animation: newBlink 1s ease-in-out infinite alternate;
}
@keyframes newBlink { from { filter: brightness(1); } to { filter: brightness(1.35); } }

/* ---------------- button ---------------- */
.btn {
  width: 100%; padding: 12px 18px;
  border: none; border-radius: 14px; cursor: pointer;
  font-family: var(--body); font-size: 15px; font-weight: 900; letter-spacing: .3px;
  color: #201300;
  background: linear-gradient(180deg, #ffe08a, var(--gold-deep));
  box-shadow: 0 8px 20px -6px rgba(242, 169, 59, .8), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .12s, filter .2s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(.975); }
.btn.ghost {
  color: #dcefff; background: rgba(255, 255, 255, .09);
  border: 1px solid var(--stroke);
  box-shadow: none;
  margin-top: 12px;
}

/* ---------------- màn hình (shop / book / start) ---------------- */
.screen {
  position: absolute; inset: 0; z-index: 28;
  display: grid; place-items: center;
  background: rgba(2, 8, 14, .8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fadeIn .22s ease;
  padding: 22px;
}
.sheet {
  width: 440px; max-height: 540px;
  display: flex; flex-direction: column;
  padding: 20px; border-radius: 24px;
  background: linear-gradient(170deg, #0e2438, #071320);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255,255,255,.1);
  animation: pop .32s cubic-bezier(.2, 1.4, .5, 1);
}
.sheet.wide { width: 720px; max-height: 560px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sheet h2 {
  font-family: var(--display); font-size: 24px; font-weight: 800; margin: 0;
  background: linear-gradient(90deg, #ffe9a8, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wallet { font-size: 13px; font-weight: 900; color: var(--gold); }
.wallet b { font-variant-numeric: tabular-nums; }
.sub { font-size: 12px; color: var(--muted); margin: 2px 0 12px; }

.shop-list { display: flex; flex-direction: column; gap: 9px; overflow-y: auto; padding-right: 2px; }
.shop-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  cursor: pointer; transition: all .18s;
}
.shop-item:hover { background: rgba(255, 255, 255, .09); transform: translateY(-1px); }
.shop-item.active {
  border-color: rgba(110, 231, 183, .7);
  background: rgba(110, 231, 183, .12);
  box-shadow: 0 0 24px -8px rgba(110, 231, 183, .8);
}
.si-icon {
  width: 44px; height: 44px; flex: none; border-radius: 13px;
  display: grid; place-items: center; font-size: 23px;
  background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .08);
}
.si-info { flex: 1; min-width: 0; text-align: left; }
.si-name { font-size: 14.5px; font-weight: 900; }
.si-name small { font-size: 11px; color: var(--mint); font-weight: 800; margin-left: 6px; }
.si-desc { font-size: 11px; color: var(--muted); margin-top: 1px; }
.si-buy {
  flex: none; padding: 9px 13px; border-radius: 11px; border: none; cursor: pointer;
  font-family: var(--body); font-size: 12.5px; font-weight: 900; color: #201300;
  background: linear-gradient(180deg, #ffe08a, var(--gold-deep));
  box-shadow: 0 6px 14px -6px rgba(242, 169, 59, .9);
  transition: transform .12s;
}
.si-buy:active { transform: scale(.95); }

.book-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px;
  overflow-y: auto; padding: 4px 4px 4px 0; margin-bottom: 4px;
}
.book-rarity-heading { grid-column:1 / -1; margin:12px 0 4px; padding:8px 12px; font-size:16px; border-left:4px solid currentColor; background:rgba(0,0,0,.25); }
.book-item {
  position: relative; padding: 6px 4px 5px; border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  text-align: center; transition: transform .15s, background .2s;
}
.book-item:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .08); }
.book-item canvas { width: 100%; height: auto; display: block; }
.book-item .bi-name { font-size: 10px; font-weight: 900; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-item.locked { filter: grayscale(1); opacity: .34; }
.book-item.locked .bi-name { color: #9fb3c4; }
.book-item.locked .bi-rarity { display: none; }
.book-item .bi-rarity { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }

/* ---------------- start ---------------- */
.screen.start {
  background:
    radial-gradient(700px 400px at 50% 20%, rgba(30, 90, 130, .55), transparent 70%),
    rgba(2, 8, 14, .86);
}
.start-card { text-align: center; width: 460px; animation: pop .5s cubic-bezier(.2, 1.4, .5, 1); }
.start-fish { font-size: 54px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.start-card h1 {
  font-family: var(--display); font-size: 46px; line-height: 1.05; margin: 6px 0 6px;
  background: linear-gradient(100deg, #ffffff, #ffe9a8 40%, #5ad2f0 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(90, 210, 240, .35));
}
.start-card p { color: var(--muted); font-size: 13.5px; font-weight: 700; margin: 0 0 16px; }
.start-tips {
  list-style: none; padding: 14px 18px; margin: 0 0 20px;
  border-radius: 16px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  text-align: left; font-size: 12.5px; line-height: 1.9; color: #cfe6f5;
}
.start-tips b { color: var(--gold); }
.start-card .btn { width: 240px; }

/* ---------------- loading ---------------- */
.loading {
  position: absolute; inset: 0; z-index: 50;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: #050f19;
  transition: opacity .4s;
}
.loading.hide { opacity: 0; pointer-events: none; }
.loading p { font-size: 13px; color: var(--muted); font-weight: 800; letter-spacing: 1px; }
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(90, 210, 240, .18);
  border-top-color: var(--cyan);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* thanh cuộn mảnh */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .3); }

/* =====================================================================
   Hướng dẫn người chơi mới (tutorial 4 bước)
   ===================================================================== */
.tut {
  width: 500px; max-width: 94%;
  padding: 18px 20px 16px;
  border-radius: 24px;
  background: linear-gradient(168deg, #10283f 0%, #091724 55%, #070f19 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow:
    0 0 70px -18px rgba(90, 210, 240, .55),
    0 30px 70px rgba(0, 0, 0, .68),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: pop .4s cubic-bezier(.2, 1.4, .5, 1);
}
.tut-head { display: flex; align-items: center; justify-content: space-between; }
.tut-badge {
  font-size: 10px; font-weight: 900; letter-spacing: 2.6px;
  padding: 4px 12px; border-radius: 99px;
  color: #211500;
  background: linear-gradient(180deg, #ffe08a, var(--gold-deep));
  box-shadow: 0 4px 14px -4px rgba(242, 169, 59, .9);
}
.tut-skip {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #cfe6f5; font-family: var(--body); font-size: 11.5px; font-weight: 800;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  transition: background .2s, transform .12s;
}
.tut-skip:hover { background: rgba(255, 255, 255, .13); }
.tut-skip:active { transform: scale(.95); }

.tut-stage {
  position: relative; height: 176px; margin: 12px 0 6px;
  border-radius: 18px;
  background:
    radial-gradient(320px 150px at 50% 115%, rgba(90, 210, 240, .18), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(0,0,0,.22));
  border: 1px solid rgba(255, 255, 255, .07);
  overflow: hidden;
}
.tut-stage .fig { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; }
.tut-stage[data-fig="1"] .fig-1,
.tut-stage[data-fig="2"] .fig-2,
.tut-stage[data-fig="3"] .fig-3,
.tut-stage[data-fig="4"] .fig-4,
.tut-stage[data-fig="5"] .fig-5,
.tut-stage[data-fig="6"] .fig-6 { display: flex; }

.tut h2 {
  font-family: var(--display); font-size: 23px; font-weight: 800;
  margin: 10px 0 4px; text-align: center; letter-spacing: .2px;
}
.tut-text {
  font-size: 12.8px; line-height: 1.6; color: #b9d3e4;
  text-align: center; margin: 0 8px; min-height: 62px;
}
.tut-dots { display: flex; justify-content: center; gap: 7px; margin: 10px 0 12px; }
.tut-dots i {
  width: 8px; height: 8px; border-radius: 99px; display: block;
  background: rgba(255, 255, 255, .18); transition: all .25s;
}
.tut-dots i.on { width: 22px; background: var(--gold); box-shadow: 0 0 12px rgba(255, 209, 102, .7); }
.tut-actions { display: flex; gap: 10px; }
.tut-actions .btn { flex: 1; }
.tut-actions #tutPrev:disabled { opacity: .35; cursor: default; }
.tut-actions #tutPrev { margin: 0; }

/* --- hình minh hoạ từng bước --- */
.fig-1 { flex-direction: column; gap: 12px; }
.fig-row { display: flex; align-items: center; gap: 20px; }
.fig-cast {
  font-size: 52px; display: inline-block;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.55));
  animation: tutCast 2.2s ease-in-out infinite;
}
@keyframes tutCast {
  0%, 100% { transform: rotate(-10deg) translateY(0); }
  45% { transform: rotate(14deg) translateY(-6px); }
}
.fig-caption {
  font-size: 10.5px; font-weight: 900; letter-spacing: 1.4px;
  text-transform: uppercase; color: #9fbed2;
}
.fig-power {
  width: 190px; height: 10px; border-radius: 99px;
  background: rgba(0, 0, 0, .5); border: 1px solid rgba(255,255,255,.18);
  overflow: hidden;
}
.fig-power i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #4ade80, #facc15, #f87171);
  animation: tutFill 2.2s ease-in-out infinite;
}
@keyframes tutFill {
  0% { width: 4%; }
  50% { width: 96%; }
  100% { width: 4%; }
}
.fig-mouse { font-size: 34px; display: inline-block; animation: tutPress 1.1s ease-in-out infinite; }
@keyframes tutPress { 50% { transform: translateY(3px) scale(.94); } }

.fig-2 { flex-direction: column; }
.fig-bob {
  position: relative; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(180deg, #ef4444 50%, #f8fafc 50%);
  border: 1.5px solid rgba(0,0,0,.25);
  animation: tutDip 1.5s ease-in-out infinite;
  z-index: 2;
}
.fig-bob span {
  position: absolute; left: 50%; top: -26px; width: 2px; height: 24px;
  margin-left: -1px; background: rgba(255,255,255,.7);
}
@keyframes tutDip {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(9px); }
}
.fig-bang {
  position: absolute; top: 26px;
  font-family: var(--display); font-size: 44px; font-weight: 800; color: var(--gold);
  text-shadow: 0 0 22px rgba(255, 209, 102, .9), 0 4px 16px rgba(0,0,0,.8);
  animation: tutBang .7s ease-in-out infinite alternate;
  z-index: 3;
}
@keyframes tutBang {
  from { transform: scale(.9) translateY(0); }
  to { transform: scale(1.12) translateY(-6px); }
}
.fig-ring {
  position: absolute; width: 60px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(190, 235, 255, .6);
  animation: tutRing 2s linear infinite;
}
.fig-ring.d2 { animation-delay: 1s; }
@keyframes tutRing {
  0% { transform: scale(.4); opacity: .9; }
  100% { transform: scale(2.1); opacity: 0; }
}

.fig-3 { flex-direction: column; gap: 8px; }
.fig-reel-demo { position: relative; width: 190px; height: 130px; display: grid; place-items: center; }
.fig-dial {
  position: relative; width: 118px; height: 118px; border-radius: 50%;
  background: radial-gradient(circle at 40% 34%, #16344c, #06121e 72%);
  border: 2px solid rgba(255,255,255,.16);
  box-shadow: inset 0 0 22px rgba(0,0,0,.8), 0 10px 24px rgba(0,0,0,.5);
}
.fig-arc {
  position: absolute; inset: 8px; border-radius: 50%;
  border: 3px dashed rgba(110,231,183,.75);
  box-shadow: inset 0 0 16px rgba(110,231,183,.12);
}
.fig-needle {
  position: absolute; left: 50%; top: 50%; width: 5px; height: 43px;
  margin-left: -2.5px; margin-top: -43px; transform-origin: 50% 100%;
  background: linear-gradient(to top, #b8752f, #ffd98a);
  border-radius: 5px; box-shadow: 0 0 10px rgba(255,209,102,.75);
  animation: tutReelCCW 2s linear infinite;
}
.fig-needle i {
  position: absolute; left: 50%; top: -7px; width: 17px; height: 17px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff0bd, #d18c31 65%);
  border: 2px solid #6f441b; box-shadow: 0 3px 7px rgba(0,0,0,.55);
}
@keyframes tutReelCCW { to { transform: rotate(-360deg); } }
.fig-hub {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px;
  transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  color: #7ee7bf; font-size: 18px; font-weight: 900;
  background: #0a1a28; border: 1px solid rgba(255,255,255,.2);
}
.fig-turn-arrow {
  position: absolute; left: 4px; top: 29px; color: #7ee7bf;
  font-size: 46px; font-weight: 900; text-shadow: 0 0 16px rgba(110,231,183,.55);
  animation: tutArrowPulse 1s ease-in-out infinite alternate;
}
@keyframes tutArrowPulse { to { transform: scale(1.12); opacity: .7; } }
.fig-finger {
  position: absolute; left: 132px; top: 51px; font-size: 27px;
  transform-origin: -37px 14px; animation: tutFingerCCW 2s linear infinite;
}
@keyframes tutFingerCCW { to { transform: rotate(-360deg); } }
.fig-turn-label {
  font-size: 9.5px; font-weight: 900; letter-spacing: 1.1px;
  color: #8fdcc5; text-align: center;
}

.fig-4 { gap: 10px; }
.fig-4 span {
  font-size: 38px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.5));
  animation: tutBob 2s ease-in-out infinite;
}
.fig-4 span:nth-child(2) { animation-delay: .2s; }
.fig-4 span:nth-child(3) { animation-delay: .4s; }
.fig-4 span:nth-child(4) { animation-delay: .6s; }
.fig-4 span:nth-child(5) { animation-delay: .8s; }
@keyframes tutBob { 50% { transform: translateY(-10px) rotate(-4deg); } }

.start-card .btn.ghost { width: 240px; margin: 8px auto 0; display: block; }
.save-hint {
  font-size: 11px; font-weight: 700; color: #8fb3c8;
  text-align: center; margin: 0 0 12px;
}
.save-hint b { color: #ffd166; }

/* --- bước hướng dẫn riêng cho điện thoại --- */
.fig-5 { flex-direction: column; gap: 8px; }
.fig-row5 { display: flex; align-items: flex-end; gap: 4px; }
.fig-phone {
  font-size: 54px; display: inline-block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.55));
  animation: tutPhone 2.6s ease-in-out infinite;
}
@keyframes tutPhone {
  0%, 18% { transform: rotate(0deg); }
  50%, 88% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}
.fig-thumb {
  font-size: 24px; display: inline-block; margin-bottom: 4px;
  animation: tutPress 1.1s ease-in-out infinite;
}

/* =====================================================================
   Thành tích
   ===================================================================== */
.chip.clickable { pointer-events: auto; cursor: pointer; transition: transform .15s, border-color .2s; }
.chip.clickable:hover { transform: translateY(-1px); border-color: rgba(255, 209, 102, .6); }
#uiAch { color: var(--gold); }

.ach-banner-wrap {
  position: absolute; top: 64px; left: 50%; transform: translateX(-50%);
  z-index: 45; display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: min(370px, 88%); pointer-events: none;
}
.ach-banner {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(38, 33, 12, .97), rgba(12, 26, 22, .97));
  border: 1px solid rgba(255, 209, 102, .55);
  box-shadow: 0 0 44px -10px rgba(255, 209, 102, .85), 0 16px 34px rgba(0, 0, 0, .6);
  animation: achIn .45s cubic-bezier(.2, 1.5, .5, 1);
}
.ach-banner.out { animation: achOut .35s ease forwards; }
@keyframes achIn { from { opacity: 0; transform: translateY(-18px) scale(.9); } }
@keyframes achOut { to { opacity: 0; transform: translateY(-12px) scale(.95); } }
.ach-ico {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  font-size: 21px; border-radius: 11px;
  background: rgba(255, 209, 102, .16);
  border: 1px solid rgba(255, 209, 102, .35);
  box-shadow: inset 0 0 14px rgba(255, 209, 102, .25);
}
.ach-txt { flex: 1; min-width: 0; text-align: left; }
.ach-txt b {
  display: block; font-size: 9px; font-weight: 900; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1px;
}
.ach-txt span { font-size: 13.5px; font-weight: 900; color: #fff; }
.ach-reward {
  font-family: var(--display); font-size: 14px; font-weight: 800;
  color: var(--gold); white-space: nowrap;
  text-shadow: 0 0 14px rgba(255, 209, 102, .6);
}

.ach-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; margin-bottom: 4px; padding-right: 4px; flex: 1 1 auto; min-height: 0; }
.ach-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
}
.ach-row.done {
  border-color: rgba(255, 209, 102, .45);
  background: rgba(255, 209, 102, .09);
  box-shadow: 0 0 26px -12px rgba(255, 209, 102, .9);
}
.ach-row .ico {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  font-size: 20px; border-radius: 12px;
  background: rgba(0, 0, 0, .32);
  border: 1px solid rgba(255, 255, 255, .08);
  filter: grayscale(1); opacity: .55;
}
.ach-row.done .ico { filter: none; opacity: 1; border-color: rgba(255, 209, 102, .4); }
.ach-row .info { flex: 1; min-width: 0; }
.ach-row .nm { font-size: 13.5px; font-weight: 900; }
.ach-row .nm small { font-size: 10px; color: var(--muted); font-weight: 800; margin-left: 6px; }
.ach-row .ds { font-size: 11px; color: var(--muted); line-height: 1.4; margin-top: 1px; }
.ach-prog { height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .1); margin-top: 6px; overflow: hidden; }
.ach-prog i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #5ad2f0, #6ee7b7); }
.ach-row .rw {
  font-size: 11.5px; font-weight: 900; color: var(--gold); white-space: nowrap;
  text-align: right; line-height: 1.4;
}
.ach-row .rw em { display: block; font-style: normal; font-size: 9.5px; color: #6ee7b7; letter-spacing: .6px; }

/* =====================================================================
   Cổng xoay ngang cho điện thoại
   ===================================================================== */
.rotate-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center; text-align: center; padding: 24px;
  background: radial-gradient(circle at 50% 30%, #163a55 0%, #06121e 55%, #030910 100%);
}
.rotate-phone {
  font-size: 72px; display: inline-block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .6));
  animation: tutPhone 2.8s ease-in-out infinite;
}
.rotate-card h3 { font-family: var(--display); font-size: 27px; margin: 12px 0 8px; }
.rotate-card p { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 300px; margin: 0 auto; }

/* =====================================================================
   Tinh chỉnh cho thiết bị cảm ứng
   ===================================================================== */
body.mobile .app { border:0 !important; border-radius:0 !important; box-shadow:none !important; }
body.mobile .hud { left:max(14px, env(safe-area-inset-left)); top:max(10px, env(safe-area-inset-top)); }
body.mobile .mega-controls { left:max(18px, env(safe-area-inset-left)); right:max(18px, env(safe-area-inset-right)); bottom:max(12px, env(safe-area-inset-bottom)); }
body.mobile .chip { height: 42px; padding: 0 15px; font-size: 16px; }
body.mobile .chip-ico { font-size: 17px; }
body.mobile .icon-btn { width: 50px; height: 50px; font-size: 21px; border-radius: 16px; }
body.mobile .hint { font-size: 15px; padding: 10px 22px; }
body.mobile .btn { font-size: 16px; padding: 14px 18px; }
body.mobile .tut { width: 560px; }
body.mobile .tut h2 { font-size: 27px; }
body.mobile .tut-text { font-size: 14.5px; min-height: 54px; }
body.mobile .catch-card { width: 400px; }
body.mobile .sheet { width: 520px; }
body.mobile .sheet.wide { width: 780px; }
body.mobile .hud { max-width:560px; gap:6px; }
body.mobile .chip { height:36px; padding:0 9px; font-size:14px; }
body.mobile .toolbar { top:12px; right:12px; gap:5px; }
body.mobile .toolbar .icon-btn { width:44px; height:44px; border-radius:0; font-size:19px; }
body.mobile .reel-bars { top:100px; }
body.mobile .reel { bottom:18px; }
body.mobile .reel-tip { font-size: 15px; }

/* =====================================================================
   Đặt tên nhân vật
   ===================================================================== */
.name-card {
  width: 430px; max-width: 92%; padding: 24px 24px 20px;
  border-radius: 24px; text-align: center;
  background: linear-gradient(168deg, #10283f 0%, #091724 55%, #070f19 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 70px -18px rgba(90, 210, 240, .55), 0 30px 70px rgba(0, 0, 0, .68);
  animation: pop .4s cubic-bezier(.2, 1.4, .5, 1);
}
.name-card h1 {
  font-family: var(--display); font-size: 34px; margin: 6px 0 8px;
  background: linear-gradient(100deg, #ffffff, #ffe9a8 45%, #5ad2f0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.name-card p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 6px 16px; }
.name-input {
  width: 100%; padding: 13px 16px; margin-bottom: 14px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .38); color: #fff;
  font-family: var(--body); font-size: 17px; font-weight: 800; text-align: center;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.name-input::placeholder { color: #5f7d92; font-weight: 700; }
.name-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 209, 102, .18); }
.name-hint { font-size: 10.5px !important; color: #6f8ea3 !important; margin: 10px 0 0 !important; }

/* =====================================================================
   Cửa hàng: tiệm gỗ pixel
   ===================================================================== */
.shop-screen { padding: 0; background: #120b06; }
.shop-wrap { position: absolute; inset: 0; }
#shopCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; image-rendering: pixelated;
}
.shop-top {
  position: absolute; left: 0; right: 0; top: 14px;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 0 16px; pointer-events: none;
}
.shop-sign {
  font-family: var(--display); font-size: 16px; letter-spacing: 2.4px;
  color: #ffd98a; padding: 8px 16px; border-radius: 8px;
  background: rgba(38, 22, 10, .82);
  border: 2px solid #7a5a32;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(0, 0, 0, .3);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .6);
}
.shop-top .icon-btn { pointer-events: auto; background: rgba(38, 22, 10, .85); border-color: #7a5a32; }
.shop-side {
  position: absolute; right: 16px; top: 72px; width: 348px;
  display: flex; flex-direction: column; gap: 9px;
}
.shop-wallet {
  align-self: flex-end; padding: 7px 16px; border-radius: 99px;
  background: rgba(30, 18, 8, .85); border: 1px solid rgba(255, 209, 102, .4);
  font-weight: 900; font-size: 14px; color: var(--gold);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35);
}
.shop-list { display: flex; flex-direction: column; gap: 8px; max-height: 330px; overflow-y: auto; padding-right: 2px; }
.shop-item {
  background: rgba(30, 18, 8, .85);
  border: 2px solid rgba(122, 90, 50, .55);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35);
  border-radius: 12px;
}
.shop-item:hover { background: rgba(48, 30, 14, .92); transform: translateY(-1px); }
.shop-item.active { border-color: #8fd98f; background: rgba(36, 56, 28, .85); box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 22px -8px #8fd98f; }
.shop-item .si-icon { background: rgba(0, 0, 0, .35); border-color: rgba(255, 209, 102, .2); }
.shop-item .si-name { color: #ffeccb; }
.shop-item .si-desc { color: #c8b08a; }
.si-buy {
  background: linear-gradient(180deg, #ffd98a, #c98a2e);
  border: 2px solid #7a5a32; box-shadow: 0 3px 0 #5a3f22;
  color: #2a1800;
}
.si-buy:active { transform: translateY(2px); box-shadow: 0 1px 0 #5a3f22; }
.shop-note { font-size: 10.5px; color: #c8b08a; text-align: right; margin: 0 2px; }
.bait-quantity { display:flex; flex-direction:column; align-items:center; gap:4px; margin:0 8px; flex-shrink:0; }
.bait-quantity > span { color:#cbb581; font:700 9px var(--body); letter-spacing:1px; }
.bait-stepper { display:flex; border:2px solid #836239; background:#211d14; box-shadow:2px 2px 0 #10130e; }
.bait-stepper button { width:28px; height:32px; border:0; border-radius:0; background:#514126; color:#ffe0a1; font:900 21px var(--body); padding:0; cursor:pointer; }
.bait-stepper button:active { background:#806236; color:#fff2c4; }
.bait-stepper input { appearance:textfield; -moz-appearance:textfield; width:42px; min-width:0; height:32px; padding:0 2px; border:0; border-left:1px solid #836239; border-right:1px solid #836239; border-radius:0; text-align:center; background:#18251b; color:#ffe7b5; font:800 15px var(--body); user-select:text; }
.bait-stepper input::-webkit-inner-spin-button,.bait-stepper input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.bait-stepper input:focus-visible,.bait-stepper button:focus-visible { outline:2px solid #e8c575; outline-offset:2px; }
body.mobile .bait-stepper button { width:32px; height:38px; }
body.mobile .bait-stepper input { height:38px; }

.shop-dialog {
  position: absolute; left: 20px; bottom: 18px; width: 560px;
  padding: 12px 16px 14px; border-radius: 12px;
  background: rgba(26, 15, 6, .92);
  border: 2px solid #7a5a32;
  box-shadow: 0 8px 0 rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.shop-dialog-skip { right:5px; top:5px; }
.shop-speaker {
  font-size: 10px; font-weight: 900; letter-spacing: 2.2px;
  text-transform: uppercase; color: #ffd166;
}
.shop-dialog p {
  margin: 4px 0 0; font-size: 13.5px; line-height: 1.55;
  color: #f3e7d2; min-height: 42px;
}
.shop-choices {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px; margin-top: 9px; pointer-events: auto;
}
.shop-choices.hidden { display: none; }
.shop-choice {
  padding: 8px 10px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255, 217, 138, .55);
  background: rgba(83, 53, 25, .95); color: #ffeccb;
  font-family: var(--body); font-size: 11px; font-weight: 900;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}
.shop-choice:hover { background: #76502a; transform: translateY(-1px); }
.shop-choice:active { transform: translateY(2px); box-shadow: none; }
.shop-choice.walk-away { color: #c8b08a; border-color: rgba(200,176,138,.35); }
.shop-dialog.angry { border-color: #c0392b; animation: jerkShake .16s 3; }
.shop-dialog.happy { border-color: #9bd97a; }
.shop-dialog.negotiating { width: 620px; pointer-events: auto; }

body.mobile .shop-side { width: 300px; }
body.mobile .shop-dialog { width: 470px; }
body.mobile .shop-dialog p { font-size: 14.5px; }
body.mobile .shop-item .si-desc { font-size: 10.5px; }

/* ông Bụt */
.but-screen { z-index: 42; background: rgba(3, 15, 28, .72); overflow: hidden; }
.but-rise { position: absolute; right: 105px; bottom: -45px; width: 235px; animation: butRise 1.35s ease-out both; filter: drop-shadow(0 0 24px rgba(145,225,255,.7)); transition: opacity .2s; }
.but-rise img { display: block; width: 100%; image-rendering: pixelated; }
.but-rise.settled { visibility: hidden; opacity: 0 !important; }
@keyframes butRise { from { transform: translateY(105%); opacity: .2; } to { transform: translateY(0); opacity: 1; } }
@keyframes butSink { from { transform: translateY(0); opacity: 1; } to { transform: translateY(110%); opacity: .15; } }
.but-screen.sinking .but-rise { animation: butSink 1.1s ease-in both; opacity: 1; }
.but-screen.sinking { animation: butScreenOut 1.1s ease-in both; }
@keyframes butScreenOut { 70% { background: rgba(3,15,28,.72); } to { background: rgba(3,15,28,0); } }
.but-dialog { position: absolute; left: 132px; right: 132px; bottom: 20px; min-height: 116px; display: block; padding: 16px 145px 14px; border: 4px solid #bfeeff; border-radius: 0; background: rgba(9,25,42,.96); box-shadow: 0 8px 0 #07101b, 0 0 0 4px #315b70, 0 0 30px rgba(120,220,255,.25); }
.but-dialog.hidden { display: none; }
.but-portrait { position: absolute; bottom: calc(100% + 8px); width: 190px; height: 225px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; color: #dff7ff; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }
.but-portrait.player-portrait { left: -72px; }
.but-portrait.npc-portrait { right: -72px; }
.but-portrait img, .but-portrait canvas { width: 180px; height: 205px; object-fit: contain; image-rendering: pixelated; }
.but-portrait b { margin-top: -2px; padding: 2px 8px; border-radius: 8px; background: rgba(4,18,31,.82); font-size: 11px; }
.but-copy { min-width: 0; text-align: center; }
.but-copy span { color: #8ee8ff; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.but-copy p { min-height: 52px; margin: 8px 0 12px; color: #fff8df; font-size: 18px; line-height: 1.45; font-weight: 800; }
.but-choices { display: flex; justify-content: center; gap: 12px; }
.but-choices .btn { width: 150px; margin: 0; }
.but-held-rod { display: none; position: absolute; bottom: 36px; width: 8px; height: 150px; border: 3px solid rgba(0,0,0,.45); border-radius: 5px 5px 2px 2px; transform-origin: 50% 100%; image-rendering: pixelated; }
.but-held-rod::after { content: ''; position: absolute; left: -8px; bottom: 20px; width: 18px; height: 18px; border: 4px solid #5b421d; border-radius: 50%; background: inherit; }
.but-held-rod.show { display: block; }
.but-held-rod.silver { left: 48px; transform: rotate(-16deg); background: repeating-linear-gradient(0deg,#9aa8b7 0 8px,#eff8ff 8px 16px); }
.but-held-rod.gold { right: 48px; transform: rotate(16deg); background: repeating-linear-gradient(0deg,#b67b00 0 8px,#ffe36a 8px 16px); }

/* =====================================================================
   HỆ THỐNG MỚI: cần câu, túi đựng cá, thùng cá, thư trong chai
   ===================================================================== */
#uiRod { color: #9fe8ff; }
#uiBag { color: var(--gold); }

.catch-store {
  display: block; font-size: 11.5px; font-weight: 900; letter-spacing: .3px;
  color: var(--mint); margin: -4px 0 10px;
}
.catch-store.warn { color: #ff9b9b; }

/* tab trong tiệm */
.shop-tabs { display: flex; gap: 7px; }
.shop-tab {
  flex: 1; padding: 8px 6px; border-radius: 10px;
  border: 2px solid rgba(122, 90, 50, .6);
  background: rgba(30, 18, 8, .88);
  color: #c8b08a; font-family: var(--body); font-size: 11.5px; font-weight: 900;
  letter-spacing: .3px; cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
  transition: transform .12s, background .2s, color .2s;
}
.shop-tab:hover { transform: translateY(-1px); }
.shop-tab.active {
  background: linear-gradient(180deg, #ffd98a, #c98a2e);
  border-color: #ffe4a3; color: #2a1800;
}
.shop-item .si-desc em { font-style: normal; color: #8fd98f; font-weight: 800; }
.shop-item .rod-ico { font-size: 20px !important; }
.shop-item.owned { border-color: rgba(143, 217, 143, .45); }
.si-buy.equipped { opacity: .62; filter: saturate(.5); cursor: default; }
.outfit-swatch {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.7); box-shadow: 0 0 0 2px rgba(0,0,0,.35);
}

@media (max-width: 700px) {
  .shop-dialog.negotiating { width: min(470px, calc(100% - 32px)); }
  .shop-choices { grid-template-columns: 1fr 1fr; }
  .shop-tab { font-size: 10px; padding-inline: 3px; }
}

/* túi & thùng */
.basket-sheet {
  width: 860px; max-height: 574px;
  display: flex; flex-direction: column; gap: 6px;
}
.basket-layout {
  display: grid; grid-template-columns: 1fr 42px 1fr;
  gap: 10px; align-items: stretch; flex: 1 1 auto; min-height: 0;
}
.bag-pane, .basket-pane { display: flex; flex-direction: column; gap: 7px; min-width: 0; min-height: 0; }
.pane-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-size: 10.5px; color: var(--muted); font-weight: 800;
}
.pane-head b { color: #fff; font-size: 13px; font-family: var(--display); letter-spacing: .4px; }
.bag-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.bag-slot {
  position: relative; height: 64px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .035);
  display: grid; place-items: center; overflow: hidden;
  transition: background .15s, border-color .15s, transform .15s;
}
.bag-slot.filled {
  cursor: grab; background: linear-gradient(160deg, rgba(90, 210, 240, .17), rgba(255, 209, 102, .08));
  border-color: rgba(90, 210, 240, .4);
}
.bag-slot.filled:hover { transform: translateY(-2px); border-color: var(--gold); }
.bag-slot.filled:active { cursor: grabbing; }
.bag-slot canvas { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.bag-slot .slot-value {
  position: absolute; right: 3px; bottom: 2px; max-width: calc(100% - 6px);
  padding: 1px 4px; border-radius: 4px; background: rgba(0, 0, 0, .58);
  color: #ffd166; font-size: 8.5px; font-weight: 900; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.bag-slot.empty::after { content: '+'; color: rgba(255, 255, 255, .13); font-size: 24px; font-weight: 900; }
.bag-slot.locked { background: rgba(0, 0, 0, .28); opacity: .55; }
.bag-slot.locked .lock-ico { font-size: 16px; opacity: .7; }
.bag-up { font-size: 12px !important; padding: 9px 10px !important; margin-top: auto; }

.basket-mid {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: 1.2px;
}
.basket-mid i {
  font-style: normal; font-size: 28px; color: var(--gold);
  animation: basketArrow 1.6s ease-in-out infinite;
}
@keyframes basketArrow {
  0%, 100% { transform: translateX(-4px); opacity: .55; }
  50% { transform: translateX(5px); opacity: 1; }
}
.basket-drop {
  position: relative; flex: 1 1 auto; min-height: 256px;
  border-radius: 14px; padding: 7px;
  border: 2px dashed rgba(255, 209, 102, .35);
  background: radial-gradient(circle at 50% 30%, rgba(255, 209, 102, .09), rgba(0, 0, 0, .2));
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.basket-drop.drag-over {
  border-color: var(--mint); background: rgba(110, 231, 183, .12);
  box-shadow: inset 0 0 30px rgba(110, 231, 183, .25), 0 0 22px -4px rgba(110, 231, 183, .6);
}
.basket-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; height: 100%; }
.basket-slot {
  position: relative; min-height: 56px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .2); display: grid; place-items: center; overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.basket-slot.filled {
  cursor: pointer; background: linear-gradient(160deg, rgba(255, 209, 102, .17), rgba(255, 255, 255, .04));
  border-color: rgba(255, 209, 102, .35);
}
.basket-slot.filled:hover { transform: translateY(-2px); border-color: var(--gold); }
.basket-slot canvas { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.basket-slot .slot-value {
  position: absolute; right: 3px; bottom: 2px; padding: 1px 4px; border-radius: 4px;
  background: rgba(0, 0, 0, .58); color: #ffd166; font-size: 8.5px; font-weight: 900;
  pointer-events: none;
}
.basket-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-size: 12.5px; font-weight: 800; pointer-events: none;
}
.sell-btn {
  width: 100%; font-size: 14px !important;
  background: linear-gradient(180deg, #ffe082, #f2a93b);
  color: #2a1800; border-color: rgba(255, 240, 180, .7);
}
.sell-btn:disabled { opacity: .42; filter: grayscale(.35); cursor: default; }
.basket-quote {
  margin: 4px 2px 0; padding: 8px 12px; border-radius: 10px;
  background: rgba(255, 209, 102, .07); border-left: 3px solid var(--gold);
  color: #f3e7d2; font-size: 11.5px; line-height: 1.45; min-height: 32px;
}
.bag-ghost {
  position: fixed; width: 92px; height: 64px; z-index: 10001;
  transform: translate(-50%, -50%) rotate(-6deg);
  pointer-events: none; opacity: .96;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .6));
}
.bag-ghost canvas { width: 100%; height: 100%; }



/* =====================================================================
   PIXEL ART PASS — scene 2x nearest-neighbor + UI khung cứng
   ===================================================================== */
:root {
  --pixel-ink: #07121f;
  --pixel-panel: #0d2433;
  --pixel-panel-hi: #173b4d;
  --pixel-line: #3e7180;
  --pixel-cyan: #72e0df;
  --pixel-yellow: #ffd166;
  --body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --display: 'Pixelify Sans', 'Baloo 2', 'Segoe UI', sans-serif;
}

#stage {
  background: #02070d;
  image-rendering: pixelated;
}
.app {
  border-radius: 0;
  border: 4px solid #102b3b;
  box-shadow: 0 0 0 4px #03080e, 0 18px 0 #00040a, 0 28px 55px rgba(0,0,0,.85);
  image-rendering: pixelated;
}
canvas#scene { image-rendering: pixelated; }
.vignette { background: linear-gradient(180deg, rgba(0,0,0,.05), transparent 38%, rgba(0,0,0,.28)); mix-blend-mode: normal; }

.hud { top: 12px; left: 12px; gap: 6px; filter: none; }
.chip, .icon-btn, .hint, .reel-bars, .toast, .power, .weather-event-card, .catch-card, .sheet, .tut, .name-card, .mega-result {
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 4px 4px 0 rgba(0,0,0,.65), inset 0 0 0 2px rgba(255,255,255,.06);
}
.chip {
  height: 34px; padding: 0 10px; gap: 5px;
  background: #0b2130;
  border: 2px solid #315d6d;
  font-family: var(--display); font-size: 14px;
  box-shadow: 3px 3px 0 #03090e;
}
.chip i { font-family: var(--body); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 0;
  background: #0b2130; border: 2px solid #315d6d;
  box-shadow: 3px 3px 0 #03090e;
}
.icon-btn:hover { transform: translate(-1px,-1px); background: #173b4d; border-color: var(--pixel-cyan); }
.icon-btn:active { transform: translate(2px,2px); box-shadow: none; }

.hint { padding: 7px 14px; background: #0b2130; border: 2px solid #4a8790; font-family: var(--display); font-size: 12px; box-shadow: 3px 3px 0 #03090e; }
.power { height: 12px; border-radius: 0; border: 2px solid #0a1720; background: #07121a; box-shadow: 3px 3px 0 #03090e; }
.power-fill { background: #4ade80; box-shadow: none; }
.reel-bars { border: 2px solid #315d6d; background: #0b2130; box-shadow: 4px 4px 0 #03090e; }
.track { border-radius: 0; border: 1px solid #07131c; }
.fill { border-radius: 0; box-shadow: none !important; }

.btn, .si-buy {
  border-radius: 0;
  border: 2px solid #7a5a32;
  box-shadow: 0 4px 0 #5a3f22;
  font-family: var(--display);
}
.btn:hover { transform: translate(-1px,-1px); filter: brightness(1.08); }
.btn:active, .si-buy:active { transform: translate(2px,2px); box-shadow: 0 1px 0 #5a3f22; }
.btn.ghost { border-radius: 0; background: #122b3b; border: 2px solid #315d6d; box-shadow: 0 3px 0 #07131c; }

.overlay, .screen { backdrop-filter: none; -webkit-backdrop-filter: none; }
.screen { background: rgba(2,8,14,.78); }
.catch-card, .sheet, .tut, .name-card {
  background: #0b2130;
  border: 3px solid var(--pixel-line);
}
.catch-card .shine { display: none; }
.catch-rarity { border-radius: 0; box-shadow: 2px 2px 0 #03090e; font-family: var(--display); }
.book-item, .ach-row, .shop-item, .bag-slot, .basket-slot, .shop-tab { border-radius: 0; }
.book-item, .ach-row, .bag-slot, .basket-slot { border: 2px solid rgba(91,151,163,.45); background: #0a1b28; }
.shop-item { border-radius: 0; }
.shop-tabs { gap: 5px; }
.shop-tab { border-radius: 0; }

/* Keep long Vietnamese copy readable; headings and action labels carry the pixel voice. */
.start-card h1, .sheet h2, .catch-card h2, .weather-event-card h2, .tut h2, .name-card h1, .shop-sign, .btn, .shop-tab, .si-buy { font-family: var(--display); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.bottle-screen {
  background: radial-gradient(circle at 50% 45%, rgba(18, 44, 60, .86), rgba(3, 8, 15, .94));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pixel-paper {
  position: relative; width: 590px; max-width: 93%; padding: 26px 32px 20px;
  color: #3a2a12; font-family: 'Courier New', ui-monospace, monospace;
  background:
    repeating-linear-gradient(0deg, rgba(80, 60, 20, .055) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(80, 60, 20, .04) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, #fbf1cf 0%, #f2e2b8 55%, #e2cf9c 100%);
  border: 4px solid #7a5a32;
  box-shadow:
    0 0 0 4px #2a1a0c,
    0 0 0 8px rgba(255, 209, 102, .12),
    0 34px 76px rgba(0, 0, 0, .72),
    inset 0 0 60px rgba(120, 90, 40, .16);
  transform: rotate(-1deg);
  animation: paperIn .42s cubic-bezier(.2, 1.3, .4, 1);
}
@keyframes paperIn {
  0% { opacity: 0; transform: translateY(26px) rotate(2deg) scale(.88); }
  100% { opacity: 1; transform: translateY(0) rotate(-1deg) scale(1); }
}
.paper-tape { position: absolute; top: -14px; width: 88px; height: 24px; background: rgba(255, 243, 190, .62); border: 1px solid rgba(120, 90, 40, .4); }
.paper-tape.t1 { left: 46px; transform: rotate(-7deg); }
.paper-tape.t2 { right: 46px; transform: rotate(6deg); }
.paper-kicker { font-size: 10px; letter-spacing: 3px; color: #8a5a30; font-weight: 900; }
.pixel-paper h2 {
  margin: 5px 0 14px; padding-bottom: 8px;
  font-family: 'Courier New', ui-monospace, monospace; font-size: 23px; letter-spacing: 2px;
  border-bottom: 3px dashed rgba(122, 90, 50, .45);
}
.pixel-paper #bottleText {
  font-size: 15px; line-height: 1.9; min-height: 112px; white-space: pre-wrap;
  margin: 0; color: #3f2d14;
}
.paper-sign { text-align: right; font-style: italic; color: #6b4a2a; margin: 12px 2px 18px; font-size: 13px; }
.pixel-paper .btn {
  display: block; margin: 0 auto; width: 250px;
  background: linear-gradient(180deg, #7a5a32, #4a3218); color: #ffeccb;
  border-color: #2a1a0c; box-shadow: 0 4px 0 #241408;
}
.paper-foot { margin: 12px 0 0; text-align: center; font-size: 8.5px; color: #9a7a4a; letter-spacing: .3px; }

/* hình minh hoạ bước túi & thùng */
.fig-6 { flex-direction: column; gap: 14px; }
.fig-row6 { display: flex; align-items: center; gap: 12px; }
.fig-bag { font-size: 44px; animation: bob 2.2s ease-in-out infinite; }
.fig-arrow { font-size: 24px; color: var(--gold); animation: basketArrow 1.3s ease-in-out infinite; }
.fig-basket { font-size: 48px; animation: tutJump 2.4s ease-in-out infinite; }
.fig-coin { font-size: 24px; animation: tutJump 1.6s ease-in-out infinite; }

body.mobile .basket-sheet { width: 800px; max-height: 584px; }
body.mobile .basket-quote { font-size: 12px; }
body.mobile .bag-slot { height: 70px; }
body.mobile .pixel-paper { width: 600px; }
body.mobile .pixel-paper #bottleText { font-size: 16px; }
