@font-face {
  font-family: "Poster";
  src: url("../assets/fonts/poster.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Display";
  src: url("../assets/fonts/display.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #e10613;
  --red-deep: #c30d16;
  --ink: #3c2b28;
  --muted: #b7a79f;
  --cream: #fff6f2;
  --gold: #f6c14a;
  --line: rgba(120, 40, 30, 0.08);
  --tab-h: calc(62px + env(safe-area-inset-bottom));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: #e7f2fb;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font-family: inherit; }
button { cursor: pointer; }
.btn-gold, .btn-red, .btn-banner, .login-btn, .shortcut, .tab, .game, .hd-link, .day {
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease, filter .22s ease;
}
@media (prefers-reduced-motion: reduce) {
  .btn-gold, .btn-red, .btn-banner, .login-btn, .shortcut, .tab, .game, .hd-link, .day,
  .sheet { animation: none; transition: none; }
}
img { max-width: 100%; }
button:focus-visible, a:focus-visible { outline: 2px solid #f0b429; outline-offset: 2px; }
::selection { background: #ffd5d5; }

.phone {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--cream);
  position: relative;
}
@media (min-width: 460px) {
  .phone { box-shadow: 0 0 48px rgba(28, 58, 110, 0.12); }
}

/* ---------- first screen ---------- */
.fold {
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(53px + env(safe-area-inset-bottom));
}
.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  color: #fff;
  background-color: #1d6eb8;
  background-image: url("../assets/hero-bg.jpg?v=2");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}
.topbar {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 0;
  height: calc(50px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  padding: 0;
}
.crown { width: 22px; height: 22px; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28)); }
.login-btn {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(180deg, #ff6a60 0%, #ef1d28 55%, #d40f18 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 12px rgba(160, 0, 20, 0.32);
}
.login-btn:active { transform: scale(0.97); }
.join-hit {
  position: absolute;
  z-index: 4;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.join-hit:active { transform: scale(0.98); }
.btn-gold:active, .btn-red:active, .btn-banner:active { transform: translateY(1px) scale(0.985); }

/* ---------- shortcuts ---------- */
.shortcuts {
  position: relative;
  z-index: 3;
  margin: -20px 12px 0;
  padding: 16px 4px 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, #fff, #fffaf8);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(160, 40, 30, 0.1), inset 0 1px 0 #fff;
}
.shortcut {
  border: 0;
  background: transparent;
  padding: 0 2px;
  text-align: center;
  color: inherit;
}
.bubble {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ef3b3b;
  background: radial-gradient(circle at 35% 28%, #fff 0%, #fff6f5 70%, #ffe8e6 100%);
  box-shadow: 0 8px 16px rgba(220, 50, 40, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}
.bubble svg, .tab svg { width: 24px; height: 24px; display: block; }
.bubble svg path,
.bubble svg circle,
.bubble svg rect,
.tab svg path,
.tab svg circle,
.tab svg rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bubble svg text {
  fill: currentColor;
  stroke: none;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-weight: 700;
}
.shortcut strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #3f2f2c;
}
.shortcut small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #c3b2ab;
}
.shortcut:active .bubble { transform: scale(0.96); }

/* ---------- blocks ---------- */
.block {
  margin: 0 12px 14px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 12px 28px rgba(150, 40, 30, 0.08);
  scroll-margin-top: 12px;
}
.block.flash { animation: flash 1.1s ease; }
@keyframes flash {
  40% { box-shadow: 0 0 0 3px rgba(255, 196, 60, 0.9), 0 10px 24px rgba(170, 50, 40, 0.08); }
}
.frame { padding-bottom: 8px; }
.frame.tone-red {
  background: linear-gradient(180deg, #ff3d34 0%, #e30814 100%);
  box-shadow: 0 10px 24px rgba(180, 30, 30, 0.14);
}
.frame.tone-blue {
  background: linear-gradient(180deg, #3d95ff 0%, #1d6cf0 100%);
  box-shadow: 0 10px 24px rgba(20, 70, 180, 0.14);
}
.block-hd {
  position: relative;
  min-height: 74px;
  padding: 12px 12px 10px;
  color: #fff;
  overflow: hidden;
}
.frame .block-hd { background: transparent; }
.tone-red:not(.frame) .block-hd {
  background: linear-gradient(100deg, #ff3d36 0%, #ef1c26 46%, #ff4d3e 100%);
}
.tone-blue:not(.frame) .block-hd {
  background: linear-gradient(100deg, #2d78ff 0%, #3d95ff 58%, #69baff 100%);
}
.tone-orange .block-hd {
  background: linear-gradient(100deg, #ff6a3a 0%, #ff3a34 72%);
}
.block-hd::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.8px),
    radial-gradient(circle at 84% 72%, rgba(255, 226, 140, 0.95) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 63% 58%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.8px);
}
.hd-row {
  position: relative;
  z-index: 1;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
}
.num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, #fff6f4);
  box-shadow: 0 3px 8px rgba(80, 0, 20, 0.16);
}
.tone-blue .num { background: radial-gradient(circle at 35% 30%, #fff, #eaf3ff); }
.num b {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: Impact, "Arial Black", "Noto Sans SC", sans-serif;
  font-style: italic;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.4px;
  background: linear-gradient(180deg, #ff7a68, #e10613);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  text-shadow: 0 1px 0 rgba(110, 0, 0, 0.25);
}
.tone-blue .num b { background: linear-gradient(180deg, #6eb6ff, #1d6dff); }
.tone-orange .num b { background: linear-gradient(180deg, #ff9a4c, #ff3b30); }
.titles h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 0 rgba(90, 0, 0, 0.15);
}
.titles p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}
#rebate .titles p { font-size: 11px; letter-spacing: -0.3px; }
.hd-link {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  white-space: nowrap;
  opacity: 0.96;
}
.has-art .titles { max-width: 230px; }
.hd-art {
  position: absolute;
  z-index: 0;
  right: -6px;
  bottom: -16px;
  width: 188px;
  height: 112px;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}
.float-gifts {
  position: absolute;
  z-index: 0;
  right: 2px;
  bottom: -10px;
  width: 128px;
  height: 82px;
  pointer-events: none;
}
.float-gifts img {
  position: absolute;
  width: 76px;
  max-width: none;
  filter: drop-shadow(0 6px 6px rgba(90, 0, 0, 0.22));
}
.float-gifts img:first-child { left: 0; bottom: 0; }
.float-gifts img:last-child { right: -4px; bottom: 8px; width: 68px; }
#tasks .block-hd { min-height: 86px; }
#tasks .hd-row { align-items: start; }
#tasks .hd-link { margin-top: 4px; z-index: 3; text-shadow: 0 1px 2px rgba(80, 0, 0, 0.35); }
#tasks .float-gifts { width: 96px; height: 56px; right: 2px; bottom: -12px; }
#tasks .float-gifts img { width: 58px; }
#tasks .float-gifts img:last-child { width: 50px; }
.frame .block-bd { margin: 0 8px; }

.signin-bd {
  padding: 12px 8px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff9f4, #fff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn-gold {
  height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #ffe08a, #f5a31a 55%, #e89210);
  box-shadow: 0 6px 12px rgba(214, 140, 20, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 1px rgba(160, 90, 0, 0.28);
}
.days {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.day {
  background: linear-gradient(180deg, #fff, #fffaf7);
  border-radius: 12px;
  padding: 6px 0 5px;
  text-align: center;
  box-shadow: 0 5px 12px rgba(180, 70, 40, 0.07), inset 0 1px 0 #fff;
}
.day small {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  color: #c3b2ab;
}
.coin { width: 34px; height: 28px; display: block; margin: 0 auto; }
.day img { width: 34px; height: 30px; object-fit: contain; margin: 0 auto; }
.day.is-signed {
  background: linear-gradient(180deg, #fff8ec, #fff);
  box-shadow: inset 0 0 0 1px #f3c56d, 0 3px 8px rgba(180, 70, 40, 0.06);
}
.day.is-signed small { color: #e09a20; font-weight: 700; }
.day.is-today:not(.is-signed) {
  box-shadow: inset 0 0 0 1.5px #f0b429, 0 3px 8px rgba(180, 70, 40, 0.06);
}

.rebate-bd {
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.tier {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 8px 2px 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f9fbff);
  box-shadow: 0 6px 14px rgba(30, 70, 160, 0.07), inset 0 1px 0 #fff;
}
.tier > strong {
  display: block;
  color: #d15a48;
  font-size: 12px;
  font-weight: 800;
}
.tier p { margin: 2px 0 6px; }
.tier p span {
  display: block;
  color: #c9b8b2;
  font-size: 11px;
}
.tier p b {
  display: block;
  margin-top: 1px;
  color: var(--red);
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.5px;
  font-family: "Arial Black", "PingFang SC", sans-serif;
}
.coin.mark {
  position: absolute;
  width: 32px;
  height: 26px;
  right: -4px;
  bottom: -2px;
  margin: 0;
  pointer-events: none;
}
.tier .btn-red {
  position: relative;
  z-index: 1;
  width: calc(100% - 8px);
  height: 22px;
  padding: 0;
  font-size: 11px;
  letter-spacing: -0.4px;
}

.tasks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 14px 6px 14px;
  background: #fff;
}
.task { text-align: center; }
.task .bubble {
  width: 50px;
  height: 50px;
  box-shadow: 0 6px 16px rgba(220, 40, 40, 0.1);
}
.task .bubble svg { width: 26px; height: 26px; }
.task h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.3px;
  white-space: nowrap;
  color: #3a2a28;
}
.task p {
  min-height: 28px;
  margin: 3px 0 8px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--muted);
}

.packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  background: linear-gradient(180deg, #fff5ee, #fff);
}
.pack {
  text-align: center;
  padding: 4px 6px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fffaf7);
  box-shadow: 0 8px 18px rgba(200, 70, 40, 0.07), inset 0 1px 0 #fff;
}
.pack img {
  width: 100%;
  height: 96px;
  object-fit: contain;
}
.pack h3 { margin: 0; font-size: 14px; font-weight: 800; }
.pack p { margin: 2px 0 8px; font-size: 11px; color: var(--muted); }
.pack .btn-red { min-width: 86px; }

.games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  background: #fff;
}
.game {
  position: relative;
  display: block;
  width: 100%;
  height: 112px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  color: #fff;
  box-shadow: 0 6px 14px rgba(20, 20, 40, 0.16);
}
.game img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.game.sports img { object-position: center 45%; }
.game.live img { object-position: center 22%; }
.game.slots img { object-position: center 50%; }
.game.fish img { object-position: center 45%; }
.game span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 2px 6px;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}
.game strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.game small {
  display: block;
  margin-top: 1px;
  font-size: 8px;
  letter-spacing: 0.3px;
  font-style: normal;
  opacity: 0.92;
}

.btn-red {
  border: 0;
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  background: linear-gradient(180deg, #ff6458 0%, #ef1d26 48%, #d10e18 100%);
  box-shadow: 0 6px 12px rgba(200, 16, 24, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-red.xs {
  height: 24px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-red.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-red.full { width: 100%; height: 46px; margin-top: 14px; font-size: 16px; }
.btn-red.is-done {
  background: #efe8e6;
  color: #b7aaa6;
  box-shadow: none;
}
.btn-ghost {
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border-radius: 999px;
  border: 1px solid #ffd0d0;
  background: #fff;
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
}

/* ---------- finale ---------- */
.finale {
  position: relative;
  height: 176px;
  margin: 4px 12px 0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: #071426 url("../assets/banner-night.jpg") center 40% / cover no-repeat;
}
.finale::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 10, 32, 0.12), rgba(3, 8, 24, 0.42));
}
.finale > * { position: relative; z-index: 1; }
.finale h2 {
  margin: 0;
  font-family: "Display", "Poster", "STHupo", "华文琥珀", sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
  background: linear-gradient(180deg, #fff8dc, #ffd86a 45%, #f0b02c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #8a5a10) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4));
}
.finale p {
  margin: 6px 0 10px;
  font-size: 13px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}
.btn-banner {
  height: 32px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #9a5400;
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(180deg, #fff 0%, #ffe7a8 42%, #f6c453 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 #fff;
}
.wish-wave {
  display: block;
  width: 100%;
  height: 32px;
  margin: 12px 0 -1px;
}
.wish {
  position: relative;
  text-align: center;
  color: #ffe7b0;
  padding: 8px 16px var(--tab-h);
  background: linear-gradient(180deg, #ef2430 0%, #d0121c 42%, #b10e18 100%);
}
.wish h2 {
  margin: 0;
  font-family: "Display", "Poster", "STHupo", "华文琥珀", sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0;
  background: linear-gradient(180deg, #fff8dc, #f6d56a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(110, 16, 16, 0.28));
}
.wish p {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 3px;
  color: #ffe1a4;
}
.meander { display: block; width: calc(100% + 32px); height: 24px; margin: 16px -16px 0; }

/* ---------- tabbar ---------- */
.tabbar {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(430px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -6px 18px rgba(80, 20, 20, 0.04);
}
.tab {
  border: 0;
  background: transparent;
  color: #b5ada9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px 0;
}
.tab small { font-size: 11px; font-weight: 600; line-height: 1; }
.tab svg { width: 22px; height: 22px; }
.tab.on { color: #e41e27; }
.tab.home.on svg path { fill: currentColor; }

/* ---------- sheet ---------- */
.mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(28, 8, 8, 0.46);
}
.mask[hidden] { display: none; }
.sheet {
  position: relative;
  width: min(430px, 100%);
  max-height: min(78vh, 680px);
  overflow: auto;
  padding: 28px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: #fff;
  animation: sheet-up 0.34s cubic-bezier(.22, 1, .36, 1);
}
@keyframes sheet-up {
  from { transform: translateY(28px); opacity: 0.5; }
}
.sheet::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: #eee;
  transform: translateX(-50%);
}
.sheet-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f4f0ee;
  color: #666;
  font-size: 18px;
  line-height: 1;
}
.sheet h3 { margin: 0 32px 6px 0; font-size: 18px; }
.muted { color: #a89890; font-size: 13px; line-height: 1.5; }
.rules { margin: 12px 0 0; padding-left: 18px; color: #5c4a46; font-size: 14px; line-height: 1.6; }
.rules li { margin: 8px 0; }
.rules b { color: var(--red); margin-right: 6px; }
.fine { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 8px 0 12px;
  padding: 3px;
  border-radius: 999px;
  background: #f6f1ee;
}
.seg button {
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9a8a84;
  font-weight: 700;
}
.seg button.on {
  background: #fff;
  color: var(--red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.field {
  display: flex;
  align-items: center;
  height: 46px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 12px;
  background: #faf6f4;
}
.field input {
  flex: 1;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
}
.field button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.field button:disabled { color: #c3b2ab; }
.area {
  width: 100%;
  height: 90px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  resize: none;
  outline: none;
  background: #faf6f4;
  font-size: 16px;
  color: var(--ink);
}
.reward {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #f3ece8;
  font-size: 14px;
}
.reward time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.empty { padding: 28px 8px; text-align: center; color: var(--muted); font-size: 14px; }
.profile { text-align: center; padding-top: 6px; }
.avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ff5a4e, #e10613);
}
.avatar .crown { width: 30px; height: 30px; filter: none; }
.profile h3 { margin: 0; }
.profile .muted { margin-top: 4px; }
.cover {
  width: 100%;
  height: 150px;
  margin: 8px 0;
  object-fit: cover;
  border-radius: 12px;
}
.sheet .games, .gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.sheet .game { height: 128px; }
.sheet-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f4eeeb;
}
.sheet-task h3 { margin: 0; font-size: 15px; }
.sheet-task p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom));
  max-width: min(320px, 86%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(40, 16, 16, 0.9);
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.lock { overflow: hidden; }

@media (max-width: 360px) {
  .titles h2 { font-size: 15px; }
  .task h3 { font-size: 11px; }
  .tier > strong { font-size: 11px; }
  .tier p b { font-size: 16px; }
  .finale h2 { font-size: 24px; }
  .wish h2 { font-size: 26px; }
}
