/* ============================================================
   奶龙养成记 · 活过大学28天
   ============================================================ */

:root {
  --yellow: #ffd447;
  --yellow-deep: #f2b705;
  --yellow-soft: #fff3c4;
  --ink: #1f2430;
  --ink-2: #3d4557;
  --muted: #7c8698;
  --line: #e6e9f0;
  --card: #ffffff;
  --bg: #f4f6fb;
  --water: #38b6ff;
  --food: #ff9b3d;
  --mood: #ff5f8f;
  --clean: #4fd1a5;
  --danger: #ff4d4f;
  --ok: #23b26d;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(31, 36, 48, .10);
  --shadow-sm: 0 4px 14px rgba(31, 36, 48, .07);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 15% -10%, #fff6d6 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #e6f2ff 0%, transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

button { font-family: inherit; }

.muted { color: var(--muted); font-size: 13px; }

/* ---------------- 通用按钮 ---------------- */
.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  background: #eef1f7;
  color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  color: #4a3400;
  box-shadow: 0 6px 16px rgba(242, 183, 5, .38);
}
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.btn-warn {
  background: #fff0f0;
  color: var(--danger);
  border: 1px solid #ffd5d5;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
}
.btn-warn:disabled { background: #f6f7fa; color: var(--muted); border-color: var(--line); }
.btn-link {
  background: none;
  color: var(--muted);
  text-decoration: underline;
  padding: 6px;
  font-weight: 500;
}
.btn-block { width: 100%; padding: 14px; font-size: 16px; }
.btn-icon {
  width: 36px; height: 36px; padding: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .75);
  font-size: 17px;
  border-radius: 10px;
}
.btn-icon:hover { background: #fff; }

/* ---------------- 屏幕容器 ---------------- */
.screen { min-height: 100vh; padding: 18px; }

/* ---------------- 首页（怎么玩） ---------------- */
#screen-home { padding: 22px 18px 40px; }

.home-wrap { max-width: 1000px; margin: 0 auto; }

.home-hero {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  background: var(--card);
  border-radius: 26px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.home-art {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fffbe8 0%, #ffeaa8 70%, #ffe08a 100%);
  display: grid; place-items: center;
  overflow: hidden;
}
.home-art img { width: 178px; height: 178px; object-fit: contain; }
.home-hero-text h1 { margin: 0 0 2px; font-size: 32px; letter-spacing: 2px; }
.home-sub { margin: 0 0 10px; color: var(--yellow-deep); font-size: 17px; font-weight: 700; }
.home-sub b { font-size: 22px; }
.home-lead { margin: 0 0 16px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.home-lead b { color: var(--yellow-deep); }
.home-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn-lg { padding: 13px 24px; font-size: 15.5px; border-radius: 14px; }
.home-hint { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); min-height: 18px; }

.rules {
  background: var(--card);
  border-radius: 26px;
  padding: 22px 24px 18px;
  box-shadow: var(--shadow);
}
.rules-h { margin: 0 0 16px; font-size: 19px; }
.rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.rule {
  background: #fafbfe;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.rule h3 { margin: 0 0 8px; font-size: 14.5px; }
.rule ul { margin: 0; padding-left: 17px; }
.rule li { font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.rule b { color: var(--ink); }
.rules-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 16px;
}
.rules-tip {
  flex: 1 1 320px;
  background: linear-gradient(120deg, #fffbe8, #fff3c4);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.rules-tip b { color: var(--ink); }
.rules-stats { flex: 1 1 240px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.home-foot { text-align: center; font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }

/* 游戏中的规则速查 */
.rules-cheat p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.rules-cheat b { color: var(--ink); }

/* ---------------- 启动页 / 取名页 ---------------- */
#screen-name { display: grid; place-items: center; }

.boot-card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border-radius: 26px;
  padding: 26px 24px 22px;
  box-shadow: var(--shadow);
  text-align: center;
}
.boot-art {
  width: 168px; height: 168px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fffbe8 0%, #ffeaa8 70%, #ffe08a 100%);
  display: grid; place-items: center;
  overflow: hidden;
}
.boot-art img { width: 150px; height: 150px; object-fit: contain; }
.boot-title { margin: 6px 0 2px; font-size: 26px; letter-spacing: 2px; }
.boot-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.boot-sub b { color: var(--yellow-deep); font-size: 17px; }

.field { display: block; text-align: left; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  font-size: 15px;
  background: #fbfcfe;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus { outline: none; border-color: var(--yellow-deep); background: #fff; }

.auth-hint { font-size: 12.5px; color: var(--muted); margin: 12px 0 4px; min-height: 18px; }
.auth-hint.bad { color: var(--danger); }
.auth-hint.good { color: var(--ok); }

.rules-box {
  text-align: left;
  margin: 14px 0 4px;
  padding: 14px 16px;
  background: #fbfcfe;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.rules-box h3 { margin: 0 0 8px; font-size: 14px; }
.rules-box ul { margin: 0; padding-left: 18px; }
.rules-box li { font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.rules-box b { color: var(--yellow-deep); }

/* ---------------- 游戏主布局 ---------------- */
.game-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 18px;
  align-items: start;
}
.col-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ---- 立绘舞台 ---- */
.stage {
  position: relative;
  border-radius: 26px;
  padding: 16px 18px 22px;
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #fdf7e2 55%, #fff3c4 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stage::after {
  content: "";
  position: absolute; left: 50%; bottom: 8%;
  width: 62%; height: 22px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(31, 36, 48, .16) 0%, transparent 70%);
  pointer-events: none;
}
.stage-topbar { display: flex; align-items: center; gap: 8px; position: relative; z-index: 3; }
.spacer { flex: 1; }
.chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink-2);
  border: 1px solid rgba(31, 36, 48, .06);
}
.chip-day { background: var(--ink); color: #ffe89a; }

.stage-clock {
  position: absolute; top: 58px; left: 18px; z-index: 3;
}
.clock-hour { font-size: 34px; font-weight: 800; letter-spacing: 1px; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-weather { font-size: 13px; color: var(--ink-2); margin-top: 4px; font-weight: 600; }

.stage-char {
  position: relative; z-index: 2;
  height: 300px;
  display: grid; place-items: center;
}
.stage-char img {
  max-height: 300px;
  max-width: 76%;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(31, 36, 48, .16));
}
.stage-char img.bump { animation: bump .5s ease; }
@keyframes bump {
  0% { transform: scale(1) translateY(0); }
  35% { transform: scale(1.07) translateY(-8px); }
  70% { transform: scale(.98) translateY(0); }
  100% { transform: scale(1) translateY(0); }
}

.speech {
  position: relative; z-index: 3;
  margin: 4px auto 0;
  max-width: 88%;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

/* ---- 属性条 ---- */
.meters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.meter {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.meter-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.meter-name { font-size: 13px; font-weight: 700; }
.meter-num { margin-left: auto; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.meter-num small { font-size: 11px; font-weight: 600; color: var(--muted); }
.meter-track { height: 9px; border-radius: 999px; background: #eef1f7; overflow: hidden; }
.meter-fill {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  transition: width .45s cubic-bezier(.22, .61, .36, 1);
}
.meter.low .meter-num { color: var(--danger); }
.meter.low { background: #fff6f6; }

.m-water .meter-fill { background: linear-gradient(90deg, #7fd4ff, var(--water)); }
.m-satiety .meter-fill { background: linear-gradient(90deg, #ffc07a, var(--food)); }
.m-mood .meter-fill { background: linear-gradient(90deg, #ff9dbb, var(--mood)); }
.m-clean .meter-fill { background: linear-gradient(90deg, #93e8cb, var(--clean)); }

/* ---- 钱包 ---- */
.wallet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.wallet-cell { min-width: 0; }
.wallet-label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.wallet-value { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wallet-value.small { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.wallet-value.danger { color: var(--danger); }

/* ---- 日志 ---- */
.logbox {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 14px 4px;
  box-shadow: var(--shadow-sm);
}
.logbox-head { display: flex; align-items: baseline; gap: 10px; }
.logbox-head h3 { margin: 0; font-size: 14px; }
.logbox-head .muted { margin-left: auto; }
.log {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 4px 10px 0;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.log li {
  font-size: 13.5px;
  line-height: 1.6;
  padding: 6px 0 6px 10px;
  border-left: 3px solid var(--line);
  margin-bottom: 2px;
  color: var(--ink-2);
}
.log li.k-day { border-left-color: var(--yellow-deep); background: #fffdf3; font-weight: 700; color: var(--ink); }
.log li.k-good { border-left-color: var(--ok); }
.log li.k-bad { border-left-color: var(--danger); }
.log li.k-warn { border-left-color: var(--food); }
.log li.k-tip { border-left-color: #b9c2d4; color: var(--muted); font-size: 12.5px; }
.log li.k-start { border-left-color: var(--yellow-deep); }
.log li .t { color: var(--muted); font-size: 11.5px; margin-right: 6px; font-variant-numeric: tabular-nums; }

/* ---- 侧栏卡片导航（一次只展开一张卡） ---- */
.cardnav {
  display: flex; flex-wrap: wrap; gap: 6px;
  background: var(--card);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow-sm);
}
.cardnav-btn {
  border: 1.5px solid var(--line);
  background: #fafbfe;
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.cardnav-btn:hover:not(:disabled) { border-color: var(--yellow-deep); background: #fffdf3; }
.cardnav-btn.on { background: var(--ink); color: #ffe89a; border-color: var(--ink); }
.cardnav-btn:disabled { opacity: .45; cursor: not-allowed; }

.opt-back { background: #f6f7fa; border-style: dashed; }
.opt-back .opt-label { color: var(--muted); font-weight: 600; }

/* ---- 侧栏卡片 ---- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.card-title { margin: 0 0 10px; font-size: 14px; }
.card-note { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
  background: #fafbfe;
  margin-bottom: 6px;
}
.schedule li.active { background: #fff6d8; font-weight: 700; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--yellow-deep); }
.schedule li.done { opacity: .48; text-decoration: line-through; }
.schedule .sc-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  background: #eef1f7;
  border-radius: 7px;
  padding: 3px 6px;
  flex: none;
}
.schedule li.active .sc-time { background: var(--yellow); }
.schedule .sc-kind {
  margin-left: auto; font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; flex: none;
}
.schedule li.more {
  background: none;
  color: var(--muted);
  font-size: 12px;
  justify-content: center;
  border: 1px dashed var(--line);
}
.schedule li.more .sc-label { font-style: italic; }
.schedule .sc-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- 选项 ---- */
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--line);
  background: #fdfdff;
  border-radius: 13px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, transform .1s ease;
}
.opt:hover:not(:disabled) { border-color: var(--yellow-deep); background: #fffdf3; transform: translateX(2px); }
.opt:disabled { opacity: .45; cursor: not-allowed; }
.opt-ico { font-size: 20px; flex: none; width: 26px; text-align: center; }
.opt-body { min-width: 0; flex: 1; }
.opt-label { font-size: 13.5px; font-weight: 700; }
.opt-effect { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.opt-effect .up { color: var(--ok); font-weight: 700; }
.opt-effect .down { color: var(--danger); font-weight: 700; }
.opt-money { font-size: 13px; font-weight: 800; color: var(--yellow-deep); flex: none; font-variant-numeric: tabular-nums; }
.opt-money.free { color: var(--ok); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tab {
  border: 1px solid var(--line);
  background: #fafbfe;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12.5px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-2);
}
.tab.on { background: var(--ink); color: #ffe89a; border-color: var(--ink); }

/* ---------------- 结算页 ---------------- */
#screen-over { display: grid; place-items: center; }
.over-card {
  width: 100%; max-width: 640px;
  background: var(--card);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.over-sprite { width: 150px; height: 150px; margin: 0 auto; }
.over-sprite img { width: 100%; height: 100%; object-fit: contain; }
.over-title { margin: 4px 0 6px; font-size: 25px; }
.over-reason { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.over-grade {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(120deg, #fffbe8, #fff3c4);
  border-radius: 18px; padding: 14px 18px; text-align: left;
  margin-bottom: 16px;
}
.grade-letter {
  font-size: 52px; font-weight: 900; line-height: 1;
  color: var(--yellow-deep);
  text-shadow: 0 3px 0 #fff;
  flex: none; width: 62px; text-align: center;
}
.grade-title { font-size: 16px; font-weight: 800; }
.grade-comment { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }

.over-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px; margin-bottom: 18px;
}
.stat { background: #fafbfe; border-radius: 12px; padding: 10px; }
.stat-k { font-size: 11.5px; color: var(--muted); }
.stat-v { font-size: 17px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }

.over-h { font-size: 14px; margin: 0 0 10px; text-align: left; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge {
  display: flex; align-items: center; gap: 8px;
  background: #fafbfe; border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 12px; text-align: left;
}
.badge-ico { font-size: 18px; }
.badge-name { font-size: 12.5px; font-weight: 800; }
.badge-desc { font-size: 11px; color: var(--muted); }
.over-actions { display: flex; gap: 10px; }
.over-actions .btn { flex: 1; }

/* ---------------- 排行榜 ---------------- */
.sheet { display: grid; place-items: center; background: rgba(20, 24, 34, .45); }
.sheet-card {
  width: 100%; max-width: 560px; max-height: 86vh; overflow: auto;
  background: var(--card); border-radius: 22px; padding: 20px;
  box-shadow: var(--shadow);
}
.sheet-head { display: flex; align-items: center; gap: 10px; }
.sheet-head h2 { margin: 0; font-size: 19px; }
.sheet-head .btn-icon { margin-left: auto; }
.board { list-style: none; margin: 14px 0 0; padding: 0; }
.board li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; background: #fafbfe; margin-bottom: 7px;
}
.board .rank { font-size: 15px; font-weight: 900; width: 26px; color: var(--muted); flex: none; }
.board li.top1 .rank { color: #f2b705; }
.board li.top2 .rank { color: #9aa5b8; }
.board li.top3 .rank { color: #cd8a4b; }
.board .bname { font-weight: 800; font-size: 14px; }
.board .bmeta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.board .bscore { margin-left: auto; text-align: right; flex: none; }
.board .bscore b { font-size: 18px; font-variant-numeric: tabular-nums; }
.board .bgrade {
  font-weight: 900; font-size: 13px; color: var(--yellow-deep);
  background: #fff6d8; border-radius: 8px; padding: 3px 7px;
}
.board-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 22px 0; }

/* ---------------- 事件弹窗 ---------------- */
.modal { display: grid; place-items: center; background: rgba(16, 20, 30, .58); padding: 16px; }
.modal-card {
  width: 100%; max-width: 470px;
  background: var(--card); border-radius: 22px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  animation: pop .26s cubic-bezier(.2, .9, .3, 1.3);
}
@keyframes pop { from { transform: scale(.9) translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { padding: 16px 18px 10px; }
.modal-tag { font-size: 11.5px; font-weight: 800; color: var(--danger); letter-spacing: 1px; }
.modal-head h2 { margin: 4px 0 0; font-size: 18px; }
.modal-body { padding: 0 18px 4px; }
.sms {
  background: #f2f4f9;
  border-radius: 14px 14px 14px 4px;
  padding: 13px 15px;
  font-size: 14px; line-height: 1.7; color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
}
.modal-hint { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 10px 0 0; }
.modal-opts { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; }

/* ---------------- Toast / 闪屏 ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: rgba(24, 28, 38, .93); color: #fff;
  padding: 11px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  z-index: 90; max-width: 84vw; text-align: center;
  animation: pop .2s ease;
}
.flash {
  position: fixed; inset: 0; pointer-events: none; z-index: 80;
  display: grid; place-items: center;
}
.flash .flash-text {
  background: rgba(255, 77, 79, .95); color: #fff;
  padding: 16px 26px; border-radius: 16px; font-weight: 800; font-size: 17px;
  animation: pop .2s ease;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .game-wrap { grid-template-columns: minmax(0, 1fr); }
  .stage-char { height: 240px; }
  .stage-char img { max-height: 240px; }
  .clock-hour { font-size: 26px; }
  .wallet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wallet .btn-warn { grid-column: 1 / -1; }
  .home-hero { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .home-art { margin: 0 auto; }
  .home-cta { justify-content: center; }
}
@media (max-width: 520px) {
  .screen { padding: 10px; }
  .boot-card { padding: 20px 16px; }
  .meters { grid-template-columns: minmax(0, 1fr); }
  .log { max-height: 190px; }
  .grade-letter { font-size: 42px; width: 52px; }
  .home-hero { padding: 18px 16px; }
  .home-hero-text h1 { font-size: 25px; }
  .home-art { width: 150px; height: 150px; }
  .home-art img { width: 132px; height: 132px; }
  .rules { padding: 18px 15px 14px; }
  .rule-grid { grid-template-columns: minmax(0, 1fr); }
  .home-cta .btn { flex: 1 1 100%; }
}
