:root {
  --green: #12d18e;
  --green-dark: #006f58;
  --purple: #704ff7;
  --ink: #171332;
  --orange: #ff9800;
  --pink: #ff4fa2;
  --cream: #fff7e8;
  --sky: #eef7ff;
  --stage-blue: #476df4;
  --muted: rgba(23, 19, 50, 0.62);
  --line: rgba(23, 19, 50, 0.12);
  --paper: rgba(255, 255, 255, 0.78);
  --shadow: 0 22px 50px rgba(21, 12, 62, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 184, 106, 0.22), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(18, 209, 142, 0.12), transparent 30%),
    linear-gradient(180deg, #fffdf6 0%, #fff2df 52%, #ffe7d4 100%);
}

button {
  font: inherit;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
}

.phone-frame {
  position: relative;
  width: min(430px, 100%);
  height: min(900px, calc(100vh - 40px));
  min-height: 720px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 9%, rgba(255, 255, 255, 0.96), transparent 23%),
    radial-gradient(circle at 15% 44%, rgba(18, 209, 142, 0.13), transparent 28%),
    radial-gradient(circle at 82% 70%, rgba(255, 152, 0, 0.18), transparent 30%),
    linear-gradient(180deg, #fffdf6 0%, #fff5e6 36%, #ffe5cf 72%, #ffd4b1 100%);
  box-shadow: var(--shadow);
}

.phone-frame::after {
  content: "";
  position: absolute;
  inset: auto -110px -170px auto;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.top-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  margin: 12px 12px 10px;
  padding: 5px;
  border: 1px solid rgba(23, 19, 50, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 20px rgba(55, 71, 118, 0.09);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: grid;
  min-width: 0;
  height: 42px;
  place-items: center;
  overflow: visible;
  padding: 0 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(23, 19, 50, 0.08),
    0 8px 14px rgba(55, 71, 118, 0.08);
}

.hellotalk-mark {
  justify-self: stretch;
}

.partner-mark {
  justify-self: stretch;
  padding: 0 6px;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: min(100%, 136px);
  max-height: 32px;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.co-brand-x {
  position: relative;
  display: grid;
  justify-self: center;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff9df 0%, #ffe1a1 100%);
  box-shadow:
    inset 0 0 0 1px rgba(190, 116, 13, 0.16),
    0 8px 14px rgba(129, 73, 20, 0.12);
  color: transparent;
  font-size: 0;
  font-weight: 1000;
  line-height: 1;
}

.co-brand-x::before,
.co-brand-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff4bd 0%, #d98a00 44%, #ffb21c 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72),
    0 5px 10px rgba(129, 73, 20, 0.16);
  transform-origin: center;
}

.co-brand-x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.co-brand-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.partner-logo {
  display: block;
  width: auto;
  max-width: min(100%, 142px);
  max-height: 32px;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.tab-nav {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(23, 19, 50, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 32px rgba(129, 73, 20, 0.16);
  backdrop-filter: blur(18px);
}

.tab-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 0;
  color: rgba(23, 19, 50, 0.66);
  background: transparent;
  font-weight: 950;
  font-size: 14px;
}

.tab-button.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 16px 28px rgba(23, 19, 50, 0.14);
}

.phone-frame.is-invite-mode .tab-nav {
  display: none;
}

.phone-frame.is-invite-mode .view {
  padding-bottom: 28px;
}

.view {
  position: relative;
  z-index: 2;
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 0 22px 92px;
}

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

.hero-copy {
  color: var(--ink);
  padding-top: 4px;
}

.view-gacha .hero-copy {
  text-align: center;
}

.view-gacha .hero-copy h1 {
  width: min(350px, 100%);
  margin-right: auto;
  margin-bottom: 7px;
  margin-left: auto;
  font-size: 34px;
}

.view-gacha .hero-copy .subtitle {
  margin-right: auto;
  margin-left: auto;
}

.invite-hero {
  padding: 12px 4px 0;
}

.invite-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(18, 209, 142, 0.14);
  font-size: 12px;
  font-weight: 950;
}

.invite-hero h1 {
  margin-bottom: 10px;
  font-size: 34px;
}

.invite-hero p {
  width: min(340px, 100%);
  color: rgba(23, 19, 50, 0.64);
  font-size: 16px;
  line-height: 1.48;
  font-weight: 820;
}

.invite-hero strong {
  color: var(--ink);
}

.invite-card {
  position: relative;
  margin-top: 16px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 207, 51, 0.22), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 240, 0.86));
  box-shadow: 0 18px 34px rgba(129, 73, 20, 0.12);
  overflow: hidden;
}

.invite-card h2 {
  width: 210px;
  margin-bottom: 8px;
  font-size: 24px;
}

.invite-card p {
  width: 210px;
  margin-bottom: 16px;
  color: rgba(23, 19, 50, 0.62);
  line-height: 1.54;
  font-weight: 780;
}

.invite-mascot {
  position: absolute;
  right: -8px;
  top: 44px;
  width: 112px;
  height: 128px;
  pointer-events: none;
}

.invite-mascot::before {
  content: "";
  position: absolute;
  inset: 26px 12px 8px;
  border-radius: 50%;
  background: rgba(18, 209, 142, 0.12);
  filter: blur(2px);
}

.invite-mascot img {
  position: relative;
  width: 102px;
  transform: rotate(8deg);
  filter: drop-shadow(0 16px 18px rgba(23, 19, 50, 0.18));
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.language-chip {
  min-height: 46px;
  border: 1px solid rgba(23, 19, 50, 0.08);
  border-radius: 16px;
  color: rgba(23, 19, 50, 0.72);
  background: #fff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 10px 16px rgba(55, 71, 118, 0.06);
}

.language-chip.is-selected {
  border-color: rgba(18, 209, 142, 0.8);
  color: #063326;
  background: rgba(18, 209, 142, 0.18);
  box-shadow: 0 12px 20px rgba(18, 209, 142, 0.16);
}

.invite-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  color: rgba(23, 19, 50, 0.62);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 20px rgba(129, 73, 20, 0.08);
  font-size: 13px;
  font-weight: 850;
}

.invite-note strong {
  flex: 0 0 auto;
  color: var(--green-dark);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy .eyebrow {
  color: var(--green-dark);
  background: rgba(18, 209, 142, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: min(330px, 100%);
  margin-bottom: 8px;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.25;
}

.subtitle,
.section-heading p,
.boost-card p,
.result-desc {
  color: rgba(23, 19, 50, 0.62);
  line-height: 1.58;
  font-weight: 760;
}

.status-row {
  display: grid;
  width: min(142px, 48%);
  margin: 8px auto 0;
}

.status-card {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 18px rgba(129, 73, 20, 0.09);
  backdrop-filter: blur(16px);
}

.status-label {
  display: block;
  margin-bottom: 0;
  color: rgba(23, 19, 50, 0.58);
  font-size: 12px;
  font-weight: 950;
}

.status-card strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.draw-state {
  margin: 11px 0 -3px;
  color: rgba(23, 19, 50, 0.62);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.draw-state[hidden] {
  display: none;
}

.gacha-stage {
  position: relative;
  height: 466px;
  margin: 0 0 16px;
}

.gacha-machine {
  --machine-scale: 1;
  position: absolute;
  left: 50%;
  top: 36px;
  z-index: 2;
  width: 312px;
  height: 424px;
  transform: translateX(-50%) scale(var(--machine-scale));
  transform-origin: 50% 70%;
  filter: drop-shadow(0 28px 30px rgba(129, 73, 20, 0.2));
}

.gacha-machine::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -2px;
  height: 28px;
  border-radius: 50%;
  background: rgba(129, 73, 20, 0.2);
  filter: blur(3px);
}

.gacha-machine.is-drawing {
  animation: shake 0.64s ease-in-out infinite;
}

.gacha-cap {
  position: absolute;
  left: 99px;
  top: 2px;
  z-index: 5;
  width: 114px;
  height: 50px;
  border-radius: 30px 30px 18px 18px;
  background: linear-gradient(180deg, #ffb23b 0%, #ff8a17 72%, #ec6c12 100%);
  box-shadow:
    inset 0 9px 14px rgba(255, 255, 255, 0.28),
    0 10px 18px rgba(129, 73, 20, 0.16);
}

.gacha-cap::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 11px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 246, 215, 0.48);
}

.gacha-globe {
  position: absolute;
  left: 15px;
  top: 34px;
  width: 282px;
  height: 282px;
  overflow: hidden;
  border: 13px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.4) 24%, rgba(255, 255, 255, 0.2) 58%, rgba(255, 255, 255, 0.34)),
    linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(221, 239, 255, 0.55));
  box-shadow:
    inset 0 -24px 42px rgba(71, 109, 244, 0.2),
    inset 0 16px 32px rgba(255, 255, 255, 0.56),
    0 0 0 7px rgba(255, 255, 255, 0.22),
    0 18px 28px rgba(129, 73, 20, 0.16);
}

.gacha-globe::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 28px;
  z-index: 7;
  width: 76px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  transform: rotate(-30deg);
}

.gacha-globe::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 48px;
  z-index: 7;
  width: 44px;
  height: 104px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  transform: rotate(28deg);
  pointer-events: none;
}

.handy-in-globe {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 4;
  width: 150px;
  transform: translate(-50%, -50%) rotate(-5deg);
  filter: drop-shadow(0 16px 14px rgba(23, 19, 50, 0.2));
  pointer-events: none;
}

.lottery-ball {
  position: absolute;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.76), transparent 20%),
    var(--ball);
  box-shadow:
    inset -6px -8px 10px rgba(23, 19, 50, 0.12),
    0 8px 12px rgba(23, 19, 50, 0.14);
}

.lottery-ball::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  width: 12px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  transform: rotate(-22deg);
}

.ball-1 {
  left: 24px;
  top: 160px;
  --ball: #ff8a17;
}

.ball-2 {
  left: 57px;
  top: 187px;
  --ball: #12d18e;
}

.ball-3 {
  left: 95px;
  top: 171px;
  --ball: #ff4fa2;
}

.ball-4 {
  left: 132px;
  top: 195px;
  --ball: #ffcf33;
}

.ball-5 {
  left: 171px;
  top: 174px;
  --ball: #7652ff;
}

.ball-6 {
  left: 211px;
  top: 188px;
  --ball: #2f9cff;
}

.ball-7 {
  left: 25px;
  top: 214px;
  --ball: #2f9cff;
}

.ball-8 {
  left: 67px;
  top: 222px;
  --ball: #7652ff;
}

.ball-9 {
  left: 109px;
  top: 216px;
  --ball: #ff8a17;
}

.ball-10 {
  left: 154px;
  top: 225px;
  --ball: #ff4fa2;
}

.ball-11 {
  left: 197px;
  top: 221px;
  --ball: #12d18e;
}

.ball-12 {
  left: 225px;
  top: 150px;
  --ball: #ffcf33;
}

.gacha-globe-outline {
  position: absolute;
  inset: 18px;
  z-index: 8;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  pointer-events: none;
}

.gacha-base {
  position: absolute;
  left: 23px;
  top: 292px;
  z-index: 3;
  width: 266px;
  height: 126px;
  border-radius: 54px 54px 36px 36px;
  background: linear-gradient(180deg, #ffb13b 0%, #ff8a17 58%, #e96b13 100%);
  box-shadow:
    inset 0 -18px 0 rgba(104, 55, 0, 0.1),
    inset 0 12px 20px rgba(255, 255, 255, 0.24),
    0 14px 24px rgba(129, 73, 20, 0.16);
}

.gacha-base::before {
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  top: 18px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 246, 215, 0.26);
}

.gacha-base::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 294px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd982, #ff991f);
  transform: translateX(-50%);
  box-shadow: inset 0 -8px 10px rgba(104, 55, 0, 0.12);
}

.gacha-knob {
  position: absolute;
  left: 94px;
  top: 304px;
  z-index: 7;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border: 14px solid #fff7e8;
  border-radius: 50%;
  color: #fff7e8;
  background: #171332;
  font-size: 33px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow:
    inset 0 10px 0 rgba(255, 255, 255, 0.08),
    0 18px 24px rgba(104, 55, 0, 0.26),
    0 0 0 0 rgba(18, 209, 142, 0.5);
  animation: knobPulse 1.9s ease-in-out infinite;
}

.gacha-knob:focus-visible {
  outline: 4px solid rgba(18, 209, 142, 0.72);
  outline-offset: 5px;
}

.gacha-knob:active {
  transform: scale(0.96) rotate(8deg);
}

.gacha-slot {
  position: absolute;
  left: 42px;
  top: 346px;
  z-index: 3;
  width: 62px;
  height: 36px;
  border: 7px solid #ffd982;
  border-radius: 20px;
  background: #a63a16;
  opacity: 0.96;
}

.draw-focus {
  position: absolute;
  left: 50%;
  top: 340px;
  z-index: 5;
  transform: translateX(-50%);
  width: 152px;
  height: 152px;
  padding: 0;
  border-radius: 999px;
  border: 3px solid rgba(18, 209, 142, 0.72);
  color: transparent;
  background: transparent;
  box-shadow:
    0 0 0 10px rgba(18, 209, 142, 0.12),
    0 0 30px rgba(18, 209, 142, 0.4);
  animation: focusHalo 1.7s ease-in-out infinite;
  pointer-events: none;
}

.draw-focus::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 2px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  transform: translateX(-50%);
}

.section-heading {
  margin-top: 10px;
  color: var(--ink);
}

.section-heading .eyebrow {
  color: var(--green-dark);
  background: rgba(18, 209, 142, 0.12);
}

.section-heading p {
  color: rgba(23, 19, 50, 0.62);
}

.coupon-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.empty-state {
  padding: 28px 18px;
  border: 1px dashed rgba(23, 19, 50, 0.2);
  border-radius: 22px;
  color: rgba(23, 19, 50, 0.62);
  text-align: center;
  background: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.coupon-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(23, 19, 50, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 22px rgba(23, 19, 50, 0.08);
  overflow: hidden;
}

.coupon-card::before,
.coupon-card::after {
  content: "";
  position: absolute;
  top: 40px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #7652ff;
}

.coupon-card::before {
  left: -12px;
}

.coupon-card::after {
  right: -12px;
}

.coupon-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #063326;
  background: var(--green);
  font-weight: 1000;
  font-size: 20px;
}

.coupon-card:nth-child(2n) .coupon-icon {
  color: #201100;
  background: var(--orange);
}

.coupon-card h3 {
  margin-bottom: 4px;
}

.coupon-card p {
  margin-bottom: 8px;
  color: rgba(23, 19, 50, 0.6);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 760;
}

.coupon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.coupon-meta span,
.coupon-meta a,
.coupon-meta button,
.share-badge {
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(18, 209, 142, 0.14);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.coupon-meta button {
  cursor: pointer;
}

.coupon-meta button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.boost-card,
.config-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 152, 0, 0.36), transparent 20%),
    radial-gradient(circle at 20% 0%, rgba(18, 209, 142, 0.26), transparent 24%),
    #171332;
  box-shadow: 0 18px 28px rgba(23, 19, 50, 0.18);
}

.boost-card {
  text-align: center;
}

.boost-meter {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-bottom: 18px;
}

.boost-dot {
  flex: 1;
  max-width: 74px;
  height: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.boost-dot.is-on {
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.boost-card p {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 760;
}

.share-card {
  position: relative;
  min-height: 250px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(23, 19, 50, 0.08);
  border-radius: 24px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 18%, rgba(18, 209, 142, 0.18), transparent 24%),
    radial-gradient(circle at 18% 88%, rgba(118, 82, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #ffffff, #f3fbff);
  box-shadow: 0 16px 28px rgba(23, 19, 50, 0.12);
  overflow: hidden;
}

.share-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -22px;
  width: 130px;
  height: 130px;
  background: url("./assets/handy-mic.png") center / contain no-repeat;
  opacity: 0.72;
  pointer-events: none;
}

.share-card p {
  position: relative;
  z-index: 1;
  width: min(238px, 100%);
  margin-bottom: 0;
  color: rgba(23, 19, 50, 0.62);
  font-weight: 760;
  line-height: 1.5;
}

.share-card h3,
.share-card .share-badge,
.post-limit,
.post-preview,
.post-button {
  position: relative;
  z-index: 1;
}

.post-limit {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 8px 0 12px;
  padding: 0 12px;
  border: 1px solid rgba(18, 209, 142, 0.22);
  border-radius: 999px;
  color: #0f7a58;
  background: rgba(18, 209, 142, 0.12);
  font-size: 13px;
  font-weight: 950;
}

.post-preview {
  display: grid;
  gap: 6px;
  width: min(254px, 100%);
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid rgba(23, 19, 50, 0.08);
  border-radius: 18px;
  color: rgba(23, 19, 50, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7)),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 20px rgba(55, 71, 118, 0.08);
  font-weight: 850;
}

.post-preview span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 950;
}

.post-preview strong {
  font-size: 14px;
  line-height: 1.38;
}

.post-button {
  min-width: 174px;
  margin-top: 14px;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 24px rgba(23, 19, 50, 0.18);
  scroll-margin-bottom: 132px;
}

.rule-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 18px;
  padding-left: 22px;
  color: rgba(23, 19, 50, 0.7);
  line-height: 1.55;
  font-weight: 760;
}

.config-card {
  color: #fff;
}

.config-card pre {
  overflow-x: auto;
  padding: 12px;
  border-radius: 14px;
  color: #fff7e8;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 1.55;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.primary-button {
  color: #06291f;
  background: var(--green);
  box-shadow: 0 16px 28px rgba(23, 19, 50, 0.2);
}

.secondary-button {
  color: var(--ink);
  background: #fff;
}

.ghost-button {
  color: rgba(23, 19, 50, 0.72);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(23, 19, 50, 0.1);
}

.text-button {
  color: var(--green-dark);
  background: transparent;
}

.full-width {
  width: 100%;
}

.result-wallet-button {
  margin-top: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: end center;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.result-sheet {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 24px 22px 20px;
  border-radius: 30px 30px 0 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 -18px 46px rgba(0, 0, 0, 0.18);
}

.qr-modal {
  place-items: center;
}

.qr-sheet {
  position: relative;
  z-index: 1;
  width: min(340px, calc(100% - 38px));
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.2);
}

.qr-modal-card {
  padding: 20px;
  background: rgba(18, 209, 142, 0.08);
}

.qr-modal-card .voucher-qr {
  width: min(236px, calc(100vw - 120px));
  height: min(236px, calc(100vw - 120px));
  border-radius: 24px;
}

.qr-modal-card .voucher-qr img {
  width: calc(100% - 16px);
  height: calc(100% - 16px);
}

.browser-guide-card {
  display: grid;
  gap: 14px;
  padding: 18px 4px 4px;
  color: var(--ink);
  text-align: center;
}

.browser-guide-card strong {
  font-size: 20px;
  line-height: 1.28;
}

.browser-guide-card p {
  margin: 0;
  color: rgba(23, 19, 50, 0.68);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.55;
}

.result-sheet .eyebrow {
  color: #8a4a00;
  background: #fff0d7;
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(23, 19, 50, 0.08);
  font-size: 24px;
  line-height: 1;
}

.prize-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 86px;
  margin: 18px auto;
  border-radius: 18px;
  color: #063326;
  background: var(--green);
  font-size: 34px;
  font-weight: 1000;
  box-shadow: 0 18px 30px rgba(18, 209, 142, 0.24);
}

.prize-visual::before,
.prize-visual::after {
  content: "";
  position: absolute;
  top: 31px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
}

.prize-visual::before {
  left: -12px;
}

.prize-visual::after {
  right: -12px;
}

.result-desc {
  color: rgba(23, 19, 50, 0.62);
  font-weight: 760;
}

.result-save-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  color: #4c34a9;
  background: rgba(118, 82, 255, 0.1);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.unlock-steps {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.unlock-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 16px;
  color: rgba(23, 19, 50, 0.62);
  background: rgba(23, 19, 50, 0.06);
  font-size: 13px;
  font-weight: 850;
}

.unlock-step.is-done {
  color: #063326;
  background: rgba(18, 209, 142, 0.14);
}

.redemption-panel {
  display: none;
  margin: 14px 0;
}

.redemption-panel.is-visible {
  display: block;
}

.voucher-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(23, 19, 50, 0.08);
  border-radius: 18px;
  background: rgba(18, 209, 142, 0.1);
}

.voucher-card--qr-only {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 14px;
}

.benefit-claim-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(23, 19, 50, 0.08);
  border-radius: 18px;
  background: rgba(107, 77, 255, 0.08);
}

.benefit-claim-panel strong {
  color: var(--ink);
  font-size: 15px;
}

.benefit-claim-panel p {
  margin: 0;
  color: rgba(23, 19, 50, 0.64);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.55;
}

.voucher-qr {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.voucher-qr img {
  display: block;
  width: 92px;
  height: 92px;
}

.voucher-link-mark {
  color: #063326;
  background:
    linear-gradient(90deg, rgba(23, 19, 50, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 19, 50, 0.08) 1px, transparent 1px),
    #fff;
  background-size: 12px 12px;
  font-weight: 950;
}

.voucher-info {
  display: grid;
  gap: 6px;
}

.voucher-info span {
  color: rgba(23, 19, 50, 0.56);
  font-size: 12px;
  font-weight: 900;
}

.voucher-info strong {
  color: var(--ink);
  font-size: 16px;
}

.voucher-info a {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  color: #063326;
  background: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  max-width: min(360px, calc(100% - 40px));
  transform: translateX(-50%) translateY(20px);
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 19, 50, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: 0.24s ease;
  font-size: 14px;
  font-weight: 850;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.redeem-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.2), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(255, 219, 92, 0.2), transparent 30%),
    linear-gradient(180deg, #6149e8 0%, #7a56f1 48%, #f5f0ff 100%);
}

.redeem-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 16px;
}

.redeem-panel {
  width: min(360px, calc(100vw - 32px));
  max-width: 100%;
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.redeem-header {
  margin-bottom: 18px;
}

.redeem-header span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 950;
}

.redeem-header h1 {
  width: 100%;
  margin-bottom: 8px;
  font-size: 30px;
  color: #fff;
}

.redeem-header p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  font-weight: 780;
}

.redeem-card {
  margin-top: 0;
  padding: 18px;
  border: 1px solid rgba(23, 19, 50, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 24px rgba(129, 73, 20, 0.08);
}

.redeem-card label {
  display: block;
  margin: 0 0 8px;
  color: rgba(23, 19, 50, 0.68);
  font-size: 13px;
  font-weight: 950;
}

.lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.redeem-card input {
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
  border: 1px solid rgba(23, 19, 50, 0.12);
  border-radius: 14px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 760;
  outline: none;
}

.lookup-row input {
  margin-bottom: 0;
}

.redeem-card input:focus {
  border-color: rgba(18, 209, 142, 0.78);
  box-shadow: 0 0 0 4px rgba(18, 209, 142, 0.14);
}

.result-card {
  min-height: 272px;
}

.redeem-staff-head {
  margin-bottom: 14px;
}

.redeem-staff-head span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--purple);
  background: rgba(112, 79, 247, 0.12);
  font-size: 12px;
  font-weight: 950;
}

.redeem-staff-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  letter-spacing: 0;
}

.redeem-user-voucher {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.redeem-qr-only {
  margin-bottom: 0;
}

.redeem-qr-box {
  width: min(168px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid rgba(23, 19, 50, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 28px rgba(83, 54, 168, 0.16);
}

.redeem-qr-only .redeem-qr-box {
  width: min(260px, calc(100vw - 96px));
  padding: 16px;
  border-radius: 28px;
}

.redeem-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.redeem-user-hint {
  margin: -2px 0 0;
  color: rgba(23, 19, 50, 0.58);
  text-align: center;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
}

.redeem-staff-session {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  margin: 12px 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(112, 79, 247, 0.1);
}

.redeem-staff-session span {
  color: rgba(23, 19, 50, 0.52);
  font-size: 12px;
  font-weight: 950;
}

.redeem-staff-session strong {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.redeem-staff-session button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
}

.redeem-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 0;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(18, 209, 142, 0.14);
}

.redeem-status span {
  color: var(--green-dark);
  font-weight: 1000;
}

.redeem-status strong {
  color: var(--ink);
  font-size: 15px;
  min-width: 0;
  width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

.redeem-status.is-redeemed {
  background: rgba(112, 79, 247, 0.12);
}

.redeem-status.is-redeemed span {
  color: var(--purple);
}

.redeem-status.is-expired {
  background: rgba(255, 79, 162, 0.12);
}

.redeem-status.is-expired span {
  color: #bf2e70;
}

.redeem-detail {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}

.redeem-detail div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.redeem-detail dt {
  color: rgba(23, 19, 50, 0.52);
  font-size: 13px;
  font-weight: 900;
}

.redeem-detail dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 380px) {
  .redeem-shell {
    padding: 12px;
  }

  .redeem-panel {
    width: calc(100vw - 24px);
    padding: 14px;
    border-radius: 24px;
  }

  .redeem-header h1 {
    font-size: 26px;
  }

  .redeem-card {
    padding: 12px;
  }

  .redeem-qr-box {
    width: 150px;
    border-radius: 20px;
  }

  .redeem-qr-only .redeem-qr-box {
    width: min(236px, calc(100vw - 80px));
    border-radius: 24px;
  }

  .redeem-detail div {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
  }

  .redeem-detail dd {
    font-size: 14px;
  }
}

.redeem-error strong {
  display: block;
  margin-bottom: 6px;
  color: #bf2e70;
}

.redeem-error p {
  margin-bottom: 0;
  color: rgba(23, 19, 50, 0.62);
}

.redeem-form .primary-button {
  margin-top: 2px;
}

.redeem-form .primary-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(-50%) scale(var(--machine-scale)) rotate(0deg);
  }
  20% {
    transform: translateX(calc(-50% - 4px)) scale(var(--machine-scale)) rotate(-3deg);
  }
  50% {
    transform: translateX(calc(-50% + 5px)) scale(var(--machine-scale)) rotate(4deg);
  }
  80% {
    transform: translateX(calc(-50% - 3px)) scale(var(--machine-scale)) rotate(-2deg);
  }
}

@keyframes knobPulse {
  0%,
  100% {
    box-shadow:
      inset 0 7px 0 rgba(255, 255, 255, 0.08),
      0 8px 16px rgba(104, 55, 0, 0.2),
      0 0 0 0 rgba(18, 209, 142, 0.52);
  }
  50% {
    box-shadow:
      inset 0 7px 0 rgba(255, 255, 255, 0.08),
      0 12px 22px rgba(104, 55, 0, 0.24),
      0 0 0 14px rgba(18, 209, 142, 0);
  }
}

@keyframes focusHalo {
  0%,
  100% {
    transform: translateX(-50%) scale(0.92);
    opacity: 0.76;
  }
  50% {
    transform: translateX(-50%) scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 460px) {
  .app-shell {
    padding: 0;
  }

  .phone-frame {
    width: 100vw;
    height: 100vh;
    min-height: 680px;
    border-radius: 0;
  }

  h1 {
    font-size: 38px;
  }

  .top-bar {
    margin-inline: 10px;
    padding-inline: 8px;
  }
}

@media (max-width: 360px) {
  .view {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-copy {
    padding-inline: 6px;
  }

  .gacha-machine {
    --machine-scale: 0.96;
  }

  .draw-focus {
    top: 342px;
  }

  .invite-hero h1 {
    font-size: 31px;
  }

  .invite-card {
    padding: 18px 14px 16px;
  }

  .invite-card h2 {
    width: 188px;
    font-size: 23px;
  }

  .invite-card p {
    width: 188px;
    font-size: 14px;
  }

  .language-grid {
    gap: 8px;
  }

  .language-chip {
    min-height: 43px;
  }
}
