* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(138, 90, 42, 0.12), transparent 20%),
    linear-gradient(180deg, #080604 0%, #120d09 42%, #1a130e 100%);
  color: #f2ddb4;
  min-height: 100vh;
}

.app-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0;
  min-height: 100vh;
}

.app {
  width: 100%;
  min-height: 100vh;
}

.view {
  display: none;
  min-height: 100vh;
}

.view.is-active {
  display: block;
}

.start-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 211, 129, 0.15), transparent 18%),
    linear-gradient(180deg, #2f241d 0%, #1f1712 58%, #1a120e 100%);
}

.start-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.start-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.14) 42%, rgba(0,0,0,0.60) 100%);
  z-index: 1;
}

.start-hero__ring {
  position: absolute;
  width: 320px;
  height: 320px;
  left: 50%;
  top: 42px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 2px solid rgba(212, 171, 103, 0.12);
  box-shadow:
    inset 0 0 0 18px rgba(212, 171, 103, 0.04),
    inset 0 0 0 38px rgba(212, 171, 103, 0.025);
  z-index: 1;
}

.start-hero__content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 28px;
  z-index: 2;
  text-align: center;
}

.start-title {
  margin: 0 0 10px;
  font-family: "Forum", serif;
  font-size: 52px;
  line-height: 1;
  color: #f3d7a2;
  text-shadow:
    0 3px 14px rgba(0, 0, 0, 0.65),
    0 0 10px rgba(255, 196, 94, 0.10);
}

.start-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.35;
  color: #eed8b0;
}

.start-btn {
  width: 100%;
  min-height: 64px;
}

.screen {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 196, 94, 0.05), transparent 15%),
    linear-gradient(180deg, #2c1f17 0%, #38271d 14%, #2a1d15 100%);
  border-left: 1px solid rgba(177, 128, 69, 0.18);
  border-right: 1px solid rgba(177, 128, 69, 0.18);
  border-top: 1px solid rgba(177, 128, 69, 0.16);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.result-panel {
  position: relative;
  padding: 10px 10px 12px;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 192, 95, 0.05), transparent 18%),
    linear-gradient(180deg, #4a3224 0%, #35251c 16%, #281c15 100%);
}

.result-panel--full {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.result-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 198, 102, 0.04), transparent 14%),
    radial-gradient(circle at 10% 92%, rgba(255, 160, 70, 0.025), transparent 8%),
    radial-gradient(circle at 90% 88%, rgba(255, 160, 70, 0.025), transparent 8%);
}

.today-title,
.rune-glow-wrap,
.rune-name,
.rune-desc,
.action-grid,
.big-action-wrap,
.share-wrap,
.bonus-section,
.details-head,
.details-advice,
.details-text {
  position: relative;
  z-index: 1;
}

.today-title {
  text-align: center;
  color: #efcb8d;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 4px;
}

.rune-glow-wrap {
  width: 92px;
  height: 92px;
  margin: 0 auto 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rune-glow-wrap--details {
  margin-top: 4px;
}

.rune-glow {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(249, 191, 96, 0.32) 0%, rgba(255, 185, 69, 0.09) 40%, transparent 72%);
  filter: blur(7px);
}

.rune-img {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter:
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.44))
    drop-shadow(0 0 8px rgba(255, 188, 82, 0.08));
}

.rune-name {
  text-align: center;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #f3d7a2;
  margin-bottom: 4px;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 0 7px rgba(255, 194, 90, 0.06);
}

.rune-desc {
  max-width: 300px;
  margin: 0 auto 10px;
  text-align: center;
  font-size: 12px;
  line-height: 1.28;
  font-weight: 500;
  color: #eed8b0;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.action-grid--top {
  margin-bottom: 10px;
}

.stone-btn,
.reward-btn {
  position: relative;
  border: 1px solid rgba(205, 159, 96, 0.56);
  border-radius: 11px;
  background:
    linear-gradient(180deg, #57504c 0%, #353230 20%, #252322 55%, #161514 100%);
  color: #f4ddb3;
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 183, 0.13),
    inset 0 -2px 0 rgba(0, 0, 0, 0.34),
    0 4px 8px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.stone-btn::before,
.reward-btn::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 8px;
  border: 1px solid rgba(238, 191, 111, 0.08);
  pointer-events: none;
}

.stone-btn.big {
  min-height: 60px;
  padding: 7px 6px 6px;
}

.stone-btn.small {
  min-height: 42px;
  padding: 7px 6px;
}

.stone-btn--full {
  width: 100%;
}

.btn-main {
  display: block;
  text-align: center;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 800;
  color: #f5ddb1;
}

.btn-sub {
  display: block;
  margin-top: 2px;
  text-align: center;
  font-size: 10px;
  line-height: 1.05;
  font-weight: 800;
  color: #ddb873;
}

.stone-btn:disabled,
.reward-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.big-action-wrap {
  margin-bottom: 8px;
}

.spread-btn {
  width: 100%;
  min-height: 68px;
  padding: 8px 8px;
  background:
    linear-gradient(180deg, #d6a24a 0%, #ad6f20 48%, #754612 100%);
  border-color: rgba(255, 214, 132, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 237, 197, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.22),
    0 6px 12px rgba(0, 0, 0, 0.28),
    0 0 12px rgba(255, 191, 78, 0.14);
}

.spread-btn__title {
  display: block;
  text-align: center;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 900;
  color: #fff0cc;
}

.spread-btn__sub {
  display: block;
  margin-top: 3px;
  text-align: center;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff0cc;
  opacity: 0.9;
}

.share-wrap {
  margin-bottom: 10px;
}

.bonus-section--push {
  margin-top: 16px;
}

.bonus-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.bonus-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(211, 165, 95, 0.48) 50%, transparent 100%);
}

.bonus-title {
  color: #efc98a;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.streak-row {
  text-align: center;
  color: #f0dfbe;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 7px;
}

.streak-row span {
  font-size: 13px;
  font-weight: 900;
  color: #f4d28e;
}

.bonus-days-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 7px;
}

.bonus-day {
  padding: 7px 3px;
  border-radius: 9px;
  background: rgba(25, 18, 13, 0.14);
  border: 1px solid rgba(210, 162, 95, 0.07);
  text-align: center;
}

.bonus-day-title {
  font-size: 10px;
  font-weight: 700;
  color: #efcf96;
  margin-bottom: 3px;
}

.bonus-day-value {
  font-size: 10px;
  line-height: 1.15;
  font-weight: 800;
  color: #f5ddb3;
}

.progress-wrap {
  margin-bottom: 6px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  padding: 2px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #594634 0%, #2a2018 100%);
  border: 1px solid rgba(202, 154, 90, 0.28);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.38),
    0 2px 6px rgba(0, 0, 0, 0.16);
}

.progress-fill {
  height: 100%;
  width: 28%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #ffcf7b 0%, #f2a62e 52%, #b66c12 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 239, 204, 0.26),
    0 0 6px rgba(255, 178, 57, 0.12);
}

.next-bonus-text {
  text-align: center;
  color: #e8d4b1;
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.next-bonus-text span {
  color: #f0d9ab;
  font-weight: 800;
}

.bottom-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.reward-btn {
  min-height: 60px;
  padding: 7px 6px;
}

.green-btn {
  background:
    linear-gradient(180deg, #4f9d2f 0%, #2f6d1d 40%, #1f4f13 100%);
  border-color: rgba(124, 219, 82, 0.40);
}

.gold-btn {
  background:
    linear-gradient(180deg, #b8802e 0%, #8d5e21 48%, #5e3b14 100%);
  border-color: rgba(224, 180, 101, 0.44);
}

.bottom-btn-main {
  display: block;
  text-align: center;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 800;
  color: #f7e1b8;
}

.bottom-btn-sub {
  display: block;
  margin-top: 2px;
  text-align: center;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 700;
  color: #f2e3c3;
}

.details-head {
  margin-bottom: 8px;
}

.details-back {
  width: 92px;
}

.details-advice {
  margin: 2px auto 10px;
  max-width: 290px;
  text-align: center;
  color: #f0cb8f;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.details-text {
  margin: 0 auto;
  max-width: 320px;
  color: #eed8b0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 6, 5, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f1dab0;
  font-size: 16px;
  font-weight: 800;
}

.hidden {
  display: none !important;
}
.no-bonuses-panel {
  justify-content: center;
}

.no-bonuses-icon {
  position: relative;
  z-index: 1;
  margin: 0 auto 8px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle, rgba(255, 199, 95, 0.24) 0%, rgba(255, 185, 69, 0.08) 48%, transparent 72%);
  font-size: 30px;
}

.no-bonuses-title {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #f3d7a2;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 8px;
}

.no-bonuses-text {
  position: relative;
  z-index: 1;
  max-width: 280px;
  margin: 0 auto 12px;
  text-align: center;
  color: #eed8b0;
  font-size: 13px;
  line-height: 1.4;
}

.no-bonuses-info {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.no-bonuses-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(25, 18, 13, 0.18);
  border: 1px solid rgba(210, 162, 95, 0.12);
  color: #f0dfbe;
  font-size: 13px;
}

.no-bonuses-chip strong {
  color: #f4d28e;
}

.no-bonuses-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.no-bonuses-main-btn {
  width: 100%;
  min-height: 60px;
}
