.portal-hub-page {
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: 30px;
  display: grid;
  gap: 20px;
}

.hub-hero {
  min-height: 400px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border: 1px solid
    color-mix(
      in srgb,
      var(--region-accent) 55%,
      #81353e
    );
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 22% 25%,
      rgba(255,75,85,.12),
      transparent 38%
    ),
    linear-gradient(
      120deg,
      #171219 0%,
      #08151d 64%
    );
}

.hub-hero--spin {
  background:
    radial-gradient(
      circle at 18% 28%,
      rgba(50,215,255,.15),
      transparent 38%
    ),
    radial-gradient(
      circle at 88% 20%,
      rgba(171,82,255,.13),
      transparent 34%
    ),
    linear-gradient(
      120deg,
      #071a33,
      #08152a 58%,
      #24103b
    );
}

.hub-hero--ranking {
  background:
    radial-gradient(
      circle at 20% 25%,
      rgba(255,194,70,.13),
      transparent 36%
    ),
    linear-gradient(
      120deg,
      #17130d,
      #08151c 62%
    );
}

.hub-hero__copy {
  padding:
    clamp(44px, 5vw, 72px);
  align-self: center;
  position: relative;
  z-index: 4;
}

.hub-breadcrumb {
  margin-bottom: 30px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #8495a1;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.hub-breadcrumb a,
.hub-footer a {
  color: #ff656b;
  text-decoration: none;
}

.hub-breadcrumb span {
  opacity: .4;
}

.hub-hero h1 {
  margin: 12px 0 10px;
  max-width: 820px;
  font-size:
    clamp(4rem,7vw,7.2rem);
  line-height: .88;
  font-weight: 950;
  letter-spacing: -.07em;
}

.hub-hero h1 span {
  display: block;
  color: #ff656b;
}

.hub-hero--spin h1 span {
  background:
    linear-gradient(
      90deg,
      #4ee9ff,
      #608cff,
      #cc70ff
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hub-hero--ranking h1 span {
  color: #f2c45b;
}

.hub-hero p {
  max-width: 660px;
  color: #9aadb8;
  font-size: 1.03rem;
  line-height: 1.65;
}

.hub-tags {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-tags span {
  padding: 6px 11px;
  border: 1px solid #183441;
  border-radius: 999px;
  background: #07141b;
  color: #6f8995;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.hub-hero__stage {
  min-height: 400px;
  position: relative;
}

.hub-orbit {
  width: 300px;
  height: 300px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform:
    translate(-50%,-50%);
  border: 1px solid
    rgba(255,90,95,.45);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px
      rgba(255,90,95,.035),
    0 0 80px
      rgba(255,90,95,.1);
}

.hub-hero--spin .hub-orbit {
  border-color:
    rgba(75,222,255,.45);
  box-shadow:
    0 0 0 38px
      rgba(115,80,255,.04),
    0 0 85px
      rgba(65,210,255,.13);
}

.hub-hero--ranking .hub-orbit {
  border-color:
    rgba(244,196,85,.43);
}

.hub-hero-mon {
  position: absolute;
  z-index: 3;
  object-fit: contain;
  filter:
    drop-shadow(
      0 24px 28px
      rgba(0,0,0,.48)
    );
}

.hub-hero-mon--main {
  width:
    clamp(190px,20vw,300px);
  height:
    clamp(190px,20vw,300px);
  left: 27%;
  top: 17%;
}

.hub-hero-mon--side {
  width:
    clamp(110px,11vw,170px);
  height:
    clamp(110px,11vw,170px);
  right: 9%;
  top: 35%;
}

.hub-ghost-word {
  position: absolute;
  right: -25px;
  bottom: -55px;
  color:
    rgba(255,255,255,.035);
  font-size:
    clamp(8rem,15vw,16rem);
  font-weight: 950;
  letter-spacing: -.11em;
  pointer-events: none;
}

.ranking-crown {
  width: 72px;
  height: 72px;
  position: absolute;
  left: 51%;
  top: 49%;
  z-index: 5;
  transform:
    translate(-50%,-50%);
  display: grid;
  place-items: center;
  border: 1px solid #d9aa45;
  border-radius: 50%;
  background: #0b1519;
  color: #efc25b;
  font-size: 2rem;
}

.hub-trainer {
  min-height: 86px;
  padding: 16px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid #1b3543;
  border-radius: 18px;
  background: #091720;
}

.hub-trainer__avatar {
  width: 49px;
  height: 49px;
  flex: 0 0 49px;
  display: grid;
  place-items: center;
  border: 2px solid #ff6268;
  border-radius: 50%;
  font-weight: 950;
}

.hub-trainer__identity {
  flex: 1;
}

.hub-trainer__identity span,
.hub-trainer__status span {
  display: block;
  color: #667f8c;
  font-size: .59rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.hub-trainer__identity strong,
.hub-trainer__status strong {
  display: block;
  margin-top: 5px;
}

.hub-trainer__inventory {
  display: flex;
  gap: 8px;
}

.hub-trainer__inventory span {
  min-width: 57px;
  padding: 9px;
  border: 1px solid #1a3542;
  border-radius: 9px;
  background: #06131a;
  text-align: center;
}

.hub-trainer__inventory b {
  margin-left: 3px;
}

.hub-trainer__status {
  min-width: 180px;
  padding-left: 22px;
  border-left: 1px solid #1e3642;
  text-align: right;
}

.spin-rewards {
  display: grid;
  grid-template-columns:
    repeat(7,1fr);
  gap: 8px;
}

.spin-reward-card {
  min-height: 83px;
  padding: 12px;
  display: grid;
  grid-template-columns:
    auto 1fr;
  gap: 3px 9px;
  align-items: center;
  border: 1px solid #1b4054;
  border-radius: 12px;
  background:
    linear-gradient(
      145deg,
      #091b2b,
      #071321
    );
}

.spin-reward-card div {
  grid-row: 1 / 3;
  font-size: 1.35rem;
}

.spin-reward-card strong {
  font-size: .66rem;
}

.spin-reward-card span {
  color: #718b99;
  font-size: .62rem;
  font-weight: 900;
}

.spin-reward-card--shiny_egg {
  border-color:
    rgba(240,197,82,.55);
}

.spin-reward-card--legendary_egg {
  border-color:
    rgba(189,109,255,.55);
}

.spin-layout {
  display: grid;
  grid-template-columns:
    minmax(0,1.7fr)
    minmax(310px,.75fr);
  gap: 18px;
}

.spin-console,
.hub-panel,
.ranking-board {
  padding: 24px;
  border: 1px solid #193846;
  border-radius: 20px;
  background: #071720;
}

.spin-sidebar {
  display: grid;
  align-content: start;
}

.hub-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.hub-panel-head h2,
.hub-panel h2 {
  margin: 6px 0 0;
  font-size: 1.6rem;
}

.hub-panel-head > span {
  color: #607987;
  font-size: .6rem;
  font-weight: 900;
}

.spin-ready-light {
  padding: 8px 12px;
  border: 1px solid #2a3b43;
  border-radius: 999px;
  color: #6b7f89;
  font-size: .59rem;
  font-weight: 950;
  letter-spacing: .08em;
}

.spin-ready-light i {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: #66747a;
}

.spin-ready-light.is-ready {
  border-color:
    rgba(75,225,165,.45);
  color: #5bdcab;
}

.spin-ready-light.is-ready i {
  background: #4de2a3;
  box-shadow:
    0 0 12px #4de2a3;
}

.portal-spin-wheel {
  width: min(100%,570px);
  aspect-ratio: 1;
  position: relative;
  margin: 30px auto;
}

.portal-spin-wheel__disk {
  width: 90%;
  height: 90%;
  position: absolute;
  left: 5%;
  top: 5%;
  border: 8px solid #183e55;
  border-radius: 50%;
  background:
    conic-gradient(
      #e93e50 0deg 51.43deg,
      #3386ce 51.43deg 102.86deg,
      #263446 102.86deg 154.29deg,
      #9150d0 154.29deg 205.72deg,
      #e6a236 205.72deg 257.15deg,
      #e6cf58 257.15deg 308.58deg,
      #7035c1 308.58deg 360deg
    );
  box-shadow:
    0 0 0 10px
      rgba(35,173,222,.11),
    0 0 55px
      rgba(55,200,255,.2);
  transition:
    transform 4.2s
    cubic-bezier(.12,.66,.08,1);
}

.portal-spin-wheel__pointer {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: -2px;
  transform:
    translateX(-50%);
  color: #ffe16b;
  font-size: 3.2rem;
  filter:
    drop-shadow(
      0 4px 6px
      rgba(0,0,0,.6)
    );
}

.portal-spin-wheel__label {
  --radius: 39%;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 55px;
  margin:
    -27px 0 0 -38px;
  display: grid;
  place-items: center;
  align-content: center;
  transform:
    rotate(
      var(--wheel-angle)
    )
    translateY(-175px)
    rotate(
      calc(
        -1 *
        var(--wheel-angle)
      )
    );
  color: #fff;
  text-align: center;
  text-shadow:
    0 2px 4px
    rgba(0,0,0,.75);
}

.portal-spin-wheel__label span {
  font-size: 1.25rem;
}

.portal-spin-wheel__label small {
  display: block;
  margin-top: 2px;
  font-size: .48rem;
  font-weight: 950;
}

.portal-spin-wheel__hub {
  width: 108px;
  height: 108px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform:
    translate(-50%,-50%);
  display: grid;
  place-items: center;
  align-content: center;
  border: 5px solid #cfe6f1;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      #4d7693,
      #07141c 70%
    );
  color: #fff;
  box-shadow:
    0 5px 25px
    rgba(0,0,0,.4);
}

.portal-spin-wheel__hub span {
  color: #8adff6;
  font-size: .53rem;
  font-weight: 950;
  letter-spacing: .14em;
}

.portal-spin-wheel__hub strong {
  margin-top: 4px;
  color: #ff6268;
  font-size: 2rem;
}

.spin-main-button {
  width: min(100%,570px);
  min-height: 55px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #42cdf3;
  border-radius: 11px;
  background:
    linear-gradient(
      90deg,
      #2dd4ee,
      #6b85ff,
      #bf66f6
    );
  color: #06131a;
  font-weight: 950;
  cursor: pointer;
}

.spin-main-button small {
  font-size: .55rem;
  letter-spacing: .08em;
}

.spin-main-button:disabled {
  border-color: #48545c;
  background: #596066;
  color: #252b2e;
  cursor: default;
  opacity: .75;
}

.hub-message {
  width: min(100%,570px);
  min-height: 42px;
  margin: 12px auto 0;
  padding: 11px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #5edff4;
  text-align: center;
  font-size: .68rem;
  font-weight: 900;
}

.hub-message[data-type="success"] {
  color: #52dda4;
}

.hub-message[data-type="error"] {
  color: #ff747b;
}

.spin-egg-stats {
  display: grid;
  grid-template-columns:
    1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}

.spin-egg-stats article {
  padding: 16px 8px;
  border: 1px solid #1a3542;
  border-radius: 10px;
  background: #06131a;
  text-align: center;
}

.spin-egg-stats strong {
  display: block;
  font-size: 1.45rem;
}

.spin-egg-stats span {
  display: block;
  margin-top: 5px;
  color: #627b89;
  font-size: .52rem;
  font-weight: 900;
}

.spin-egg-list {
  display: grid;
}

.spin-egg-list article {
  padding: 13px 0;
  display: flex;
  gap: 11px;
  align-items: center;
  border-bottom: 1px solid #19313c;
}

.spin-egg-list article > span {
  font-size: 1.4rem;
}

.spin-egg-list strong,
.spin-egg-list small {
  display: block;
}

.spin-egg-list strong {
  font-size: .69rem;
}

.spin-egg-list small {
  margin-top: 3px;
  color: #69818e;
  font-size: .56rem;
}

.spin-inventory-link {
  margin-top: 16px;
  padding: 11px;
  display: block;
  border: 1px solid #1d4352;
  border-radius: 9px;
  color: #55dff7;
  text-decoration: none;
  font-size: .65rem;
  font-weight: 950;
}

.spin-recent-panel {
  padding: 24px;
}

.spin-recent-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns:
    1fr 1fr;
  gap: 8px 12px;
}

.spin-recent-row {
  min-height: 59px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns:
    38px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #183440;
  border-radius: 10px;
  background: #06131a;
}

.spin-recent-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #294553;
  border-radius: 50%;
  font-weight: 950;
}

.spin-recent-row strong,
.spin-recent-row small {
  display: block;
}

.spin-recent-row small {
  margin-top: 2px;
  color: #5e7785;
  font-size: .5rem;
  font-weight: 900;
}

.spin-recent-row > b {
  color: #e8bd56;
  font-size: .69rem;
}


/* =========================================================
   RANKING
   ========================================================= */

.ranking-summary {
  display: grid;
  grid-template-columns:
    repeat(3,1fr);
  gap: 10px;
}

.ranking-summary article {
  padding: 20px;
  border: 1px solid #213b45;
  border-radius: 15px;
  background:
    linear-gradient(
      145deg,
      #0d1d24,
      #07141a
    );
}

.ranking-summary span {
  display: block;
  color: #718793;
  font-size: .57rem;
  font-weight: 900;
  letter-spacing: .11em;
}

.ranking-summary strong {
  display: block;
  margin-top: 9px;
  font-size: 1.05rem;
}

.ranking-summary b {
  display: block;
  margin-top: 6px;
  color: #efc25b;
  font-size: .71rem;
}

.ranking-grid {
  display: grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap: 18px;
  align-items: start;
}

.ranking-board > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.ranking-board h2 {
  margin: 6px 0 0;
  font-size: 1.45rem;
}

.ranking-board__count {
  color: #607986;
  font-size: .55rem;
  font-weight: 900;
}

.ranking-podium {
  min-height: 225px;
  margin: 23px 0;
  padding-top: 35px;
  display: grid;
  grid-template-columns:
    repeat(3,1fr);
  gap: 7px;
  align-items: end;
}

.ranking-podium__trainer {
  min-width: 0;
  padding: 15px 5px;
  display: grid;
  place-items: center;
  border: 1px solid #203a45;
  border-radius: 12px 12px 6px 6px;
  background:
    linear-gradient(
      180deg,
      #0e242b,
      #07141a
    );
  color: #dce9ee;
  text-decoration: none;
  text-align: center;
}

.ranking-podium__trainer--1 {
  min-height: 190px;
  border-color:
    rgba(239,194,91,.65);
  background:
    linear-gradient(
      180deg,
      rgba(232,183,72,.14),
      #08151a
    );
}

.ranking-podium__trainer--2 {
  min-height: 150px;
}

.ranking-podium__trainer--3 {
  min-height: 130px;
}

.ranking-avatar,
.ranking-row__avatar {
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #35505b;
  border-radius: 50%;
  background: #0c1c22;
  font-weight: 950;
}

.ranking-avatar {
  width: 56px;
  height: 56px;
  margin-bottom: 7px;
}

.ranking-avatar img,
.ranking-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-podium__trainer > span {
  color: #efc25b;
  font-size: .56rem;
  font-weight: 950;
}

.ranking-podium__trainer strong {
  width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: #ecf3f6;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .7rem;
}

.ranking-podium__trainer b {
  margin-top: 9px;
  color: #efc25b;
  font-size: 1.15rem;
}

.ranking-podium__trainer small {
  color: #6b838f;
  font-size: .49rem;
  font-weight: 900;
}

.ranking-list {
  display: grid;
}

.ranking-row {
  min-height: 61px;
  padding: 9px 2px;
  display: grid;
  grid-template-columns:
    28px 40px minmax(0,1fr) auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid #19313c;
  color: #dce8ed;
  text-decoration: none;
}

.ranking-place {
  color: #718995;
  font-size: .65rem;
  font-weight: 950;
}

.ranking-row__avatar {
  width: 38px;
  height: 38px;
}

.ranking-row__name {
  min-width: 0;
}

.ranking-row__name strong,
.ranking-row__name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row__name strong {
  font-size: .7rem;
}

.ranking-row__name small {
  margin-top: 2px;
  color: #5d7480;
  font-size: .45rem;
  font-weight: 900;
}

.ranking-row > b {
  color: #eac05d;
  font-size: .8rem;
}

.ranking-row > span:last-child {
  display: none;
}

.ranking-row:hover {
  background:
    rgba(255,255,255,.018);
}

.hub-empty {
  padding: 24px;
  color: #657d89;
  text-align: center;
}

.hub-footer {
  padding: 4px 2px 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #607986;
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.hub-loading,
.hub-locked {
  min-height: 540px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 15px;
  text-align: center;
}

.hub-loading > span {
  width: 38px;
  height: 38px;
  border: 3px solid #193440;
  border-top-color: #ff6268;
  border-radius: 50%;
  animation:
    hubSpin .8s
    linear infinite;
}

.hub-locked h1 {
  margin: 0;
  font-size:
    clamp(2.5rem,6vw,5rem);
}

.hub-locked p {
  color: #718995;
}

.hub-locked a {
  padding: 12px 18px;
  border: 1px solid #ff6268;
  border-radius: 9px;
  color: #ff777d;
  text-decoration: none;
  font-weight: 900;
}

.hub-locked a.secondary {
  border-color: #24404c;
  color: #728b97;
}

@keyframes hubSpin {
  to {
    transform: rotate(360deg);
  }
}


@media (max-width: 1120px) {
  .spin-rewards {
    grid-template-columns:
      repeat(4,1fr);
  }

  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .ranking-board {
    max-width: 850px;
    width: 100%;
    margin: auto;
  }
}


@media (max-width: 900px) {
  .portal-hub-page {
    padding: 16px;
  }

  .hub-hero,
  .spin-layout {
    grid-template-columns: 1fr;
  }

  .hub-hero__stage {
    min-height: 290px;
  }

  .hub-trainer {
    flex-wrap: wrap;
  }

  .hub-trainer__inventory {
    order: 4;
    width: 100%;
  }

  .hub-trainer__status {
    margin-left: auto;
  }

  .ranking-summary {
    grid-template-columns: 1fr;
  }

  .spin-recent-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 600px) {
  .hub-hero__copy {
    padding: 28px 22px;
  }

  .hub-hero__stage {
    min-height: 230px;
  }

  .hub-hero-mon--main {
    width: 160px;
    height: 160px;
  }

  .hub-hero-mon--side {
    width: 100px;
    height: 100px;
  }

  .spin-rewards {
    grid-template-columns:
      repeat(2,1fr);
  }

  .portal-spin-wheel__label {
    transform:
      rotate(
        var(--wheel-angle)
      )
      translateY(-120px)
      rotate(
        calc(
          -1 *
          var(--wheel-angle)
        )
      );
  }

  .hub-trainer__status {
    width: 100%;
    padding: 12px 0 0;
    border-top: 1px solid #1e3642;
    border-left: 0;
    text-align: left;
  }

  .hub-footer {
    flex-direction: column;
  }
}
