/* ══════════════════════════════════════
   DOCK & PULL — stylesheet
   Aesthetic: warm cozy dock afternoon
   Fonts: Fredoka One (display) + Nunito (body)
══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&display=swap');

/* ── VARIABLES ── */
:root {
  --sky:        #a8d8ea;
  --sky-mid:    #87cedc;
  --dock-wood:  #8b6340;
  --dock-dark:  #6b4c2e;
  --dock-light: #b5845a;
  --water-top:  #4a9e6e;
  --water-mid:  #2d7a52;
  --water-deep: #1a5c3a;
  --water-dark: #0f3d25;
  --grass:      #5a8a2e;
  --mud:        #7a5a30;
  --gold:       #f0b830;
  --gold-dark:  #c48a10;
  --amber:      #e07a20;
  --red:        #e03030;
  --green-ui:   #3a9e50;
  --text-dark:  #2c1a08;
  --text-mid:   #5a3a18;
  --text-light: #f5e8d0;
  --panel-bg:   #fdf3e3;
  --panel-dark: #ede0c4;
  --panel-rim:  #c4a068;
  --shadow:     rgba(0,0,0,0.25);
  --radius:     14px;
  --radius-sm:  8px;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: 'Nunito', sans-serif;
  background: var(--water-dark);
  color: var(--text-dark);
  user-select: none;
}

/* ── SCREEN SYSTEM ── */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
  z-index: 2;
}

/* ══════════════════════════════════════
   FISHING SCREEN
══════════════════════════════════════ */

/* Top HUD */
#hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  background: linear-gradient(180deg, #2c4a1e 0%, #3a6028 100%);
  border-bottom: 3px solid #1a3010;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
  z-index: 10;
  flex-shrink: 0;
}

#hud-money {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.3);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 5px 12px;
  min-width: 80px;
}

#hud-money .hud-icon { font-size: 16px; }

#money-display {
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  color: var(--gold);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

.hud-title {
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  letter-spacing: 1px;
}

.hud-icon-btn {
  background: rgba(0,0,0,0.25);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.1s;
}

.hud-icon-btn:active { transform: scale(0.9); }

/* Water container */
#water-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(180deg,
    var(--sky) 0%,
    var(--sky-mid) 18%,
    var(--water-top) 22%,
    var(--water-mid) 45%,
    var(--water-deep) 75%,
    var(--water-dark) 100%
  );
}

#water-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Dock plank */
#dock-plank {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 90px;
  background: repeating-linear-gradient(
    90deg,
    var(--dock-wood) 0px,
    var(--dock-wood) 10px,
    var(--dock-dark) 10px,
    var(--dock-dark) 12px
  );
  border-radius: 6px 6px 0 0;
  border-top: 4px solid var(--dock-light);
  border-left: 3px solid var(--dock-dark);
  border-right: 3px solid var(--dock-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  z-index: 5;
  pointer-events: none;
}

#dock-plank::before {
  content: '';
  position: absolute;
  top: 10px; left: 6px; right: 6px;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}

/* Status text */
#water-status {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fredoka One', cursive;
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  letter-spacing: 1px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.3s;
}

/* Bite flash */
#bite-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Fredoka One', cursive;
  font-size: 36px;
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold), 0 3px 6px rgba(0,0,0,0.7);
  z-index: 20;
  animation: biteFlash 0.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes biteFlash {
  from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  to   { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

/* Result splash */
#result-splash {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 25;
  pointer-events: none;
  animation: splashIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes splashIn {
  from { transform: translateX(-50%) scale(0.5); opacity: 0; }
  to   { transform: translateX(-50%) scale(1); opacity: 1; }
}

.result-emoji { font-size: 72px; display: block; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); }
.result-name  { font-family: 'Fredoka One', cursive; font-size: 22px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.7); margin-top: 6px; }
.result-price { font-family: 'Fredoka One', cursive; font-size: 18px; color: var(--gold); text-shadow: 0 2px 6px rgba(0,0,0,0.7); }
.result-fail  { font-family: 'Fredoka One', cursive; font-size: 20px; color: #ff7070; text-shadow: 0 2px 6px rgba(0,0,0,0.8); margin-top: 8px; }

/* Reel zone */
#reel-zone {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  gap: 10px;
  z-index: 15;
  pointer-events: none;
}

#reel-zone:not(.hidden) { pointer-events: all; }

#reel-hint {
  font-family: 'Fredoka One', cursive;
  font-size: 15px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  letter-spacing: 1px;
  animation: pulse 0.7s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

#reel-btn {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.25);
  background: radial-gradient(circle at 38% 35%, #6aaa30, #2c6a10 70%);
  box-shadow:
    0 0 0 6px rgba(106,170,48,0.2),
    0 6px 24px rgba(0,0,0,0.5),
    inset 0 2px 0 rgba(255,255,255,0.2);
  cursor: pointer;
  transition: transform 0.06s, box-shadow 0.06s;
  display: flex; align-items: center; justify-content: center;
}

#reel-btn:active {
  transform: scale(0.9);
  box-shadow:
    0 0 0 10px rgba(106,170,48,0.35),
    0 2px 10px rgba(0,0,0,0.4),
    inset 0 2px 0 rgba(255,255,255,0.2);
}

/* Lure-colored reel button states */
#reel-btn.lure-red    { background: radial-gradient(circle at 38% 35%, #e05030, #8a1810 70%); box-shadow: 0 0 0 6px rgba(224,80,48,0.25), 0 6px 24px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.2); }
#reel-btn.lure-blue   { background: radial-gradient(circle at 38% 35%, #3080e0, #103888 70%); box-shadow: 0 0 0 6px rgba(48,128,224,0.25), 0 6px 24px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.2); }
#reel-btn.lure-green  { background: radial-gradient(circle at 38% 35%, #30b850, #106828 70%); box-shadow: 0 0 0 6px rgba(48,184,80,0.25), 0 6px 24px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.2); }
#reel-btn.lure-yellow { background: radial-gradient(circle at 38% 35%, #e0c030, #886800 70%); box-shadow: 0 0 0 6px rgba(224,192,48,0.25), 0 6px 24px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.2); }
#reel-btn.lure-purple { background: radial-gradient(circle at 38% 35%, #a030e0, #500888 70%); box-shadow: 0 0 0 6px rgba(160,48,224,0.25), 0 6px 24px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.2); }

#reel-btn-icon { font-size: 40px; }

/* Reel progress */
#reel-progress-wrap {
  width: 180px;
  position: relative;
}

#reel-progress-bar {
  height: 10px;
  background: rgba(0,0,0,0.3);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

#reel-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--reel-pct, 0%);
  background: linear-gradient(to right, #6aaa30, #aaee50);
  border-radius: 5px;
  transition: width 0.1s;
}

#reel-progress-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  text-align: center;
  margin-top: 4px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Bottom nav */
#bottom-nav {
  display: flex;
  background: linear-gradient(180deg, #2c4a1e 0%, #1e3212 100%);
  border-top: 3px solid #1a3010;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
  z-index: 10;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 0 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  transition: background 0.15s;
  position: relative;
}

.nav-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-btn.active::after { opacity: 1; }

.nav-label {
  font-family: 'Fredoka One', cursive;
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
}

.nav-btn.active .nav-label { color: var(--gold); }

/* ══════════════════════════════════════
   SHARED PANEL SCREENS
══════════════════════════════════════ */

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  background: linear-gradient(180deg, #2c4a1e 0%, #3a6028 100%);
  border-bottom: 3px solid #1a3010;
  flex-shrink: 0;
}

.screen-header h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 20px;
  color: var(--text-light);
  letter-spacing: 1.5px;
}

.back-btn {
  background: rgba(0,0,0,0.3);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 18px;
  color: var(--text-light);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.1s;
}

.back-btn:active { transform: scale(0.9); }

.header-money {
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  color: var(--gold);
  background: rgba(0,0,0,0.3);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 4px 12px;
}

.screen-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--panel-bg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  touch-action: pan-y;
}

/* Override the global touch-action:manipulation for everything inside scroll panels */
.screen-scroll,
.screen-scroll * {
  touch-action: pan-y;
}

/* ── SHOP ── */
.shop-section {
  background: #fff;
  border: 2px solid var(--panel-rim);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--text-mid);
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--panel-dark);
}

/* Sell inventory */
#sell-inventory {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sell-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: var(--panel-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-dark);
}

.sell-emoji { font-size: 26px; }
.sell-info  { flex: 1; }
.sell-name  { font-weight: 700; font-size: 14px; }
.sell-qty   { font-size: 12px; color: var(--text-mid); }
.sell-price { font-family: 'Fredoka One', cursive; font-size: 15px; color: var(--green-ui); }

/* Shop item list */
.shop-item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--panel-bg);
  border-radius: var(--radius-sm);
  border: 2px solid var(--panel-dark);
  transition: border-color 0.15s;
}

.shop-item.equipped, .shop-item.active-lure, .shop-item.active-rod {
  border-color: var(--green-ui);
  background: #e8f8ea;
}

.shop-item-emoji { font-size: 28px; width: 36px; text-align: center; }
.shop-item-info  { flex: 1; }
.shop-item-name  { font-weight: 800; font-size: 14px; }
.shop-item-desc  { font-size: 11px; color: var(--text-mid); margin-top: 1px; }

.shop-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.shop-item-price {
  font-family: 'Fredoka One', cursive;
  font-size: 15px;
  color: var(--amber);
}

.btn-buy {
  background: var(--green-ui);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 5px 14px;
  font-family: 'Fredoka One', cursive;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s;
  letter-spacing: 0.5px;
}
.btn-buy:active { transform: scale(0.93); background: #2a7a3a; }
.btn-buy.owned  { background: var(--text-mid); cursor: default; }
.btn-buy:disabled { background: #aaa; cursor: not-allowed; }

.qty-controls {
  display: flex; align-items: center; gap: 6px;
}
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--panel-rim);
  background: var(--panel-bg);
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background 0.1s;
}
.qty-btn:active { background: var(--panel-dark); }
.qty-display {
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  min-width: 24px;
  text-align: center;
}

/* Goal section */
#goal-display {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#goal-text {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

#goal-progress-text {
  font-size: 13px;
  color: var(--green-ui);
  font-weight: 600;
}

.goal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

#goal-reward {
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  color: var(--gold-dark);
}

#goal-text.complete { color: var(--green-ui); }

/* Primary button */
.btn-primary {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--text-dark);
  border: none;
  border-radius: 24px;
  padding: 11px 24px;
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: transform 0.08s, box-shadow 0.08s;
  align-self: stretch;
}
.btn-primary:active { transform: scale(0.96); box-shadow: 0 1px 4px rgba(0,0,0,0.2); }

.btn-small {
  background: var(--panel-dark);
  border: 1.5px solid var(--panel-rim);
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.1s;
}
.btn-small:active { background: var(--panel-rim); }

.empty-msg {
  color: var(--text-mid);
  font-style: italic;
  font-size: 13px;
  text-align: center;
  padding: 8px;
}

/* Lure color dot */
.lure-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  border: 1.5px solid rgba(0,0,0,0.2);
}

/* ── INVENTORY ── */
.inv-block {
  background: #fff;
  border: 2px solid var(--panel-rim);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.inv-label {
  font-family: 'Fredoka One', cursive;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-mid);
  border-bottom: 1.5px solid var(--panel-dark);
  padding-bottom: 5px;
  margin-bottom: 2px;
}

.inv-value {
  font-family: 'Fredoka One', cursive;
  font-size: 18px;
  color: var(--text-dark);
}

.inv-sub { font-size: 12px; color: var(--text-mid); }
.inv-small { font-size: 11px; color: var(--text-mid); text-align: right; }

.dur-bar-wrap {
  height: 12px;
  background: var(--panel-dark);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--panel-rim);
}

.dur-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, #e03030 0%, #e07a20 40%, #6aaa30 70%);
  border-radius: 6px;
  transform-origin: left;
  transition: width 0.4s;
}

.lure-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 3px solid var(--panel-rim);
  background: var(--panel-dark);
  margin-top: 4px;
}

.bait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.bait-slot {
  background: var(--panel-bg);
  border: 1.5px solid var(--panel-dark);
  border-radius: var(--radius-sm);
  padding: 6px;
  text-align: center;
  font-size: 22px;
}

.bait-slot-label {
  font-size: 11px;
  color: var(--text-mid);
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

.bait-slot-qty {
  font-family: 'Fredoka One', cursive;
  font-size: 13px;
  color: var(--text-dark);
}

.fish-log-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--panel-dark);
  font-size: 13px;
}

.fish-log-row:last-child { border-bottom: none; }
.fish-log-emoji { font-size: 22px; width: 28px; }
.fish-log-info { flex: 1; font-weight: 700; }
.fish-log-count { font-family: 'Fredoka One', cursive; color: var(--green-ui); }

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 3px 0;
  border-bottom: 1px solid var(--panel-dark);
}
.stat-row:last-child { border-bottom: none; }
.stat-key { color: var(--text-mid); }
.stat-val { font-weight: 700; }

/* ── SETTINGS ── */
.settings-block {
  background: #fff;
  border: 2px solid var(--panel-rim);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  padding: 4px 0;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px; height: 24px;
  display: inline-block;
  cursor: pointer;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .toggle-slider { background: var(--green-ui); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

.settings-fish-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-fish-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 3px 0;
}

.settings-fish-emoji { font-size: 20px; width: 26px; }
.settings-fish-name  { flex: 1; font-weight: 600; }
.settings-fish-price { font-family: 'Fredoka One', cursive; color: var(--amber); font-size: 14px; }

.junk-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 14px; color: var(--text-mid);
}

.credits {
  text-align: center;
  color: var(--text-mid);
  font-size: 14px;
}
.credits-sub { font-size: 12px; margin-top: 4px; opacity: 0.6; }

/* ── TOAST ── */
#toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(30,30,30,0.9);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  border-radius: 24px;
  z-index: 100;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: opacity 0.3s, transform 0.3s;
}

#toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  pointer-events: none;
}

/* ── UTILITY ── */
.hidden { display: none !important; }

/* Safe area for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
}
