/* GLAVSTE v105 — visual refresh. Load after style.css.
   Keep reel dimensions and transforms in the original stylesheet. */
:root {
  --bg: #0d1017;
  --panel: #191e29;
  --card: #202735;
  --card-2: #2a3343;
  --line: #343e50;
  --text: #f5f7fc;
  --muted: #a8b3c7;
  --rust: #ff945f;
  --rust-2: #ffc18a;
  --refresh-edge: rgba(176, 199, 235, .13);
  --refresh-accent: linear-gradient(115deg, #ffd39c 0%, #ffab75 46%, #ff8858 100%);
}

body {
  isolation: isolate;
  background: radial-gradient(ellipse at 10% 0%, #263149 0%, transparent 48%),
    radial-gradient(ellipse at 100% 28%, #33231f 0%, transparent 45%), var(--bg);
}
/* Fixed decorative layers never intercept taps or alter layout. */
body::before, body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}
body::before {
  inset: 0;
  background-image: radial-gradient(rgba(184, 201, 230, .16) .7px, transparent .9px);
  background-size: 24px 24px;
  mask-image: linear-gradient(#0009, transparent 85%);
  -webkit-mask-image: linear-gradient(#0009, transparent 85%);
}
body::after {
  width: min(110vw, 640px);
  height: min(110vw, 640px);
  top: 12vh;
  left: calc(50% - min(55vw, 320px));
  border: 1px solid rgba(255, 164, 106, .1);
  border-radius: 50%;
  box-shadow: 0 0 100px #ff945f0a, 0 0 0 54px #aec8ff03,
    0 0 0 108px #aec8ff03;
  animation: refresh-orbit 20s ease-in-out infinite alternate;
}
.head .title { text-shadow: 0 2px 22px #b9d1ff18; }
.head .title i { color: var(--rust-2); }

.block {
  border-color: var(--refresh-edge);
  background: linear-gradient(145deg, #202735e8, #171c27f5);
  box-shadow: inset 0 1px 0 #ffffff05, 0 8px 24px #00000016;
}
.coins, .gcbox, .balance {
  background: linear-gradient(145deg, #252d3e, #191e29);
  border-color: var(--refresh-edge);
  box-shadow: inset 0 1px 0 #ffffff07;
}
.gcbox { background: linear-gradient(145deg, #3c3028, #211f27); border-color: #ffc18a30; }
.machine {
  border-color: #ffc18a38;
  background: radial-gradient(ellipse at 50% 0%, #ff945f24, transparent 70%),
    linear-gradient(145deg, #252735, #171c27);
  box-shadow: inset 0 1px 0 #ffe1b914, 0 12px 36px #00000025;
}
.machine-label b { color: #eac9af; }
.reel .row { box-shadow: inset 0 1px 0 #ffffff08; }
/* No width, gap or transform changes: the existing spin math stays valid. */
.reel .row.winner { box-shadow: 0 0 24px #ff945f35, inset 0 0 16px #ff945f10; }
.bar > i { background: var(--refresh-accent); box-shadow: 0 0 10px #ff945f35; }

/* Secondary actions: quiet depth, a fine light edge and clear pressed states. */
:is(.btn-wide, .sc-btn, .link-btn, .refresh, .exch-open, .donor-more) {
  border-color: var(--refresh-edge);
  background: linear-gradient(145deg, #2a3343, #202735);
  box-shadow: inset 0 1px 0 #ffffff09, 0 3px 9px #00000012;
}
:is(.spin-btn, .btn-wide, .sc-btn, .link-btn, .refresh, .pk, .sh-buy,
    .task button, .task a.btn, .tab-btn, .exch-open, .ref-hook-b, .auc-banner) {
  transition: background-color .18s ease, border-color .18s ease,
    box-shadow .18s ease, filter .18s ease, transform .16s ease;
}
:is(.spin-btn, .btn-wide.primary, .task .check, .sh-buy:not(.off), .ref-hook-b) {
  background: var(--refresh-accent);
  color: #28170e;
  border: 0;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 #fff1d980, 0 5px 18px #ff945f22;
  font-weight: 650;
}
.gc-add {
  background: var(--refresh-accent);
  color: #28170e;
  box-shadow: inset 0 1px 0 #fff1d960;
}
.sc-vip { color: var(--legend); border-color: #ffc18a40; }
.link-btn.shop, .link-btn.funpay { background: linear-gradient(145deg, #262e3c, #1b212d); }
.link-btn.shop { border-color: #ff945f30; }
.link-btn.funpay { border-color: #8bcefc30; }
:is(.btn-wide, .sc-btn, .link-btn, .pk, .sh-buy, .exch-open, .ref-hook-b):active:not(:disabled) {
  transform: scale(.98);
}
:is(button, a):focus-visible { outline: 2px solid #ffd39c; outline-offset: 3px; }
button:disabled, button[aria-disabled="true"] {
  box-shadow: none;
  filter: saturate(.5);
  cursor: not-allowed;
}
.spin-btn:disabled { opacity: .5; transform: none; }

/* Keep all six tabs in their original positions. */
.tabbar {
  background: #171e2aef;
  border-top-color: #a8c3ef26;
  box-shadow: 0 -8px 28px #00000030, inset 0 1px 0 #ffffff04;
  -webkit-backdrop-filter: blur(18px);
}
.tab-btn { color: #a8b3c7; }
.tab-btn.active {
  background: linear-gradient(155deg, #ffaf7429, #ff945f0a);
  color: #ffc18a;
  box-shadow: inset 0 1px 0 #ffc18a45;
}
.tab-btn.active svg { color: #ffc18a; }
.pro-cell, .look-preview, .task { background: linear-gradient(145deg, #19212e, #121822); }
.pk { background: linear-gradient(145deg, #293243, #1a212e); box-shadow: inset 0 1px 0 #ffffff08; }
.promo-slot { background: linear-gradient(130deg, #242b38, #191e29); }
/* Preserve individual rarity colors and purchased/disabled states. */

@media (hover: hover) and (pointer: fine) {
  :is(.spin-btn, .btn-wide.primary, .task .check, .sh-buy:not(.off)):hover:not(:disabled) {
    filter: brightness(1.06);
    box-shadow: inset 0 1px 0 #fff1d980, 0 7px 22px #ff945f30;
  }
  :is(.sc-btn, .link-btn, .pk, .btn-wide:not(.primary), .refresh):hover:not(:disabled) {
    border-color: #b9d1ff50;
    box-shadow: inset 0 1px 0 #ffffff0b, 0 5px 15px #00000020;
  }
}

/* Animate blocks, not the tab container (which can contain fixed overlays). */
.tab:not([hidden]) > :is(.block, .wallet-wrap, .machine, .feed, .links, .auc-banner) {
  animation: refresh-enter .32s cubic-bezier(.2,.75,.25,1) both;
}
.tab:not([hidden]) > :nth-child(2) { animation-delay: .035s; }
.tab:not([hidden]) > :nth-child(3) { animation-delay: .065s; }
.tab:not([hidden]) > :nth-child(n+4) { animation-delay: .09s; }
@keyframes refresh-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes refresh-orbit {
  from { transform: translateY(-12px) scale(.98); opacity: .55; }
  to { transform: translateY(18px) scale(1.04); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Motion pass 2: a visible aurora behind the panels, and warm prize frames. */
body::before {
  inset: -8%;
  background-image:
    radial-gradient(ellipse at 15% 20%, #487ee545, transparent 48%),
    radial-gradient(ellipse at 85% 55%, #ffa35430, transparent 45%),
    radial-gradient(rgba(255, 212, 157, .3) .8px, transparent 1px);
  background-size: auto, auto, 30px 30px;
  mask-image: none;
  -webkit-mask-image: none;
  animation: refresh-aurora 12s ease-in-out infinite alternate;
}
body::after {
  border-color: #ffba6d2b;
  box-shadow: 0 0 70px #ff945f12, 0 0 0 55px #aec8ff08, 0 0 0 110px #aec8ff05;
  animation-duration: 10s;
}
@keyframes refresh-aurora {
  from { transform: translate3d(-2%, -1%, 0); opacity: .65; }
  to { transform: translate3d(3%, 4%, 0); opacity: 1; }
}
.spin-btn:not(:disabled) {
  background-image: linear-gradient(110deg, #ff995f 0%, #ffd9a2 35%, #ffac72 60%, #ff995f 100%);
  background-size: 220% 100%;
  animation: refresh-button-light 5s ease-in-out infinite alternate;
}
@keyframes refresh-button-light {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
:is(.reel .row, .relic, .prize).prize-gold {
  --prize-color: #ffd36c;
  border-color: #e9b64f;
  background: radial-gradient(ellipse at 50% 0%, #ffe29b24, transparent 70%),
    linear-gradient(145deg, #4b361c, #211c18 70%);
  box-shadow: inset 0 1px 0 #ffe7a74d, 0 0 16px #efb94720;
}
:is(.reel .row, .relic, .prize).prize-gold :is(.tx, .nm) { color: #ffe4a0; }
:is(.reel .row, .relic, .prize).prize-gold :is(.sub, .ch) { color: #d4bd90; }
:is(.reel .row, .relic, .prize).prize-gold :is(img, svg) {
  filter: drop-shadow(0 0 7px #ffc64b75);
  animation: refresh-gold-glow 3.6s ease-in-out infinite alternate;
}
.reel .row.prize-gold.winner {
  border-color: #ffe7a5;
  box-shadow: inset 0 0 18px #ffcc4b20, 0 0 28px #ffc64b60;
}
.flash.prize-gold .nm, .flash.prize-gold .kind { color: #ffe4a0; }
.flash.prize-gold .flash-art :is(img, svg) { filter: drop-shadow(0 0 25px #ffc64b85); }
@keyframes refresh-gold-glow {
  from { filter: drop-shadow(0 0 4px #ffc64b45); }
  to { filter: drop-shadow(0 0 11px #ffd367a0); }
}
/* Stop ornamental prize effects during the actual spin. */
.machine.is-spinning .prize-gold :is(img, svg),
.relic.gone :is(img, svg) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .spin-btn:not(:disabled),
  :is(.reel .row, .relic, .prize).prize-gold :is(img, svg) { animation: none; }
}

/* Art direction 3 — graphite surfaces, amber actions, gold collectibles. */
:root {
  --bg: #101115;
  --panel: #1b1d24;
  --card: #23262f;
  --card-2: #30343e;
  --line: #383c46;
  --muted: #acafbd;
}
body {
  background: radial-gradient(ellipse at 8% 0%, #342821 0%, transparent 48%),
    radial-gradient(ellipse at 100% 38%, #202735 0%, transparent 50%), var(--bg);
}
body::before {
  background-image:
    radial-gradient(ellipse at 15% 20%, #c77e3230, transparent 48%),
    radial-gradient(ellipse at 85% 55%, #788cad24, transparent 45%),
    radial-gradient(rgba(255, 212, 157, .25) .8px, transparent 1px);
}
.head .title { font-size: 25px; font-weight: 800; letter-spacing: -.9px; }
.head .title i {
  padding: 3px 7px;
  border: 1px solid #ffbc7133;
  border-radius: 8px;
  background: #ffbc7110;
  font-size: 15px;
  letter-spacing: .6px;
}
.head .sub { color: #b9bac6; line-height: 1.5; }
.block {
  border-color: #ffffff0c;
  border-radius: 20px;
  background: linear-gradient(145deg, #272931f0, #191b22f5);
  box-shadow: inset 0 1px 0 #ffffff06, 0 8px 24px #0000001c;
}
.block-title { font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.coins, .gcbox, .balance {
  border-radius: 16px;
  background: linear-gradient(145deg, #2a2d36, #1d2028);
  border-color: #ffffff10;
  box-shadow: inset 0 2px 0 #ffffff08;
}
.coins { border-top-color: #ffd07845; }
.gcbox { border-top-color: #ffc78370; background: linear-gradient(145deg, #3d3025, #252024); }
.balance { border-top-color: #9bcfff45; }
.coins .n { color: #ffe1a4; }
.balance .n { color: #cce5ff; }
.coins .t, .gcbox .t, .balance .t { color: #bcbcc8; }

/* Same two shortcuts, with a recognizable object above their label. */
.sc-col .sc-btn {
  min-height: 90px;
  padding: 13px 10px 11px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  white-space: normal;
  text-align: left;
  font-weight: 650;
  line-height: 1.35;
  background: radial-gradient(ellipse at 95% 0%, #9bb4e21b, transparent 75%), #22252e;
}
.sc-col .sc-vip {
  color: #ffe2a8;
  border-color: #edbe6240;
  background: radial-gradient(ellipse at 95% 0%, #e7b55029, transparent 80%), #27231f;
}
.shortcut-art { width: 29px; height: 29px; flex: none; filter: drop-shadow(0 3px 7px #0005); }
.sc-note { padding: 0 4px; line-height: 1.45; }

.machine {
  margin-top: 14px;
  border-radius: 24px;
  border-color: #e6b67845;
  background: radial-gradient(ellipse at 50% 0%, #bc813426, transparent 75%),
    linear-gradient(155deg, #2c2929, #181a21);
  box-shadow: inset 0 1px 0 #ffe0ac1c, 0 14px 35px #0003;
}
.machine-label b { color: #ffe0aa; font-size: 12px; letter-spacing: 1.8px; }
.machine-label span { color: #c0b6a8; }
.reel .row { border-radius: 18px; gap: 10px; }
.reel .row .art, .reel .row .art svg, .reel .row .art img { width: 60px; height: 60px; }
.reel .row .art { transform: rotate(-5deg); }
.reel .row .tx { font-weight: 650; }
.reel .row.prize-gold {
  background: radial-gradient(ellipse at 50% 20%, #ffda7c38, transparent 72%),
    linear-gradient(150deg, #624922, #302418 65%, #241f1a);
  border-color: #dcb35c;
}
.band { border-color: #ffe0a77a; box-shadow: 0 0 25px #e9b45d20; }
.band::before { background: #ffe0a7; box-shadow: 0 0 16px #ffc46c99; }
.spin-btn { min-height: 52px; border-radius: 16px; font-size: 16px; letter-spacing: -.15px; }
.free-badge { border: 1px solid #41281320; background: #fff8df70; border-radius: 7px; }
.limits { color: #b4afa7; }
.relic { border-radius: 18px; padding: 16px 12px; }
.relic svg, .relic img { width: 76px; height: 76px; }
.relic .nm { font-size: 14px; margin-top: 9px; }
.relic.prize-gold .left { border-color: #e5bd6555; color: #ffe0a7; background: #e5bd6512; }
.feed-item { border-radius: 15px; background: #22252d; }
.feed-item .what { font-weight: 650; }
.pro-cell { border-radius: 17px; border-color: #ffffff0d; background: linear-gradient(150deg, #2b2d35, #1b1e26); }
.pro-cell .t { margin-top: 5px; }
.look-preview { background: radial-gradient(ellipse at 0% 0%, #e5bd6515, transparent 80%), #191c23; border-color: #e5bd6525; }
.pod { background: linear-gradient(180deg, #2e313b, #1d2028); border-color: #ffffff14; }
.pod.p1 { background: linear-gradient(160deg, #59452a, #28231f 70%); border-color: #e5bd6560; box-shadow: 0 -8px 30px #e5bd6510; }
.pod.p1 .step { background: linear-gradient(180deg, #e5bd6540, #e5bd6510); }
.pod.p1 .sc { color: #ffe3a0; }
.pk { border-radius: 17px; background: linear-gradient(145deg, #30313a, #20222a); }
.pk em { color: #ffe0a7; }
.task { background: linear-gradient(145deg, #252831, #1a1d25); border: 1px solid #ffffff09; }
.btn-wide, .link-btn { border-radius: 15px; }
.btn-wide:not(.primary), .link-btn.shop, .link-btn.funpay { background: linear-gradient(145deg, #30323c, #242730); }
.tabbar {
  background: #191b23f5;
  border-top-color: #e5bd6529;
  box-shadow: 0 -8px 30px #0004, inset 0 1px 0 #ffffff04;
}
.tab-btn { border-radius: 13px; }
.tab-btn.active { background: linear-gradient(160deg, #e7b35d30, #e7b35d08); color: #ffdfa0; }
.tab-btn.active svg { color: #ffdfa0; }
@media (max-width: 350px) {
  .head .title { font-size: 23px; }
  .sc-col .sc-btn { font-size: 11.5px; padding: 11px 9px; }
  .machine-label b { font-size: 11px; letter-spacing: 1px; }
}

/* Compact broadcast and fitting room. Native dialogs manage focus and Escape. */
.shout-compact { margin-top: 12px; }
#shout-peek {
  width: 100%; min-height: 58px; display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px;
  border: 1px solid #ffffff14; background: #22252df2; color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
.shout-live { font-size: 12px; font-weight: 700; color: #b6e9c9; white-space: nowrap; }
#shout-summary { font-size: 12px; color: #c4c6d0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-sheet {
  position: fixed; inset: auto 0 0; margin: 0 auto; width: min(100%, 476px);
  max-width: 100%; max-height: 85vh; max-height: 85dvh; box-sizing: border-box;
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom,0px));
  border: 1px solid #ffffff20; border-bottom: 0; border-radius: 24px 24px 0 0;
  background: #1b1e26; color: var(--text); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 -15px 70px #0008;
}
.social-sheet::backdrop { background: #080a10b8; backdrop-filter: blur(5px); }
.social-sheet[open] { animation: social-sheet-in .22s ease-out; }
.social-sheet-open { overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.sheet-head h2 { margin: 0; font-family: inherit; font-size: 21px; line-height: 1.3; font-weight: 700; }
.sheet-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ffffff20; background: #30343f; color: #fff; font-size: 25px; cursor: pointer; }
.social-sheet .shout-list { max-height: none; overflow: visible; }
.social-sheet .sh-who { flex-wrap: wrap; }
.social-sheet .sh-text { overflow-wrap: anywhere; }
.try-caption { margin: 22px 0 8px; }
#try-status { margin-top: 18px; line-height: 1.6; }
#try-message .av.big { width: 34px; height: 34px; font-size: 22px; }
.try-button { border: 1px solid #e5bd6555; color: #ffe1a4; background: #e5bd6510; padding: 9px 11px; min-height: 38px; border-radius: 10px; font: inherit; font-size: 12px; cursor: pointer; }
.ward-cell .try-button { margin-top: 9px; width: 100%; }
.ward-cell.locked { opacity: .8; }
.sh-item { flex-wrap: wrap; }
.sh-item .sh-tx { flex-basis: 45%; }
@keyframes social-sheet-in { from { transform: translateY(24px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }

/* Auras reuse the frame slot, so ownership and server equipment checks apply. */
.fr-aura-sparks { --aura-rgb: 255, 143, 78; }
.fr-aura-ice { --aura-rgb: 117, 213, 255; }
.fr-aura-gold { --aura-rgb: 255, 209, 104; }
:is(.fr-aura-sparks,.fr-aura-ice,.fr-aura-gold) {
  border: 1px solid rgba(var(--aura-rgb), .55);
  background-image: radial-gradient(ellipse at 0% 50%, rgba(var(--aura-rgb), .12), transparent 75%);
  box-shadow: inset 0 0 18px rgba(var(--aura-rgb), .06);
}
:is(.fr-aura-sparks,.fr-aura-ice,.fr-aura-gold) .av {
  position: relative; overflow: visible;
  box-shadow: 0 0 0 2px rgba(var(--aura-rgb), .45), 0 0 18px rgba(var(--aura-rgb), .35);
  animation: aura-breathe 3s ease-in-out infinite alternate;
}
:is(.fr-aura-sparks,.fr-aura-ice,.fr-aura-gold) .av img { border-radius: inherit; }
:is(.fr-aura-sparks,.fr-aura-ice,.fr-aura-gold) .av::before {
  content: ""; position: absolute; inset: -5px; pointer-events: none; border-radius: 50%;
  border: 1px dashed rgba(var(--aura-rgb), .65); animation: aura-orbit 14s linear infinite;
}
.fr-aura-gold .av::before { border-style: dotted; border-width: 2px; }
.fr-aura-ice .av::before { border-style: solid; border-left-color: transparent; border-right-color: transparent; }
:is(.fr-aura-sparks,.fr-aura-ice,.fr-aura-gold).fr::after { animation: none; opacity: 0; }
@keyframes aura-breathe { to { box-shadow: 0 0 0 2px rgba(var(--aura-rgb), .7), 0 0 25px rgba(var(--aura-rgb), .55); } }
@keyframes aura-orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .social-sheet[open], :is(.fr-aura-sparks,.fr-aura-ice,.fr-aura-gold) .av,
  :is(.fr-aura-sparks,.fr-aura-ice,.fr-aura-gold) .av::before { animation: none; }
}
