/* Slotomotto storefront: purple velvet, sculpted gold, readable live product terms. */
html #store #storeSheet {
  --store-gold: #ffd775;
  width: min(99vw, 1880px); height: 98dvh; max-height: 98dvh;
  padding: clamp(14px, 1.6vw, 30px); border: 3px solid #c19b60; border-radius: 28px;
  background: radial-gradient(ellipse at 12% 0%, #65418b66, transparent 55%),
    radial-gradient(ellipse at 100% 95%, #9157cb33, transparent 46%),
    radial-gradient(circle at 7% 91%, #ffd366aa 0 1px, transparent 3px),
    radial-gradient(circle at 93% 83%, #ffce7188 0 2px, transparent 4px),
    radial-gradient(circle at 89% 12%, #ffe4a566 0 1px, transparent 3px),
    linear-gradient(145deg, #35204f, #180c2a 72%, #26133d);
  box-shadow: inset 0 1px 2px #fff8, inset 0 0 70px #5d259133, 0 24px 90px #000c;
}
html #store .storeHeader { display: flex; align-items: center; justify-content: space-between; flex: none; margin-bottom: 16px; }
html #store .storeTitle {
  margin: 0; font-size: clamp(26px, 2.8vw, 44px); font-weight: 900; letter-spacing: 2px;
  color: #ffd66c; background: linear-gradient(#fff2b4, #ffbc43 65%, #da7215);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 1px #451a06);
}
html #store #storeClose, #dailyReward #drClose {
  position: static; flex: none; width: 48px; height: 48px; min-width: 44px; min-height: 44px;
  padding: 0; border: 3px solid #eac16c; border-radius: 14px; font-size: 28px; line-height: 1;
  color: #ffe6a3; background: linear-gradient(#e77562, #b81b31 46%, #650c23);
  box-shadow: inset 0 0 0 2px #722618, inset 0 3px 3px #fff8, 0 4px 9px #0009;
}
html #store #storeBody {
  display: grid; grid-template-columns: 14% minmax(0, 1fr) 19%;
  grid-template-rows: minmax(0, 1fr); align-items: stretch; gap: clamp(14px, 1.6vw, 26px);
  min-height: 0; flex: 1; overflow: hidden;
}
html #store #storeSheet .storeTabs {
  grid-column: 1; grid-row: 1; display: flex; flex-direction: column; width: auto;
  gap: 9px; padding: 3px; margin: 0; overflow-y: auto; min-height: 0;
}
html #store #storeSheet .storeTabs button {
  flex: none; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 52px;
  text-align: left; white-space: normal; padding: 10px 12px; font-size: clamp(12px, 1.35vw, 22px);
  font-weight: 800; color: #fff9ef; border: 2px solid #b9a5c866; border-radius: 15px;
  background: linear-gradient(180deg, #86759066, #58476380 48%, #382943);
  box-shadow: inset 0 2px 1px #fff5, inset 0 -2px 5px #0004, 0 3px 6px #0006;
}
html #store #storeSheet .storeTabs button.on {
  color: #481b08; border-color: #ffdf85; background: linear-gradient(#fff1a4, #ffc547 45%, #f49b13 70%, #ed860b);
  box-shadow: inset 0 3px 2px #fff9, inset 0 -3px 1px #b86317, 0 0 15px #ffc84750;
}
html #store .storeTabs .tabIcon { flex: none; }
html #store #storeMain { grid-column: 2; grid-row: 1; display: flex; min-height: 0; min-width: 0; width: 100%; height: 100%; }
html #store #storeGrid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-content: start;
  grid-auto-rows: max-content;
  gap: clamp(14px, 1.6vw, 28px); min-width: 0; width: 100%; height: 100%; padding: 8px 14px 22px 8px;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #cba85a #170b29;
}
html #store #storeGrid::-webkit-scrollbar { width: 8px; }
html #store #storeGrid::-webkit-scrollbar-thumb { border-radius: 8px; background: linear-gradient(#f4cf74, #a47c36); }
html #store #storeGrid > * { max-width: none; width: 100%; margin-inline: 0; }
html #store #storeGrid .showCard {
  display: flex; flex-direction: column; align-items: stretch; gap: 7px; min-width: 0; padding: 18px 13px 13px;
  border: 6px solid transparent; border-radius: 23px;
  background: radial-gradient(ellipse at 50% 0%, #574362, #1a0b2d 75%) padding-box,
    linear-gradient(135deg, #fff0ad, #976132 15%, #ffdc89 35%, #6b3e2c 52%, #e2ba79 77%, #7c4b2e) border-box;
  box-shadow: inset 0 0 0 2px #271123, inset 0 0 0 4px #dcab6799, inset 0 3px 9px #fff3, 0 5px 0 #170b2299, 0 9px 14px #0008;
  transition: border-color .18s, box-shadow .18s;
}
html #store #storeGrid .showCard:hover { transform: none; box-shadow: inset 0 0 0 2px #321629, inset 0 0 0 4px #ffe4a9aa, 0 0 16px #ffc75755; }
html #store #storeGrid .showHero {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: clamp(100px, 8.5vw, 160px); min-height: 0; margin: 0; font-size: 76px;
  filter: drop-shadow(0 6px 7px #09000ba0);
}
html #store #storeGrid .showHero > img {
  width: 100% !important; height: 100% !important; max-width: 88%; object-fit: contain; border-radius: 0;
}
html #store #storeGrid .showHero .storeAvatarArt { width: auto !important; border-radius: 50%; }
html #store #storeGrid .showCard > b { font-size: clamp(15px, 1.6vw, 23px); color: #ffd579; line-height: 1.2; }
html #store #storeGrid .showCard > small { min-height: 22px; font-size: clamp(12px, 1vw, 15px); line-height: 1.4; color: #e9dfef; opacity: 1; }
html #store #storeGrid .showCard > .cta {
  min-height: 54px; width: 100%; margin: 6px 0 0; padding: 9px 7px; border: 4px solid #c78b40; border-radius: 14px;
  color: #4d200d; font-size: clamp(15px, 1.6vw, 22px); line-height: 1.2; font-weight: 900;
  background: linear-gradient(176deg, #fff1b4, #ffdb78 18%, #efb841 47%, #df931c 50%, #ffa81d 80%, #c9750d);
  box-shadow: 0 0 0 1px #ffe9a4, inset 0 0 0 2px #ffe9a4ab, inset 0 3px 3px #fff8, inset 0 -4px 3px #9d470bb3, 0 4px 0 #512315, 0 7px 10px #0008;
  text-shadow: 0 1px 0 #ffe99c88;
}
html #store #storeGrid .showCard > .rubyCta {
  color: #fff0a1; background: linear-gradient(#aa335b, #710c32 48%, #46031c 52%, #650921);
  border-radius: 28px; text-shadow: 0 2px 2px #190010;
}
html #store #storeGrid .showCard > .goalCta { background: #33233f; color: #eedab4; font-size: 12px; box-shadow: none; border-width: 1px; min-height: 40px; }
html #store #storeGrid .showCard > .cta:disabled { opacity: .68; cursor: default; filter: saturate(.55); }
html #store #storeGrid .showCard > .cta:active:not(:disabled) { transform: translateY(2px); }
html #store #storeGrid .ribbon { z-index: 1; top: 12px; right: 0; font-size: 11px; max-width: 95%; }
html #store #storeGrid .frameGold { box-shadow: inset 0 0 0 2px #ffe8ac, inset 0 0 0 4px #be874e, 0 0 20px #ffc24788; }
html #store #storeGrid .frameFree > .cta { color: #fff8b1; text-shadow: 0 2px 2px #173b08; background: linear-gradient(#ecf19b, #9ab94b 20%, #5f881b 48%, #275a12 52%, #6a981d); }
html #store #storeGrid[data-category="hot"] .showHero { height: clamp(160px, 18vw, 320px); }
html #store #storeGrid[data-category="cosmetics"] .showHero { height: clamp(120px, 9.5vw, 170px); }
html #store #storeGrid[data-category="boosts"] .showHero { height: clamp(180px, 19vw, 340px); }
html #store #storeGrid[data-category="boosts"] .showCard { box-shadow: inset 0 0 0 3px #ffa44366, 0 0 13px #f6aa3940; }
html #store #storeGrid[data-category="vip"] .showCard { background: radial-gradient(ellipse at 50% 45%, #53403177, transparent 55%), linear-gradient(#09203f, #061530) padding-box, linear-gradient(135deg, #fff1b2, #a56f37 30%, #ffde94 60%, #986637) border-box; }
html #store #storeGrid[data-category="vip"] .showHero { height: clamp(180px, 20vw, 320px); }
html #store #storeHost {
  grid-column: 3; grid-row: 1; position: static; display: flex !important; flex-direction: column;
  align-items: center; justify-content: flex-start; width: 100%; height: 100%; max-height: none;
  min-height: 0; gap: 24px; margin: 0; padding: 8px 5px 18px; border: 0; background: none; overflow-y: auto;
}
html #store #storeBubble {
  order: 0; position: relative; width: 100%; min-height: 0; flex: none; margin: 0; padding: 16px;
  font-size: clamp(12px, 1.3vw, 18px); line-height: 1.5; border: 2px solid #f07cff;
  border-radius: 20px 20px 5px 20px; background: #140922;
  box-shadow: inset 0 0 12px #e53cff33, 0 0 10px #f340ff99;
}
html #store #storeBubble::after { content: ""; display: block; position: absolute; left: auto; right: 27px; bottom: -15px; width: 23px; height: 23px; background: #140922; border: 0; border-right: 2px solid #f07cff; border-bottom: 2px solid #f07cff; transform: skewY(-35deg); box-shadow: 3px 4px 6px #ed45ff66; }
html #store #storeFox { order: 1; flex: none; width: 100%; height: auto; max-height: 52dvh; object-fit: contain; filter: drop-shadow(0 0 18px #edb45955); }
html #store #storePaymentDisclosure { opacity: .85 !important; margin-top: 14px !important; font-size: 12px; line-height: 1.4; }
html #store #storeLegalLine { opacity: .8; font-size: 11px; }
html #store button:focus-visible, #dailyReward button:focus-visible { outline: 3px solid #fff1a8; outline-offset: 3px; }
#dailyReward .mgSheet {
  box-sizing: border-box; width: min(98vw, 2000px); max-width: 2000px; max-height: 98dvh; overflow: auto;
  padding: clamp(14px, min(3vw, 3.2dvh), 48px); border: 3px solid #c99a5e; border-radius: 25px;
  background: radial-gradient(ellipse at 50% 0%, #8d3cc079, transparent 62%), linear-gradient(130deg, #26113e, #160822);
  box-shadow: inset 0 1px 1px #ffe2a766, 0 20px 70px #000b;
}
#dailyReward #drClose { position: absolute; top: 14px; right: 14px; }
#dailyReward #dailyRewardTitle {
  font-size: clamp(26px, min(5.7vw, 8.5dvh), 120px); line-height: 1.1; letter-spacing: 1px;
  padding-inline: 35px; background: linear-gradient(#fff6b1, #ffd267 48%, #c98521);
  background-clip: text; -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #874711) drop-shadow(0 5px 0 #522909) drop-shadow(0 8px 5px #0009);
}
#dailyReward .mgSub { margin: clamp(4px, 1.2dvh, 12px) 0 clamp(8px, 2.4dvh, 24px); font-size: clamp(13px, min(2vw, 2.6dvh), 23px); color: #ffe57a; font-weight: 800; }
#dailyReward #drLadder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.85fr); gap: clamp(8px, 1.6dvh, 16px); margin: 0; }
#dailyReward .drDay {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; text-align: center;
  box-sizing: border-box; min-width: 0; min-height: min(175px, 21dvh); padding: clamp(6px, 1.2dvh, 12px) 6px; gap: clamp(3px, .6dvh, 6px); border: 6px solid transparent; border-radius: 22px;
  background: linear-gradient(162deg, #65576d, #42324f 44%, #32223f 45%, #281836) padding-box, linear-gradient(135deg, #fff0b0, #a86f3e 18%, #f8d897 37%, #946333 65%, #f5d197) border-box;
  box-shadow: inset 0 0 0 2px #301a32, inset 0 0 0 4px #e1ac6c88, inset 0 3px 10px #fff3, 0 5px 9px #0009;
}
#dailyReward .drDay .dLabel { font-size: clamp(12px, min(1.8vw, 3.2dvh), 36px); font-weight: 900; opacity: 1; color: #fff6e9; text-shadow: 0 2px 3px #000; }
#dailyReward .drDay .dIco { display: flex; justify-content: center; align-items: center; width: 100%; height: clamp(40px, min(9vw, 11dvh), 160px); }
#dailyReward .drDay .dIco img { display: block; width: 100%; height: 100%; object-fit: contain; }
#dailyReward .drDay .dAmt { font-weight: 900; font-size: clamp(13px, min(2.2vw, 3.8dvh), 44px); line-height: 1.15; color: #ffe18a; }
#dailyReward .drDay .dBonus { font-size: 11px; color: #b8e6ff; }
#dailyReward .drDay .dBonus.dPack { display: grid; justify-items: center; padding: 4px 10px; border-radius: 12px; background: #a8dc3c; color: #132; font-size: clamp(10px, 1.35vw, 17px); font-weight: 900; }
#dailyReward .drDay .dPack img { width: clamp(30px, 4.2vw, 56px); height: auto; }
#dailyReward .drDay.day7 { grid-column: 4; grid-row: 1 / span 2; gap: 16px; padding: 22px; border-width: 9px; background: radial-gradient(ellipse at 50% 50%, #dc932c66, transparent 60%), linear-gradient(#351644, #2a103e) padding-box, linear-gradient(135deg, #ffefaa, #e0a33d 18%, #fff1a8 24%, #b17027 42%, #ffdf82 75%, #b47323) border-box; box-shadow: inset 0 0 0 3px #512522, inset 0 0 0 6px #ffd47d, inset 0 0 0 10px #936335, 0 0 24px #ffbe5588; }
#dailyReward .drDay.day7 .dIco { height: clamp(90px, min(20vw, 26dvh), 360px); }
#dailyReward .drDay.day7 .dLabel { font-size: clamp(18px, min(3vw, 5dvh), 56px); }
#dailyReward .drDay.day7 .dAmt { font-size: clamp(18px, min(3vw, 5dvh), 56px); }
#dailyReward .drDay.claimed { opacity: .88; }
#dailyReward .drDay.claimed::after { content: "✓"; position: absolute; font-weight: 900; font-size: 32px; top: 4px; right: 8px; color: #96ff84; text-shadow: 0 0 7px #31ed55; }
#dailyReward #drClaim {
  display: block; margin: clamp(10px, 2.4dvh, 24px) auto 0; min-height: clamp(44px, 6.5dvh, 58px); min-width: min(74%, 780px); max-width: 100%; padding: clamp(6px, 1.2dvh, 12px) 28px;
  border: 3px solid #d7ad60; border-radius: 18px; font-size: clamp(16px, min(3vw, 4.2dvh), 44px);
  background: linear-gradient(#fff0a9, #edb53c, #c67413); color: #4d240a;
  box-shadow: inset 0 2px 2px #fff8, 0 5px 12px #0009;
}
#dailyReward #drClaim:disabled { opacity: 1; background: linear-gradient(#605c58, #28282c); color: #d7b891; border-color: #8c8072; box-shadow: inset 0 2px 1px #b3aaa755, 0 4px 8px #0008; }

@media (max-width: 859px) and (min-height: 481px) {
  html #store #storeSheet { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 18px; padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  html #store #storeBody { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); gap: 9px; }
  html #store #storeSheet .storeTabs { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 3px; }
  html #store #storeSheet .storeTabs button { grid-column: auto; min-height: 44px; padding: 7px 6px; font-size: 12px; gap: 4px; justify-content: center; text-align: center; }
  html #store #storeHost { grid-column: 1; grid-row: 1; flex-direction: row; gap: 10px; height: auto; padding: 3px 8px; overflow: visible; }
  html #store #storeFox { order: 0; width: 55px; height: 77px; flex: none; }
  html #store #storeBubble { padding: 9px 12px; font-size: 12px; flex: 1; width: auto; border-radius: 13px; }
  html #store #storeBubble::after { display: none; }
  html #store #storeMain { grid-column: 1; grid-row: 3; }
  html #store #storeGrid { gap: 12px; padding: 5px 5px 14px; }
  html #store #storeGrid .showCard { padding: 12px 8px 10px; border-radius: 17px; gap: 5px; }
  html #store #storeGrid .showHero, html #store #storeGrid[data-category] .showHero { height: 120px; }
  html #store #storeGrid .showCard > b { font-size: 15px; }
  html #store #storeGrid .showCard > small { font-size: 12px; }
  html #store #storeGrid .showCard > .cta { font-size: 16px; padding: 8px 5px; min-height: 46px; }
  html #store #storeGrid .ribbon { font-size: 9px; top: 7px; padding: 4px 6px; }
  html #store #storePaymentDisclosure { font-size: 10px; margin-top: 8px !important; }
  html #store #storeLegalLine { font-size: 10px; }
  #dailyReward #drLadder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  #dailyReward .drDay { min-height: 140px; }
  #dailyReward .drDay.day7 { grid-column: 1 / -1; grid-row: 3; min-height: 140px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 4px 12px; padding: 12px 22px; }
  #dailyReward .drDay.day7 .dIco { grid-column: 1; grid-row: 1 / span 3; height: 110px; }
  #dailyReward .drDay.day7 .dLabel, #dailyReward .drDay.day7 .dAmt, #dailyReward .drDay.day7 .dBonus { grid-column: 2; }
  #dailyReward .drDay .dAmt { font-weight: 900; font-size: clamp(12px, 3.5vw, 23px); }
  html.mobileMode #dailyReward .mgSheet { backdrop-filter: none; -webkit-backdrop-filter: none; }
  html.mobileMode #dailyReward #drClose { position: fixed; top: max(7px, env(safe-area-inset-top)); right: 8px; width: 44px; height: 44px; z-index: 3; }
}
@media (max-width: 380px) and (min-height: 481px) {
  html #store #storeGrid { grid-template-columns: minmax(0, 1fr) !important; }
  html #store #storeGrid .showHero, html #store #storeGrid[data-category] .showHero { height: 145px; }
  html #store #storeSheet .storeTabs button { font-size: 10px; }
  #dailyReward .mgSheet { padding: 18px 10px; }
  #dailyReward .drDay .dLabel { font-size: 12px; }
}
@media (max-height: 480px) {
  html #store #storeSheet { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 12px; padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  html #store .storeHeader { margin-bottom: 5px; }
  html #store .storeTitle { font-size: 22px; }
  html #store #storeClose { width: 44px; height: 44px; }
  html #store #storeBody { grid-template-columns: 116px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 8px; }
  html #store #storeSheet .storeTabs { grid-column: 1; grid-row: 1; gap: 5px; }
  html #store #storeSheet .storeTabs button { min-height: 38px; padding: 6px; font-size: 11px; }
  html #store #storeHost { display: none !important; }
  html #store #storeMain { grid-column: 2; grid-row: 1; }
  html #store #storeGrid { gap: 12px; padding: 4px 6px 12px; }
  html #store #storeGrid .showCard { padding: 10px; }
  html #store #storeGrid .showHero, html #store #storeGrid[data-category] .showHero { height: 125px; }
  html #store #storePaymentDisclosure { font-size: 9px; margin-top: 5px !important; }
  html #store #storeLegalLine { font-size: 9px; }
  #dailyReward .mgSheet { padding: 10px 22px; }
  #dailyReward #dailyRewardTitle { font-size: 24px; }
  #dailyReward .mgSub { margin: 4px 0 8px; font-size: 12px; }
  #dailyReward #drClose { width: 44px; height: 44px; top: 6px; right: 8px; }
  #dailyReward #drLadder { gap: 9px; }
  #dailyReward .drDay { min-height: 80px; padding: 5px; gap: 2px; border-width: 2px; border-radius: 12px; }
  #dailyReward .drDay .dLabel { font-size: 12px; }
  #dailyReward .drDay .dIco { height: 36px; }
  #dailyReward .drDay .dAmt { font-weight: 900; font-size: 14px; }
  #dailyReward .drDay .dBonus { font-size: 9px; }
  #dailyReward .drDay.day7 { gap: 4px; padding: 8px; border-width: 5px; }
  #dailyReward .drDay.day7 .dIco { height: 88px; }
  #dailyReward .drDay.day7 .dLabel, #dailyReward .drDay.day7 .dAmt { font-size: 23px; }
  #dailyReward #drClaim { margin-top: 8px; min-height: 44px; padding: 6px 20px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html #store *, #dailyReward *, #dailyReward *::before, #dailyReward *::after { animation: none !important; transition: none !important; }
}

/* active — pulsing gold with particles */
#dailyReward .drDay.active { border-color: var(--gold); box-shadow: 0 0 18px #ffd86b77, inset 0 0 12px #ffd86b22; animation: drPulse 1.3s ease-in-out infinite; }
  @keyframes drPulse { 50% { box-shadow: 0 0 26px #ffd86baa, inset 0 0 16px #ffd86b33; } }
  #dailyReward .drDay.active::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 14px;
    background: radial-gradient(circle at 30% 20%, #ffe9a3aa, transparent 30%), radial-gradient(circle at 70% 80%, #ffd86b88, transparent 25%);
    animation: drSparkle 1.6s linear infinite; mix-blend-mode: screen;
  }
  @keyframes drSparkle { 0% { opacity: .3; } 50% { opacity: .9; } 100% { opacity: .3; } }

html #store #storeGrid .showCard > b, html #store #storeGrid .showCard > small { align-self: stretch; text-align: center; }
html #store #storeSheet { position: relative; isolation: isolate; }


@media (min-width: 860px) and (min-height: 481px) {
  html #store #storeGrid[data-category="vip"] .showCard { min-height: calc(100% - 8px); }
  html #store #storeGrid[data-category="vip"] .showHero { flex: 1; }
  html #store #storeGrid[data-category="vip"] .showHero > img { max-width: 94%; }
  html #store #storeGrid[data-category="vip"] .showCard > b { order: -2; margin-top: 24px; }
  html #store #storeGrid[data-category="vip"] .showCard > small { order: -1; }
}

html #store.open #storeSheet, #dailyReward.open .mgSheet, #profileHub.open .sheetWide {
  background-image: linear-gradient(#36185522, #1e0d3122), url(/art/store/velvet-v2.webp);
  background-size: cover; background-position: center;
}
html #store #storeGrid .rubyCtaGem { width: 30px; height: 30px; vertical-align: middle; }
html #store #storeGrid .ribbon { padding: 7px 12px 7px 20px; border-radius: 0; border-bottom: 2px solid #f2bb5a; background: linear-gradient(#d9792c, #af3709); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 6% 50%); text-shadow: 0 1px 2px #572104; }
@media (min-width: 860px) and (min-height: 481px) {
  html #store #storeGrid[data-category="vip"] { grid-auto-rows: minmax(650px, 1fr); }
  html #store #storeGrid[data-category="vip"] .showHero { min-height: 340px; }
  html #store #storeGrid[data-category="hot"] .showCard { min-height: calc((98dvh - 260px) / 2); }
  html #store #storeGrid[data-category="hot"] .showHero { flex: none; height: clamp(160px, 14vw, 260px); }
  html #store #storeGrid .showCard > .cta:last-child { margin-top: auto; }
}

/* Profile trophy room and wardrobe share the reference's metal-and-velvet finish. */
html #profileHub .sheetWide {
  --ph-fit: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  position: relative; width: min(97vw, 1960px); max-height: 96dvh; min-height: min(88dvh, 900px);
  display: flex; flex-direction: column; padding: clamp(22px, 2.5vw, 44px); gap: 20px;
  border: 6px solid #d7ae62; border-radius: 32px; overflow: auto;
  background: #231136; box-shadow: inset 0 0 0 3px #3a2436, inset 0 0 0 5px #f1cc8599, 0 24px 80px #000d;
  scrollbar-width: thin; scrollbar-color: #e7b44e #302037;
}
/* mobile.css caps the phone sheet at 560px; on iPad (also mobileMode) that squeezed
   the wide wardrobe and stat layouts below into a sideways-scrolling column. */
html.mobileMode #profileHub .sheetWide { max-width: none; }
html #profileHub #phHead { position: static; display: flex; align-items: end; gap: 18px; margin: 0; padding-right: 5px; }
html #profileHub #phHero { display: flex; flex: 1; min-width: 0; gap: 24px; align-items: center; }
html #profileHub #phIdentity { flex: 1; min-width: 0; max-width: 560px; }
html #profileHub #phAvatar {
  width: clamp(130px, 17vw, 260px); height: clamp(130px, 17vw, 260px); flex: none; padding: 10px;
  border-radius: 50%; border: 5px solid var(--av-glow, #f948d6);
  background: radial-gradient(circle, #53226566, #1b0a2f); box-shadow: 0 0 12px var(--av-glow), 0 0 35px var(--av-glow), inset 0 0 18px #ff77e544;
}
html #profileHub #phName { font-size: clamp(24px, 3.5vw, 54px); font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; text-shadow: 0 4px 3px #000a; }
html #profileHub #phName button { vertical-align: middle; min-width: 44px; min-height: 44px; margin-left: 8px; padding: 6px; font-size: 24px; border-radius: 12px; background: linear-gradient(#ffeaa2, #f2b337, #cc760d); color: #633013; border: 2px solid #dbad59; box-shadow: inset 0 2px 3px #fff9, 0 3px 5px #0007; }
html #profileHub .phTitle { display: inline-block; border-radius: 10px; font-weight: 900; font-size: clamp(17px, 2vw, 30px); padding: 4px 22px; margin: 10px 0; border: 2px solid #e3b968; background: linear-gradient(#fff5b8, #efc464 45%, #b17826 52%, #dfad46); color: #57310e; box-shadow: 0 3px 4px #0008, inset 0 0 0 2px #ffeead77; }
html #profileHub #phLvl { font-size: clamp(14px, 1.8vw, 25px) !important; font-weight: 800; opacity: 1 !important; color: #d5c9e2; margin: 3px 0 10px; }
html #profileHub #phXp { height: 28px; margin: 0; border: 3px solid #a6afa7; border-radius: 12px; background: linear-gradient(#191b20, #5b5661 45%, #201c29); box-shadow: 0 0 0 2px #51412a, inset 0 2px 5px #000c; }
html #profileHub #phXpFill { min-width: 0; height: 100%; border-radius: 7px; background: linear-gradient(#e5ffe7, #73f88b 25%, #0dd72b 50%, #058624 52%, #26ed4b); box-shadow: 0 0 10px #72ff90, inset 0 0 0 2px #bbffc97a; }
html #profileHub #phClose { position: absolute; top: 15px; right: 15px; width: 50px; height: 50px; min-width: 44px; min-height: 44px; padding: 0; color: #ffdfa0; font-size: 28px; border: 3px solid #ecc878; border-radius: 14px; background: linear-gradient(#e88165, #b52231 46%, #740b24); box-shadow: inset 0 0 0 2px #63211a, inset 0 3px 4px #fff8, 0 4px 8px #000a; z-index: 2; }
html #profileHub #phDeleteRow { position: static; flex: none; margin-bottom: 4px; }
html #profileHub #phDelete { min-height: 44px; font-size: clamp(12px, 1.6vw, 24px); padding: 9px 15px; border: 3px solid #d7ad64; background: linear-gradient(#f09478, #c83435 45%, #8e0c1c); box-shadow: inset 0 0 0 2px #7c2928, 0 4px 8px #0008; }
html #profileHub #phTabs { display: flex; flex: none; gap: 18px; margin: 0; }
html #profileHub #phTabs button { flex: 1; font-weight: 800; min-width: 0; min-height: 64px; padding: 12px; font-size: clamp(16px, 2.2vw, 34px); border: 3px solid #a397ad; border-radius: 18px; color: #e6e0e9; background: linear-gradient(#706a80, #484155 42%, #27203b 45%, #33283f); box-shadow: inset 0 0 0 2px #34303f, inset 0 3px 2px #fff5, 0 4px 7px #0008; }
html #profileHub #phTabs button.on { border-color: #f5d27d; color: #50250b; background: linear-gradient(#fff4b1, #fbd270 42%, #e5a523 46%, #f4a218 90%, #a4600b); box-shadow: inset 0 0 0 2px #ffe8a88a, inset 0 4px 4px #fff8, 0 4px 0 #764618, 0 7px 10px #0008; }
html #profileHub #phBody { flex: 1; min-height: 0; padding: 7px 4px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #d2a34c #2c1738; }
html #profileHub .statGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 0 24px; }
html #profileHub .statCard { container-type: inline-size; text-align: center; min-width: 0; padding: 21px 8px; border: 7px solid transparent; border-radius: 24px; background: linear-gradient(#24172e, #1e102a) padding-box, linear-gradient(135deg, #ffe5a3, #b17931 25%, #ffe6a1 50%, #886032 75%, #ecc17a) border-box; box-shadow: inset 0 0 0 3px #e3e1d4, inset 0 0 0 7px #595b60, inset 0 0 0 10px #131119, 0 4px 6px #0009; }
html #profileHub .statCard .v { font-weight: 900; font-size: clamp(22px, 3.3vw, 52px); font-size: min(clamp(22px, 3.3vw, 52px), 13cqi); overflow-wrap: anywhere; color: #ffdf86; text-shadow: 0 3px 0 #8b5b29, 0 5px 6px #000; line-height: 1.2; }
html #profileHub .statCard .l { font-size: clamp(10px, 1.5vw, 22px); font-weight: 800; color: #d6ccdf; letter-spacing: 0; opacity: 1; margin-top: 8px; }
html #profileHub #trophyShelf { display: flex; gap: 16px; padding: 9px 2px 20px; overflow-x: auto; scrollbar-width: auto; scrollbar-color: #edb445 #514022; }
html #profileHub #trophyShelf::-webkit-scrollbar { height: 14px; }
html #profileHub #trophyShelf::-webkit-scrollbar-track { background: #594224; border-radius: 10px; }
html #profileHub #trophyShelf::-webkit-scrollbar-thumb { border-radius: 10px; background: linear-gradient(#fff0a5, #c98b26); }
html #profileHub .trophy { text-align: center; flex: 1 0 max(115px, 12%); min-height: 190px; padding: 16px 8px; border: 3px solid #8b7b96; border-radius: 18px; background: linear-gradient(160deg, #827a8866, #40374977 42%, #20172e 45%); box-shadow: inset 0 0 0 4px #c3b5d233, inset 0 2px 1px #fff6, 0 4px 7px #0008; }
html #profileHub .trophy .ic { display: flex; justify-content: center; align-items: center; height: 92px; font-size: 65px; filter: drop-shadow(0 5px 5px #0008); }
html #profileHub .trophy b { display: block; color: #ffda84; font-size: clamp(14px, 1.5vw, 23px); margin: 12px 0 8px; }
html #profileHub .trophy small { font-size: clamp(12px, 1.4vw, 20px); opacity: 1; color: #a5e5a2; font-weight: 800; }
html #profileHub .trophy.locked { opacity: 1; }
html #profileHub .trophy.locked .ic { filter: grayscale(1) brightness(.65); }
html #profileHub .trophy.locked small { color: #c9bdce; }
html #profileHub .wardTitle { color: #ffda84; font-size: clamp(18px, 1.8vw, 28px); margin: 10px 0; text-shadow: 0 3px 2px #0008; }
html #profileHub .wardGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 16px; margin-bottom: 14px; }
html #profileHub .wardCard { display: flex; flex-direction: column; text-align: center; min-width: 0; gap: 8px; padding: 12px 9px; border: 4px solid #ac905c; border-radius: 20px; background: linear-gradient(155deg, #736356, #4d3d40 40%, #332539 45%); box-shadow: inset 0 0 0 2px #e2c78b66, inset 0 2px 3px #fff5, 0 5px 8px #0008; }
html #profileHub .wardCard.equippedCard { border-color: #ffe489; box-shadow: inset 0 0 0 2px #aa762f, 0 0 14px #ffd978aa; }
html #profileHub .wardCard.lockedCard .wardAvatarArt { filter: grayscale(1) brightness(.85); }
html #profileHub .wHero { display: flex; align-items: center; justify-content: center; height: clamp(100px, 9vw, 170px); font-size: 60px; }
html #profileHub .wHero .wardAvatarArt { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
html #profileHub .wHero .ring { width: 84px; height: 84px; border-radius: 50%; border: 6px double currentColor; box-shadow: 0 0 10px currentColor, inset 0 0 9px currentColor, 0 0 20px color-mix(in srgb, currentColor 40%, transparent); }
html #profileHub .wardCard small { font-size: clamp(13px, 1.4vw, 21px); font-weight: 800; color: #fff9ed; line-height: 1.15; }
html #profileHub .wardCard button { min-height: 44px; margin-top: auto; padding: 7px 3px; font-size: clamp(11px, 1.1vw, 17px); color: #fff; border: 3px solid #cba664; border-radius: 12px; background: linear-gradient(#b2b3c8, #777b99 43%, #535974 47%, #7d829b); box-shadow: inset 0 0 0 1px #fff6, 0 3px 5px #0008; }
html #profileHub .wardCard button.buyLink { color: #4b200b; background: linear-gradient(#fff2ad, #f8cd66 40%, #dd8a19 46%, #f5b332); }
html #profileHub .wardCard button.equipped { opacity: 1; color: #efce91; background: linear-gradient(#686965, #353634 45%, #242726); }
html #profileHub #phLogout { flex: none; align-self: center; margin: 0; min-height: 48px; padding: 10px 30px; font-size: clamp(18px, 2vw, 28px); font-weight: 800; color: #ffe2b4; border: 3px solid #c39960; border-radius: 19px; background: linear-gradient(#b36a73, #6e293f 40%, #400e27 45%, #713044); box-shadow: inset 0 0 0 2px #51292d, inset 0 2px 3px #fff6, 0 5px 8px #0009; }
html #profileHub button:focus-visible { outline: 3px solid #fff2ae; outline-offset: 3px; }

/* The wardrobe flows around the identity block at reference desktop widths. */
@media (min-width: 1200px) and (min-height: 650px) {
  html #profileHub[data-tab="wardrobe"] .sheetWide { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; min-height: 0; }
  html #profileHub[data-tab="wardrobe"] #phHead { grid-column: 1 / 5; grid-row: 1 / 3; flex-direction: column; align-items: stretch; padding-right: 18px; }
  html #profileHub[data-tab="wardrobe"] #phAvatar { width: clamp(130px, 12vw, 230px); height: clamp(130px, 12vw, 230px); }
  html #profileHub[data-tab="wardrobe"] #phName { font-size: clamp(26px, 2.5vw, 48px); }
  html #profileHub[data-tab="wardrobe"] #phLvl { font-size: clamp(14px, 1.2vw, 22px) !important; }
  html #profileHub[data-tab="wardrobe"] #phDeleteRow { align-self: end; }
  html #profileHub[data-tab="wardrobe"] #phDelete { font-size: 12px; }
  html #profileHub[data-tab="wardrobe"] #phTabs { grid-column: 1 / 5; grid-row: 3; gap: 12px; }
  html #profileHub[data-tab="wardrobe"] #phTabs button { min-height: 52px; font-size: clamp(16px, 1.5vw, 24px); padding: 8px; }
  html #profileHub[data-tab="wardrobe"] #phBody, html #profileHub[data-tab="wardrobe"] .wardSection, html #profileHub[data-tab="wardrobe"] .wardGrid { display: contents; }
  html #profileHub[data-tab="wardrobe"] .wardTitle { grid-column: 1 / -1; margin: 0; }
  html #profileHub[data-tab="wardrobe"] .wardSection:first-child .wardTitle { grid-column: 5 / -1; grid-row: 1; padding-right: 40px; }
  html #profileHub[data-tab="wardrobe"] .wardSection:first-child .wardCard:nth-child(-n+4) { grid-row: 2 / 4; }
  html #profileHub[data-tab="wardrobe"] .wardSection:first-child .wardCard:nth-child(1) { grid-column: 5; }
  html #profileHub[data-tab="wardrobe"] .wardSection:first-child .wardCard:nth-child(2) { grid-column: 6; }
  html #profileHub[data-tab="wardrobe"] .wardSection:first-child .wardCard:nth-child(3) { grid-column: 7; }
  html #profileHub[data-tab="wardrobe"] .wardSection:first-child .wardCard:nth-child(4) { grid-column: 8; }
  html #profileHub[data-tab="wardrobe"] #phLogout, html #profileHub[data-tab="wardrobe"] #phBrowserTransfer { grid-column: 1 / -1; justify-self: center; }
}
@media (max-width: 859px) {
  html #profileHub .sheetWide { width: 100%; max-height: var(--ph-fit); min-height: var(--ph-fit); padding: 68px 14px 18px; border-width: 3px; border-radius: 18px; gap: 14px; }
  html #profileHub #phHead { flex-direction: column; align-items: stretch; gap: 12px; }
  html #profileHub #phHero { gap: 14px; }
  html #profileHub #phAvatar { width: 94px; height: 94px; border-width: 3px; padding: 3px; }
  html #profileHub #phIdentity { flex: 1; }
  html #profileHub #phName { font-size: 23px; }
  html #profileHub #phName button { font-size: 18px; margin-left: 0; }
  html #profileHub #phLvl { font-size: 12px !important; }
  html #profileHub .phTitle { display: inline-block; border-radius: 10px; font-weight: 900; margin: 4px 0; padding: 2px 12px; font-size: 15px; }
  html #profileHub #phXp { height: 17px; border-width: 2px; }
  html #profileHub #phDeleteRow { align-self: end; }
  html #profileHub #phDelete { font-size: 12px; }
  html #profileHub #phTabs { gap: 10px; }
  html #profileHub #phTabs button { flex: 1; font-weight: 800; min-height: 52px; font-size: 15px; padding: 8px; }
  html #profileHub #phBody { flex: none; overflow: visible; }
  html #profileHub .statGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
  html #profileHub .statCard { text-align: center; padding: 16px 5px; border-width: 5px; border-radius: 17px; }
  html #profileHub .statCard .v { font-weight: 900; font-size: 24px; font-size: min(24px, 13cqi); }
  html #profileHub .statCard .l { font-size: 10px; }
  html #profileHub .trophy { text-align: center; flex-basis: 125px; min-height: 170px; }
  html #profileHub .trophy .ic { height: 75px; font-size: 52px; }
  html #profileHub .wardGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html #profileHub .wHero { display: flex; align-items: center; justify-content: center; height: 100px; }
  html #profileHub .wardCard small { font-size: 14px; }
  html #profileHub .wardCard button { font-size: 11px; }
}
@media (max-height: 480px) {
  html #profileHub .sheetWide { min-height: var(--ph-fit); max-height: var(--ph-fit); padding: 14px 16px; gap: 12px; }
  html #profileHub #phHead { padding-right: 48px; flex-direction: row; align-items: end; }
  html #profileHub #phAvatar { width: 85px; height: 85px; }
  html #profileHub #phName { font-size: 22px; }
  html #profileHub #phBody { flex: none; overflow: visible; }
  html #profileHub #phTabs button { flex: 1; font-weight: 800; min-height: 44px; font-size: 16px; }
  html #profileHub .statGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  html #profileHub .wardGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Sculpted locks are decorative; availability remains supplied by the reward API. */
#dailyReward .drLock { display: none; }
/* Screen readers hear each day's state; the check and lock are drawn decoration. */
#dailyReward .drState { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#dailyReward .locked .drLock { display: block; position: absolute; top: 26px; right: 10px; width: 28px; height: 30px; border: 2px solid #c29649; border-radius: 5px; background: linear-gradient(120deg, #ffec9f, #d99e37 50%, #9f641d); box-shadow: inset 0 0 0 1px #ffe7a4, 0 4px 5px #0008; transform: rotate(7deg); z-index: 1; }
#dailyReward .drLock::before { content: ""; position: absolute; width: 18px; height: 24px; top: -23px; left: 1px; border: 4px solid #bebcb2; border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: inset 2px 0 0 #fff8, 2px 0 0 #555; }
#dailyReward .drLock::after { content: ""; position: absolute; width: 8px; height: 14px; top: 7px; left: 8px; background: #553110; clip-path: polygon(20% 0,80% 0,100% 35%,70% 60%,90% 100%,10% 100%,30% 60%,0 35%); }
#dailyReward .drDay.claimed::after { top: -4px; right: 1px; font-size: 48px; color: #afffb0; -webkit-text-stroke: 1px #15c837; text-shadow: 0 0 3px #efffe8, 0 0 9px #00ff23, 0 0 16px #00ee27; }
@media (max-width: 859px), (max-height: 480px) {
 #dailyReward .locked .drLock { transform: scale(.65) rotate(7deg); transform-origin: top right; top: 17px; right: 6px; }
 #dailyReward .drDay.claimed::after { font-size: 30px; }
}

@media (min-width: 1200px) and (min-height: 650px) {
 html #profileHub[data-tab="wardrobe"] .sheetWide { gap: 10px; padding: 24px; }
 html #profileHub[data-tab="wardrobe"] #phHead { gap: 5px; }
 html #profileHub[data-tab="wardrobe"] #phAvatar { width: clamp(112px, 10vw, 190px); height: clamp(112px, 10vw, 190px); }
 html #profileHub[data-tab="wardrobe"] .phTitle { margin: 4px 0; font-size: clamp(18px, 1.6vw, 27px); }
 html #profileHub[data-tab="wardrobe"] #phTabs button { min-height: 48px; }
 html #profileHub[data-tab="wardrobe"] .wHero { height: clamp(78px, 8dvh, 130px); }
 html #profileHub[data-tab="wardrobe"] .wardCard { padding: 10px 7px; gap: 6px; border-width: 3px; }
 html #profileHub[data-tab="wardrobe"] .wardCard small { font-size: clamp(12px, 1.2vw, 20px); }
 html #profileHub[data-tab="wardrobe"] .wardCard button { white-space: nowrap; font-size: clamp(10px, .9vw, 15px); }
 html #profileHub[data-tab="wardrobe"] .wardTitle { font-size: clamp(16px, 1.5vw, 26px); }
}

/* Theme accents retain the catalog's border color. */
html #profileHub .wHero .ring[data-border="bd-silver"] { border-style: solid; border-color: #dbe8f2; box-shadow: inset 0 0 0 2px #6a7188, 0 0 0 2px #a2b0c6, 0 0 19px #dbe8f2; }
html #profileHub .wHero .ring[data-border="bd-jade"] { border-width: 8px; border-style: ridge; transform: rotate(-20deg); box-shadow: inset 0 0 9px #66ffd3, 0 0 10px currentColor; }
html #profileHub .wHero .ring[data-border="bd-gold"] { border: 9px dotted #fff0bc; outline: 3px solid #b98a36; outline-offset: -1px; box-shadow: 0 0 0 4px #f0c65b, inset 0 0 0 3px #ba8531, 0 0 13px #b98742; }
html #profileHub .wHero .ring[data-border="bd-gross-king"] { border-width: 9px; border-style: solid; border-radius: 46% 48% 43% 50%; box-shadow: inset 0 3px 2px #e8ff79, 0 0 13px currentColor; }
html #profileHub .wHero .ring[data-border="bd-neon-pulse"] { border-width: 7px; border-style: double; transform: rotate(-15deg); box-shadow: 4px 0 0 2px #9d19c8, -3px 0 0 2px #fa3de477, 0 0 15px #ff49ef; }
html #profileHub .wHero .ring[data-border="bd-cleopatra-sun"] { border: 9px dashed #ddb756; outline: 3px solid #e1bd66; box-shadow: inset 0 0 0 3px #ffd88a, 0 0 0 4px #846024; background: repeating-conic-gradient(#214fbd 0deg 27deg, #c69940 28deg 32deg); mask-image: radial-gradient(circle, transparent 0 50%, #000 51%); }

@media (min-width: 860px) and (min-height: 481px) {
 html #store #storeSheet { padding: clamp(14px, 1.2vw, 24px); }
 html #store .storeHeader { margin-bottom: 12px; }
 html #store .storeTitle { font-size: clamp(28px, 2.5vw, 42px); line-height: 1; }
 html #store #storeBody { gap: clamp(14px, 1.3vw, 24px); }
 html #store #storeGrid .showCard > b { font-size: clamp(17px, 1.6vw, 28px); }
 html #store #storeGrid .showCard > small { font-size: clamp(13px, 1.1vw, 20px); }
 html #store #storeGrid .showCard > .cta { min-height: clamp(50px, 3.5vw, 64px); font-size: clamp(17px, 1.6vw, 26px); }
 html #store #storePaymentDisclosure { font-size: clamp(12px, 1.05vw, 18px); }
 html #store #storeLegalLine { font-size: clamp(11px, .9vw, 16px); }
}
