/* ===== POPUP STYLES ===== */
.SonicRacing .popup {
  position: fixed;
  z-index: 99;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-family: var(--font);
  overflow-y: auto;
  display: none;
}

.SonicRacing .popup.show {
  display: flex;
  align-items: center;
}

.SonicRacing .popup__wrapper {
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
  border: 1px solid #115dd5;
}

.SonicRacing .popup__header {
  padding: 25px;

  border-bottom: 1px solid #115dd5;
  background: #115dd5;
}

.SonicRacing .popup__header h2 {
  font-size: min(max(3.5vw, 28px), 36px);
  font-weight: bold;
  background-color: #f4dda3;
  background: url(https://storage-asset.msi.com/event/2025/NB/sonic-racing-crossworlds-nb-bundle/images/site_pattern.png)
    left center repeat-x;
  background-size: auto 100%;
  background-clip: text;
  color: #ffffff;
  line-height: 1.2;
  filter: drop-shadow(5px 0 10px rgba(193, 145, 17, 0.5));
  text-transform: uppercase;
  text-align: center;
}

.SonicRacing .popup__body {
  padding: 35px;
  background-color: #000;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 calc(100% - 300px);
  flex: 0 0 calc(100% - 300px);
  max-height: 100vh;
  overflow-y: auto;
}

@media (min-width: 996px) {
  .SonicRacing .popup__body {
    flex: 0 0 calc(100% - 300px);
    max-height: 100vh;
    overflow-y: auto;
  }
  .SonicRacing .popup__body::-webkit-scrollbar-thumb {
    background: #115dd5;
    border-radius: 20px;
  }
  .SonicRacing .popup__body::-webkit-scrollbar {
    width: 10px;
    background: #334c56;
  }
}

.SonicRacing .popup__body::-webkit-scrollbar-thumb {
  background: #115dd5;
  border-radius: 20px;
}

.SonicRacing .popup__body::-webkit-scrollbar {
  width: 10px;
  background: #4b125f;
}

.SonicRacing .popup__close {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1;
  width: 45px;
  height: 45px;
  cursor: pointer;
  background: url("https://storage-asset.msi.com/event/2025/JP/2025-Sonic-Racing-CrossWorlds/images/close.png")
    center center no-repeat;
  background-size: cover;
  opacity: 0.8;
}

.SonicRacing .popup__close:hover {
  opacity: 1;
}

@media (min-width: 996px) {
  .SonicRacing .popup__close {
    width: 90px;
    height: 90px;
  }
}

/* ===== TERMS SECTION ===== */
.SonicRacing .terms {
  font-size: 18px;
  line-height: 1.5;
}

.SonicRacing .terms h3 {
  padding: 0 3%;
  color: #49a9ff;
}
.SonicRacing .terms ol {
  padding-left: 20px;
}

.SonicRacing .terms ol li {
  margin-left: 20px;
  padding-bottom: 20px;
  list-style: decimal;
}

.SonicRacing .terms ul {
  margin-left: 20px;
  padding-bottom: 20px;
}

.SonicRacing .terms ul ol li {
  list-style: lower-roman;
}

.SonicRacing .terms ul li {
  list-style: disc;
  padding: 8px 0;
}

.SonicRacing .terms ul li ol li {
  list-style: lower-roman;
}

.SonicRacing .terms ul li span {
  color: #115dd5;
}
.tc-notice {
  text-align: center;
  margin: 2% auto;
  color: #ffb300;
}
.tc-notice a {
}
.SonicRacing .terms p {
  padding: 3%;
}

.SonicRacing .terms a {
  color: #49a9ff;
  border-bottom: #49a9ff 1px solid;
}

.SonicRacing .terms a:hover {
  border: none;
}
.tc-list-point {
  padding: 2%;
}
.tc-list-point-notop {
  padding: 0 2%;
}
.tc__title-top {
  margin-top: 2%;
}
.tc-date {
  position: relative;
  display: inline-block;
}
.tc-date:nth-of-type(1) {
  padding-top: 10px;
}

.tc-date::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 50%;
  top: 50%;
  left: 0%;
  transform: translate(0%, -50%);
  background-color: rgba(255, 179, 0, 0.3);
}
.tc-ol {
  padding-left: 40px;
}
.model__table {
  display: table;
  width: 80%;
  margin: auto;
  border-collapse: collapse;
  border: #115dd5 1px solid;
  text-align: center;
  margin-top: 15px;
}

.model__th {
  display: table-row;
}

.model__th .model__cell {
  background: #115dd5;
  color: #fff;
  border-right: rgba(255, 255, 255, 0.3) 1px solid;
  padding: 8px;
}

.model__th .model__cell:last-child {
  border: none;
}

.model__row {
  display: table-row;
}

.model__cell {
  display: table-cell;
  padding: 8px;
  border: #115dd5 1px solid;
}

.model__cell a {
  color: #fff;
}

.model__cell a:hover {
  text-decoration: underline;
}

.model__btn {
  text-align: center;
  padding-top: 40px;
}
