/* =====================================================
   幼小衔接习惯养成表 · 暖阳陶土
   陶土暖橙 / 手工质感 / 柔和阴影 / 自然肌理
   ===================================================== */

:root {
  --c-primary: #b15d2f;          /* 主色 · 陶土橙 */
  --c-primary-deep: #8f4823;
  --c-primary-soft: #f3e0d1;
  --c-accent: #49c19b;           /* 辅助色 · 陶绿 */
  --c-accent-deep: #2e9d7c;
  --c-accent-soft: #ddf2ea;
  --c-highlight: #d6bd29;        /* 强调色 · 麦金 */
  --c-highlight-deep: #b39f1d;
  --c-highlight-soft: #f6eecb;
  --c-bg: #fbf9f8;
  --c-card: #ffffff;
  --c-text: #2c211b;
  --c-text-sub: #7a675c;
  --c-border: #e6dfdb;

  --radius: 16px;
  --radius-sm: 12px;

  --font-title: 'Quicksand', 'PingFang SC', 'Hiragino Sans GB', system-ui, -apple-system, sans-serif;
  --font-body: 'Noto Serif SC', 'Songti SC', SimSun, Georgia, 'Times New Roman', serif;

  --shadow-soft: 0 6px 18px rgba(177, 93, 47, .10), 0 2px 6px rgba(44, 33, 27, .05);
  --shadow-lift: 0 16px 40px rgba(177, 93, 47, .18), 0 6px 14px rgba(44, 33, 27, .07);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -3px 0 rgba(177, 93, 47, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 背景肌理 + 陶土色块 ---------- */
.bg-deco { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 12%, rgba(214, 189, 41, .10) 0, transparent 34%),
    radial-gradient(circle at 85% 8%, rgba(73, 193, 155, .10) 0, transparent 30%),
    radial-gradient(circle at 78% 88%, rgba(177, 93, 47, .10) 0, transparent 32%),
    radial-gradient(circle at 8% 70%, rgba(73, 193, 155, .08) 0, transparent 26%);
  /* 细腻纸纹 */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.035'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 20% 12%, rgba(214, 189, 41, .12) 0, transparent 34%),
    radial-gradient(circle at 85% 8%, rgba(73, 193, 155, .12) 0, transparent 30%),
    radial-gradient(circle at 78% 88%, rgba(177, 93, 47, .12) 0, transparent 32%),
    radial-gradient(circle at 8% 70%, rgba(73, 193, 155, .10) 0, transparent 26%);
}
.blob { position: absolute; border-radius: 48% 52% 55% 45% / 46% 44% 56% 54%; opacity: .5; filter: blur(1px); }
.blob-1 { width: 260px; height: 260px; top: -70px; left: -90px; background: linear-gradient(140deg, rgba(177,93,47,.16), rgba(214,189,41,.10)); animation: drift 22s ease-in-out infinite; }
.blob-2 { width: 200px; height: 200px; top: 34%; right: -80px; background: linear-gradient(220deg, rgba(73,193,155,.16), rgba(177,93,47,.08)); animation: drift 26s ease-in-out infinite reverse; }
.blob-3 { width: 180px; height: 180px; bottom: 6%; left: -60px; background: linear-gradient(160deg, rgba(214,189,41,.14), rgba(73,193,155,.10)); animation: drift 30s ease-in-out infinite; }
.blob-4 { width: 120px; height: 120px; top: 12%; right: 22%; background: linear-gradient(200deg, rgba(177,93,47,.12), rgba(73,193,155,.09)); animation: drift 18s ease-in-out infinite reverse; }
@keyframes drift {
  0%,100% { transform: translate(0,0) rotate(0deg) scale(1); }
  50%     { transform: translate(22px,-26px) rotate(12deg) scale(1.06); }
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px 90px; }

/* ---------- 顶部 ---------- */
.topbar { padding: 22px 0 6px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-badge {
  width: 54px; height: 54px; flex: none;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(160deg, var(--c-primary-soft), #fff);
  border: 2px solid #fff;
  border-radius: 42% 58% 55% 45% / 48% 44% 56% 52%;
  box-shadow: var(--shadow-soft);
  animation: wobble 9s ease-in-out infinite;
}
@keyframes wobble {
  0%,100% { transform: rotate(-4deg); }
  50%     { transform: rotate(5deg); }
}
.brand h1 { font-family: var(--font-title); font-size: 21px; font-weight: 700; letter-spacing: .3px; color: var(--c-text); line-height: 1.3; }
.brand .tagline { font-size: 13px; color: var(--c-text-sub); margin-top: 2px; }

.star-bank {
  flex: none; display: flex; align-items: center; gap: 6px;
  background: var(--c-card); border: 1.5px solid var(--c-border);
  border-radius: 999px; padding: 8px 16px;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-title);
}
.bank-star { width: 20px; height: 20px; fill: var(--c-highlight); filter: drop-shadow(0 1px 2px rgba(214,189,41,.55)); }
.bank-star.big { width: 30px; height: 30px; }
#bankCount, #balanceCount { font-size: 20px; font-weight: 700; color: var(--c-primary-deep); }
.bank-label { font-size: 12px; color: var(--c-text-sub); }

/* ---------- 底部标签栏 ---------- */
.tabbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; gap: 8px; max-width: 620px; margin: 18px auto 22px;
  padding: 8px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.tab {
  position: relative; flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 8px;
  font-family: var(--font-title); font-size: 15px; font-weight: 600;
  color: var(--c-text-sub);
  background: transparent; border: none; border-radius: 999px;
  cursor: pointer;
  transition: color .25s, background .25s, transform .15s;
}
.tab:active { transform: scale(.96); }
.tab .tab-ico { font-size: 17px; }
.tab.active {
  color: #fff;
  background: linear-gradient(150deg, var(--c-primary), var(--c-primary-deep));
  box-shadow: 0 8px 18px rgba(177, 93, 47, .32);
}
.tab-dot {
  position: absolute; top: 4px; right: 14px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-highlight); border: 2px solid #fff;
  display: none;
}
.tab-dot.show { display: block; animation: twinkle 1.2s ease-in-out infinite; }

/* ---------- 卡片通用 ---------- */
.card {
  background: var(--c-card);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft), var(--shadow-inner);
}
.view { display: none; animation: fadeUp .4s ease both; }
.view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 打卡页 Hero ---------- */
.hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 26px; margin-bottom: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(214,189,41,.16), transparent 42%),
    linear-gradient(160deg, #fffdfb, #fcf3ea);
  border-radius: 22px;
}
.hero h2 { font-family: var(--font-title); font-size: 24px; font-weight: 700; color: var(--c-primary-deep); }
.hero-date { font-size: 13px; color: var(--c-text-sub); letter-spacing: .5px; margin-bottom: 6px; }
.hero-msg { font-size: 14px; color: var(--c-text-sub); margin-top: 6px; }
.hero-encourage { margin-top: 12px; }

.encourage-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-highlight-soft); color: #7a6a0c;
  border: 1px dashed rgba(214,189,41,.8);
  border-radius: 999px; padding: 6px 14px;
  font-family: var(--font-title); font-size: 14px; font-weight: 600;
  animation: twinkle 2.2s ease-in-out infinite;
}
.encourage-chip.done {
  background: var(--c-accent-soft); color: var(--c-accent-deep);
  border-color: var(--c-accent);
}

.ring-wrap { flex: none; position: relative; width: 112px; height: 112px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track, .ring-bar { fill: none; stroke-width: 11; stroke-linecap: round; }
.ring-track { stroke: #efe5dc; }
.ring-bar {
  stroke: url(#grad) var(--c-accent);
  stroke: var(--c-accent);
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset .7s cubic-bezier(.34,1.4,.5,1);
  filter: drop-shadow(0 2px 4px rgba(73,193,155,.4));
}
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center strong { font-family: var(--font-title); font-size: 26px; line-height: 1; color: var(--c-accent-deep); }
.ring-center span { font-size: 12px; color: var(--c-text-sub); }

/* ---------- 分类区块 ---------- */
.cat { margin-bottom: 26px; }
.cat-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.cat-ico {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center; font-size: 20px;
  background: var(--c-card); border: 1.5px solid var(--c-border);
  border-radius: 12px; box-shadow: var(--shadow-soft);
}
.cat h3 { font-family: var(--font-title); font-size: 18px; font-weight: 700; }
.cat-count { margin-left: auto; font-family: var(--font-title); font-size: 13px; font-weight: 600; color: var(--c-text-sub);
  background: #f5f0ec; border-radius: 999px; padding: 3px 12px; }
.cat-count.full { background: var(--c-accent-soft); color: var(--c-accent-deep); }
.squiggle { width: 74px; height: 8px; margin-top: 2px; }

.habit-list { list-style: none; display: grid; gap: 10px; }
.habit {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  background: var(--c-card); border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px 16px 12px 12px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s, border-color .2s, background .3s;
  overflow: hidden;
}
.habit::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: transparent; transition: background .3s;
}
.habit:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.habit.is-done { background: linear-gradient(160deg, #fff, var(--c-accent-soft)); border-color: rgba(73,193,155,.5); }
.habit.is-done::before { background: var(--c-accent); }

.habit-ico { flex: none; width: 42px; height: 42px; display: grid; place-items: center;
  font-size: 22px; background: #faf6f2; border-radius: 12px; transition: background .3s; }
.habit.is-done .habit-ico { background: var(--c-highlight-soft); }

.habit-info { flex: 1; min-width: 0; }
.habit-name { display: block; font-size: 15.5px; font-weight: 600; color: var(--c-text); }
.habit.is-done .habit-name { color: var(--c-accent-deep); text-decoration: line-through; text-decoration-color: rgba(46,157,124,.5); text-decoration-thickness: 1.5px; }
.habit-sub { display: block; font-size: 12px; color: var(--c-text-sub); margin-top: 1px; }

.habit-points { flex: none; font-family: var(--font-title); font-size: 13px; font-weight: 600; color: var(--c-highlight-deep); }

/* ---------- 星星按钮 ---------- */
.star-btn {
  flex: none; position: relative; width: 46px; height: 46px;
  display: grid; place-items: center;
  background: transparent; border: none; cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.star-btn svg { width: 34px; height: 34px; transition: transform .2s; }
.star-btn .star-shape { fill: #ece3db; stroke: #c9bcae; stroke-width: 1.4; transition: fill .3s, stroke .3s, filter .3s; }
.star-btn:hover .star-shape { fill: var(--c-highlight-soft); }
.star-btn:active svg { transform: scale(.85); }

.star-btn.is-done .star-shape {
  fill: var(--c-highlight);
  stroke: var(--c-highlight-deep);
  filter: drop-shadow(0 2px 6px rgba(214,189,41,.65));
}
.star-btn.is-done svg { animation: starPop .5s cubic-bezier(.3,1.6,.4,1); }
@keyframes starPop {
  0%   { transform: scale(.2) rotate(-30deg); }
  55%  { transform: scale(1.35) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}
.star-btn.is-done .star-gleam { display: block; }

.spark { position: absolute; pointer-events: none; font-size: 13px;
  animation: sparkFly .7s ease-out forwards; }
@keyframes sparkFly {
  0%   { transform: translate(0,0) scale(1) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.3) rotate(90deg); opacity: 0; }
}

/* ---------- 奖励页 ---------- */
.reward-hero { border-radius: 22px; }
.reward-balance { flex: none; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px dashed var(--c-highlight);
  border-radius: 999px; padding: 8px 20px; box-shadow: var(--shadow-soft); }

.section-title { display: flex; align-items: center; gap: 12px;
  font-family: var(--font-title); font-size: 18px; font-weight: 700;
  color: var(--c-primary-deep); margin: 26px 0 14px; }
.section-title::before, .section-title::after { content: ""; flex: 1; height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--c-border) 0 10px, transparent 10px 16px); }

.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.reward-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--c-card); border: 1.5px solid var(--c-border);
  border-radius: var(--radius); padding: 22px 16px 18px; text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .22s, box-shadow .22s;
  overflow: hidden;
}
.reward-card::before { content: ""; position: absolute; top: -30px; right: -30px; width: 90px; height: 90px;
  border-radius: 50%; background: radial-gradient(circle, rgba(214,189,41,.18), transparent 70%); }
.reward-card:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--shadow-lift); }
.reward-card .r-ico {
  width: 64px; height: 64px; display: grid; place-items: center; font-size: 34px;
  background: linear-gradient(160deg, var(--c-primary-soft), #fff);
  border: 2px solid #fff; border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  box-shadow: var(--shadow-soft);
}
.reward-card h4 { font-family: var(--font-title); font-size: 16px; font-weight: 700; color: var(--c-text); }
.reward-card .r-desc { font-size: 12.5px; color: var(--c-text-sub); min-height: 1.4em; }
.reward-card .r-cost { display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-title); font-weight: 700; font-size: 14px; color: var(--c-highlight-deep); }
.reward-card .r-cost svg { width: 16px; height: 16px; fill: var(--c-highlight); }
.reward-card .r-actions { width: 100%; display: flex; gap: 8px; margin-top: 4px; }
.r-times { font-size: 11px; color: var(--c-text-sub); }

/* ---------- 历史记录 ---------- */
.history-list { list-style: none; display: grid; gap: 10px; }
.history-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--c-card); border: 1.5px solid var(--c-border);
  border-radius: var(--radius); padding: 12px 16px;
  box-shadow: var(--shadow-soft);
}
.history-item .h-ico { font-size: 24px; }
.history-item .h-info { flex: 1; }
.history-item .h-name { font-weight: 600; font-size: 15px; }
.history-item .h-date { font-size: 12px; color: var(--c-text-sub); }
.history-item .h-cost { font-family: var(--font-title); font-weight: 700; color: var(--c-highlight-deep); }
.empty-tip { text-align: center; color: var(--c-text-sub); font-size: 14px; padding: 26px 0 10px; }
.empty-tip .big { font-size: 34px; display: block; margin-bottom: 8px; }

/* ---------- 设置页 ---------- */
.settings-hero { border-radius: 22px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { padding: 20px; }
.panel-title { font-family: var(--font-title); font-size: 16px; font-weight: 700; color: var(--c-primary-deep); margin-bottom: 4px; }
.panel-sub { font-size: 12.5px; color: var(--c-text-sub); margin-bottom: 14px; }

.form { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--c-text-sub); }
.field input, .field select {
  width: 100%; font-family: var(--font-body); font-size: 14.5px; color: var(--c-text);
  background: #fdfbf9; border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(177, 93, 47, .14);
}
.emoji-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-picker button {
  width: 36px; height: 36px; display: grid; place-items: center; font-size: 20px;
  background: #faf6f2; border: 1.5px solid var(--c-border); border-radius: 10px;
  cursor: pointer; transition: transform .15s, background .2s, border-color .2s;
}
.emoji-picker button:hover { transform: translateY(-2px); }
.emoji-picker button.sel { background: var(--c-primary-soft); border-color: var(--c-primary); transform: scale(1.1); }

.form-actions { display: flex; gap: 10px; margin-top: 4px; }

.btn {
  font-family: var(--font-title); font-size: 14.5px; font-weight: 700;
  border: none; border-radius: 999px; padding: 10px 18px; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.95); }
.btn-primary {
  background: linear-gradient(150deg, var(--c-primary), var(--c-primary-deep)); color: #fff;
  box-shadow: 0 8px 18px rgba(177, 93, 47, .32);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(177, 93, 47, .4); }
.btn-highlight {
  background: linear-gradient(150deg, var(--c-highlight), var(--c-highlight-deep)); color: #fff;
  box-shadow: 0 8px 18px rgba(214, 189, 41, .35);
}
.btn-ghost { background: #f5f0ec; color: var(--c-text-sub); }
.btn-ghost:hover { background: #ede4dd; }
.btn-danger { background: #fff; color: #c0392b; border: 1.5px solid #e8c4be; }
.btn-danger:hover { background: #fdf1ef; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.manage-list { list-style: none; display: grid; gap: 8px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.manage-item {
  display: flex; align-items: center; gap: 10px;
  background: #fdfbf9; border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm); padding: 9px 12px;
}
.manage-item .m-ico { font-size: 20px; }
.manage-item .m-info { flex: 1; min-width: 0; }
.manage-item .m-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.manage-item .m-sub { font-size: 11.5px; color: var(--c-text-sub); }
.manage-item .m-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1.5px solid var(--c-border); border-radius: 9px; cursor: pointer;
  background: #fff; font-size: 13px; transition: transform .15s, background .2s, border-color .2s;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--c-primary); }
.icon-btn.del:hover { border-color: #c0392b; color: #c0392b; background: #fdf1ef; }

.danger { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 16px; padding: 18px 20px; border-color: #e8c4be; border-style: dashed; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 30px);
  z-index: 90; max-width: 84vw;
  background: var(--c-text); color: #fff;
  font-family: var(--font-title); font-size: 14.5px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 14px 34px rgba(44,33,27,.32);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 庆祝彩带 ---------- */
.confetti-layer { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.confetti { position: absolute; top: -20px; border-radius: 3px; animation: confettiFall linear forwards; }
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0) scale(1); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg) scale(.8); opacity: .7; }
}

/* ---------- 底部说明 ---------- */
.foot-note { text-align: center; font-size: 13px; color: var(--c-text-sub); margin-top: 30px; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .settings-grid { grid-template-columns: 1fr; }
  .topbar { padding-top: 14px; }
  .brand-badge { width: 46px; height: 46px; font-size: 23px; }
  .brand h1 { font-size: 18px; }
  .brand .tagline { font-size: 11.5px; }
  .tabbar { margin-top: 14px; }
  .tab { font-size: 13px; }
  .hero { padding: 18px 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .ring-wrap { position: absolute; right: 16px; top: 18px; width: 84px; height: 84px; }
  .ring-center strong { font-size: 20px; }
  .hero { padding-right: 116px; min-height: 128px; }
  .reward-hero { padding-right: 16px; }
  .hero h2 { font-size: 21px; }
  .habit { gap: 10px; padding: 11px 12px 11px 10px; }
  .habit-ico { width: 38px; height: 38px; font-size: 19px; }
  .star-btn { width: 42px; height: 42px; }
  .star-btn svg { width: 30px; height: 30px; }
  .reward-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .reward-card { padding: 16px 12px 14px; }
  .reward-card .r-ico { width: 54px; height: 54px; font-size: 28px; }
  .danger { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (max-width: 420px) {
  .tab .tab-ico { font-size: 15px; }
  .star-bank { padding: 6px 12px; }
  .reward-grid { grid-template-columns: 1fr; }
}
