:root{--resident-bg:#0d0d0f;--resident-panel:#17171a;--resident-panel-2:#1d1c1a;--resident-text:#f2f0ea;--resident-muted:#b6b1a5;--resident-gold:#c9a54a;--resident-gold-soft:#e1c57e;--resident-border:#3a3426}.resident-tournaments{max-width:1180px;margin:0 auto;padding:12px 18px 54px;color:var(--resident-text);font-family:inherit}.resident-tournaments__hero{position:relative;overflow:hidden;margin-bottom:14px;padding:26px 28px;border:1px solid var(--resident-border);border-radius:16px;background:radial-gradient(circle at 84% 14%,rgba(201,165,74,.12),transparent 30%),linear-gradient(118deg,#0d0d0f,#181713 58%,#10100f)}.resident-tournaments__hero:after{content:"";position:absolute;right:-110px;top:-165px;width:360px;height:360px;border:1px solid rgba(201,165,74,.16);border-radius:50%;box-shadow:0 0 0 34px rgba(201,165,74,.035),0 0 0 70px rgba(201,165,74,.02)}.resident-tournaments__hero h1{position:relative;z-index:1;margin:0;font-size:clamp(25px,3vw,36px);letter-spacing:-.03em}.resident-tournaments__hero p{position:relative;z-index:1;max-width:570px;margin:8px 0 0;color:var(--resident-muted);font-size:15px}.resident-tournaments__tabs{display:flex;gap:9px;margin:0 0 20px;padding:7px;border:1px solid var(--resident-border);border-radius:14px;background:rgba(23,23,26,.92);backdrop-filter:blur(12px)}.resident-tournaments__tabs button{border:1px solid transparent;background:transparent;color:#aaa69d;padding:10px 16px;border-radius:9px;font:inherit;font-size:13px;font-weight:800;letter-spacing:.01em;cursor:pointer;transition:.2s ease}.resident-tournaments__tabs button:hover{border-color:rgba(201,165,74,.42);background:rgba(201,165,74,.09);color:var(--resident-text)}.resident-tournaments__tabs button.is-active{border-color:#d1b15d;background:#c9a54a;box-shadow:0 7px 15px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.26);color:#18150d}.resident-tournaments__content{display:grid;gap:18px}.resident-tournaments__loading,.resident-tournaments__empty{margin:0;padding:40px 20px;text-align:center;border:1px solid #292825;border-radius:14px;background:#141416}.resident-tournaments__empty strong,.resident-tournaments__empty span{display:block}.resident-tournaments__empty span{margin-top:7px;color:#9c998f}
.resident-tournament-card{overflow:hidden;border:1px solid var(--resident-border);border-radius:16px;background:var(--resident-panel);box-shadow:0 18px 42px rgba(0,0,0,.38)}.resident-tournament-card__visual{position:relative;height:270px;overflow:hidden;isolation:isolate;background:radial-gradient(circle at 72% 25%,rgba(201,165,74,.25) 0,rgba(201,165,74,.1) 11%,transparent 32%),linear-gradient(115deg,#0d0d0f,#242016 50%,#151411 100%)}.resident-tournament-card__visual:before{content:"";position:absolute;inset:-50% -15%;z-index:-1;background:repeating-conic-gradient(from 10deg,rgba(201,165,74,.08) 0deg 1deg,transparent 1deg 12deg);animation:residentSpin 28s linear infinite}.resident-tournament-card__visual:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(10,10,11,.93) 0%,rgba(16,15,13,.72) 58%,rgba(13,13,14,.24) 100%)}.resident-tournament-card__visual-noise{position:absolute;inset:0;z-index:-1;opacity:.11;background-image:radial-gradient(#fff 1px,transparent 1.7px);background-size:11px 11px;animation:residentStars 9s linear infinite}.resident-tournament-card__image{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;opacity:.5;mix-blend-mode:screen}.resident-tournament-card__visual-copy{position:absolute;z-index:2;left:clamp(20px,5vw,55px);top:50%;transform:translateY(-50%);display:grid;gap:6px;max-width:68%}.resident-tournament-card__label{font-size:12px;font-weight:900;letter-spacing:.18em;color:var(--resident-gold-soft);text-shadow:0 2px 8px #000}.resident-tournament-card__jackpot{font-size:clamp(37px,5.4vw,76px);font-weight:1000;line-height:.95;letter-spacing:-.055em;color:#eee9dc;text-shadow:0 3px 0 #78602b,0 8px 21px #050505,-2px 0 #fffaf0}.resident-tournament-card__event{margin-top:3px;font-weight:900;font-size:clamp(15px,2vw,25px);letter-spacing:.035em;color:var(--resident-text);text-shadow:0 2px 9px #000}.resident-tournament-card__orbs i{position:absolute;border-radius:50%;filter:blur(3px);opacity:.55;animation:residentFloat 7s ease-in-out infinite}.resident-tournament-card__orbs i:nth-child(1){width:150px;height:150px;right:11%;top:-35px;background:#c9a54a;animation-delay:-2s}.resident-tournament-card__orbs i:nth-child(2){width:90px;height:90px;right:26%;bottom:-28px;background:#8d7133;animation-delay:-4s}.resident-tournament-card__orbs i:nth-child(3){width:220px;height:220px;right:-64px;bottom:-90px;background:#4a4025;opacity:.45}.resident-tournament-card__coins{position:absolute;right:12%;bottom:23px;z-index:2}.resident-tournament-card__coins i{display:inline-flex;align-items:center;justify-content:center;width:43px;height:43px;margin-left:-5px;border:3px solid #dec57d;border-radius:50%;background:#b28f39;color:#17130b;font-style:normal;font-weight:1000;box-shadow:0 5px 12px rgba(0,0,0,.45);animation:residentCoin 3s ease-in-out infinite}.resident-tournament-card__coins i:nth-child(2){animation-delay:-.5s}.resident-tournament-card__coins i:nth-child(3){animation-delay:-1s}.resident-tournament-card__coins i:nth-child(4){animation-delay:-1.5s}.resident-tournament-card__status{position:absolute;z-index:3;top:14px;left:14px;padding:6px 9px;border:1px solid #d6bc73;border-radius:999px;background:#282317;color:#ead9a9;font-size:11px;font-weight:900;letter-spacing:.08em}
.resident-tournament-card__body{padding:20px;background:linear-gradient(180deg,#191816,#121214)}.resident-tournament-card__heading{display:flex;gap:22px;justify-content:space-between}.resident-tournament-card h2{margin:0;font-size:22px}.resident-tournament-card__heading p{margin:8px 0 0;color:#aaa69d}.resident-tournament-card__pool{display:none}.resident-tournament-card__meta{display:flex;flex-wrap:wrap;gap:9px 18px;align-items:center;margin:18px 0;padding:10px 0;border-top:1px solid var(--resident-border);border-bottom:1px solid var(--resident-border);color:#b8b4aa;font-size:13px}.resident-tournament-card__countdown{margin-left:auto;padding:7px 10px;border:1px solid #d0b05a;border-radius:7px;background:#c9a54a;color:#17140e;font-size:12px;font-weight:1000;letter-spacing:.04em}.resident-tournament-card__grid{display:grid;grid-template-columns:1fr 1.25fr;gap:20px}.resident-tournament-card h3{margin:0 0 10px;font-size:13px;text-transform:uppercase;letter-spacing:.07em;color:#e1d6b6}.resident-prize-list,.resident-leaderboard{list-style:none;margin:0;padding:0}.resident-prize-list li,.resident-leaderboard li{display:flex;align-items:center;gap:10px;min-height:34px;padding:6px 8px;border:1px solid rgba(201,165,74,.14);border-radius:7px;background:#201f1b}.resident-prize-list li+li,.resident-leaderboard li+li{margin-top:5px}.resident-prize-list span{min-width:50px;color:#c9c1aa}.resident-prize-list strong,.resident-leaderboard strong{margin-left:auto;color:#dec57d}.resident-leaderboard li{font-size:13px}.resident-rank{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#3c3729;font-weight:800}.resident-rank--1{background:#c9a54a;color:#15120c}.resident-rank--2{background:#b4ad9c;color:#11110f}.resident-rank--3{background:#93794a;color:#fff}.resident-tournament-card__empty{font-size:13px;padding:13px;text-align:left;color:#a9a69e}.resident-tournament-card__rules{margin-top:18px;padding-top:15px;border-top:1px solid var(--resident-border)}.resident-tournament-card__rules summary{cursor:pointer;font-weight:700;color:#dec57d}.resident-tournament-card__rules p{white-space:pre-line;line-height:1.55;color:#c5c2b8}@keyframes residentSpin{to{transform:rotate(360deg)}}@keyframes residentStars{to{background-position:100px 60px}}@keyframes residentFloat{50%{transform:translateY(14px) scale(1.04);opacity:.72}}@keyframes residentCoin{50%{transform:translateY(-8px)}}
@media(max-width:650px){.resident-tournaments{padding:14px 10px 35px}.resident-tournaments__hero{margin-bottom:12px;padding:20px;border-radius:12px}.resident-tournaments__hero h1{font-size:28px}.resident-tournaments__hero p{font-size:14px;line-height:1.45}.resident-tournaments__tabs{gap:5px;overflow-x:auto;padding:6px}.resident-tournaments__tabs button{padding:9px 13px;white-space:nowrap}.resident-tournament-card__visual{height:215px}.resident-tournament-card__visual-copy{left:20px;max-width:80%}.resident-tournament-card__jackpot{font-size:39px}.resident-tournament-card__event{font-size:15px}.resident-tournament-card__coins{right:12px;bottom:13px}.resident-tournament-card__coins i{width:32px;height:32px;font-size:13px}.resident-tournament-card__heading{flex-direction:column}.resident-tournament-card__meta{align-items:flex-start;flex-direction:column}.resident-tournament-card__countdown{margin-left:0}.resident-tournament-card__grid{grid-template-columns:1fr;gap:18px}}

/* Betovis-inspired tournament layout, powered by ResidentBet's own data. */
.resident-tournaments {
  --resident-tour-accent: #ff294d;
  --resident-tour-accent-dark: #9d102b;
  max-width: none;
  padding: 10px 10px 54px;
}
.resident-tournaments__hero {
  margin: 0;
  padding: 18px 20px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.resident-tournaments__hero::after { display: none; }
.resident-tournaments__hero h1 {
  font-size: 24px;
  text-transform: uppercase;
}
.resident-tournaments__hero p { margin-top: 5px; }
.resident-tournaments__tabs {
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
.resident-tournaments__tabs button {
  min-width: 92px;
  padding: 10px 16px;
  border: 1px solid #2b2d31;
  border-radius: 4px;
  background: #24262a;
  color: #e6e6e6;
  font-size: 12px;
}
.resident-tournaments__tabs button:hover {
  border-color: var(--resident-tour-accent);
  background: #2b2d31;
}
.resident-tournaments__tabs button.is-active {
  border-color: var(--resident-tour-accent);
  background: var(--resident-tour-accent);
  color: #fff;
  box-shadow: none;
}
.resident-tournaments__content { gap: 46px; }
.resident-tournament-card {
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  min-height: 405px;
  overflow: visible;
  border: 0;
  border-radius: 5px;
  background: #15171a;
  box-shadow: none;
}
.resident-tournament-card__visual {
  height: 100%;
  min-height: 405px;
  border-radius: 5px 0 0 5px;
  background: #26282c;
}
.resident-tournament-card__visual::before,
.resident-tournament-card__visual-noise,
.resident-tournament-card__orbs,
.resident-tournament-card__coins { display: none; }
.resident-tournament-card__visual::after {
  z-index: -1;
  background: linear-gradient(180deg,transparent 24%,rgba(10,11,13,.72) 54%,#222428 72%);
}
.resident-tournament-card__image {
  z-index: -2;
  opacity: 1;
  mix-blend-mode: normal;
}
.resident-tournament-card__visual-copy {
  top: auto;
  right: 20px;
  bottom: 76px;
  left: 20px;
  max-width: none;
  transform: none;
  text-align: center;
}
.resident-tournament-card__label {
  font-size: 12px;
  letter-spacing: .04em;
  color: #bbb;
}
.resident-tournament-card__jackpot {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
  color: #fff;
  text-shadow: none;
}
.resident-tournament-card__event {
  display: none;
}
.resident-tournament-card__status {
  top: 20px;
  left: 16px;
  padding: 5px 9px;
  border: 0;
  border-radius: 2px;
  background: var(--resident-tour-accent);
  color: #fff;
}
.resident-tournament-card__visual-copy::after {
  content: "HEMEN KATIL";
  display: block;
  margin-top: 14px;
  padding: 9px 10px;
  border-radius: 3px;
  background: var(--resident-tour-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.resident-tournament-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 16px 16px;
  border-radius: 0 5px 5px 0;
  background: #15171a;
}
.resident-tournament-card__heading {
  display: block;
  min-height: 148px;
  padding: 16px 0 12px;
  border-bottom: 1px solid #25272b;
}
.resident-tournament-card h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
}
.resident-tournament-card__heading p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #b8b9bc;
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.resident-tournament-card__meta {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  margin: 10px 0;
  padding: 0;
  border: 0;
}
.resident-tournament-card__meta > span,
.resident-tournament-card__countdown {
  display: flex;
  min-height: 56px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #292b2f;
  border-radius: 4px;
  background: #24262a;
  color: #ddd;
  align-items: center;
  font-size: 11px;
  line-height: 1.45;
}
.resident-tournament-card__countdown {
  border-color: rgba(255,41,77,.45);
  background: #24262a;
  color: #ff6a85;
}
.resident-tournament-card__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
  min-height: 116px;
}
.resident-tournament-card__grid > section {
  overflow: hidden;
  padding: 10px;
  border: 1px solid #292b2f;
  border-radius: 4px;
  background: #202226;
}
.resident-tournament-card h3 {
  margin-bottom: 7px;
  color: #fff;
  font-size: 11px;
}
.resident-prize-list,
.resident-leaderboard {
  max-height: 92px;
  overflow: auto;
}
.resident-prize-list li,
.resident-leaderboard li {
  min-height: 25px;
  padding: 3px 6px;
  border: 0;
  border-radius: 2px;
  background: #292b2f;
  font-size: 11px;
}
.resident-prize-list li + li,
.resident-leaderboard li + li { margin-top: 3px; }
.resident-tournament-card__rules {
  margin-top: 9px;
  padding-top: 8px;
  border-color: #292b2f;
}
.resident-tournament-card__rules summary {
  color: #fff;
  font-size: 11px;
  text-align: right;
}

@media (max-width: 767px) {
  .resident-tournaments {
    padding: 8px 8px 36px;
  }
  .resident-tournaments__hero {
    padding: 14px 4px 8px;
  }
  .resident-tournaments__hero h1 { font-size: 21px; }
  .resident-tournaments__hero p { font-size: 12px; }
  .resident-tournaments__tabs {
    gap: 5px;
    margin-bottom: 10px;
    padding: 5px 0;
  }
  .resident-tournaments__tabs button {
    min-width: auto;
    flex: 1 0 auto;
    padding: 8px 10px;
    font-size: 10px;
  }
  .resident-tournaments__content { gap: 18px; }
  .resident-tournament-card {
    grid-template-columns: 132px minmax(0,1fr);
    min-height: 230px;
    border: 1px solid #282a2e;
  }
  .resident-tournament-card__visual {
    min-height: 230px;
  }
  .resident-tournament-card__visual-copy {
    right: 8px;
    bottom: 34px;
    left: 8px;
  }
  .resident-tournament-card__label { font-size: 8px; }
  .resident-tournament-card__jackpot { font-size: 18px; }
  .resident-tournament-card__visual-copy::after {
    margin-top: 8px;
    padding: 7px 4px;
    font-size: 9px;
  }
  .resident-tournament-card__status {
    top: 7px;
    left: 6px;
    padding: 3px 5px;
    font-size: 8px;
  }
  .resident-tournament-card__body {
    padding: 0 8px 8px;
  }
  .resident-tournament-card__heading {
    min-height: auto;
    padding: 9px 0 7px;
  }
  .resident-tournament-card h2 {
    margin-bottom: 5px;
    font-size: 11px;
  }
  .resident-tournament-card__heading p {
    font-size: 9px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }
  .resident-tournament-card__meta {
    grid-template-columns: 1fr;
    gap: 3px;
    margin: 5px 0;
  }
  .resident-tournament-card__meta > span {
    display: none;
  }
  .resident-tournament-card__countdown {
    min-height: 27px;
    padding: 4px 6px;
    font-size: 9px;
  }
  .resident-tournament-card__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .resident-tournament-card__grid > section {
    padding: 6px;
  }
  .resident-tournament-card__grid > section:nth-child(2) {
    display: none;
  }
  .resident-tournament-card h3 { font-size: 9px; }
  .resident-prize-list { max-height: 68px; }
  .resident-prize-list li {
    min-height: 20px;
    padding: 2px 4px;
    font-size: 8px;
  }
  .resident-tournament-card__rules { display: none; }
}

/* Imported tournament cards mirror the source page structure. */
.resident-ref-card {
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  min-height: 405px;
  border-radius: 4px;
  background: #15171a;
  color: #e7e7e7;
}
.resident-ref-card__side {
  min-height: 405px;
  overflow: hidden;
  border-radius: 4px 0 0 4px;
  background: #292b2f;
}
.resident-ref-image {
  position: relative;
  height: 185px;
  overflow: hidden;
}
.resident-ref-image > span {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 16px;
  padding: 5px 10px;
  border-radius: 2px;
  background: var(--resident-tour-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.resident-ref-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resident-ref-prize {
  position: relative;
  display: flex;
  height: 220px;
  padding: 10px 20px 14px;
  align-items: center;
  flex-direction: column;
  background: #292b2f;
  text-align: center;
}
.resident-ref-prize::before,
.resident-ref-prize::after {
  content: "";
  position: absolute;
  top: -18px;
  width: 12px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(#babcc0,#54575c);
  box-shadow: 0 2px 3px rgba(0,0,0,.5);
}
.resident-ref-prize::before { left: 50px; }
.resident-ref-prize::after { right: 50px; }
.resident-ref-prize small {
  color: #bbb;
  font-size: 12px;
}
.resident-ref-prize > strong {
  margin: 6px 0 8px;
  color: #fff;
  font-size: 29px;
  font-weight: 400;
}
.resident-ref-prize em {
  color: var(--resident-tour-accent);
  font-size: 12px;
  font-style: normal;
}
.resident-ref-countdown {
  display: flex;
  min-height: 58px;
  margin-top: 3px;
  align-items: center;
  justify-content: center;
}
.resident-ref-countdown b {
  display: inline-flex;
  min-width: 24px;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
}
.resident-ref-prize button {
  width: 100%;
  margin-top: auto;
  padding: 9px;
  border: 0;
  border-radius: 3px;
  background: var(--resident-tour-accent);
  color: #fff;
  font: 800 12px/1 inherit;
}
.resident-ref-card__main {
  min-width: 0;
  padding: 0 14px 10px;
}
.resident-ref-card__main > header {
  position: relative;
  min-height: 150px;
  padding: 17px 0 12px;
}
.resident-ref-card h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
}
.resident-ref-card__main > header p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #b9bbc0;
  font-size: 12px;
  line-height: 1.55;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}
.resident-ref-card.is-expanded .resident-ref-card__main > header p {
  display: block;
}
.resident-ref-more {
  position: absolute;
  right: 0;
  bottom: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.resident-ref-details {
  display: grid;
  grid-template-columns: repeat(5,minmax(145px,1fr));
  gap: 8px;
  overflow-x: auto;
}
.resident-ref-detail {
  min-height: 94px;
  padding: 10px;
  border-radius: 4px;
  background: #292b2f;
}
.resident-ref-detail h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 10px;
  text-align: center;
}
.resident-ref-detail > div {
  display: flex;
  gap: 7px;
}
.resident-ref-detail span {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}
.resident-ref-detail small {
  color: #a8a9ac;
  font-size: 8px;
}
.resident-ref-detail strong {
  color: #d4d4d4;
  font-size: 9px;
}
.resident-ref-games {
  display: grid;
  grid-auto-columns: minmax(140px,1fr);
  grid-auto-flow: column;
  gap: 9px;
  overflow-x: auto;
  margin-top: 10px;
}
.resident-ref-game {
  position: relative;
  height: 132px;
  overflow: hidden;
  margin: 0;
  border-radius: 5px;
  background: #222;
}
.resident-ref-game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resident-ref-game figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 7px 6px;
  background: linear-gradient(transparent,rgba(0,0,0,.88));
  color: #fff;
  font-size: 9px;
}
@media (max-width: 767px) {
  .resident-ref-card {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 48% 52%;
    min-height: 205px;
  }
  .resident-ref-card__side { min-height: 205px; }
  .resident-ref-image { height: 112px; }
  .resident-ref-image > span {
    top: 7px;
    left: 5px;
    padding: 3px 5px;
    font-size: 7px;
  }
  .resident-ref-prize {
    height: 93px;
    padding: 5px 7px 6px;
  }
  .resident-ref-prize::before,
  .resident-ref-prize::after {
    top: -10px;
    width: 7px;
    height: 21px;
  }
  .resident-ref-prize::before { left: 32px; }
  .resident-ref-prize::after { right: 32px; }
  .resident-ref-prize small { font-size: 7px; }
  .resident-ref-prize > strong {
    margin: 2px 0;
    font-size: 14px;
  }
  .resident-ref-prize em { font-size: 7px; }
  .resident-ref-countdown {
    min-height: 18px;
    margin: 0;
  }
  .resident-ref-countdown b {
    min-width: 14px;
    font-size: 6px;
  }
  .resident-ref-prize button {
    padding: 5px;
    font-size: 7px;
  }
  .resident-ref-card__main {
    padding: 0 6px 6px;
  }
  .resident-ref-card__main > header {
    min-height: 92px;
    padding: 7px 0 4px;
  }
  .resident-ref-card h2 {
    margin-bottom: 4px;
    font-size: 9px;
  }
  .resident-ref-card__main > header p {
    font-size: 6.5px;
    line-height: 1.4;
    -webkit-line-clamp: 5;
  }
  .resident-ref-more {
    bottom: 2px;
    font-size: 6.5px;
  }
  .resident-ref-details {
    grid-template-columns: repeat(5,95px);
    gap: 4px;
  }
  .resident-ref-detail {
    min-height: 56px;
    padding: 4px;
  }
  .resident-ref-detail h3 {
    margin-bottom: 3px;
    font-size: 6px;
  }
  .resident-ref-detail small,
  .resident-ref-detail strong { font-size: 5.5px; }
  .resident-ref-games {
    grid-auto-columns: 72px;
    gap: 4px;
    margin-top: 4px;
  }
  .resident-ref-game { height: 61px; }
  .resident-ref-game figcaption {
    padding: 10px 3px 3px;
    font-size: 5.5px;
  }
}

/* Exact reference structure: centered secondary tabs and one-line toolbar. */
.resident-tournaments__subnav {
  display: flex;
  height: 47px;
  margin: -10px -10px 12px;
  border-bottom: 1px solid #292b2f;
  background: #15171a;
  align-items: stretch;
  justify-content: center;
}
.resident-tournaments__subnav a {
  position: relative;
  display: flex;
  min-width: 130px;
  padding: 0 22px;
  color: #8f9298;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.resident-tournaments__subnav a.is-active {
  color: #fff;
}
.resident-tournaments__subnav a.is-active::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 0;
  left: 24px;
  height: 2px;
  background: var(--resident-tour-accent);
}
.resident-tournaments__toolbar {
  display: flex;
  min-height: 52px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
}
.resident-tournaments__toolbar .resident-tournaments__tabs {
  margin: 0;
  padding: 0;
}
.resident-tournaments__free-toggle {
  display: inline-flex;
  gap: 10px;
  color: #a9abb0;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.resident-tournaments__free-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.resident-tournaments__free-toggle span {
  position: relative;
  width: 35px;
  height: 19px;
  border-radius: 12px;
  background: #656970;
}
.resident-tournaments__free-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #d7d8da;
  transition: .18s ease;
}
.resident-tournaments__free-toggle input:checked + span {
  background: var(--resident-tour-accent);
}
.resident-tournaments__free-toggle input:checked + span::after {
  transform: translateX(16px);
}
@media (max-width: 767px) {
  .resident-tournaments__subnav {
    height: 38px;
    margin: -8px -8px 7px;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .resident-tournaments__subnav a {
    min-width: 105px;
    padding: 0 12px;
    font-size: 11px;
  }
  .resident-tournaments__toolbar {
    display: block;
    margin-bottom: 8px;
  }
  .resident-tournaments__toolbar .resident-tournaments__tabs {
    width: 100%;
    padding-bottom: 5px;
  }
  .resident-tournaments__free-toggle {
    width: 100%;
    padding: 3px 1px 6px;
    justify-content: flex-end;
    font-size: 8px;
  }
  .resident-tournaments__free-toggle span {
    width: 29px;
    height: 16px;
  }
  .resident-tournaments__free-toggle span::after {
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
  }
  .resident-tournaments__free-toggle input:checked + span::after {
    transform: translateX(13px);
  }
}
