/* Plushie presentation layer. Task states and reward logic remain in the original modules. */
@font-face {
  font-family: Inter;
  src: url("assets/theme/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/theme/inter-medium.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/theme/inter-bold.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: Gluten;
  src: url("assets/theme/gluten-semibold.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --primary: #8554e4;
  --primary-light: #eee3fb;
  --secondary: #6843b5;
  --secondary-light: #b69adf;
  --tertiary: #bce6d3;
  --background: #faf7ff;
  --card-bg: #fff;
  --text: #281248;
  --text-secondary: #786887;
  --text-dark: #281248;
  --text-light: #786887;
  --border: #ece4f5;
  --shadow: #50316e0b;
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --content-top: var(--tg-content-safe-area-inset-top, 0px);
  --content-bottom: var(--tg-content-safe-area-inset-bottom, 0px);
}

html {
  min-height: 100%;
  background: var(--background);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 20px;
}
body {
  display: block;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: calc(12px + var(--safe-top) + var(--content-top)) 16px
    calc(20px + var(--safe-bottom) + var(--content-bottom));
  padding-left: max(16px, env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px));
  background: radial-gradient(ellipse at 8% 0%, #eee5fc 0, transparent 44%), var(--background);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #a488e5;
  outline-offset: 4px;
}
button:disabled { cursor: not-allowed; }
img { max-width: 100%; }
.plushie-app { width: 100%; max-width: 480px; min-height: 0; margin: 0 auto; }
#main-card { padding: 0; margin: 0; overflow: visible; border-radius: 0; background: none; box-shadow: none; }
.brand-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 3px 24px; }
.brand-wordmark { display: flex; align-items: center; gap: 5px; font: 600 35px/.95 Gluten, sans-serif; letter-spacing: -2px; }
.brand-star { color: #a984ea; font: 32px/1 Arial, sans-serif; transform: rotate(12deg); }
.app-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #e6dcef; border-radius: 30px; background: #ffffff9c; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
.app-badge > span { width: 5px; height: 5px; border-radius: 50%; background: #9764db; }

/* The balance is populated exclusively by the existing application. */
.app-header {
  position: relative;
  isolation: isolate;
  padding: 20px 20px 0;
  overflow: hidden;
  border: 1px solid #ac85ea;
  border-radius: 28px;
  background: radial-gradient(ellipse at 92% 65%, #bd97ef 0, transparent 56%), linear-gradient(128deg, #8d60d9, #9a70e3 66%, #a87fe7);
  color: #fff;
  box-shadow: 0 12px 30px #8254cb20;
}
.app-header::before { content: ""; position: absolute; width: 230px; height: 230px; right: -80px; top: -96px; border: 1px solid #fff2; border-radius: 50%; pointer-events: none; }
.user-info { display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 42px; position: relative; z-index: 2; }
.user-avatar { width: 35px; height: 35px; flex: 0 0 35px; margin: 0; border: 2px solid #ffffff80; border-radius: 50%; box-shadow: none; }
.user-details { min-width: 0; }
.user-details h1, #username { margin: 0; color: #fff; font: 600 12px/1.5 Inter, sans-serif; letter-spacing: 0; overflow-wrap: anywhere; }
.user-details p { margin: 1px 0 0; color: #f0e7ff; font-size: 9px; line-height: 1.5; }
.settings-icon {
  display: grid;
  place-items: center;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid #ffffff36;
  border-radius: 16px;
  background: #ffffff17;
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.settings-icon svg { width: 21px; height: 21px; }
.settings-icon:hover { transform: none; background: #ffffff30; }
.rewards-hero { display: grid; grid-template-columns: minmax(0, 1fr) 130px; position: relative; min-height: 184px; padding-top: 28px; }
.rewards-copy { position: relative; z-index: 2; }
.hero-eyebrow { margin: 0 0 7px; font-size: 9px; font-weight: 600; letter-spacing: 1.8px; color: #f1e6ff; }
.balance-container { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
#balance { color: #fff; font: 700 clamp(26px, 8.7vw, 39px)/1.1 Inter, sans-serif; letter-spacing: -1.8px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.currency { display: inline-block; margin: 0; padding: 3px 6px; border: 1px solid #ffffff35; border-radius: 6px; color: #fbf6ff; background: #ffffff14; font-size: 9px; font-weight: 600; line-height: 1.3; letter-spacing: .5px; }
.currency::before { content: none; }
.hero-caption { margin: 17px 0 21px; color: #f9f4ff; font: 500 23px/1.12 Gluten, sans-serif; letter-spacing: -.5px; }
.hero-art { position: relative; min-width: 0; align-self: stretch; pointer-events: none; }
.hero-art img { position: absolute; right: -12px; bottom: 17px; width: 144px; max-width: none; height: auto; transform: rotate(8deg); filter: drop-shadow(0 15px 10px #643bab3b); }
.hero-orbit { position: absolute; top: 28px; left: -12px; width: 161px; height: 97px; border: 1px solid #fff5; border-radius: 50%; transform: rotate(-30deg); }
.hero-spark { position: absolute; z-index: 1; color: #f9f0ce; font-size: 23px; line-height: 1; }
.spark-one { top: -4px; right: 6px; transform: rotate(10deg); }
.spark-two { bottom: 20px; left: 3px; font-size: 27px; }
.hero-coin { position: absolute; z-index: 2; top: 5px; left: 4px; display: grid; place-items: center; width: 29px; height: 29px; border: 3px solid #ffe8ad; border-radius: 50%; background: #e7b96f; box-shadow: 3px 4px 0 #ba8c59; color: #fff2c7; font: 700 17px/1 Gluten, sans-serif; transform: rotate(-22deg); }
.hero-footnote { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 -20px; padding: 10px 12px; background: #61389926; border-top: 1px solid #fff2; font-size: 10px; color: #f5edff; }
.hero-footnote > span { font-size: 15px; line-height: 1; }
#parachuteContainer { position: absolute; inset: 0; z-index: -1; overflow: hidden; opacity: .15; pointer-events: none; }

.tasks-container { padding: 30px 0 0; }
.tasks-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 19px; padding: 0 3px; }
.eyebrow { display: block; color: #8a729f; font-size: 8px; font-weight: 700; line-height: 1.6; letter-spacing: 1.8px; }
.tasks-container h2 { margin: 5px 0 0; color: var(--text); font: 600 28px/1.15 Gluten, sans-serif; letter-spacing: -1.2px; }
.partnership-container { position: static; flex-shrink: 0; }
.partnership-button { display: flex; align-items: center; justify-content: center; gap: 6px; width: auto; height: auto; min-height: 44px; padding: 7px 9px; border: 1px solid #e8e0ef; border-radius: 13px; background: #fff9; box-shadow: none; animation: none; cursor: pointer; }
.partnership-button img { width: 21px; height: 21px; object-fit: contain; }
.partnership-button > span { color: #6f5f7e; font-size: 8px; font-weight: 600; text-align: left; line-height: 1.5; }
.partnership-button:hover { background: #fff; box-shadow: none; transform: none; }
.partnership-tooltip { display: none; }
.task-card { --task-accent: #705098; --task-tint: #f1eafa; --task-border: #e9e0f3; display: grid; grid-template-columns: 43px minmax(0, 1fr) auto; align-items: center; gap: 11px; margin: 0 0 11px; padding: 17px 13px; border: 1px solid var(--task-border); border-radius: 21px; background: #fff; box-shadow: 0 3px 0 #eee7f535; transition: border-color .2s; }
.task-card:active { transform: none; }
#discordTask { --task-accent: #656ca7; --task-tint: #eeeffb; --task-border: #e5e6f3; }
#dailyTask { --task-accent: #4f8871; --task-tint: #e7f3ed; --task-border: #deede5; }
#spinTask { --task-accent: #a16e34; --task-tint: #fbf0df; --task-border: #f0e4d4; }
.task-icon { display: grid; place-items: center; width: 43px; height: 45px; margin: 0; flex-shrink: 0; border-radius: 15px; color: var(--task-accent); background-color: var(--task-tint); background-size: 23px; background-repeat: no-repeat; background-position: center; font-size: 30px; line-height: 1; }
.task-icon.twitter-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23705098' d='M18.9 2H22l-6.8 7.8L23.2 22h-6.3l-4.9-7.4L5.5 22H2.3l7.3-8.5L.8 2h6.5l4.4 6.7L18.9 2ZM17.8 20h1.8L6.3 4H4.4l13.4 16Z'/%3E%3C/svg%3E"); }
.task-icon.discord-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23656ca7' d='M20.3 5.2A20 20 0 0 0 15.4 3l-.6 1.2a18.2 18.2 0 0 0-5.6 0L8.6 3a20 20 0 0 0-4.9 2.2C.7 9.7-.1 14.1.3 18.5A20 20 0 0 0 6.4 21l1.2-2a13.8 13.8 0 0 1-1.9-.9l.5-.4a14.8 14.8 0 0 0 11.6 0l.5.4-1.9.9 1.2 2a20 20 0 0 0 6.1-2.5c.5-5.1-.8-9.5-3.4-13.3ZM8 15.4c-1.1 0-2-1-2-2.2S6.9 11 8 11s2 1 2 2.2-.9 2.2-2 2.2Zm8 0c-1.1 0-2-1-2-2.2s.9-2.2 2-2.2 2 1 2 2.2-.9 2.2-2 2.2Z'/%3E%3C/svg%3E"); }
.task-icon.daily-icon { background-image: none; }
.task-icon.spin-icon { background-image: url("assets/wheel.png"); background-size: 34px; }
.task-info { min-width: 0; }
.task-info h3 { margin: 0 0 4px; color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.4; }
.task-info p { margin: 0; color: var(--text-secondary); font-size: 10px; line-height: 1.5; }
.reward-tag { display: block; color: var(--task-accent); font-size: 9px; font-weight: 700; line-height: 1.6; letter-spacing: .2px; }
.task-subtitle { display: block; margin-top: 3px; font-size: 9px; color: #887894; }
.task-button, .daily-task-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; max-width: 91px; min-height: 44px; margin: 0; padding: 9px 10px; border: 1px solid var(--task-border, #e6daf3); border-radius: 12px; color: var(--task-accent, #70429e); background: var(--task-tint, #f0e9f8); box-shadow: none; font-size: 10px; font-weight: 600; line-height: 1.35; white-space: normal; text-align: center; transition: background .2s; }
.task-button:hover, .daily-task-button:hover { background: var(--task-tint, #ebe0fa); box-shadow: none; transform: none; filter: brightness(.975); }
.task-button:disabled, .daily-task-button:disabled { color: #8a8194; border-color: #eee9f1; background: #f5f2f7; opacity: 1; transform: none; box-shadow: none; }
.task-button.completed, .daily-task-button.completed { background: #eaf4ef; color: #44745d; border-color: #dcece3; }
.task-button.reward-ready, .daily-task-button.reward-ready { color: #fff; border-color: #8353c4; background: #8554c9; background-size: auto; animation: none; }
.task-button.reward-ready:hover, .daily-task-button.reward-ready:hover { background: #7542bb; transform: none; box-shadow: none; }
.task-button.checking { padding-right: 22px; }
.task-button.checking::after { width: 9px; height: 9px; right: 6px; margin-top: -5px; border-width: 1.5px; }
.countdown, .daily-task-item .countdown { display: block; margin: 6px 0 0; padding: 4px 5px; border-radius: 6px; background: #f3eef8; color: #7f688c; font-size: 8px; line-height: 1.5; }
.countdown > span:first-child { display: block; }
.countdown-timer, #countdown-timer { color: #715188; font-variant-numeric: tabular-nums; font-weight: 600; }
.new-badge { position: static; display: inline-block; margin-left: 3px; padding: 2px 4px; border-radius: 4px; background: #e3f1e8; color: #4c7e60; box-shadow: none; font-size: 6px; vertical-align: middle; animation: none; }

.referral-section { position: relative; isolation: isolate; overflow: hidden; margin: 24px 0 0; padding: 23px 22px 19px; border: 1px solid #eddfcd; border-radius: 25px; background: #fff4e4; text-align: left; }
.referral-section .eyebrow { color: #9c7d57; font-size: 7px; letter-spacing: 1.5px; }
.referral-section h2 { position: relative; z-index: 1; max-width: 240px; margin: 10px 0 7px; color: #573c39; font: 600 27px/1.12 Gluten, sans-serif; letter-spacing: -1px; }
.referral-info { position: relative; margin: 0 0 17px; color: #8b705d; font-size: 10px; }
.referral-info b { color: #775131; font-weight: 700; }
.referral-info b::after { content: none; }
.referral-button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; width: auto; min-height: 44px; padding: 10px 17px; border: 1px solid #6c42a5; border-radius: 12px; background: #8052ba; color: #fff; box-shadow: 0 3px 0 #603790; font-size: 11px; font-weight: 600; }
.referral-button > span { font-size: 17px; line-height: 1; }
.referral-button:hover { background: #7145aa; transform: none; }
.referral-terms { position: relative; margin: 11px 0 0; color: #997e69; font-size: 8px; line-height: 1.6; }
.referral-art { position: absolute; z-index: -1; top: 28px; right: -18px; color: #e9bb76; font-size: 138px; line-height: 1; transform: rotate(14deg); opacity: .7; }
.referral-art span { position: absolute; top: 93px; right: 30px; color: #ad8bd4; font-size: 74px; transform: rotate(-17deg); }
.app-footer { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 23px; color: #9a87ab; font-size: 9px; }
.footer-flower { color: #a688c5; font-size: 15px; }

/* Shared sheets, including all existing verification and wallet dialogs. */
:is(#settings-overlay, #wallet-registration-overlay, #twitter-username-overlay, #twitter-verification-overlay, #discord-username-overlay, #discord-verification-overlay, #daily-tasks-overlay, #daily-like-verification-overlay, #daily-retweet-verification-overlay, #daily-telegram-verification-overlay, #spin-overlay) {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: calc(16px + var(--safe-top) + var(--content-top)) 16px calc(16px + var(--safe-bottom) + var(--content-bottom));
  background: #2b143579;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  z-index: 220;
}
#settings-overlay, #daily-tasks-overlay { z-index: 210; }
#spin-overlay { z-index: 230; }
:is(#settings-overlay, #daily-tasks-overlay, #wallet-registration-overlay, #twitter-username-overlay, #twitter-verification-overlay, #discord-username-overlay, #discord-verification-overlay, #daily-like-verification-overlay, #daily-retweet-verification-overlay, #daily-telegram-verification-overlay) > div {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100svh - 32px - var(--safe-top) - var(--safe-bottom) - var(--content-top) - var(--content-bottom));
  max-height: calc(100dvh - 32px - var(--safe-top) - var(--safe-bottom) - var(--content-top) - var(--content-bottom));
  margin: auto;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e7daee;
  border-radius: 27px;
  background: #fffcff;
  box-shadow: 0 24px 70px #27123230;
  animation: plushie-sheet-in .2s ease-out;
}
.wallet-registration-container::before, .settings-header::after, .daily-tasks-header::after { content: none; }
.settings-header, .daily-tasks-header { display: flex; align-items: center; gap: 10px; padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid #ece4f2; background: transparent; }
.wallet-registration-header { padding: 0 34px 0 0; margin: 8px 0 17px; text-align: left; }
.settings-header h2, .daily-tasks-header h2, .wallet-registration-header h2 { margin: 0; color: var(--text); background: none; -webkit-text-fill-color: currentColor; font: 600 26px/1.15 Gluten, sans-serif; letter-spacing: -.8px; text-align: left; }
.close-button, .sheet-close { position: static; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: -6px -9px -6px auto; padding: 0; border: 1px solid #e9dff2; border-radius: 14px; background: #f7f1fb; color: #9271af; font-size: 26px; font-weight: 400; line-height: 1; cursor: pointer; }
.sheet-close { position: absolute; top: 17px; right: 17px; margin: 0; }
.close-button:hover, .sheet-close:hover { transform: none; background: #eee3f8; }
.settings-section { padding: 0; margin: 0 0 22px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.settings-section:last-child { margin-bottom: 0; }
.settings-section:hover { transform: none; }
.settings-section h3 { display: block; margin: 0 0 9px; padding: 0; color: #8c749e; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.settings-section h3::before, .wallet-info::after, .social-account::after, .balance-card::after, .daily-task-item::after { content: none; }
.wallet-info, .social-account, .balance-card { display: flex; align-items: center; gap: 11px; margin: 0 0 8px; padding: 14px; border: 1px solid #eee6f4; border-radius: 17px; background: #f9f5fc; box-shadow: none; }
.wallet-info:hover, .social-account:hover, .balance-card:hover { transform: none; background: #f9f5fc; box-shadow: none; }
.wallet-icon, .balance-icon, .social-icon { flex: 0 0 31px; width: 31px; height: 31px; padding: 4px; margin: 0; border-radius: 10px; box-shadow: none; background-color: #eee4f7; background-size: 21px; }
.wallet-details, .balance-details { min-width: 0; }
.wallet-label, .balance-label { margin-bottom: 3px; color: #8a769c; font-size: 10px; }
.wallet-address, .balance-amount, .social-username { margin: 0; color: #614078; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.balance-amount { background: transparent; -webkit-text-fill-color: currentColor; }
.balance-amount::after { content: none; }
.wallet-registration-content, .daily-tasks-content { padding: 0; }
.wallet-registration-content p, .daily-tasks-content > p { margin: 0 0 18px; color: var(--text-secondary); font-size: 12px; line-height: 1.7; text-align: left; }
.wallet-input-container { margin: 18px 0; }
.wallet-input-container label { display: block; margin: 0 0 8px; color: #79618e; font-size: 11px; font-weight: 500; }
.wallet-input-container input { width: 100%; min-height: 52px; margin: 0; padding: 14px; border: 1px solid #ddcceb; border-radius: 13px; background: #fbf8fd; color: var(--text); font-size: 16px; box-shadow: none; }
.wallet-input-container input:focus { border-color: #a780d0; background: #fff; box-shadow: 0 0 0 3px #ab84d314; }
.wallet-input-container input::placeholder { color: #a995b7; }
.wallet-input-container::after { content: none; }
.wallet-error-message { margin-top: 8px; padding: 10px 12px; border: 1px solid #f4d5dd; border-radius: 11px; background: #fff1f3; color: #ac526d; font-size: 11px; line-height: 1.5; }
.wallet-buttons { margin: 20px 0 0; }
.wallet-buttons > button { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid #8151b9 !important; border-radius: 13px !important; background: #8554bf !important; color: #fff !important; box-shadow: 0 3px 0 #653b97 !important; font: 600 13px/1.5 Inter, sans-serif !important; }
.wallet-buttons > button:hover { background: #7947b1 !important; transform: none; }
.wallet-buttons > button:disabled { background: #bdacd1 !important; border-color: #bdacd1 !important; box-shadow: none !important; cursor: not-allowed; }
.verification-steps, #discord-verification-overlay .verification-steps { margin: 0; padding: 0; counter-reset: plushie-steps; list-style: none; }
.verification-steps li, #discord-verification-overlay .verification-steps li { position: relative; margin: 0 0 13px; min-height: 28px; padding: 4px 0 4px 38px; color: #796488; font-size: 12px; line-height: 1.7; }
.verification-steps li::before { counter-increment: plushie-steps; content: counter(plushie-steps); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; background: #eee5f9; color: #8a61af; font-size: 11px; font-weight: 700; }
#twitter-page-link, #discord-server-link { color: #8050b8; text-decoration: underline; text-underline-offset: 3px; }
.daily-task-item { --task-accent: #8054a2; --task-tint: #f0e8f8; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; margin: 0 0 11px; padding: 14px 11px; border: 1px solid #e9dff2; border-radius: 17px; background: #faf6fd; box-shadow: none; }
.daily-task-item:last-child { margin-bottom: 0; }
.daily-task-item:hover { transform: none; box-shadow: none; }
.daily-task-icon, .daily-task-icon.telegram-icon { width: 32px; height: 35px; flex: 0 0 32px; margin: 0; border-radius: 11px; background-color: #eee5f6; font-size: 18px; }
.daily-task-info { min-width: 0; }
.daily-task-info h3 { margin: 0 0 4px; color: var(--text); font-size: 11px; line-height: 1.4; }
.daily-task-info p { margin: 0; color: #8b7899; font-size: 9px; line-height: 1.6; }
.daily-task-button { max-width: 75px; padding: 8px; font-size: 9px; }

#loader { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 100%; height: auto; padding: 30px; background: var(--background); text-align: center; }
.plushie-bounce { width: 115px; height: 121px; margin: 0 0 25px; animation: plushie-float 2.8s ease-in-out infinite; }
.plushie-icon { width: 100%; height: 100%; background: url("assets/theme/plushie.webp") center / contain no-repeat; border: 0; border-radius: 0; box-shadow: none; }
#loader h2 { max-width: 260px; margin: 0 0 10px; font: 600 30px/1.15 Gluten, sans-serif; letter-spacing: -.8px; }
#loader p { margin: 0; color: #977faa; font-size: 12px; }
.loading-dots { display: flex; gap: 5px; margin-top: 24px; }
.loading-dots i { width: 5px; height: 5px; border-radius: 50%; background: #b492d7; animation: plushie-dot 1.3s ease-in-out infinite; }
.loading-dots i:nth-child(2) { animation-delay: .15s; }
.loading-dots i:nth-child(3) { animation-delay: .3s; }
#error-container { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; min-height: calc(100svh - 90px); width: 100%; margin: 0; padding: 30px 20px; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: center; }
.error-mascot { width: 125px; height: auto; margin-bottom: 30px; }
#error-container h3 { margin: 10px 0 12px; color: var(--text); font: 600 34px/1.15 Gluten, sans-serif; letter-spacing: -1px; }
#error-container p { max-width: 300px; color: #897399; font-size: 12px; line-height: 1.8; }
#retry-button { min-height: 48px; margin-top: 20px; padding: 13px 30px; border: 1px solid #7b4cba; border-radius: 13px; color: white; background: #8554c1; box-shadow: 0 3px 0 #633992; font-size: 12px; font-weight: 600; }
#retry-button:hover { background: #7544b1; }
.toast { z-index: 400; bottom: calc(24px + var(--safe-bottom) + var(--content-bottom)); left: 50%; width: max-content; max-width: min(380px, calc(100vw - 36px)); margin: 0; padding: 14px 19px; border: 1px solid #ffffff30; border-radius: 15px; background: #45255e; color: #fff9ff; box-shadow: 0 8px 28px #3212482b; font: 500 12px/1.65 Inter, sans-serif; text-align: center; transform: translateX(-50%); }
#confetti-canvas { z-index: 300; pointer-events: none; }

.spin-container { width: 100%; max-width: 390px; height: auto; min-height: 465px; padding: 27px 15px 125px; margin: auto; border: 1px solid #e9d4f4; border-radius: 30px; background: radial-gradient(ellipse at 50% 45%, #e4d1f5, #fbf5ff 65%); box-shadow: 0 25px 60px #2814393b; }
.spin-title { margin-bottom: 14px; text-align: center; }
.spin-title .eyebrow { font-size: 7px; }
.spin-title h2 { margin: 8px 0; font: 600 32px/1 Gluten, sans-serif; letter-spacing: -1px; color: var(--text); }
.spin-title p { margin: 0; color: #997aab; font-size: 10px; }
.wheel-container { flex-shrink: 0; width: 250px; max-width: 100%; height: 250px; margin: 0; }
.wheel { width: 250px; height: 250px; margin: 0; }
.wheel-center { width: 43px; height: 43px; background: #fff8ea; box-shadow: 0 0 0 4px #a780d1; }
.plushie-mascot { width: 91px; height: 95px; bottom: 17px; background-image: url("assets/theme/plushie.webp"); animation: none; }
.spin-result { z-index: 30; left: 50%; top: 54%; bottom: auto; width: calc(100% - 28px); padding: 23px 16px; border: 1px solid #ead6f7; border-radius: 24px; background: #fffcff; box-shadow: 0 15px 40px #43234a29; text-align: center; }
.spin-result h3 { margin: 0 0 12px; color: #63477d; font: 600 24px/1.2 Gluten, sans-serif; }
.prize-amount { color: #a071cb; font-size: 32px; font-weight: 700; letter-spacing: -1px; }
.prize-info { margin-top: 4px; color: #9680a7; font-size: 12px; }
@keyframes plushie-sheet-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes plushie-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes plushie-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

@media (min-width: 600px) {
  body { padding-top: calc(24px + var(--safe-top) + var(--content-top)); }
  .plushie-app { max-width: 440px; }
  .app-header { padding: 23px 25px 0; }
  .hero-footnote { margin-right: -25px; margin-left: -25px; }
  .rewards-hero { grid-template-columns: minmax(0, 1fr) 152px; }
  .hero-art img { width: 162px; }
  .task-card { padding: 18px 17px; gap: 15px; }
  .task-info h3 { font-size: 13px; }
}
@media (max-width: 359px) {
  body { padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .brand-wordmark { font-size: 32px; }
  .app-header { padding: 16px 16px 0; border-radius: 24px; }
  .user-info { gap: 7px; padding-right: 32px; }
  .user-details h1, #username { font-size: 10px; }
  .user-details p { font-size: 8px; }
  .settings-icon { right: 10px; top: 10px; }
  .rewards-hero { grid-template-columns: minmax(0, 1fr) 105px; min-height: 175px; }
  .hero-art img { width: 123px; right: -16px; bottom: 22px; }
  .hero-orbit { width: 129px; left: -9px; }
  .hero-caption { font-size: 21px; }
  .hero-footnote { margin-right: -16px; margin-left: -16px; font-size: 9px; }
  .hero-eyebrow { font-size: 8px; letter-spacing: 1.3px; }
  .hero-coin { left: -1px; width: 25px; height: 25px; font-size: 15px; }
  .tasks-container h2 { font-size: 25px; }
  .tasks-heading .eyebrow { font-size: 7px; letter-spacing: 1.1px; }
  .partnership-button { padding: 5px 7px; }
  .partnership-button img { width: 17px; height: 17px; }
  .partnership-button > span { font-size: 7px; }
  .task-card { grid-template-columns: 35px minmax(0, 1fr) auto; gap: 8px; padding: 15px 10px; }
  .task-icon { width: 35px; height: 39px; border-radius: 12px; background-size: 20px; }
  .task-button { max-width: 76px; padding: 8px; font-size: 9px; }
  .task-info h3 { font-size: 11px; }
  .task-subtitle { font-size: 8px; }
  .reward-tag { font-size: 8px; }
  .referral-section { padding: 22px 18px 18px; }
  .referral-section h2 { max-width: 195px; font-size: 25px; }
  .referral-art { right: -36px; opacity: .45; }
  :is(#settings-overlay, #daily-tasks-overlay, #wallet-registration-overlay, #twitter-username-overlay, #twitter-verification-overlay, #discord-username-overlay, #discord-verification-overlay, #daily-like-verification-overlay, #daily-retweet-verification-overlay, #daily-telegram-verification-overlay) > div { padding: 20px 15px; }
  .settings-header h2, .daily-tasks-header h2, .wallet-registration-header h2 { font-size: 23px; }
  .daily-task-item { grid-template-columns: 27px minmax(0, 1fr) auto; gap: 7px; padding: 12px 8px; }
  .daily-task-icon, .daily-task-icon.telegram-icon { width: 27px; height: 31px; font-size: 15px; }
  .daily-task-button { max-width: 65px; padding: 7px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .plushie-bounce, .loading-dots i, .parachute, .money-rain { animation: none !important; }
  .parachute, .money-rain { display: none; }
  /* Keep animationend: the original spin workflow waits for this event. */
  .wheel.spinning { animation-duration: .01s; }
  .spin-result.active { animation-duration: .01s; }
  .wallet-registration-container, .settings-container, .daily-tasks-container { animation-duration: .01s !important; }
}
