/* BluBellFun — Doodle mini-game. */

.doodle-page {
  padding-bottom: 58px;
}

.doodle-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  padding: 28px 0 22px;
}

.doodle-hero h1 {
  margin: 5px 0 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: .95;
}

.doodle-hero p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.doodle-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.doodle-hero-stats > div {
  min-width: 96px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.doodle-hero-stats span {
  display: block;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.doodle-hero-stats b {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.doodle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.doodle-stage,
.doodle-side > div,
.doodle-gate {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 50px -38px #000;
}

.doodle-stage {
  min-width: 0;
  padding: 14px;
}

.doodle-canvas-wrap {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #080710;
  box-shadow: 0 10px 36px -24px #000;
}

.doodle-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 7 / 12;
  touch-action: none;
  cursor: crosshair;
}

.doodle-hud {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.doodle-hud span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(7, 7, 13, .48);
  color: rgba(255, 255, 255, .62);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.doodle-hud b {
  color: #fff;
  font-size: 11px;
}

.doodle-heart-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff7fb4;
  clip-path: polygon(50% 100%, 4% 48%, 4% 25%, 24% 10%, 50% 26%, 76% 10%, 96% 25%, 96% 48%);
}

.doodle-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(6, 6, 11, .68);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.doodle-overlay[hidden] {
  display: none;
}

.doodle-overlay-card {
  display: grid;
  justify-items: center;
  gap: 7px;
  max-width: 280px;
  text-align: center;
}

.doodle-overlay-card strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(46px, 8vw, 72px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: .95;
}

.doodle-overlay-card p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  line-height: 1.5;
}

.doodle-final-reward {
  color: #a9e6d2 !important;
  font-weight: 650;
}

.doodle-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 0 4px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.4;
}

.doodle-status span:first-child {
  color: var(--muted);
}

.doodle-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.doodle-side > div {
  padding: 14px;
}

.doodle-side-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.doodle-side-head small {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.doodle-rules {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doodle-rules li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.doodle-rules li::before {
  content: '';
  position: absolute;
  top: .58em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8daeff;
}

.doodle-reward-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.doodle-reward-row b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-size: 10px;
}

.doodle-reward-row strong {
  color: #ff9fc4;
  font-size: 9px;
}

.doodle-side p {
  margin: 9px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.doodle-daily-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-3);
}

.doodle-daily-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7fb4, #8daeff);
  transition: width .25s;
}

.doodle-side small {
  display: block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 8px;
}

.doodle-actions {
  display: grid;
  gap: 8px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.doodle-actions .btn {
  width: 100%;
  justify-content: center;
}

.doodle-gate {
  display: grid;
  justify-items: center;
  max-width: 560px;
  margin: 50px auto;
  padding: 36px;
  text-align: center;
}

.doodle-gate h1 {
  margin: 6px 0 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 74px);
  letter-spacing: -0.07em;
  line-height: 1;
}

.doodle-gate p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .doodle-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}

@media (max-width: 760px) {
  .doodle-hero {
    display: grid;
    gap: 16px;
    padding-top: 20px;
  }
  .doodle-hero-stats {
    justify-content: stretch;
  }
  .doodle-hero-stats > div {
    flex: 1;
    min-width: 0;
  }
  .doodle-layout {
    grid-template-columns: 1fr;
  }
  .doodle-side {
    grid-template-columns: 1fr;
  }
  .doodle-stage {
    padding: 8px;
  }
  .doodle-canvas-wrap {
    max-width: 100%;
  }
  .doodle-status {
    display: grid;
    gap: 3px;
  }
}

@media (max-width: 420px) {
  .doodle-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .doodle-hero-stats > div {
    padding: 8px;
  }
  .doodle-hero-stats b {
    font-size: 15px;
  }
}
