.cabinet-wheel { position: relative; width: min(100% - 20px, 248px); margin: 16px auto; aspect-ratio: 1; }
.cabinet-wheel canvas { display: block; width: 100%; height: 100%; border-radius: 50%; transition: transform 1.35s cubic-bezier(.12,.67,.2,1); }
.cabinet-wheel-pointer { position: absolute; left: 50%; top: -4px; width: 24px; height: 24px; background: var(--navy); clip-path: polygon(0 0, 100% 0, 50% 100%); transform: translateX(-50%); }
#wheel-spin.wheel-spin-cta, #free-vpn-spin.wheel-spin-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px;
  padding: .3rem .65rem; border: 1px solid #271898; border-radius: .65rem; color: #fff; font-size: .86rem;
  background: linear-gradient(120deg,#173ac3,#5630bc); box-shadow: 0 4px 12px #2933b340;
}
#wheel-spin.wheel-spin-cta[hidden], #free-vpn-spin.wheel-spin-cta[hidden] { display: none; }
#wheel-spin.wheel-spin-cta:not(:disabled):hover, #free-vpn-spin.wheel-spin-cta:not(:disabled):hover { background: linear-gradient(120deg,#1e46cf,#663ccc); }
#wheel-spin.wheel-spin-cta:disabled, #free-vpn-spin.wheel-spin-cta:disabled { background: #526183; border-color: #526183; box-shadow: none; }
.wheel-spin-icon {
  position: relative; flex: 0 0 1rem; width: 1rem; height: 1rem; border: 1.5px solid #fff;
  border-radius: 50%; box-sizing: border-box;
  background: conic-gradient(#b6fa77 0 25%,#fbd45d 25% 50%,#88e4f6 50% 75%,#ff9bce 75%);
}
.wheel-spin-icon::after { position: absolute; inset: 35%; border-radius: 50%; background: #fff; content: ''; }
.wheel-spin-cta:not(:disabled) .wheel-spin-icon { animation: wheel-spin-icon 4s ease-in-out infinite; }
@keyframes wheel-spin-icon { 0%, 63% { transform: rotate(0); } 92%, 100% { transform: rotate(360deg); } }
#wheel .actions { margin-bottom: 10px; }
#wheel details { margin-top: 9px; }
#wheel details summary { cursor: pointer; color: var(--blue); font-weight: 650; }
#wheel-result:empty, #wheel-last:empty { display: none; }
.wheel-settings-form { margin-top: 16px; gap: 12px; }
#wheel-settings-prizes { width: 100%; }
.wheel-settings-form fieldset { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 12px; margin-bottom: 8px; min-width: 0; }
.wheel-settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.wheel-settings-fields label { min-width: 0; }
.wheel-settings-error { color: #8e1f2d; }
.renewal-access {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem .8rem;
}
.renewal-access p { margin: 0; color: #4d5d75; font-size: .85rem; }
.renewal-access time { display: block; margin: .08rem 0 0; color: #182948; font-size: .95rem; font-weight: 750; }
.renewal-access > button { min-height: 44px; }
.renewal-balance { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .48rem; margin: 0; color: #4d5d75; font-size: .82rem; }
.renewal-balance strong { color: #1b2f5b; }
.today-rewards {
  min-width: 0;
  padding: .8rem;
  border: 1px solid #cfdcff;
  border-radius: .9rem;
  background: #eef4ff;
  color: #23365e;
}
.today-rewards header { display: flex; justify-content: space-between; align-items: baseline; gap: .35rem .75rem; flex-wrap: wrap; }
.today-rewards header h2, .today-rewards header h3 { margin: 0; color: #1b2f5b; font-size: 1.05rem; }
.today-rewards header span { color: #4d5d75; font-size: .79rem; }
.today-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem; margin: .55rem 0 0; }
.today-totals > div { min-width: 0; padding: .5rem .62rem; border-radius: .63rem; background: #fff; }
.today-totals dt { color: #4d5d75; font-size: .78rem; }
.today-totals dd {
  margin: .12rem 0 0;
  color: #143882;
  font-size: clamp(1.2rem,5.3vw,1.65rem);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.today-sources { margin: .4rem 0 0; font-size: .84rem; }
.today-sources:not(:has(> div:not([hidden]))) { display: none; }
.today-sources > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .15rem .55rem; padding: .16rem .1rem; }
.today-sources dt, .today-sources dd { margin: 0; font-size: inherit; }
.today-sources dd { color: #23365e; font-weight: 650; }
.today-rewards .today-pending { margin: .4rem 0 0; color: #374766; font-size: .83rem; }
.today-pending a { margin-inline-start: .3rem; color: #2349a2; font-weight: 650; text-underline-offset: .15em; }
.wallet-jump { justify-self: center; color: #254cba; font-size: .9rem; font-weight: 650; text-underline-offset: .16em; }
.prize-wallet h2 { margin: 0 0 .85rem; }
.wallet-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; align-items: start; }
.wallet-group { min-width: 0; border: 1px solid #dee7f5; border-radius: .85rem; background: #f8faff; padding: .85rem; }
.wallet-group h3 { margin: 0; color: #23365e; font-size: .95rem; line-height: 1.3; }
.wallet-traffic { background: #f1f9f6; border-color: #d4ece1; }
.wallet-note, .wallet-expirations { margin: .35rem 0 0; color: #4d5d75; font-size: .83rem; line-height: 1.45; overflow-wrap: anywhere; }
.wallet-group .wallet-balance { margin: .25rem 0 0; color: #145735; font-size: 1.55rem; line-height: 1.2; font-weight: 800; }
.prize-wallet .wallet-list, .prize-wallet .wallet-expirations { list-style: none; padding: 0; }
.wallet-list { display: grid; gap: .5rem; margin: .65rem 0 0; }
.wallet-list[hidden], .wallet-group [hidden] { display: none; }
.wallet-row { display: flex; flex-wrap: wrap; gap: .5rem .7rem; align-items: center; justify-content: space-between; padding: .6rem; border: 1px solid #e0e8f5; border-radius: .65rem; background: #fff; }
.wallet-row-info { flex: 1 1 5.5rem; min-width: 0; }
.wallet-item-title { display: block; color: #1b315b; line-height: 1.3; overflow-wrap: anywhere; }
.wallet-row-info .wallet-note { margin-top: .22rem; }
.wallet-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.wallet-group .wallet-code { display: inline-block; max-width: 100%; margin: .22rem 0 0; padding: .18rem .38rem; border-radius: .25rem; background: #edf2ff; color: #24376f; overflow-wrap: anywhere; }
.wallet-group .wallet-button, .wheel-ticker > button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: .38rem .62rem;
  border: 1px solid #c5d3f4;
  border-radius: .56rem;
  background: #fff;
  color: #254c9b;
  font: 650 .84rem/1.25 system-ui,sans-serif;
  text-align: center;
  text-decoration: none;
}
.wallet-group .wallet-primary { border-color: #234fca; background: #234fca; color: #fff; }
.wallet-group .wallet-button:disabled { background: #edf0f7; color: #4d5d75; border-color: #dce3ee; }
.wallet-traffic details { margin: .65rem 0 0; font-size: .83rem; }
.wallet-traffic summary { color: #224e44; font-weight: 650; cursor: pointer; }
.wallet-expirations li { display: flex; flex-wrap: wrap; gap: .2rem .55rem; padding: .3rem 0; border-top: 1px solid #d4ece1; }
.wallet-feedback:not(:empty) { margin: .65rem 0 0; padding: .5rem .7rem; border-radius: .5rem; background: #eef3ff; color: #253759; }
.wallet-feedback:empty { display: none; }
#inventory .wallet-grid { grid-template-columns: minmax(0,1fr); }
.wheel-ticker {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  padding: .28rem;
  border: 1px solid #dce7fa;
  border-radius: .72rem;
  background: #f4f7ff;
  color: #35476a;
  font: 500 .85rem/1.4 system-ui,sans-serif;
}
.wheel-ticker[hidden] { display: none; }
.wheel-ticker-window { flex: 1 1 auto; min-width: 0; overflow: hidden; border-radius: .36rem; }
.wheel-ticker-track { display: flex; width: max-content; animation: wheel-ticker-scroll var(--ticker-duration,35s) linear infinite; }
.wheel-ticker-line { display: flex; flex: none; align-items: center; gap: .72rem; padding: .45rem .72rem; white-space: nowrap; }
.wheel-ticker-line strong { border-radius: .32rem; background: #e3ebff; color: #1e3e83; padding: .24rem .45rem; }
.wheel-ticker-line span+span { border-inline-start: 1px solid #cbd7ee; padding-inline-start: .72rem; }
.wheel-ticker button { flex: none; cursor: pointer; }
.wheel-ticker-window:hover .wheel-ticker-track, .wheel-ticker-window:focus-visible .wheel-ticker-track { animation-play-state: paused; }
.wheel-ticker[data-manual] .wheel-ticker-window { overflow-x: auto; }
.wheel-ticker[data-manual] .wheel-ticker-track { animation: none; }
.wheel-ticker[data-manual] .wheel-ticker-copy { display: none; }
@keyframes wheel-ticker-scroll { to { transform: translateX(-50%); } }
@media (max-width: 680px) { .wallet-grid { grid-template-columns: minmax(0,1fr); } }
.wheel-win {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(26rem,calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: clamp(1.3rem,5vw,2rem);
  overflow: auto;
  border: 1px solid #ddd5ff;
  border-radius: 1.5rem;
  background: radial-gradient(ellipse at 50% 0,#ede4ff 0,transparent 56%),#fff;
  color: #182048;
  box-shadow: 0 24px 84px #170c4860;
  font-family: system-ui,"Segoe UI",sans-serif;
  text-align: center;
  color-scheme: light;
}
.wheel-win::backdrop { background: #150e35a6; }
.wheel-win[open] { animation: wheel-win-in .32s ease-out both; }
.wheel-win-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto .9rem;
  border: 1px solid #713be2;
  border-radius: 1.1rem;
  background: linear-gradient(145deg,#4137c8,#7a40dc);
  box-shadow: 0 6px 16px #5135b34d;
  color: #fff;
  font: 700 1.8rem/1 system-ui,sans-serif;
}
.wheel-win h2 { margin: 0; color: #4d2aa0; font-size: 1rem; font-weight: 750; }
.wheel-win #wheel-win-title {
  margin: .32rem 0 .55rem;
  color: #182048;
  font-size: clamp(1.8rem,7vw,2.6rem);
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.wheel-win #wheel-win-message { margin: 0; color: #494568; font-size: .95rem; line-height: 1.45; }
.wheel-win-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.25rem; }
.wheel-win-actions form { margin: 0; }
.wheel-win .wheel-win-action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .55rem .9rem;
  border-radius: .65rem;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.wheel-win .wheel-win-action[hidden] { display: none; }
.wheel-win .wheel-win-primary { border: 1px solid #4630b5; background: #4630b5; color: #fff; }
.wheel-win .wheel-win-dismiss { border: 1px solid #d7cdf2; background: #f7f3ff; color: #392480; }
.wheel-win .wheel-win-action:focus-visible { outline: 2px solid #4e36b6; outline-offset: 3px; }
.wheel-win-confetti {
  position: absolute;
  inset: clamp(1.3rem,5vw,2rem) 0 auto;
  pointer-events: none;
}
.wheel-win-confetti i {
  position: absolute;
  left: calc(50% - 4px);
  width: 8px;
  height: 5px;
  border-radius: 2px;
  background: #9567e8;
  transform: translate(var(--x),var(--y)) rotate(var(--tilt));
}
.wheel-win-confetti i:nth-child(3n+2) { background: #27a68c; }
.wheel-win-confetti i:nth-child(3n) { border-radius: 50%; background: #ec994c; }
.wheel-win[open] .wheel-win-confetti i { animation: wheel-win-confetti .72s cubic-bezier(.12,.66,.34,1) both; }
@keyframes wheel-win-in {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes wheel-win-confetti {
  from { opacity: 0; transform: translate(0,24px) rotate(0); }
  to { opacity: 1; transform: translate(var(--x),var(--y)) rotate(var(--tilt)); }
}
@media (max-width: 520px) { .wheel-settings-fields { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) {
  .cabinet-wheel canvas { transition: none; }
  .wheel-spin-cta:not(:disabled) .wheel-spin-icon { animation: none; }
  .wheel-win[open], .wheel-win[open] .wheel-win-confetti i { animation: none; }
  .wheel-ticker-window { overflow-x: auto; }
  .wheel-ticker-track { animation: none; }
  .wheel-ticker-copy, .wheel-ticker > button { display: none; }
}
