:root {
  font-family: "Poppins", sans-serif;
  color: #99999c;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --lavender: #7775ff;
  --deep-blue: #181bff;
  --outline: #a8a8a8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: #fff;
}

button, input { font: inherit; }
button {
  cursor: pointer;
  transition: transform .12s cubic-bezier(.2,.8,.2,1), box-shadow .12s ease, filter .12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:active { transform: translateY(2px) scale(.985); }

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

.phone-screen {
  position: relative;
  width: min(100vw, 412px);
  margin-inline: auto;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: #fff;
}

.screen-content { position: absolute; inset: 0; }

.splash-content { display: grid; place-items: center; }
.splash-logo { width: min(46vw, 190px); height: auto; display: block; object-fit: contain; }

.welcome-content { display: flex; flex-direction: column; align-items: center; }

.brand-lockup {
  position: absolute;
  top: 41%;
  text-align: center;
  transform: translateY(-50%);
}

.brand-logo {
  display: block;
  width: 190px;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.brand-lockup p {
  margin: 8px 0 0;
  color: #bfbfbf;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1px;
}

.welcome-actions {
  position: absolute;
  width: min(84%, 348px);
  left: 50%;
  bottom: 31px;
  transform: translateX(-50%);
  display: grid;
  gap: 16px;
}

.button {
  width: 100%;
  min-height: 60px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.button:active, .social-button:active {
  transform: translateY(3px) scale(.985);
  box-shadow: 0 1px 0 #aaa;
}

.button-primary {
  border: 0;
  color: white;
  background: var(--lavender);
  box-shadow: 0 4px 0 var(--deep-blue);
}

.button-primary:hover { filter: brightness(1.03); }

.button-secondary {
  color: var(--lavender);
  border: 1px solid var(--outline);
  background: white;
  box-shadow: 0 4px 0 #aaa;
}
.welcome-actions .button { font-size: 14px; font-weight: 700; }
.welcome-actions .button-secondary { color: #797dff; border-width: 2px; }

.auth-content {
  --auth-top: 70px;
  width: min(100%, 412px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--auth-top) 8% 12px;
}

.auth-form { position: relative; width: 100%; display: flex; flex-direction: column; }

.auth-form h1 {
  margin: 0 0 51px;
  text-align: center;
  color: #bfbfbf;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.auth-form input {
  width: 100%;
  height: 43px;
  margin: 0 0 13px;
  padding: 0 12px;
  border: 2px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
  color: #45475e;
  font-size: 12px;
}

.auth-form input::placeholder { color: #bfbfbf; opacity: 1; }
.auth-form input:hover,
.auth-form input:focus,
.auth-form input:focus-visible { border-color: #e4e4e4; outline: none; box-shadow: none; }
.auth-form .password-wrap input { padding-right: 40px; }

.password-wrap { position: relative; }
.password-toggle {
  position: absolute;
  top: 0;
  right: 4px;
  height: 43px;
  width: 34px;
  padding: 9px;
  display: grid;
  place-items: center;
  border: 0;
  color: #797dff;
  background: transparent;
}
.password-eye-icon { display: block; width: 18px; height: 18px; object-fit: contain; }

.forgot-link, .back-link {
  align-self: flex-end;
  padding: 0;
  margin: 10px 0 0;
  border: 0;
  color: #797dff;
  background: none;
  font-size: 10px;
  font-weight: 400;
}

.submit-button { margin-top: 47px; height: 58px; min-height: 58px; border-radius: 7px; color: #fff; font-size: 14px; font-weight: 700; }
.auth-form[data-form="login"] .login-form-message { min-height: 14px; margin-top: 5px; text-align: center; }
.auth-form[data-form="login"],
.auth-form[data-form="signup"] { flex: 1; }
.auth-form[data-form="login"] .submit-button,
.auth-form[data-form="signup"] .submit-button { margin-top: auto; }

.social-actions {
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.social-button {
  width: 100%;
  min-width: 0;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid #aaa;
  border-radius: 7px;
  background: white;
  color: #797dff;
  box-shadow: 0 3px 0 #aaa;
  font-size: 14px;
  font-weight: 700;
}

.social-mark { width: 22px; height: 22px; display: block; flex: 0 0 auto; object-fit: contain; }

.legal-copy {
  position: absolute;
  bottom: 32px;
  left: 5%;
  right: 5%;
  margin: 0;
  color: #bfbfbf;
  font-size: 10px;
  line-height: 1.65;
  text-align: center;
}
.legal-copy strong { color: #bfbfbf; font-weight: 400; }

.switch-copy {
  width: 100%;
  position: relative;
  bottom: auto;
  margin: 18px 0 60px;
  color: #bfbfbf;
  font-size: 10px;
  text-align: center;
}
.switch-copy button { padding: 0; border: 0; color: #797dff; background: transparent; font-size: 10px; font-weight: 400; }

.form-message { min-height: 14px; margin: 8px 0 0; color: #7775ff; font-size: 10px; text-align: center; }
.helper-copy { margin: -15px 0 24px; color: #bfbfbf; font-size: 10px; font-weight: 700; line-height: 1.5; text-align: center; }
.back-link { width: 100%; min-height: 60px; align-self: stretch; margin: 14px 0 0; border: 2px solid #a8a8a8; border-radius: 8px; color: #797dff; background: #fff; box-shadow: 0 4px 0 #aaa; font-size: 14px; font-weight: 700; }
.auth-form[data-form="password-reset"] { flex: 1; }
.auth-form[data-form="password-reset"] .submit-button { margin-top: auto; }
.auth-form[data-form="forgot"] h1 { margin-bottom: 18px; }
.auth-form[data-form="forgot"] { min-height: calc(100dvh - var(--auth-top) - 12px); }
.auth-form[data-form="forgot"] .helper-copy { margin: -10px 0 51px; }
.auth-form[data-form="forgot"] .form-message { min-height: 0; margin-top: 2px; }
.forgot-actions { width: 100%; margin-top: auto; display: grid; gap: 10px; }
.auth-form[data-form="forgot"] .submit-button { margin-top: 0; }
.auth-form[data-form="forgot"] .back-link { height: 58px; min-height: 58px; margin-top: 0; }
.shop-insufficient-button { font-size: 14px !important; }
.delete-account-overlay .dialog h2 { margin-bottom: 8px; font-size: 14px; }
.delete-account-overlay .dialog p { margin: 0 0 6px; font-size: 10px; }
.delete-account-overlay .dialog .button { font-size: 14px; }
.delete-account-overlay .dialog .button-secondary { border: 2px solid var(--outline); }

button:focus-visible { outline: 3px solid #7775ff70; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-height: 700px) {
  .auth-content { --auth-top: 35px; padding-top: var(--auth-top); }
  .auth-form h1 { margin-bottom: 18px; }
  .auth-form input { height: 43px; }
  .password-toggle { height: 43px; }
  .submit-button { margin-top: 26px; height: 48px; min-height: 48px; }
  .auth-form[data-form="login"],
  .auth-form[data-form="signup"] { flex: 1; }
  .auth-form[data-form="forgot"] h1 { margin-bottom: 18px; }
  .auth-form[data-form="forgot"] .helper-copy { margin-bottom: 28px; }
  .legal-copy { bottom: 3px; }
  .switch-copy { bottom: auto; margin-bottom: 40px; }
}

/* Kudo product pages */
.product-screen {
  position: relative;
  width: min(100vw, 412px);
  height: 100dvh;
  min-height: 100dvh;
  margin-inline: auto;
  padding-bottom: 76px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: #fff;
}

.product-header {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 62px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  color: #aaa;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}
.home-page-title { color: #000; font-size: 15px; font-weight: 700; }
.focus-product-header { gap: 5px; padding-inline: 12px; }
.mode-page-heading { min-width: 0; flex: 1; display: flex; align-items: center; gap: 5px; }
.mode-page-heading .catalog-back { width: 25px; height: 34px; flex: 0 0 25px; color: #999; }
.mode-page-heading .catalog-back::before { width: 10px; height: 10px; border-left-width: 3px; border-bottom-width: 3px; }
.mode-page-heading h1 { margin: 0; color: #45475e; font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.focus-product-header .mode-page-heading h1 { font-size: 14px; }

.inventory-bar { display: flex; align-items: center; gap: 9px; }
.inventory-item { display: inline-flex; align-items: center; gap: 4px; padding: 4px 1px; border: 0; background: transparent; color: #7775ff; font-size: 11px; font-weight: 700; }
.item-token { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; font-size: 13px; }
.item-token svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.item-token img { display: block; width: 32px; height: 32px; object-fit: contain; }
.token-chest img { width: 40px; height: 40px; }
.token-crystal img { width: 37px; height: 37px; }
.token-chest { color: #9b72ff; background: transparent; }
.token-hourglass { color: #ff825c; background: transparent; }
.token-crystal { color: #0bb8ec; background: transparent; }

.page-content { padding: 19px 22px 26px; }
.product-screen:has(.add-task-card) .page-content { padding-bottom: 19px; }
.product-screen:has(.watch-hero) .page-content,
.product-screen:has(.shop-feature-banner) .page-content { padding-bottom: 19px; }
.add-task-card { min-height: 100px; padding: 17px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 15px; background: #f0efff; }
.add-task-card h1 { margin: 0 0 5px; color: #333652; font-size: 14px; font-weight: 700; }
.add-task-card p { max-width: 240px; margin: 0; color: #bfbfbf; font-size: 10px; font-weight: 400; line-height: 1.45; }
.add-task-button { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 10px; color: #fff; background: var(--lavender); box-shadow: 0 4px 0 var(--deep-blue); }
.add-task-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.add-task-button:active { transform: translateY(3px) scale(.985); box-shadow: 0 1px 0 var(--deep-blue); }

.feature-card { width: 100%; min-height: 160px; margin-top: 100px; padding: 0; display: block; position: relative; overflow: visible; text-align: left; border: 0; border-radius: 20px; color: #333; }
.feature-card { transition: transform .16s cubic-bezier(.2,.8,.2,1), filter .16s ease; }
.feature-card:active { transform: translateY(4px) scale(.985); filter: brightness(.96); }
.feature-easy { background: #dcf9e1; }
.feature-hard { background: #ffeded; }
.feature-focus { background: #f1efff; }
.feature-task-count { position: absolute; z-index: 2; top: -78px; right: 4px; width: 72px; min-height: 69px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 4px solid #dcf9e1; border-radius: 14px; color: #1b9b3b; background: #fff; font-family: Poppins, sans-serif; font-size: 10px; font-weight: 400; text-align: center; }
.feature-task-count strong { font-size: 16px; font-weight: 700; line-height: 1; }
.feature-hard .feature-task-count { z-index: 0; border-color: #ffeded; color: #ed292e; }
.feature-art { position: absolute; z-index: 1; top: -70px; left: 50%; width: 62%; height: 105px; display: grid; place-items: center; transform: translateX(-50%); pointer-events: none; filter: drop-shadow(0 5px 3px #00000014); }
.feature-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.feature-hard .feature-art { top: -73px; width: 68%; height: 112px; transform: translateX(-50%); }
.feature-focus .feature-art { transform: translateX(-50%); }
.entertainment-card { min-height: 160px; margin-top: 55px; overflow: visible; }
.entertainment-card + .entertainment-card { margin-top: 90px; }
.entertainment-watch-card .feature-art { width: 70%; height: 115px; }
.feature-info { padding: 3px 1px 0; }
.feature-info h2 { margin: 0; color: #42455f; font-size: 13px; font-weight: 700; }
.feature-info p { margin: 3px 0 0; color: #777985; font-size: 10px; }
.feature-cta { position: absolute; right: 7%; bottom: 17px; left: 7%; min-height: 45px; padding: 10px 13px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: #1b9b3b; box-shadow: 0 5px 0 #08752a; font-size: 16px; font-weight: 700; text-align: center; }
.feature-hard .feature-cta { background: #ed292e; box-shadow: 0 5px 0 #a50f1b; }
.feature-focus .feature-cta { background: #7775ff; box-shadow: 0 5px 0 #2a35ff; }

.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100vw, 412px); min-height: 68px; padding: 7px 12px max(7px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid #e7e7e7; }
.nav-button { width: 52px; height: 52px; min-width: 0; justify-self: center; display: grid; place-items: center; padding: 5px; border: 1.5px solid transparent; border-radius: 10px; background: transparent; }
.nav-button img { display: block; width: 32px; height: 32px; object-fit: contain; }
.nav-button.has-unread-messages, .nav-button.has-pending-reward, .nav-button.has-pending-tasks { position: relative; }
.nav-message-count, .nav-pending-count, .message-count-badge { min-width: 18px; height: 18px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #fff; border-radius: 999px; color: #fff; background: #f04444; font-size: 9px; font-weight: 700; line-height: 1; }
.nav-message-count, .nav-pending-count { position: absolute; top: 2px; right: 1px; }
.nav-button.is-current { border: 3px solid var(--lavender); }
.nav-button:focus-visible { outline: 2px solid var(--lavender); outline-offset: 2px; }
.nav-button:active { transform: translateY(1px) scale(.96); }

.mode-banner { height: 46px; min-height: 46px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #eee; }
.mode-banner h1 { height: 100%; flex: 1; margin: 0; display: flex; align-items: center; justify-content: center; color: #4a4c60; font-size: 15px; font-weight: 700; line-height: 1; text-align: center; }
.back-button { width: 28px; height: 32px; border: 0; color: #aaa; background: transparent; font-size: 28px; line-height: 1; }
.banner-decoration { width: 28px; text-align: center; }
.quest-illustration { height: 125px; margin: 15px 0 10px; display: flex; justify-content: center; align-items: center; gap: 2px; border-radius: 14px; font-size: 46px; }
.quest-daily { position: relative; margin-top: 72px; overflow: visible; background: #ddffe3; }
.quest-boss { background: #fff0ef; }
.quest-boss img { width: 73%; height: 145px; object-fit: contain; }
.quest-illustration span:nth-child(2n) { transform: translateY(11px); }
.quest-illustration img { width: 74%; height: 100%; object-fit: contain; }
.quest-daily img { width: 76%; height: 170px; position: absolute; top: -78px; left: 50%; transform: translateX(-50%); }
.daily-screen .quest-daily img { width: 62%; height: 150px; top: -70px; }
.quest-daily:has(img) { background: #ddffe3; }
.quest-boss { position: relative; z-index: 1; margin-top: 82px; overflow: visible; isolation: isolate; background: transparent; }
.quest-boss-panel { position: absolute; z-index: 0; inset: 0; border-radius: 14px; background: #ffeded; pointer-events: none; }
.quest-boss-avatar { position: absolute; z-index: 2; top: -80px; left: 5%; width: 90%; height: 188px; padding: 0; border: 0; background: transparent; }
.quest-boss-avatar img { width: 100%; height: 100%; position: static; display: block; transform: none; object-fit: contain; }
.quest-boss-avatar:focus-visible { outline: 2px solid var(--lavender); outline-offset: 2px; }
.boss-screen .quest-boss { margin-top: 72px; }
.task-create-screen { width: min(100%, 412px); height: 100dvh; min-height: 100dvh; margin: 0 auto; position: relative; overflow-y: auto; overscroll-behavior-y: contain; background: #fff; }
.task-create-inventory { width: 100%; }
.task-create-content { min-height: calc(100dvh - 62px); padding: 88px 21px 20px; display: flex; flex-direction: column; }
.task-create-hero { height: 100px; margin: 0 0 25px; position: relative; flex: 0 0 auto; border-radius: 15px; background: #f1f0ff; }
.task-create-hero img { width: 62%; height: 150px; position: absolute; top: -75px; left: 50%; transform: translateX(-50%); object-fit: contain; }
.task-create-form { flex: 1; display: flex; flex-direction: column; }
.task-create-form > label:not(.upload-area) { margin: 0 0 8px; color: #000; font-size: 14px; font-weight: 700; }
.task-create-form input:not([type=file]) { width: 100%; height: 43px; margin: 0 0 13px; padding: 0 12px; border: 2px solid #e4e4e4; border-radius: 10px; color: #45475e; background: #fff; font-size: 12px; }
.task-create-form textarea { width: 100%; min-height: 82px; margin: 0 0 13px; padding: 10px 12px; resize: vertical; border: 2px solid #e4e4e4; border-radius: 10px; color: #45475e; background: #fff; font: inherit; font-size: 12px; }
.task-create-form textarea::placeholder { color: #bfbfbf; opacity: 1; }
.task-create-form textarea:focus,
.task-create-form textarea:focus-visible { border-color: #e4e4e4; outline: none; box-shadow: none; }
.task-create-form input:not([type=file]):hover,
.task-create-form input:not([type=file]):focus,
.task-create-form input:not([type=file]):focus-visible { border-color: #e4e4e4; outline: none; box-shadow: none; }
.task-create-form #task-title::placeholder { color: #bfbfbf; opacity: 1; }
.task-create-form #task-deadline { color-scheme: light; }
.task-create-form #task-deadline:invalid { color: #bfbfbf; }
.task-create-form #task-deadline:invalid::-webkit-datetime-edit { color: #bfbfbf; }
.task-create-form #task-deadline::-webkit-calendar-picker-indicator { width: 18px; height: 18px; margin-right: -4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237975ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M7 3v4M17 3v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat; cursor: pointer; }
.task-create-screen .task-create-form input:not([type=file]),
.task-create-screen .task-create-form input:not([type=file]):hover,
.task-create-screen .task-create-form input:not([type=file]):focus,
.task-create-screen .task-create-form input:not([type=file]):focus-visible { border-color: #e4e4e4; }
.task-create-form .upload-title { margin-top: 0; }
.task-create-form .upload-box { position: relative; margin-bottom: 13px; }
.task-create-form .upload-box input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.task-create-form .upload-area { min-height: 78px; margin: 0; border: 2px dashed #e4e4e4; border-radius: 10px; color: #333652; background: #fff; font-size: 14px; font-weight: 700; }
.task-create-screen .task-create-form .upload-area { border-color: #e4e4e4; }
.task-create-form .upload-area strong { color: #bfbfbf; font-size: 14px; font-weight: 700; }
.task-create-form .upload-icon { color: #fff; background: #8984ff; }
.task-create-form .upload-area small { display: block; }
.task-create-form .upload-area.has-photo { min-height: 145px; padding: 12px; border-style: dashed; pointer-events: none; }
.task-create-form.has-attachment .upload-area strong,
.task-create-form.has-attachment .upload-area small { display: none; }
.task-create-form .upload-preview { max-width: 100%; max-height: 125px; border-radius: 8px; object-fit: contain; }
.task-create-form .upload-remove { position: absolute; top: 8px; right: 8px; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #7775ff; font-size: 21px; line-height: 1; box-shadow: 0 2px 5px #0002; }
.task-create-form .upload-remove[hidden] { display: none; }
.task-create-form .upload-status { margin-top: 5px; color: #d92d38; font-size: 10px; text-align: center; }
.task-create-form.has-attachment .task-create-submit { margin-top: 2px; }
.task-create-submit { min-height: 45px; margin-top: auto; font-size: 14px; font-weight: 700; }
.quest-stats, .profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quest-stats { gap: 12px; margin-bottom: 8px; }
.quest-stats div { min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 4px solid #d8f2dc; border-radius: 10px; }
.profile-stats div { min-height: 63px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid #d8f2dc; border-radius: 10px; }
.quest-stats div span { color: #48a75d; font-size: 10px; font-weight: 700; }
.daily-screen .quest-stats div span { color: #299746; font-size: 14px; font-weight: 700; }
.boss-screen .quest-stats div span { color: #333652; font-size: 14px; font-weight: 700; }
.daily-screen .quest-stats div, .boss-screen .quest-stats div { min-height: 90px; padding-top: 8px; }
.profile-stats div span { color: #48a75d; font-size: 9px; }
.quest-stats div strong { color: #299746; font-size: 14px; font-weight: 700; }
.daily-screen .quest-stats div strong { font-size: 32px; font-weight: 700; }
.boss-screen .quest-stats div strong { font-size: 32px; font-weight: 700; }
.profile-stats div strong { color: #299746; font-size: 18px; }
.boss-stats div { border-color: #ffe8e8; }
.boss-screen .quest-stats div span, .boss-screen .quest-stats div strong { color: #e74c4c; }
.boss-subtitle { margin: 6px 0 0; color: #333652; font-size: 14px; font-weight: 700; text-align: center; }
.boss-health { height: 25px; margin-top: 5px; position: relative; display: flex; align-items: center; justify-content: center; }
.boss-health-track { width: 52%; height: 11px; overflow: hidden; border-radius: 9px; background: #f2a2a2; }
.boss-health-track span { height: 100%; display: block; border-radius: inherit; background: #dc777b; transition: width .25s ease; }
.boss-health strong { position: absolute; color: #fff; font-size: 9px; line-height: 1; text-shadow: 0 1px 2px #aa3333; }
.boss-banner ~ .boss-health ~ .quest-boss { margin-top: 82px; }
.boss-avatar-page { min-height: calc(100dvh - 150px); box-sizing: border-box; padding: 4px 0 12px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; }
.boss-avatar-page h2 { margin: 0; color: #333652; font-size: 16px; font-weight: 700; text-align: center; }
.boss-avatar-page > p { margin: 0 0 5px; color: #999; font-size: 11px; text-align: center; }
.boss-avatar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 12px; }
.boss-avatar-choice { min-width: 0; aspect-ratio: 1; padding: 5px; overflow: hidden; border: 2px solid transparent; border-radius: 14px; background: #f4f3ff; }
.boss-avatar-choice.is-selected { border-color: #797dff; background: #f8f7ff; }
.boss-avatar-choice img { width: 100%; height: 100%; display: block; object-fit: contain; }
.boss-avatar-confirm { width: 100%; min-height: 46px; margin-top: 4px; }
.progress-track { height: 9px; margin-top: 12px; overflow: hidden; border-radius: 9px; background: #ededed; }
.progress-track span { height: 100%; display: block; border-radius: inherit; background: #78d98d; }
.boss-banner ~ .progress-track span { background: #f07a7a; }
.progress-label { margin: 3px 0 12px; color: #bfbfbf; font-size: 10px; font-weight: 400; text-align: center; }
.task-list { display: grid; gap: 9px; }
.task-row { min-height: 57px; padding: 8px 9px; display: grid; gap: 8px; border: 2px solid #e2e2e2; border-radius: 12px; background: #fff; }
.task-row-main { min-width: 0; display: flex; align-items: center; gap: 9px; }
.task-description { margin: 0; color: #656677; font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-row.is-done { opacity: .7; }
.task-check { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border: 2px solid #e2e2e2; border-radius: 7px; color: #fff; background: #fff; font-size: 20px; font-weight: 700; line-height: 1; }
.task-check.checked { border-color: #e2e2e2; background: #19bd4b; }
.task-copy { min-width: 0; flex: 1; display: grid; gap: 4px; }
.task-copy strong { overflow: hidden; color: #333652; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.task-copy span { color: #bfbfbf; font-size: 10px; font-weight: 400; }
.task-photo-preview { width: 100%; height: 126px; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: #f4f4f8; }
.task-photo-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.task-delete { width: 32px; height: 32px; flex: 0 0 32px; padding: 0; display: grid; place-items: center; border: 2px solid #f36565; border-radius: 7px; background: #fff; }
.task-delete img { width: 22px; height: 24px; display: block; object-fit: contain; }
.delete-confirm-dialog { text-align: center; }
.boss-victory-dialog { padding: 18px 8px 10px; text-align: center; }
.boss-victory-dialog h2 { margin: 0 0 12px; color: #333652; font-size: 14px; font-weight: 700; }
.boss-victory-dialog p { margin: 0 auto 12px; max-width: 340px; color: #bfbfbf; font-size: 10px; font-weight: 400; line-height: 1.4; }
.boss-victory-art { width: min(100%, 270px); height: 158px; margin: 0 auto 10px; display: block; object-fit: contain; }
.boss-victory-dialog .button-primary { width: 100%; min-height: 52px; margin-top: 0; color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; }
.modal-overlay.boss-victory-overlay { padding: 8px; place-items: center; }
.modal-overlay.boss-victory-overlay .modal-position { width: min(100%, 412px); max-height: none; overflow: visible; }
.delete-confirm-art { width: 180px; height: 138px; margin: 0 auto 8px; display: block; object-fit: contain; }
.delete-confirm-dialog h2 { margin: 0 0 8px; color: #333652; font-size: 14px; font-weight: 700; }
.delete-confirm-dialog p { margin: 0 0 6px; color: #bfbfbf; font-size: 12px; font-weight: 700; }
.dialog.delete-confirm-dialog .button-primary { min-height: 48px; margin-top: 10px; color: #fff; font-size: 14px; font-weight: 700; }
.dialog.delete-confirm-dialog .button-secondary { min-height: 48px; margin-top: 10px; color: #797dff; border: 2px solid var(--outline); box-shadow: 0 4px 0 #aaa; font-size: 14px; font-weight: 700; }
.task-photo-zoom { width: min(100%, 412px); min-height: 100dvh; padding: 28px 16px; display: grid; place-items: center; position: relative; background: #16161aee; }
.task-photo-zoom img { max-width: 100%; max-height: calc(100dvh - 56px); border-radius: 10px; object-fit: contain; }
.task-photo-zoom button { width: 40px; height: 40px; position: absolute; top: 12px; right: 12px; border: 0; border-radius: 50%; color: #fff; background: #ffffff30; font-size: 28px; }
.modal-overlay.task-photo-overlay { padding: 0; display: flex; justify-content: center; background: #16161aee; }
.modal-overlay.task-photo-overlay .modal-position { width: min(100vw, 412px); max-height: none; overflow: visible; }
.empty-state { padding: 23px 17px; display: grid; justify-items: center; text-align: center; border: 1px dashed #d7d7e8; border-radius: 14px; }
.empty-state > span { font-size: 34px; }
.empty-state strong { margin-top: 8px; color: #46485a; font-size: 13px; }
.empty-state p { color: #999; font-size: 11px; line-height: 1.5; }
.empty-state .button { min-height: 42px; }
.daily-screen .empty-state, .boss-screen .empty-state { min-height: 194px; box-sizing: border-box; align-content: center; padding: 24px 20px; gap: 12px; border-width: 2px; border-radius: 16px; }
.daily-screen .empty-state strong { margin: 0; color: #333652; font-size: 14px; font-weight: 700; }
.daily-screen .empty-state p { max-width: 300px; margin: 0; color: #bfbfbf; font-size: 10px; font-weight: 400; line-height: 1.45; }
.boss-screen .empty-state strong { margin: 0; color: #333652; font-size: 14px; font-weight: 700; }
.boss-screen .empty-state p { max-width: 300px; margin: 0; color: #bfbfbf; font-size: 10px; font-weight: 400; line-height: 1.45; }
.daily-screen .empty-state .button, .boss-screen .empty-state .button { width: 100%; min-height: 46px; font-size: 14px; font-weight: 700; }
.daily-screen .empty-state .button { color: #fff; font-size: 14px; font-weight: 700; }

.focus-hero, .shop-hero, .reward-hero, .profile-card { text-align: center; }
.focus-hero h1, .shop-hero h1, .reward-hero h1, .profile-card h1 { margin: 0; color: #45475e; font-size: 20px; }
.focus-hero p, .shop-hero p, .reward-hero p, .profile-card p { margin: 6px 0 14px; color: #999; font-size: 11px; line-height: 1.5; }
.focus-scene { height: 110px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 14px; background: #f1efff; font-size: 39px; }
.focus-mode-banner { border-bottom: 2px solid #eee; }
.focus-mode-banner h1 { color: #111; font-size: 15px; font-weight: 700; }
.focus-mode-banner .catalog-back { height: 32px; align-self: center; }
.focus-mode-banner .catalog-back { color: #aaa; }
.focus-mode-banner .catalog-back::before { width: 10px; height: 10px; border-left-width: 4px; border-bottom-width: 4px; border-radius: 2px; }
.product-screen .noise-section h2 { margin: 18px 0 8px; color: #111; font-size: 15px; font-weight: 700; }
.noise-option strong { font-size: 14px; font-weight: 700; }
.noise-option small { font-size: 11px; }
.noise-option:nth-child(3) { min-height: 72px; padding-block: 11px; }

.white-noise-hero { min-height: 124px; margin: 18px 0 9px; }
.white-noise-hero .watch-hero-copy { width: 56%; transform: none; }
.white-noise-hero h1 { font-size: 15px; }
.white-noise-hero p { max-width: 165px; font-size: 11px; }
.white-noise-hero > img { width: 53%; height: 120px; right: -3px; }
.product-screen .noise-section h2 { margin-top: 18px; }
.noise-icon { flex: 0 0 48px; width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.noise-rain { background: linear-gradient(145deg, #c4d8ff, #776fff); }
.noise-ocean { background: linear-gradient(145deg, #b5f0ff, #5f9fe6); }
.noise-forest { background: linear-gradient(145deg, #d2f2aa, #39875a); }
.noise-section h2, .shop-section h2, .mood-summary h2 { margin: 20px 0 5px; color: #505266; font-size: 14px; }
.noise-section > p { margin: 0 0 10px; color: #999; font-size: 10px; }
.noise-list { display: grid; gap: 8px; }
.noise-option { min-height: 59px; padding: 7px 9px; display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid #e4e4e4; border-radius: 10px; background: #fff; color: #555; }
.noise-icon { width: 48px; height: 48px; display: block; flex: 0 0 48px; object-fit: cover; border-radius: 8px; background: #f3f0ff; }
.noise-option > span:nth-child(2) { flex: 1; display: grid; gap: 3px; }
.noise-option strong { color: #000; font-size: 14px; font-weight: 700; }
.noise-option small { color: #aaa; font-size: 9px; }
.noise-arrow { color: #aaa; font-size: 23px; }
.item-hint { margin-top: 14px !important; padding: 10px; border-radius: 8px; background: #f6f4ff; text-align: center; }
.item-hint strong { color: #756bff; }
.modal-overlay.focus-gate-overlay { position: fixed; inset: 0; padding: 0; display: flex; align-items: flex-end; justify-content: center; background: rgb(0 0 0 / 18%); }
.modal-overlay.focus-gate-overlay .modal-position { width: min(100%, 412px); max-height: none; overflow: visible; }
.focus-gate-sheet { width: min(100%, 412px); padding: 24px 16px calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -6px 24px #2222; animation: sheet-up .2s ease-out; }
.focus-gate-sheet h2 { max-width: 230px; margin: 0 0 12px; color: #41435d; font-size: 15px; line-height: 1.35; text-align: center; }
.focus-gate-item { width: 124px; min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px solid #dedee2; border-radius: 11px; }
.focus-gate-item img { width: 68px; height: 68px; object-fit: contain; }
.focus-gate-item strong { color: #41435d; font-size: 14px; }
.focus-gate-confirm { width: 100%; min-height: 45px; margin-top: 16px; font-weight: 700; }
.focus-gate-sheet .shop-decline-button { width: 100%; min-height: 52px; margin-top: 8px; border: 2px solid #aaa; border-radius: 7px; color: #7775ff; background: #fff; box-shadow: 0 3px 0 #bbb; font-size: 12px; font-weight: 700; }
.focus-session-page { width: 100%; margin: 0 auto; padding: 13px 0 30px; position: relative; background: #fff; }
.focus-session-art { width: 100%; height: 220px; display: block; object-fit: cover; border-radius: 9px; }
.focus-session-page > h2 { margin: 18px 0 4px; color: #111; font-size: 15px; font-weight: 700; }
.focus-session-subtitle { margin: 0 0 22px; color: #999; font-size: 11px; }
.focus-session-track { width: 100%; height: 7px; overflow: hidden; border-radius: 8px; background: #ddd; }
.focus-session-track span { height: 100%; display: block; border-radius: inherit; background: #a5a0ff; }
.focus-session-time { margin: 5px 0 10px; color: #999; font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.session-skip { width: 34px; height: 40px; border: 0; color: #9690ff; background: transparent; font-size: 20px; }
.session-play { width: 48px; height: 48px; background: #aaa5ff; font-size: 20px; }
.focus-recommendations { margin-top: 18px; padding: 18px 16px; border: 0; border-radius: 13px; }
.focus-recommendations h3 { margin: 0 0 14px; color: #111; font-size: 15px; font-weight: 700; }
.focus-recommendations > div { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.focus-recommendations button { padding: 0; overflow: hidden; display: grid; gap: 7px; border: 0; color: #111; background: transparent; text-align: left; }
.focus-recommendations img { width: 100%; aspect-ratio: 1.12; object-fit: cover; border-radius: 8px; }
.focus-recommendation-copy { display: grid; gap: 3px; }
.focus-recommendation-copy strong { color: #111; font-size: 15px; font-weight: 700; }
.focus-recommendation-copy small { color: #999; font-size: 11px; }
.focus-mini-player { width: min(100vw, 412px); min-height: 56px; padding: 7px 10px 9px; position: fixed; z-index: 30; left: 50%; bottom: max(68px, calc(59px + env(safe-area-inset-bottom, 0px))); display: flex; align-items: center; gap: 9px; box-sizing: border-box; background: #fff; box-shadow: 0 -3px 12px #2222; transform: translateX(-50%); }
.focus-mini-open { position: absolute; z-index: 0; inset: 0; width: 100% !important; height: 100% !important; border-radius: 0; }
.focus-mini-player > img { position: relative; z-index: 1; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 6px; object-fit: cover; pointer-events: none; }
.focus-mini-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.focus-mini-copy { position: relative; z-index: 1; pointer-events: none; }
.focus-mini-copy strong { overflow: hidden; color: #111; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.focus-mini-copy small { color: #aaa; font-size: 10px; }
.focus-mini-player button { position: relative; z-index: 2; width: 28px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; color: #9992ff; background: transparent; font-size: 21px; line-height: 1; }
.focus-mini-player .focus-mini-open { position: absolute; }
.focus-mini-player button[data-action="dismiss-focus-player"] { color: #999; font-size: 22px; }
.focus-mini-player .focus-mini-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.focus-mini-progress { height: 3px; position: absolute; right: 0; bottom: 0; left: 0; background: #efeff2; }
.focus-mini-progress span { width: 0; height: 100%; display: block; background: #9992ff; }
.focus-session-page .player-controls { align-items: center; gap: 15px; }
.focus-session-page .session-skip { width: 34px; height: 40px; padding: 7px; display: grid; place-items: center; color: #9690ff; }
.focus-session-page .session-skip svg { width: 22px; height: 22px; fill: currentColor; }
.focus-session-page .session-play { width: 48px; height: 48px; display: grid; place-items: center; background: #aaa5ff; }
.focus-session-page .session-play svg { width: 23px; height: 23px; fill: currentColor; }
.focus-player { margin-top: 17px; padding: 23px 16px; text-align: center; border-radius: 16px; background: #f5f3ff; }
.eyebrow { color: #999; font-size: 9px; letter-spacing: 1.2px; }
.focus-player h2 { color: #46485a; font-size: 18px; }
.timer-display { margin: 17px 0; color: #7169ff; font-size: 42px; font-weight: 700; font-variant-numeric: tabular-nums; }
.player-controls { display: flex; justify-content: center; gap: 12px; }
.round-control { width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: #7775ff; font-size: 18px; }
.stop-control { background: #e97373; }
.focus-player > p { color: #999; font-size: 10px; }

.watch-hero { min-height: 124px; margin: -1px 0 9px; padding: 16px 14px; position: relative; overflow: hidden; display: flex; align-items: center; border-radius: 13px; background: #f1f0ff; }
.watch-hero-copy { width: 56%; position: relative; z-index: 1; transform: translateY(-5px); }
.watch-hero h1 { margin: 0 0 5px; color: #333652; font-size: 14px; line-height: 1.35; font-weight: 700; }
.watch-hero p { max-width: 145px; margin: 0; color: #bfbfbf; font-size: 10px; font-weight: 400; line-height: 1.45; }
.watch-hero > img { width: 53%; height: 120px; position: absolute; right: -3px; bottom: 0; object-fit: contain; object-position: center bottom; }
.watch-category { margin-top: 9px; }
.watch-category > h2 { margin: 0 0 8px; color: #333652; font-size: 14px; font-weight: 700; }
.episode-panel { padding: 10px 10px 11px; border: 2px solid #dedee4; border-radius: 12px; background: #fff; }
.episode-panel-heading { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.episode-panel-heading h3 { margin: 0; color: #333652; font-size: 12px; font-weight: 700; }
.episode-panel-heading button { padding: 4px 7px; border: 0; border-radius: 8px; color: #fff; background: #9992ff; font-size: 10px; font-weight: 400; }
.poster-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.watch-poster { aspect-ratio: .68; min-width: 0; padding: 0; position: relative; overflow: hidden; display: block; border: 0; border-radius: 7px; background: #f2f2f6; transition: transform .15s ease; }
.watch-poster img { width: 100%; height: 100%; display: block; object-fit: cover; }
.watch-poster:active { transform: scale(.96); }
.catalog-title-button { margin: 6px 0 0; padding: 0; border: 0; color: #333652; background: transparent; font-family: inherit; font-size: 12px; font-weight: 700; text-align: left; }
.watch-notice { margin: 9px 0 0; color: #7775ff; font-size: 10px; text-align: center; }
.watch-catalog-top { min-height: 40px; margin: -5px 0 15px; display: flex; align-items: center; gap: 8px; color: #999; }
.catalog-back { width: 30px; height: 36px; flex: 0 0 30px; align-self: center; padding: 0; display: grid; place-items: center; border: 0; border-radius: 0; color: #999; background: transparent; font-size: 0; }
.catalog-back::before { content: ''; width: 11px; height: 11px; border-left: 4px solid currentColor; border-bottom: 4px solid currentColor; border-radius: 2px; transform: rotate(45deg); }
.watch-catalog-top h1 { height: 36px; margin: 0; align-self: center; display: flex; align-items: center; color: #111; font-size: 15px; font-weight: 700; line-height: 1.3; }
.catalog-search { height: 38px; margin-bottom: 10px; padding: 0 11px; display: flex; align-items: center; gap: 7px; border: 2px solid #e4e3ed; border-radius: 10px; background: #fff; }
.catalog-search > span { color: #9992ff; font-size: 23px; line-height: 1; transform: rotate(-20deg); }
.catalog-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: #46485a; background: transparent; font-size: 11px; }
.catalog-search input::placeholder { color: #aaa; }
.catalog-filters { margin-bottom: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.catalog-filter-button { width: 100%; min-width: 0; height: 32px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: space-between; gap: 9px; border: 0; border-radius: 13px; color: #fff; background: #aaa4ff; font-size: 9px; font-weight: 600; }
.catalog-filter-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-filter-button i { width: 8px; height: 8px; flex: 0 0 auto; margin-top: -4px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 12px; }
.catalog-show { min-width: 0; }
.catalog-poster { width: 100%; aspect-ratio: .68; padding: 0; overflow: hidden; display: block; border: 0; border-radius: 8px; background: #f1f1f4; }
.catalog-poster img { width: 100%; height: 100%; display: block; object-fit: cover; }
.catalog-show h2 { margin: 7px 0 5px; color: #000; font-size: 15px; font-weight: 700; }
.catalog-genres { display: flex; flex-wrap: wrap; gap: 4px; }
.catalog-genres span { padding: 3px 6px; border-radius: 8px; color: #7775c9; background: #f1f0ff; font-size: 10px; font-weight: 400; line-height: 1.2; }
.catalog-empty { grid-column: 1 / -1; padding: 20px 10px; color: #999; font-size: 11px; text-align: center; }
.modal-overlay.filter-sheet-overlay { position: fixed; inset: 0; padding: 0; display: flex; align-items: flex-end; justify-content: center; }
.modal-overlay.filter-sheet-overlay .modal-position { width: min(100%, 412px); max-height: none; overflow: visible; }
.modal-overlay.item-purchase-overlay { position: fixed; inset: 0; padding: 0; display: flex; align-items: flex-end; justify-content: center; }
.modal-overlay.item-purchase-overlay .modal-position { width: min(100%, 412px); max-height: none; overflow: visible; }
.item-purchase-sheet { width: 100%; padding: 27px 16px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -8px 28px #181b2318; text-align: center; animation: sheet-up .2s ease-out; }
.item-purchase-sheet h2 { margin: 0 0 10px; color: #41435d; font-size: 15px; font-weight: 700; }
.item-purchase-card { width: 132px; min-height: 160px; margin: 0 auto; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 2px solid #dedee2; border-radius: 14px; }
.item-purchase-card > img { width: 76px; height: 69px; object-fit: contain; }
.item-purchase-card.is-ticket > img { width: 92px; height: 78px; }
.item-purchase-card > strong { color: #41435d; font-size: 15px; }
.item-purchase-price { display: inline-flex; align-items: center; gap: 4px; color: #7775ff; font-size: 13px; font-weight: 700; }
.item-purchase-price img { width: 25px; height: 25px; object-fit: contain; }
.item-purchase-confirm { width: 100%; min-height: 43px; margin-top: 24px; box-shadow: 0 4px 0 var(--deep-blue); font-size: 12px; }
.item-purchase-decline { margin-top: 15px; padding: 3px 10px; border: 0; color: #7775ff; background: transparent; font-size: 11px; font-weight: 700; }
.free-chest-offer-art { width: min(180px, 65%); height: 115px; margin: 0 auto 9px; display: block; object-fit: contain; }
.filter-sheet { width: 100%; min-height: 0; margin: 0; padding: 22px 24px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -8px 28px #181b2318; animation: sheet-up .2s ease-out; }
.filter-sheet h2 { margin: 0 0 14px; color: #797dff; font-size: 14px; font-weight: 700; text-align: center; }
.filter-sheet-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.filter-chip { min-height: 28px; padding: 4px 6px; border: 2px solid #aaa4ff; border-radius: 7px; color: #7775ff; background: #fff; font-size: 10px; font-weight: 400; line-height: 1.2; text-align: center; }
.filter-chip.is-selected { color: #fff; background: #9992ff; }
.filter-confirm { width: 100%; min-height: 43px; margin-top: 18px; color: #fff; box-shadow: 0 4px 0 var(--deep-blue); font-size: 14px; font-weight: 700; }
@keyframes sheet-up { from { opacity: .6; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.shop-hero, .reward-hero { padding: 9px 6px 18px; }
.shop-hero > span, .reward-hero > span { font-size: 42px; }
.shop-section { margin-top: 9px; }
.shop-section h2 { margin-top: 13px; }
.shop-item { min-height: 92px; padding: 10px; display: flex; align-items: center; gap: 10px; border: 2px solid #ececf4; border-radius: 13px; }
.shop-item-icon { width: 51px; height: 51px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: #fff1dc; font-size: 28px; }
.chest-icon { background: #f3e9ff; }
.shop-item-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.shop-item-copy strong { color: #484a61; font-size: 12px; }
.shop-item-copy span { color: #999; font-size: 9px; line-height: 1.4; }
.shop-item-copy small { color: #8278e8; font-size: 9px; }
.buy-button { min-width: 60px; min-height: 34px; padding: 6px 9px; border: 0; border-radius: 8px; color: #fff; background: #7775ff; font-size: 10px; font-weight: 700; }
.buy-button:disabled { opacity: .55; }
.inline-notice { color: #7775ff; font-size: 11px; text-align: center; }

.shop-feature-banner { min-height: 124px; padding: 16px 14px; position: relative; overflow: hidden; display: flex; align-items: center; border-radius: 14px; background: #f1f0ff; }
.shop-feature-copy { width: 56%; position: relative; z-index: 1; }
.shop-feature-copy h1 { margin: 0 0 5px; color: #333652; font-size: 14px; font-weight: 700; line-height: 1.35; }
.shop-feature-copy p { max-width: 145px; margin: 0; color: #bfbfbf; font-size: 10px; font-weight: 400; line-height: 1.45; }
.shop-feature-banner > img { width: 53%; height: 120px; position: absolute; right: -3px; bottom: 0; object-fit: contain; object-position: center bottom; }
.shop-tabs { height: 58px; margin: 16px 0 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid #e7e7e7; }
.shop-tab { min-width: 0; padding: 0 4px 10px; position: relative; border: 0; color: #bfbfbf; background: transparent; font: inherit; font-size: 14px; font-weight: 700; }
.shop-tab.is-active { color: #333652; }
.shop-tab.is-active::after { content: ''; height: 3px; position: absolute; right: 0; bottom: -1px; left: 0; background: #9992ff; }
.shop-section { margin-top: 13px; }
.shop-section h2 { margin: 0 0 9px; color: #333652; font-size: 14px; font-weight: 700; }
.shop-offer-card, .shop-product-card { min-height: 110px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border: 2px solid #dedee2; border-radius: 13px; background: #fff; }
.shop-offer-card > img { width: 74px; height: 74px; flex: 0 0 auto; object-fit: contain; }
.shop-offer-card > div, .shop-product-copy { min-width: 0; flex: 1; }
.shop-offer-card h3, .shop-product-copy h3 { margin: 0 0 5px; color: #333652; font-size: 12px; font-weight: 700; }
.shop-offer-card p, .shop-product-copy p { margin: 0; color: #bfbfbf; font-size: 10px; font-weight: 400; line-height: 1.4; }
.shop-offer-card button { margin-top: 7px; padding: 0; display: inline-flex; align-items: center; gap: 6px; border: 0; color: #797dff; background: transparent; font-size: 12px; font-weight: 700; }
.shop-offer-card button span { font-size: 16px; }
.diamond-pack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.diamond-pack-card { min-height: 136px; padding: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid #dedee2; border-radius: 13px; background: #fff; }
.diamond-pack-card img { width: 80px; height: 64px; margin-bottom: 2px; object-fit: contain; }
.diamond-pack-card strong { color: #333652; font-size: 12px; font-weight: 700; }
.diamond-pack-card span, .shop-product-copy button { font-size: 12px; font-weight: 700; }
.diamond-pack-card span { margin-top: 2px; color: #797dff; }
.shop-product-card { min-height: 112px; }
.shop-item-list .shop-product-card + .shop-product-card { margin-top: 10px; }
.shop-section > .shop-skin-card + .shop-skin-card { margin-top: 10px; }
.shop-product-art { width: 76px; height: 78px; flex: 0 0 auto; object-fit: contain; }
.shop-ticket-art { width: 76px; height: 64px; }
.shop-product-copy h3 { font-size: 12px; }
.shop-product-copy button { margin-top: 5px; padding: 0; display: inline-flex; align-items: center; gap: 4px; border: 0; color: #797dff; background: transparent; }
.shop-product-copy button img { width: 25px; height: 25px; object-fit: contain; }
.shop-skin-card > .shop-product-art { width: 92px; height: 92px; }
.shop-skin-owned { margin-top: 6px; color: #7775ff; font-size: 12px; font-weight: 700; }
.boss-avatar-choice.is-locked { position: relative; border-color: #e4e3ed; background: #f5f5f8; cursor: not-allowed; }
.boss-avatar-choice.is-locked img { opacity: .42; filter: grayscale(.65); }
.modal-overlay.shop-purchase-overlay { position: fixed; inset: 0; padding: 0; display: flex; align-items: flex-end; justify-content: center; }
.shop-purchase-sheet { width: min(100%, 412px); min-height: 0; padding: 20px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -8px 28px #181b2318; animation: sheet-up .2s ease-out; }
.shop-purchase-sheet h2 { margin: 0 0 12px; color: #41435d; font-size: 17px; font-weight: 700; text-align: center; }
.shop-confirm-item { width: 144px; min-height: 174px; padding: 11px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 2px solid #dedee2; border-radius: 14px; }
.shop-confirm-item > img { width: 76px; height: 69px; object-fit: contain; }
.shop-confirm-item > strong { color: #41435d; font-size: 15px; }
.shop-confirm-item > span { display: inline-flex; align-items: center; gap: 4px; color: #7775ff; font-size: 13px; font-weight: 700; }
.shop-confirm-item > span img { width: 25px; height: 25px; object-fit: contain; }
.shop-confirm-button { width: 100%; min-height: 43px; margin-top: 20px; box-shadow: 0 4px 0 var(--deep-blue); }
.shop-decline-button { min-height: 35px; margin-top: 12px; padding: 6px 12px; border: 0; color: #7775ff; background: transparent; font-size: 12px; font-weight: 700; }
.focus-shortage-dialog h2 { margin: 0 0 1px; color: #333652; font-size: 14px; font-weight: 700; }
.focus-shortage-dialog > p { margin: 0 0 3px; color: #bfbfbf; font-size: 10px; font-weight: 400; }
.focus-shortage-art { width: 260px; height: 184px; margin: 0 auto 5px; display: block; object-fit: contain; }
.focus-shortage-dialog .button, .focus-shortage-dialog .text-button { width: 100%; min-height: 45px; }
.focus-shortage-dialog .text-button { margin: 8px 0 0; border: 2px solid #aaa; border-radius: 7px; color: #7775ff; background: #fff; box-shadow: 0 3px 0 #bbb; font-size: 12px; font-weight: 700; }
.focus-shortage-dialog .button-primary, .focus-shortage-dialog .text-button { font-family: inherit; font-size: 14px; font-weight: 700; }
.strict-mode-dialog { padding: 22px 15px 18px; text-align: center; }
.strict-mode-dialog h2 { margin: 0 0 9px; color: #34364e; font-size: 17px; }
.strict-mode-dialog p { margin: 0 0 4px; font-size: 10px; }
.strict-mode-dialog img { width: 260px; height: 184px; margin: 0 auto 8px; display: block; object-fit: contain; }
.strict-mode-dialog .text-button { width: 100%; min-height: 35px; margin: 7px 0 0; border: 2px solid #aaa; border-radius: 7px; color: #7775ff; background: #fff; box-shadow: 0 3px 0 #bbb; font-size: 12px; font-weight: 700; }
.profile-edit-dialog h2 { margin-bottom: 14px; }
.profile-edit-dialog label { margin: 9px 0 5px; display: block; color: #45475e; font-size: 12px; font-weight: 700; }
.profile-edit-dialog input { width: 100%; height: 42px; padding: 0 10px; border: 2px solid #d8d8d8; border-radius: 8px; color: #45475e; background: #fff; font-size: 13px; }
.profile-edit-dialog .profile-edit-message { min-height: 16px; margin: 5px 0; color: #d34d58; font-size: 10px; }
.profile-edit-dialog .button { min-height: 42px; margin-top: 3px; font-size: 13px; }
.profile-edit-dialog .text-button { margin-top: 7px; }
.profile-info-dialog { text-align: center; }
.profile-info-dialog h2 { margin-bottom: 8px; }
.profile-info-dialog > img { width: 100%; height: 150px; display: block; object-fit: contain; }
.profile-info-dialog > p { margin: 8px 0 12px; }
.account-page { width: min(100vw, 412px); height: 100dvh; min-height: 100dvh; margin: 0 auto; padding: 0 24px 28px; overflow-y: auto; overscroll-behavior-y: contain; display: flex; flex-direction: column; align-items: stretch; background: #fff; }
.account-page-header { min-height: 62px; margin: 0 -24px 20px; padding: 0 18px; position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid #eee; background: #fff; }
.account-page-header button { width: 26px; height: 32px; padding: 0; display: grid; place-items: center; border: 0; color: #999; background: transparent; font-size: 0; }
.account-page-header button::before { width: 10px; height: 10px; content: ''; border-left: 4px solid currentColor; border-bottom: 4px solid currentColor; border-radius: 2px; transform: rotate(45deg); }
.account-page-header h1 { margin: 0; color: #bfbfbf; font-size: 16px; font-weight: 700; }
.account-avatar { width: 92px; height: 92px; margin: 0 auto 11px; overflow: hidden; display: grid; place-items: center; border-radius: 50%; background: #f0efff; }
.account-avatar img { width: 100%; height: 100%; object-fit: contain; }
.account-avatar-change { margin: 0 auto 28px; color: #7775ff; font-size: 12px; font-weight: 700; cursor: pointer; }
.account-page .account-avatar-change { display: block; padding: 0; border: 0; background: transparent; color: #797dff; font-family: inherit; font-size: 12px; font-weight: 700; }
.avatar-options-sheet { width: min(100%, 412px); padding: 18px 18px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -8px 28px #181b2318; animation: sheet-up .2s ease-out; }
.avatar-options-sheet h2 { margin: 0 0 16px; color: #333652; font-size: 16px; font-weight: 700; text-align: center; }
.avatar-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.avatar-choice { aspect-ratio: 1; padding: 5px; overflow: hidden; border: 2px solid transparent; border-radius: 14px; background: #f4f3ff; }
.avatar-choice.is-selected { border-color: #797dff; }
.avatar-choice img { width: 100%; height: 100%; object-fit: contain; }
.avatar-options-sheet .button { width: 100%; min-height: 44px; }
.modal-overlay.avatar-options-overlay { position: fixed; inset: 0; padding: 0; display: flex; align-items: flex-end; justify-content: center; background: rgb(0 0 0 / 18%); }
.modal-overlay.avatar-options-overlay .modal-position { width: min(100%, 412px); max-height: none; overflow: visible; }
.anime-stream-page { width: min(100vw, 412px); height: 100dvh; min-height: 100dvh; margin: 0 auto; padding: 0 20px 28px; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; background: #fff; }
.anime-episodes-page { position: relative; }
.product-screen:has(.anime-episodes-page) .page-content { padding-top: 0; }
.anime-episodes-poster { width: calc(100% + 44px); aspect-ratio: 16 / 9; margin: 0 -22px 20px; display: block; object-fit: cover; }
.anime-episodes-page .anime-stream-title { font-size: 16px; }
.anime-episodes-heading { margin: 20px 0 12px; color: #333652; font-size: 14px; font-weight: 700; }
.anime-video-shell { position: relative; margin: 0 -20px 25px; background: #10121a; }
.anime-video-stage { position: relative; }
.anime-video-shell video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #10121a; object-fit: contain; }
.anime-video-shell iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; background: #10121a; }
.anime-video-stage:fullscreen, .anime-video-stage:-webkit-full-screen { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; display: grid; place-items: center; background: #10121a; }
.anime-video-stage:fullscreen video, .anime-video-stage:-webkit-full-screen video { width: min(100vw, 177.7778dvh); height: min(56.25vw, 100dvh); max-width: 100%; max-height: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.anime-pip { width: min(320px, calc(100vw - 24px)); aspect-ratio: 16 / 9; position: fixed; z-index: 50; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(68px + 14px + env(safe-area-inset-bottom, 0px)); overflow: hidden; border-radius: 12px; background: #10121a; box-shadow: 0 4px 18px #0005; cursor: pointer; }
.anime-pip-drag-handle { height: 24px; position: absolute; z-index: 4; inset: 0 42px auto 0; display: grid; place-items: center; cursor: grab; touch-action: none; }
.anime-pip-drag-handle::after { width: 34px; height: 4px; position: relative; left: 21px; border-radius: 4px; background: #fff9; content: ""; }
.anime-pip.is-dragging, .anime-pip.is-dragging .anime-pip-drag-handle { cursor: grabbing; }
.anime-pip video { width: 100%; height: 100%; position: relative; z-index: 0; display: block; background: #10121a; object-fit: contain; pointer-events: none; }
.anime-pip iframe { width: 100%; height: 100%; position: relative; z-index: 0; display: block; border: 0; }
.anime-pip-controls { position: absolute; z-index: 2; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: #0002; opacity: 1; transition: opacity .2s ease; }
.anime-pip-controls button { width: 38px; height: 38px; padding: 6px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #0008; filter: drop-shadow(0 1px 3px #0008); }
.anime-pip-controls button svg { width: 24px; height: 24px; fill: currentColor; }
.anime-pip-controls button[data-pip-action="toggle-playback"] { width: 44px; height: 44px; }
.anime-pip-close { width: 30px; height: 30px; padding: 0; position: absolute; z-index: 3; top: 7px; right: 7px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #0009; font-size: 22px; line-height: 1; opacity: 1; transition: opacity .2s ease; }
.anime-pip-controls-hidden .anime-pip-close, .anime-pip-controls-hidden .anime-pip-controls { opacity: 0; pointer-events: none; }
.anime-back-control { width: 38px; height: 38px; padding: 7px; position: absolute; z-index: 2; top: 10px; left: 10px; display: grid; place-items: center; border: 0; border-radius: 0; color: #fff; background: transparent; cursor: pointer; }
.anime-back-control svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.anime-video-controls { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .2s ease; }
.anime-play-control { width: 48px; height: 48px; padding: 11px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgb(0 0 0 / 48%); cursor: pointer; pointer-events: auto; }
.anime-play-control svg { width: 26px; height: 26px; fill: currentColor; }
.anime-fullscreen-control { width: 34px; height: 34px; padding: 7px; position: absolute; right: 10px; bottom: 12px; display: grid; place-items: center; border: 0; border-radius: 0; color: #fff; background: transparent; cursor: pointer; pointer-events: auto; }
.anime-fullscreen-control svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stream-fullscreen-status { margin: 0; padding: 4px 8px; position: absolute; right: 50px; bottom: 12px; border-radius: 4px; color: #fff; background: #000b; font-size: 11px; pointer-events: none; }
.anime-video-seek { width: 100%; height: 3px; margin: 0; padding: 0; position: absolute; right: 0; bottom: 0; left: 0; appearance: none; background: transparent; cursor: pointer; pointer-events: auto; }
.anime-video-seek::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(to right, #9992ff var(--seek-progress, 0%), #fff var(--seek-progress, 0%)); }
.anime-video-seek::-webkit-slider-thumb { width: 8px; height: 8px; margin-top: -2.5px; appearance: none; border: 0; border-radius: 50%; background: #fff; }
.anime-video-seek::-moz-range-track { height: 3px; background: #fff; }
.anime-video-seek::-moz-range-progress { height: 3px; background: #9992ff; }
.anime-video-seek::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; }
.anime-video-shell.anime-controls-hidden .anime-video-controls { opacity: 0; pointer-events: none; }
.anime-stream-title { margin: 0 0 12px; color: #333652; font-size: 14px; font-weight: 700; }
.anime-stream-genres { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 4px; }
.catalog-genres span, .anime-stream-genres span { padding: 3px 6px; border: 0; border-radius: 8px; color: #7775c9; background: #f1f0ff; font-family: inherit; font-size: 10px; font-weight: 400; line-height: 1.2; }
.anime-stream-tabs { margin-bottom: 12px; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #eee; }
.anime-stream-tabs button { min-height: 38px; padding: 5px; border: 0; border-bottom: 3px solid transparent; color: #bfbfbf; background: transparent; font-family: inherit; font-size: 12px; font-weight: 700; }
.anime-stream-tabs button.is-active { border-bottom-color: #9992ff; color: #333652; }
.anime-stream-tab-content { min-height: 140px; }
.anime-description { margin: 13px 0; color: #bfbfbf; font-family: inherit; font-size: 10px; font-weight: 400; line-height: 1.55; text-align: justify; }
.anime-episode-card { width: 100%; min-height: 64px; padding: 12px; display: flex; align-items: center; border: 0; border-radius: 10px; background: #f1f0ff; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.anime-episode-list { display: grid; gap: 8px; }
.anime-episode-card.is-active, .anime-episode-unavailable { background: #f1f0ff; }
.anime-episode-unavailable strong { color: #77788a; }
.anime-episode-thumbnail { width: 88px; height: 50px; margin-right: 12px; flex: 0 0 auto; border-radius: 6px; object-fit: cover; }
.anime-episode-card span { min-width: 0; display: grid; gap: 8px; }
.anime-episode-card strong { color: #333652; font-size: 12px; font-weight: 700; }
.anime-episode-card small { color: #999; font-size: 10px; font-weight: 400; }
.anime-video-source { margin-top: 10px; display: grid; gap: 6px; color: #333652; font-size: 11px; font-weight: 700; }
.anime-video-source select { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #dedee4; border-radius: 8px; color: #46485a; background: #fff; font: inherit; }
.anime-video-source small { color: #999; font-size: 10px; font-weight: 400; }
.anime-similar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.anime-similar-item { min-width: 0; }
.anime-similar-card { width: 100%; padding: 0; overflow: hidden; display: block; border: 0; border-radius: 8px; background: transparent; text-align: left; }
.anime-similar-card img { width: 100%; aspect-ratio: .68; display: block; border-radius: 8px; object-fit: cover; }
.anime-similar-item > strong { margin-top: 7px; display: block; color: #333652; font-size: 12px; font-weight: 700; line-height: 1.4; }
.anime-video-unavailable { min-height: 190px; display: grid; justify-items: center; align-content: center; background: #12141b; }
.anime-video-unavailable img { width: 90px; height: 110px; object-fit: contain; }
.anime-video-unavailable p { margin: 8px; color: #fff; font-size: 11px; }
.anime-ticket-item > img { width: 84px; height: 76px; }
.transaction-page { display: grid; gap: 12px; padding-bottom: 18px; }
.transaction-status, .transaction-order, .transaction-payment { padding: 14px; border: 1px solid #e5e4ef; border-radius: 12px; background: #fff; }
.transaction-order, .transaction-qris-payment { border-width: 2px; }
.transaction-status { display: flex; align-items: center; gap: 9px; color: #b4771e; background: #fff9ec; }
.transaction-status.is-paid { color: #24834b; background: #effaf3; }
.transaction-status > span { font-size: 20px; }
.transaction-status strong { color: #333652; font-size: 12px; }
.transaction-order h2, .transaction-payment h2 { margin: 0 0 10px; color: #333652; font-size: 13px; font-weight: 700; }
.transaction-order > div, .transaction-recipient { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #f0f0f4; color: #888; font-size: 10px; }
.transaction-order > div strong, .transaction-recipient strong { color: #333652; font-size: 10px; text-align: right; }
.transaction-qris { width: min(100%, 320px); aspect-ratio: 1; margin: 2px auto; display: block; object-fit: contain; image-rendering: pixelated; }
.transaction-payment > p { margin: 9px 0 0; color: #999; font-size: 10px; line-height: 1.5; text-align: center; }
.transaction-processing { margin: -5px 0 0; color: #7775ff; font-size: 11px; font-weight: 700; text-align: center; }
.transaction-proof-box { position: relative; }
.transaction-proof-payment { padding: 0; border: 0; background: transparent; }
.transaction-proof-area { min-height: 78px; margin: 0; padding: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 2px dashed #e4e4e4; border-radius: 10px; color: #bfbfbf; background: #fff; font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; }
.transaction-proof-area.has-photo { min-height: 145px; padding: 12px; pointer-events: none; }
.transaction-proof-area.has-photo strong { display: none; }
.transaction-proof-preview { max-width: 100%; max-height: 125px; border-radius: 8px; object-fit: contain; }
.transaction-proof-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.transaction-proof-area:focus-visible { outline: none; }
.transaction-proof-status { margin-top: 5px; display: block; color: #aaa; font-size: 9px; text-align: center; }
.transaction-proof-status.has-error { color: #d92d38; }
.transaction-proof-remove { position: absolute; top: 8px; right: 8px; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #7775ff; font-size: 21px; line-height: 1; box-shadow: 0 2px 5px #0002; }
.transaction-proof-remove[hidden] { display: none; }
.purchase-history-page { display: grid; gap: 10px; padding-bottom: 16px; }
.purchase-history-illustration { height: 125px; margin: 55px 0 15px; position: relative; border-radius: 16px; background: #f1f0ff; }
.purchase-history-illustration img { width: 62%; height: 150px; position: absolute; top: -75px; left: 50%; transform: translateX(-50%); object-fit: contain; }
.purchase-history-empty .empty-state { min-height: 194px; box-sizing: border-box; align-content: center; padding: 24px 20px; gap: 12px; border-width: 2px; border-radius: 16px; }
.purchase-history-empty .empty-state strong { margin: 0; color: #333652; font-size: 14px; font-weight: 700; }
.purchase-history-empty .empty-state p { max-width: 300px; margin: 0; color: #bfbfbf; font-size: 10px; font-weight: 400; line-height: 1.45; }
.purchase-history-empty .empty-state .button { width: 100%; min-height: 46px; color: #fff; font-size: 14px; font-weight: 700; }
.purchase-history-list { display: grid; gap: 9px; }
.purchase-history-pagination { margin-top: 1px; display: flex; align-items: center; justify-content: center; gap: 14px; color: #bfbfbf; font-family: Poppins, sans-serif; font-size: 10px; font-weight: 400; }
.purchase-history-pagination button { width: 30px; height: 30px; padding: 0; position: relative; display: grid; place-items: center; border: 0; border-radius: 0; color: #999; background: transparent; }
.purchase-history-pagination button::before { width: 10px; height: 10px; content: ''; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; border-radius: 1px; transform: rotate(45deg); }
.purchase-history-pagination button:not([disabled]) { color: #797dff; }
.purchase-history-pagination button:last-child::before { transform: rotate(225deg); }
.purchase-history-pagination button:disabled { opacity: .45; }
.purchase-history-item { min-width: 0; padding: 13px; display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 2px solid #e5e4ef; border-radius: 11px; background: #fff; }
.purchase-history-proof { width: 66px; height: 66px; display: grid; place-items: center; overflow: hidden; border-radius: 7px; color: #999; background: #f7f7fa; font-size: 8px; text-align: center; }
.purchase-history-proof a, .purchase-history-proof img { width: 100%; height: 100%; display: block; }
.purchase-history-proof img { object-fit: cover; }
.purchase-history-details, .purchase-history-amount { min-width: 0; display: grid; align-content: start; gap: 4px; }
.purchase-history-amount { justify-items: end; text-align: right; }
.purchase-history-item strong { color: #333652; font-size: 12px; }
.purchase-history-item small, .purchase-invoice { color: #999; font-size: 9px; }
.purchase-status { color: #888; font-size: 10px; }
.purchase-status-paid { color: #24834b; }
.purchase-status-awaiting_verification { color: #b4771e; }
.purchase-history-message, .purchase-history-error { margin: 0; color: #888; font-size: 11px; text-align: center; }
.purchase-history-error { color: #d92d38; }
.purchase-history-error button { padding: 0; border: 0; color: #7775ff; background: transparent; font: inherit; font-weight: 700; }
.admin-panel { display: grid; gap: 14px; padding-bottom: 18px; }
.admin-menu { display: grid; gap: 10px; }
.admin-menu-item { width: 100%; min-height: 54px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #d9d9d9; border-radius: 10px; color: #333652; background: #fff; font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
.admin-menu-trailing { display: inline-flex; align-items: center; gap: 8px; }
.admin-menu-pending-count { min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: #fff; background: #f04444; font-size: 10px; font-weight: 700; line-height: 1; }
.admin-menu-item b { color: #999; font-size: 25px; font-weight: 400; line-height: 1; }
.admin-panel-section { padding: 14px; display: grid; gap: 10px; border: 1px solid #e5e4ef; border-radius: 12px; background: #fff; }
.admin-verification-section { border-width: 2px; }
.admin-history-section { border-width: 2px; }
.admin-add-video-section { border-width: 2px; }
.admin-latest-videos-section { border-width: 2px; }
.admin-panel-section h2 { margin: 0; color: #333652; font-size: 14px; }
.admin-panel-section > p { margin: 0; color: #888; font-size: 10px; line-height: 1.5; }
.admin-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.admin-section-heading > div { display: grid; gap: 5px; }
.admin-section-heading p { margin: 0; color: #888; font-size: 10px; line-height: 1.5; }
.admin-pending-count { flex: 0 0 auto; padding: 5px 8px; border-radius: 8px; color: #7775c9; background: #f1f0ff; font-size: 10px; font-weight: 400; line-height: 1.2; }
.admin-video-form { display: grid; gap: 7px; }
.admin-video-step { display: grid; gap: 7px; }
.admin-video-step[hidden] { display: none; }
.admin-video-step-actions { display: flex; align-items: center; justify-content: center; gap: 14px; color: #bfbfbf; font-size: 10px; }
.admin-video-step-actions [data-admin-step-indicator] { flex: 0 1 auto; color: #888; text-align: center; }
.admin-video-page-arrow, .catalog-pagination button { width: 30px; height: 30px; flex: 0 0 30px; padding: 0; position: relative; display: grid; place-items: center; border: 0; border-radius: 0; color: #999; background: transparent; }
.admin-video-page-arrow::before, .catalog-pagination button::before { width: 10px; height: 10px; content: ''; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; border-radius: 1px; transform: rotate(45deg); }
.admin-video-page-arrow[hidden], .admin-video-submit[hidden] { display: none; }
.admin-video-page-arrow:last-child::before, .catalog-pagination button:last-child::before { transform: rotate(225deg); }
.admin-video-page-arrow:not([disabled]), .catalog-pagination button:not([disabled]) { color: #797dff; }
.admin-video-page-arrow:disabled, .catalog-pagination button:disabled { opacity: .45; }
.admin-video-submit { width: 100%; font-size: 14px; }
.catalog-pagination { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 4px; color: #bfbfbf; font-size: 10px; }
.catalog-pagination span { min-width: 88px; text-align: center; }
.admin-video-form label { margin-top: 4px; color: #34364e; font-size: 11px; font-weight: 700; }
.admin-video-form input:not([type=file]), .admin-video-form select, .admin-video-form textarea { width: 100%; min-height: 39px; padding: 9px 11px; border: 2px solid #d9d8e5; border-radius: 8px; color: #45475e; background: #fff; font: inherit; font-size: 11px; }
.admin-select-wrap { position: relative; display: block; }
.admin-video-form select { padding-right: 38px; appearance: none; }
.admin-select-wrap::after { width: 7px; height: 7px; position: absolute; top: 14px; right: 17px; border-right: 3px solid #999; border-bottom: 3px solid #999; content: ''; transform: rotate(45deg); pointer-events: none; }
.admin-video-form textarea { min-height: 76px; resize: vertical; }
.admin-video-form select:focus, .admin-video-form input:focus, .admin-video-form textarea:focus { outline: none; border-color: #797dff; }
.admin-video-form [data-admin-show-fields] { display: grid; gap: 7px; }
.admin-video-form [data-admin-new-folder-field] { display: grid; gap: 7px; }
.admin-video-form [data-admin-new-folder-field][hidden] { display: none; }
.admin-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.admin-upload-box { position: relative; }
.admin-upload-area { width: 100%; min-height: 78px; margin: 0; padding: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; overflow: hidden; border: 2px dashed #e4e4e4; border-radius: 10px; color: #bfbfbf; background: #fff; font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; }
.admin-upload-area strong, .admin-upload-area span { overflow-wrap: anywhere; color: #bfbfbf; }
.admin-upload-area img { max-width: 100%; max-height: 125px; border-radius: 8px; object-fit: contain; }
.admin-video-form .admin-selected-file { font-size: 11px; font-weight: 400; }
.admin-upload-remove { width: 28px; height: 28px; padding: 0; position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #7775ff; font-size: 21px; line-height: 1; box-shadow: 0 2px 5px #0002; }
.admin-upload-remove[hidden] { display: none; }
.admin-upload-status { margin: -3px 0 0; color: #d92d38 !important; font-size: 10px !important; }
.admin-upload-status[hidden] { display: none; }
.admin-video-form .button-primary { font-size: 14px; }
.admin-video-form small { color: #888; font-size: 9px; line-height: 1.5; }
.admin-video-form .admin-video-rights-note { text-align: center; }
.admin-order-card { display: grid; gap: 9px; padding: 12px; border: 1px solid #eeedf4; border-radius: 10px; background: #fff; }
.admin-order-actions { display: grid; gap: 9px; }
.admin-order-actions > .button { min-height: 42px; font-size: 14px; }
.admin-reject-order { width: 100%; min-height: 42px; border: 2px solid #aaa; border-radius: 7px; color: #797dff; background: #fff; box-shadow: 0 3px 0 #bbb; font-size: 14px; font-weight: 700; cursor: pointer; }
.admin-reject-order:disabled { opacity: .55; cursor: not-allowed; }
.admin-order-summary { display: grid; gap: 4px; }
.admin-order-summary strong { color: #333652; font-size: 11px; }
.admin-order-summary small, .admin-video-row span, .admin-video-row small { overflow-wrap: anywhere; color: #888; font-size: 9px; }
.admin-proof-link { position: relative; width: 100%; max-height: 260px; display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: #f7f7fa; }
.admin-proof-link img { max-width: 100%; max-height: 260px; object-fit: contain; }
.admin-proof-link span { position: absolute; right: 0; bottom: 0; left: 0; padding: 7px 9px; color: #fff; background: #29283acc; font-size: 9px; text-align: center; }
.admin-order-card > p, .admin-empty, .admin-panel-message, .admin-panel-error { margin: 0; font-size: 10px; line-height: 1.5; }
.admin-empty-state { display: grid; justify-items: center; gap: 8px; padding: 8px 0; text-align: center; }
.admin-empty-state img { width: min(220px, 78%); height: 150px; object-fit: contain; }
.admin-order-actions > .button:disabled { color: #888; background: #eeeeF3; box-shadow: none; cursor: not-allowed; }
.admin-proof-missing { padding: 10px; border-radius: 7px; color: #8b681e; background: #fff7e7; text-align: center; }
.admin-orders-pagination { margin-top: 1px; display: flex; align-items: center; justify-content: center; gap: 14px; color: #bfbfbf; font-family: Poppins, sans-serif; font-size: 10px; font-weight: 400; }
.admin-orders-pagination button { width: 30px; height: 30px; padding: 0; position: relative; display: grid; place-items: center; border: 0; border-radius: 0; color: #999; background: transparent; }
.admin-orders-pagination button::before { width: 10px; height: 10px; content: ''; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; border-radius: 1px; transform: rotate(45deg); }
.admin-orders-pagination button:not([disabled]) { color: #797dff; }
.admin-orders-pagination button:last-child::before { transform: rotate(225deg); }
.admin-orders-pagination button:disabled { opacity: .45; cursor: default; }
.admin-empty { color: #999; text-align: center; }
.admin-panel-message { color: #24834b; }
.admin-panel-error { color: #d92d38; }
.admin-video-row { display: grid; gap: 4px; padding: 9px 0; border-top: 1px solid #eeedf4; }
.admin-video-row strong { color: #333652; font-size: 11px; }
.admin-verified-order { min-width: 0; padding: 9px 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 10px; border-top: 1px solid #eeedf4; }
.admin-verified-proof { width: 92px; height: 76px; display: grid; place-items: center; overflow: hidden; border-radius: 7px; color: #999; background: #f7f7fa; font-size: 8px; text-align: center; }
.admin-verified-proof a { width: 100%; height: 100%; display: grid; place-items: center; }
.admin-verified-proof img { width: 100%; height: 100%; object-fit: cover; }
.admin-verified-details { min-width: 0; display: grid; gap: 4px; }
.admin-verified-heading { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-verified-heading strong { min-width: 0; overflow-wrap: anywhere; }
.admin-verified-heading .task-delete { width: 28px; height: 28px; flex-basis: 28px; padding: 0; place-items: center; }
.admin-verified-heading .task-delete img { width: 18px; height: 18px; }
.admin-verified-details strong { color: #333652; font-size: 11px; }
.admin-verified-details small { overflow-wrap: anywhere; color: #888; font-size: 9px; }
.admin-order-status { color: #24834b; font-size: 10px; font-weight: 700; }
.admin-order-status.is-rejected { color: #d92d38; }
.media-stream-page video { width: 100%; max-height: min(64vh, 520px); display: block; border-radius: 12px; background: #111; }
.media-stream-placeholder { width: 100%; aspect-ratio: 16 / 9; position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 12px; background: #111; }
.media-stream-placeholder img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; opacity: .55; }
.media-stream-placeholder span { z-index: 1; padding: 9px 13px; border-radius: 8px; color: #fff; background: #171725b8; font-size: 12px; font-weight: 600; text-align: center; }
.media-stream-page h2 { margin: 14px 0 5px; color: #333652; font-size: 16px; }
.media-stream-page p { margin: 0; color: #888; font-size: 11px; }
.media-stream-page .media-stream-empty { margin-top: 8px; }
.media-stream-description { margin-top: 10px !important; line-height: 1.5; white-space: pre-wrap; }
.catalog-latest-episode { margin-top: 4px; display: block; color: #888; font-size: 9px; }
.transaction-cancel { width: 100%; min-height: 44px; border-width: 2px; }
.transaction-pay { width: 100%; min-height: 48px; }
.account-data-form { display: grid; gap: 7px; }
.account-data-form label { margin-top: 3px; color: #34364e; font-size: 11px; font-weight: 700; }
.account-data-form input { width: 100%; height: 40px; padding: 0 11px; border: 2px solid #e2e2e2; border-radius: 10px; color: #45475e; background: #fff; font-size: 12px; }
.account-data-form input:focus,
.account-data-form input:focus-visible { border-color: #e2e2e2; outline: none; box-shadow: none; }
.account-data-form input::placeholder { color: #aaa; }
.account-data-form > p { min-height: 15px; margin: 0; color: #7775ff; font-size: 10px; }
.account-delete-button { width: 100%; min-height: 40px; margin-top: 12px; border: 2px solid #aaa; border-radius: 9px; color: #f04444; background: #fff; box-shadow: 0 3px 0 #bbb; font-size: 13px; font-weight: 700; }
.account-delete-confirm { color: #fff; background: #f04444; box-shadow: 0 4px 0 #bc3030; }
.shop-shortage-dialog h2 { margin-top: 0; font-size: 16px; }
.shop-shortage-dialog > p { margin: 7px 0 8px; font-size: 10px; }
.shop-shortage-art { width: 220px; height: 158px; margin: 0 auto 11px; display: block; object-fit: contain; }
.shop-shortage-dialog .button, .shop-shortage-dialog .text-button { width: 100%; }

.chest-card { margin: 8px 0 14px; padding: 18px 15px; display: grid; justify-items: center; text-align: center; border-radius: 14px; background: #f5f0ff; }
.chest-visual { font-size: 55px; }
.chest-card > strong { margin-top: 5px; color: #484a61; font-size: 14px; }
.chest-card p { color: #999; font-size: 10px; line-height: 1.5; }
.chest-card .button { min-height: 43px; }
.daily-reward { padding: 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #eee; border-radius: 12px; }
.daily-reward div { display: grid; gap: 4px; }
.daily-reward strong { color: #4d4f64; font-size: 12px; }
.daily-reward span { color: #999; font-size: 9px; }

.mission-hero { min-height: 124px; margin: -1px 0 9px; padding: 16px 14px; border-radius: 13px; }
.mission-hero-copy { width: 56%; position: relative; z-index: 1; }
.mission-hero-copy h1 { margin: 0 0 5px; color: #333652; font-size: 16px; font-weight: 700; }
.mission-hero-copy p { max-width: 180px; margin: 0; color: #bfbfbf; font-size: 10px; font-weight: 400; line-height: 1.45; }
.mission-hero-art { width: 53%; height: 120px; position: absolute; right: -3px; bottom: 0; display: flex; align-items: flex-end; justify-content: center; }
.mission-hero-kids { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.mission-hero-chest { width: 55px; height: 55px; position: absolute; right: 36%; bottom: 12px; object-fit: contain; filter: drop-shadow(0 3px 2px #5752d633); }
.daily-missions-title { margin: 26px 0 4px; color: #333652; font-size: 14px; font-weight: 700; }
.mission-summary { margin-bottom: 15px; color: #bfbfbf; font-size: 10px; font-weight: 400; }
.mission-list { display: grid; gap: 14px; }
.mission-row { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mission-copy { min-width: 0; flex: 1; }
.mission-copy h3 { margin: 0 0 11px; color: #333652; font-size: 12px; font-weight: 700; }
.mission-progress { width: 100%; height: 9px; position: relative; overflow: hidden; border-radius: 9px; background: #eee; }
.mission-progress > span { height: 100%; display: block; border-radius: inherit; background: #aaa8ff; transition: width .25s ease; }
.mission-progress.is-done { background: #c4c2ff; }
.mission-progress strong { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 8px; line-height: 9px; text-shadow: 0 1px 2px #6965d6; }
.mission-copy small { display: block; margin-top: 5px; color: #bfbfbf; font-size: 8px; font-weight: 400; }
.mission-chest { width: 72px; height: 72px; flex: 0 0 72px; padding: 2px; position: relative; display: grid; place-items: center; border: 0; background: transparent; }
.mission-chest img { width: 100%; height: 100%; object-fit: contain; }
.mission-chest::after { content: ""; width: 42px; height: 8px; position: absolute; right: 15px; bottom: 0; left: 15px; z-index: 0; border-radius: 50%; background: #c76527a8; filter: blur(4px); opacity: 0; }
.mission-chest img { position: relative; z-index: 1; }
.mission-chest:disabled { cursor: default; opacity: 1; }
.mission-chest.is-ready { animation: chest-bob 1.35s ease-in-out infinite; cursor: pointer; }
.mission-chest.is-ready::after { opacity: .65; animation: mission-shadow 1.35s ease-in-out infinite; }
.mission-chest.is-ready:active { animation-play-state: paused; transform: scale(.95); }
.mission-opened .mission-chest img { width: 90%; height: 90%; object-fit: contain; }
.mission-opened .mission-chest::after { opacity: .6; }
.mission-row.mission-complete .mission-copy small,
.mission-row.mission-opened .mission-copy small { color: #797dff; }
.mission-reward-image { width: 104px; height: 104px; margin: 0 auto 8px; display: block; object-fit: contain; }
@keyframes chest-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes mission-shadow { 0%, 100% { transform: scaleX(1); opacity: .65; } 50% { transform: scaleX(.75); opacity: .42; } }
@media (prefers-reduced-motion: reduce) { .mission-chest.is-ready, .mission-chest.is-ready::after { animation: none; } }
.chest-opening-page { width: min(100vw, 412px); height: 100dvh; min-height: 520px; margin-inline: auto; position: relative; overflow: hidden; background: #ffcf86; }
.chest-opening-title { position: absolute; top: 31%; left: 0; width: 100%; margin: 0; color: #fff; font-size: 20px; font-weight: 700; text-align: center; }
.chest-opening-trigger { width: 132px; height: 132px; padding: 4px; position: absolute; top: 42%; left: 50%; z-index: 1; display: grid; place-items: center; border: 0; background: transparent; transform: translateX(-50%); animation: chest-open-bob 1.25s ease-in-out infinite; }
.chest-opening-trigger img { width: 100%; height: 100%; object-fit: contain; }
.chest-opening-trigger.is-open { animation: chest-unlock .62s cubic-bezier(.2,.75,.25,1) both; }
.chest-opening-shadow { width: 82px; height: 15px; position: absolute; top: calc(42% + 116px); left: 50%; border-radius: 50%; background: #c85b1c99; filter: blur(5px); transform: translateX(-50%); animation: chest-shadow 1.25s ease-in-out infinite; }
.chest-opening-shadow.is-open { animation: none; width: 120px; height: 18px; opacity: .75; }
.chest-opening-hint { position: absolute; top: calc(42% + 132px); width: 100%; margin: 0; color: #fff; font-size: 11px; font-weight: 600; text-align: center; }
.chest-reward-page { width: min(100vw, 412px); height: 100dvh; min-height: 520px; margin-inline: auto; padding: 24px 16px 28px; position: relative; background: #fff; }
.chest-reward-card { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.chest-reward-page h1 { margin: 32vh 0 0; color: #797dff; font-size: 14px; line-height: 1.4; font-weight: 700; }
.chest-reward-card img { width: 150px; height: 110px; margin: 22px auto 0; object-fit: contain; }
.chest-reward-card strong { color: #46485f; font-size: 11px; }
.chest-reward-page p { max-width: 340px; margin: 36px 0 0; color: #333652; font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; }
.chest-reward-page p strong { color: #7775ff; }
.chest-reward-page button { position: absolute; bottom: 28px; left: 50%; width: min(calc(100% - 40px), 350px); min-height: 52px; margin: 0; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 700; }
.chest-reward-page button:active { transform: translateX(-50%); }
.chest-reward-continue { width: 100%; min-height: 47px; position: absolute; right: 20px; bottom: 28px; left: 20px; width: calc(100% - 40px); }
.mission-reward-image { width: 104px; height: 104px; margin: 0 auto 8px; display: block; object-fit: contain; }
@keyframes chest-shadow { 0%, 100% { transform: translateX(-50%) scaleX(1); opacity: .7; } 50% { transform: translateX(-50%) scaleX(.78); opacity: .45; } }
@keyframes chest-unlock { 0% { transform: translateX(-50%) scale(.8); } 65% { transform: translateX(-50%) scale(1.12); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes chest-open-bob { 0%, 100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,-8px); } }
@media (prefers-reduced-motion: reduce) { .chest-opening-trigger, .chest-opening-shadow { animation: none; } }

.profile-card { padding: 10px 2px 18px; }
.profile-avatar { width: 67px; height: 67px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: #f0efff; font-size: 35px; }
.profile-stats { grid-template-columns: repeat(3, 1fr); margin-top: 15px; }
.profile-stats div { border-color: #ecebff; }
.profile-stats div span { color: #999; }
.profile-stats div strong { color: #7775ff; }
.mood-summary { padding: 2px 3px; }
.mood-summary h2 { margin-bottom: 10px; }
.mood-summary-row { padding: 9px 2px; display: flex; justify-content: space-between; border-bottom: 1px solid #f0f0f0; color: #656677; font-size: 11px; text-transform: capitalize; }
.mood-summary-row strong { color: #7775ff; }
.profile-banner { height: 132px; position: relative; overflow: hidden; background: #f1f0ff; }
.profile-banner h1 { margin: 0; padding: 17px 12px; color: #333652; font-size: 16px; font-weight: 700; }
.profile-avatar-window { width: 138px; height: 112px; position: absolute; bottom: 0; left: 50%; overflow: hidden; transform: translateX(-50%); }
.profile-avatar-window img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.profile-settings { padding: 8px 22px 0; }
.profile-settings-section { margin-bottom: 9px; }
.profile-settings-section > h2 { margin: 0 0 6px; color: #333652; font-size: 14px; font-weight: 700; }
.profile-settings-card { overflow: hidden; border: 2px solid #d8d8d8; border-radius: 9px; background: #fff; }
.profile-settings-card > button:not(.strict-toggle) { width: 100%; min-height: 43px; padding: 7px 12px; display: flex; align-items: center; justify-content: space-between; border: 0; color: #333652; background: #fff; font-size: 12px; font-weight: 700; text-align: left; }
.profile-settings-card > button + button { border-top: 2px solid #e4e4e4 !important; }
.profile-settings-card > .message-entry { position: relative; }
.profile-settings-card > .message-entry .message-count-badge { margin-left: auto; margin-right: 8px; }
.profile-settings-card > button b { width: 10px; height: 10px; display: block; border-top: 3px solid #999; border-right: 3px solid #999; color: transparent; font-size: 0; line-height: 0; transform: rotate(45deg); }
.profile-settings-card.preference-row { min-height: 44px; padding: 5px 12px; display: flex; align-items: center; justify-content: space-between; color: #333652; font-size: 12px; font-weight: 700; }
.messages-page { display: grid; gap: 10px; }
.message-list { display: grid; gap: 9px; }
.message-card { min-width: 0; padding: 12px; display: grid; grid-template-columns: 66px minmax(0, 1fr) 28px; align-items: start; gap: 10px; border: 2px solid #e2e2e2; border-radius: 10px; background: #fff; }
.message-card-icon { width: 66px; height: 66px; display: block; object-fit: contain; }
.message-card-copy { min-width: 0; }
.message-delete { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 2px solid #f36565; border-radius: 7px; background: #fff; }
.message-delete img { width: 18px; height: 18px; display: block; object-fit: contain; }
.message-card h2 { margin: 0 0 5px; color: #333652; font-size: 12px; font-weight: 700; }
.message-card p { margin: 0 0 5px; color: #656677; font-size: 10px; line-height: 1.5; }
.message-card time { color: #999; font-size: 9px; }
.message-pagination { margin-top: 1px; display: flex; align-items: center; justify-content: center; gap: 14px; color: #bfbfbf; font-size: 10px; }
.message-pagination button { width: 30px; height: 30px; padding: 0; position: relative; display: grid; place-items: center; border: 0; color: #999; background: transparent; }
.message-pagination button::before { width: 10px; height: 10px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; content: ""; transform: rotate(45deg); }
.message-pagination button:last-child::before { transform: rotate(225deg); }
.message-pagination button:not(:disabled) { color: #797dff; }
.message-pagination button:disabled { opacity: .45; }
.messages-empty-state { min-height: calc(100dvh - 183px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.messages-empty-state img { width: min(260px, 78%); height: 184px; object-fit: contain; }
.onboarding-overlay .modal-position { width: min(100%, 352px); }
.onboarding-dialog { padding: 22px 20px 18px; text-align: center; }
.onboarding-dialog h2 { margin: 0 0 14px; color: #333652; font-size: 17px; font-weight: 700; }
.onboarding-dialog p { margin: 0 0 12px; color: #999; font-size: 11px; line-height: 1.55; text-align: justify; }
.onboarding-dialog > img { width: 100%; height: 190px; margin: 2px auto 12px; display: block; object-fit: contain; }
.onboarding-dialog .button-primary { min-height: 45px; margin-top: 0; font-size: 13px; }
.task-onboarding-dialog > img { height: 150px; margin: 10px auto 12px; }
.task-onboarding-dialog > .button-primary { margin-top: 0; }
.modal-overlay.onboarding-overlay { padding: 18px; background: rgb(0 0 0 / 25%); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.onboarding-overlay .modal-position { width: min(100%, 352px); max-height: 92dvh; overflow-y: auto; }
.quest-onboarding-dialog { width: 100%; display: flex; flex-direction: column; }
.quest-onboarding-art-window { height: 150px; position: relative; z-index: 1; overflow: hidden; border-radius: 24px 24px 0 0; background: transparent; }
.diary-onboarding-art { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 26%; }
.boss-fight-onboarding-art { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
.quest-onboarding-card { position: relative; z-index: 2; margin-top: -1px; padding: 22px 19px 18px; border-radius: 24px; text-align: center; }
.dialog.quest-onboarding-card h2 { margin: 0 0 15px; color: #333652; font-size: 16px; font-weight: 700; text-align: center; }
.dialog.quest-onboarding-card p { width: 100%; max-width: none; margin: 0 0 12px; color: #aaa; font-size: 12px; font-weight: 400; line-height: 1.5; text-align: justify; }
.quest-onboarding-card .button-primary { min-height: 45px; margin-top: 0; font-size: 13px; }
@media (max-height: 480px) {
  .quest-onboarding-art-window { height: 120px; }
}
.messages-empty-state p { margin: 0; color: #bfbfbf; font-size: 14px; font-weight: 700; }
.strict-toggle { width: 42px; height: 24px; padding: 0; display: flex; align-items: center; justify-content: flex-start; border: 0; border-radius: 13px; background: #aaa; }
.strict-toggle i { width: 24px; height: 24px; flex: 0 0 24px; border: 3px solid #aaa; border-radius: 8px; background: #fff; box-shadow: none; transition: transform .15s ease; }
.strict-toggle.is-on { justify-content: flex-end; border-color: #7775ff; background: #aaa4ff; }
.strict-toggle.is-on i { border-color: #7775ff; }
.profile-logout,
.auth-google-button { width: 100%; height: 45px; min-height: 45px; margin-top: 2px; border: 2px solid #aaa; border-radius: 7px; color: #797dff; background: #fff; box-shadow: 0 3px 0 #bbb; font-size: 14px; font-weight: 700; }
.profile-legal { margin-top: 13px; display: grid; justify-items: start; }
.profile-legal button { padding: 4px 0; border: 0; color: #797dff; background: transparent; font-size: 12px; font-weight: 700; }
.performance-page { padding: 8px 0 0; }
.product-screen:has(.performance-page) { padding-bottom: 54px; }
.product-screen:has(.performance-page) .page-content { padding-bottom: 12px; }
.performance-page > h2 { margin: 0 0 14px; color: #333652; font-size: 14px; font-weight: 700; }
.performance-empty-state { padding-top: 10px; }
.performance-empty-illustration { height: 125px; margin: 55px 0 15px; position: relative; border-radius: 16px; background: #f1f0ff; }
.performance-empty-illustration img { width: 62%; height: 150px; position: absolute; top: -75px; left: 50%; transform: translateX(-50%); object-fit: contain; }
.performance-empty-state .empty-state { min-height: 194px; box-sizing: border-box; align-content: center; padding: 24px 20px; gap: 12px; border-width: 2px; border-radius: 16px; }
.performance-empty-state .empty-state strong { margin: 0; color: #333652; font-size: 14px; font-weight: 700; }
.performance-empty-state .empty-state p { max-width: 300px; margin: 0; color: #bfbfbf; font-size: 10px; font-weight: 400; line-height: 1.45; }
.performance-empty-state .empty-state .button { width: 100%; min-height: 46px; color: #fff; font-size: 14px; font-weight: 700; }
.performance-chart-card { padding: 12px 10px 13px; border: 2px solid #ddd; border-radius: 13px; background: #fff; }
.performance-chart { width: 100%; display: block; overflow: visible; }
.performance-chart text { font-family: inherit; }
.performance-chart-days { fill: #797dff; font-size: 10px; font-weight: 400; text-anchor: middle; }
.performance-chart-count { fill: #333652; font-size: 9px; font-weight: 700; text-anchor: middle; }
.performance-chart-bar { fill: #a29dff; }
.performance-chart-baseline { stroke: #ececf2; stroke-width: 1; }
.performance-chart-mood { fill: none; stroke: #333652; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.performance-chart-dot { fill: #333652; }
.performance-chart-empty { fill: #bfbfbf; font-size: 10px; text-anchor: middle; }
.performance-chart-caption { margin: 0 0 10px; color: #333652; font-size: 12px; font-weight: 700; text-align: center; }
.performance-chart-legend { margin-top: 16px; display: flex; justify-content: center; gap: 16px; color: #bfbfbf; font-size: 10px; font-weight: 400; }
.performance-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.performance-legend-bar { width: 12px; height: 12px; border-radius: 0; background: conic-gradient(#f36565 0deg, #fecb7e 72deg, #2ee659 144deg, #00d9d2 216deg, #3985ff 288deg, #ed25d7 330deg, #f36565 360deg); }
.performance-legend-line { width: 14px; height: 2px; background: #333652; }
.performance-history { margin-top: 16px; }
.performance-history h3 { margin: 0 0 8px; color: #333652; font-size: 14px; font-weight: 700; }
.performance-history-list { display: grid; gap: 8px; }
.performance-history-row { min-width: 0; padding: 10px 11px; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 2px solid #e2e2e2; border-radius: 10px; background: #fff; }
.performance-history-photo { width: 56px; height: 56px; padding: 0; overflow: hidden; border: 0; border-radius: 7px; background: #f4f4f8; }
.performance-history-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.performance-history-copy { min-width: 0; display: grid; gap: 4px; }
.performance-history-copy strong { overflow: hidden; color: #333652; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.performance-history-copy small { color: #bfbfbf; font-size: 10px; }
.performance-history-description { color: #656677; font-size: 10px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.performance-history-mood { width: 34px; height: 34px; flex: 0 0 34px; display: block; object-fit: contain; }
.performance-history-empty { padding: 16px 10px; border: 2px dashed #ddd; border-radius: 10px; color: #bfbfbf; font-size: 10px; text-align: center; }
.performance-history-pagination { margin: 10px 0 18px; display: flex; align-items: center; justify-content: center; gap: 14px; color: #bfbfbf; font-family: Poppins, sans-serif; font-size: 10px; font-weight: 400; }
.performance-history-pagination button { width: 30px; height: 30px; padding: 0; position: relative; display: grid; place-items: center; border: 0; border-radius: 0; color: #999; background: transparent; }
.performance-history-pagination button::before { width: 10px; height: 10px; content: ''; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; border-radius: 1px; transform: rotate(45deg); }
.performance-history-pagination button[data-page]:not([disabled]) { color: #797dff; }
.performance-history-pagination button:last-child::before { transform: rotate(225deg); }
.performance-history-pagination button:disabled { opacity: .45; }
.task-list-pagination { margin: 10px 0 2px; display: flex; align-items: center; justify-content: center; gap: 14px; color: #bfbfbf; font-family: Poppins, sans-serif; font-size: 10px; font-weight: 400; }
.task-list-pagination button { width: 30px; height: 30px; padding: 0; position: relative; display: grid; place-items: center; border: 0; border-radius: 0; color: #999; background: transparent; }
.task-list-pagination button::before { width: 10px; height: 10px; content: ''; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; border-radius: 1px; transform: rotate(45deg); }
.task-list-pagination button:not([disabled]) { color: #797dff; }
.task-list-pagination button:last-child::before { transform: rotate(225deg); }
.task-list-pagination button:disabled { opacity: .45; }
.text-button { display: block; margin: 12px auto; padding: 8px 12px; border: 0; color: #7775ff; background: transparent; font-size: 11px; font-weight: 700; }

.modal-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgb(0 0 0 / 25%); animation: overlay-in .16s ease-out; }
.modal-position { width: min(100%, 352px); max-height: 92dvh; overflow-y: auto; }
.dialog { position: relative; width: 100%; padding: 22px 19px 18px; border-radius: 19px; background: #fff; box-shadow: 0 16px 48px #2222; animation: dialog-in .2s cubic-bezier(.2,.8,.2,1); }
.dialog h2 { margin: 0 0 15px; color: #41435d; font-size: 17px; text-align: center; }
.dialog p { color: #999; font-size: 11px; line-height: 1.5; text-align: center; }
.dialog .button { min-height: 45px; margin-top: 12px; font-size: 11px; }
.dialog-close { position: absolute; top: 11px; right: 11px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #aaa; background: #f7f7f7; }
.dialog-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.task-dialog h2 { margin-bottom: 17px; }
.task-dialog input:not([type=file]) { height: 42px; margin-bottom: 9px; border-color: #aaa; font-size: 11px; }
.upload-area { min-height: 102px; margin: 1px 0 8px; padding: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px dashed #aaa; border-radius: 11px; color: #999; font-size: 10px; cursor: pointer; }
.upload-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 5px; background: #eee; font-size: 17px; }
.upload-area small { color: #aaa; font-size: 9px; }
.upload-area.upload-error { border-color: #ef4444; color: #d92d38; }
.upload-area.has-photo { flex-direction: row; flex-wrap: wrap; }
.upload-preview { max-width: 100%; max-height: 110px; border-radius: 8px; object-fit: contain; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.analysis-dialog { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.analysis-dialog h2 { margin-bottom: 20px; }
.analysis-spinner { width: 39px; height: 39px; border: 6px solid #eeedff; border-top-color: #8984ff; border-radius: 50%; animation: spin .8s linear infinite; }
.analysis-dialog p { margin-bottom: 3px; }
.analysis-dialog small, .demo-note { color: #aaa; font-size: 9px; text-align: center; }
.result-dialog, .focus-gate { text-align: center; }
.result-icon { margin: 2px auto 9px; font-size: 43px; }
.task-added-art { width: 174px; height: 142px; margin: 0 auto 10px; display: block; object-fit: contain; }
.task-added-dialog h2 { margin: 0 0 10px; color: #333652; font-size: 14px; font-weight: 700; }
.task-added-dialog p { margin: 0 0 6px; color: #bfbfbf; font-size: 12px; font-weight: 700; }
.task-added-dialog .button-primary { min-height: 48px; margin-top: 10px; color: #fff; font-size: 14px; font-weight: 700; }
.result-dialog .button, .focus-gate .button { width: 100%; }
.mood-dialog h2 { margin: 0 0 10px; color: #333652; font-size: 14px; font-weight: 700; }
.mood-dialog > p { margin: 0 0 14px; color: #bfbfbf; font-size: 10px; font-weight: 400; }
.mood-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mood-choice { width: 100%; aspect-ratio: 1; padding: 2px; overflow: hidden; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; opacity: .45; transition: opacity .12s ease; }
.mood-choice img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }
.mood-choice.selected { opacity: 1; }
.mood-dialog .button:disabled { opacity: .55; cursor: not-allowed; }
.mood-dialog .button-primary { color: #fff; background: var(--lavender); box-shadow: 0 4px 0 var(--deep-blue); font-size: 14px; font-weight: 700; }
.item-availability { padding: 9px; border-radius: 8px; background: #f4f1ff; }
.focus-gate .text-button, .result-dialog .text-button { margin-bottom: 0; }
.demo-note { padding: 9px; border-radius: 8px; background: #f7f7fa; line-height: 1.5; }

/* Shared header and focus typography */
.product-header > span,
.product-header .mode-page-heading h1,
.product-header .home-page-title { color: #bfbfbf; font-size: 16px; font-weight: 700; }
.product-header .mode-page-heading .catalog-back::before { width: 11px; height: 11px; border-left: 4px solid currentColor; border-bottom: 4px solid currentColor; border-radius: 2px; }
.product-header .inventory-bar { gap: 6px; }
.product-header .inventory-item { width: auto; min-height: 0; gap: 3px; color: #797dff; font-size: 14px; font-weight: 700; }
.product-header .item-token { width: 16px; height: 16px; }
.product-header .item-token img,
.product-header .token-chest img,
.product-header .token-crystal img { width: 16px; height: 16px; }
.product-header .token-chest,
.product-header .token-chest img { width: 32px; height: 32px; }
.product-header .token-hourglass,
.product-header .token-hourglass img,
.product-header .token-crystal,
.product-header .token-crystal img { width: 28px; height: 28px; }
.product-screen .noise-option strong { color: #333652; font-size: 12px; font-weight: 700; }
.product-screen .noise-option small { font-size: 10px; font-weight: 400; }
.noise-list > .noise-option { box-sizing: border-box; border: 2px solid #e4e4e4; }
.focus-session-page .focus-recommendations { box-sizing: border-box; border: 0; }
.focus-session-art { width: min(100%, 343px); height: min(343px, calc(100vw - 30px)); margin: 0 auto; aspect-ratio: 1; object-fit: cover; }
.focus-session-page > h2,
.focus-recommendations h3 { color: #333652; font-size: 14px; font-weight: 700; }
.focus-session-subtitle,
.focus-recommendation-copy small { font-size: 12px; font-weight: 400; }
.focus-session-page > h2 { color: #333652; font-size: 14px; font-weight: 700; }
.focus-recommendation-copy strong { color: #333652; font-size: 12px; font-weight: 700; }
.focus-session-subtitle { color: #bfbfbf; font-size: 12px; font-weight: 400; }
.focus-session-time { color: #bfbfbf; font-size: 10px; font-weight: 400; }
.focus-recommendations h3 { color: #333652; font-size: 14px; font-weight: 700; }
.focus-recommendation-copy small { color: #bfbfbf; font-size: 10px; font-weight: 400; }
.focus-gate-sheet h2,
.item-purchase-sheet h2 { color: #333652; font-size: 14px; font-weight: 700; }
.item-purchase-sheet .item-purchase-card > strong { font-size: 14px; font-weight: 700; }
.free-chest-offer-dialog .button-primary { font-size: 14px; font-weight: 700; }
.free-chest-offer-dialog h2 { color: #333652; font-size: 14px; font-weight: 700; }
.focus-gate-item strong,
.item-purchase-card > strong { color: #333652; font-size: 14px; font-weight: 700; }
.focus-gate-confirm,
.focus-gate-sheet .shop-decline-button,
.item-purchase-confirm,
.item-purchase-decline { width: min(100%, 342px); height: 52px; min-height: 52px; font-size: 14px; font-weight: 700; }
.focus-gate-sheet .focus-gate-confirm,
.focus-gate-sheet .shop-decline-button,
.item-purchase-sheet .item-purchase-confirm,
.item-purchase-sheet .item-purchase-decline { width: min(100%, 342px); }
.focus-gate-confirm,
.item-purchase-confirm { color: #fff; }
.focus-gate-sheet .shop-decline-button,
.item-purchase-decline { display: block; margin-right: auto; margin-left: auto; border: 2px solid #aaa; border-radius: 7px; color: #7775ff; background: #fff; box-shadow: 0 3px 0 #bbb; }
.focus-gate-sheet .shop-decline-button { color: #797dff; }
.focus-gate-sheet .shop-decline-button { margin-top: 8px; }
.item-purchase-decline { margin-top: 8px; }

/* Keep primary and secondary action buttons consistent with the task form. */
#app button.button,
#app button.submit-button,
#app button.back-link,
#app button.shop-decline-button,
#app button.focus-gate-confirm,
#app button.item-purchase-confirm,
#app button.item-purchase-decline,
#app button.text-button,
#app button.account-delete-button,
#app button.profile-logout,
#app button.auth-google-button {
  height: 45px;
  min-height: 45px;
  font-size: 14px;
}

@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 360px) {
  .product-header { padding-inline: 14px; }
  .page-content { padding-inline: 15px; }
  .inventory-bar { gap: 5px; }
  .inventory-item { font-size: 10px; }
  .add-task-card { padding-inline: 12px; }
  .feature-art { width: 62%; }
}
