:root {
  --bg: #050907;
  --bg-2: #09150f;
  --panel: #0d1912;
  --panel-2: #102118;
  --line: rgba(245, 194, 66, .34);
  --gold: #f6c84a;
  --gold-2: #ffe38a;
  --green: #0e8b54;
  --green-2: #16c878;
  --red: #d51f2a;
  --text: #fff9e7;
  --muted: #b6c5ba;
  --paper-muted: #6f796f;
  --shadow: 0 22px 60px rgba(0, 0, 0, .32);
  --radius: 8px;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 22% 3%, rgba(246, 200, 74, .16), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(22, 200, 120, .18), transparent 30%),
    linear-gradient(180deg, #030504 0%, #07100b 38%, #f3f6f0 38%, #f3f6f0 100%);
  color: var(--text);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: #020303;
  border-bottom: 1px solid rgba(246, 200, 74, .45);
  color: #d8decf;
  font-size: 13px;
}

.topbar .wrap,
.masthead .wrap,
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar .wrap {
  min-height: 34px;
}

.top-note {
  color: var(--gold-2);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.top-actions {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.top-actions a {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #eef4ea;
  background: rgba(255, 255, 255, .06);
  font-weight: 700;
  font-size: 12px;
}

.masthead {
  background: linear-gradient(180deg, #07100b, #09150f);
  border-bottom: 1px solid rgba(246, 200, 74, .25);
}

.masthead .wrap {
  min-height: 96px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px 16px 8px 8px;
  background:
    linear-gradient(135deg, rgba(246, 200, 74, .95), rgba(13, 139, 84, .92)),
    #17351f;
  color: #07100b;
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 0 0 1px rgba(255, 227, 138, .65), 0 18px 32px rgba(0, 0, 0, .28);
}

.brand-title {
  display: block;
  margin: 0;
  color: var(--gold-2);
  font-size: 38px;
  font-weight: 950;
  line-height: .94;
  text-transform: uppercase;
}

.brand-title span {
  color: var(--green-2);
}

.brand-subtitle {
  display: block;
  margin: 7px 0 0;
  color: #cad6ce;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search {
  width: 320px;
  max-width: 34vw;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid rgba(246, 200, 74, .28);
  border-radius: 6px;
  color: #88958d;
  background: rgba(0, 0, 0, .35);
  font-size: 13px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(90deg, #c71622, #e2272d 52%, #c71622);
  box-shadow: 0 12px 24px rgba(213, 31, 42, .23);
}

.nav .wrap {
  justify-content: center;
  min-height: 52px;
}

.nav a {
  height: 52px;
  display: inline-flex;
  align-items: center;
  padding: 0 19px;
  color: #fff8e7;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}

.nav a.active {
  border-bottom-color: var(--gold);
  background: rgba(0, 0, 0, .1);
}

main {
  padding-bottom: 60px;
}

.breaking {
  margin: 26px auto 18px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border: 1px solid rgba(246, 200, 74, .32);
  border-radius: var(--radius);
  background: rgba(5, 9, 7, .78);
  box-shadow: var(--shadow);
  color: #dbe6d6;
}

.breaking strong {
  color: var(--gold-2);
  font-size: 13px;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: stretch;
}

.hero-card,
.article-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(246, 200, 74, .48);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(3, 5, 4, .94) 0%, rgba(3, 5, 4, .72) 43%, rgba(3, 5, 4, .16) 100%),
    url("/assets/u9win-hero.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: 472px;
}

.hero-content {
  width: min(560px, 72%);
  padding: 58px 0 52px 58px;
  position: relative;
  z-index: 1;
}

.hero-content h1,
.article-hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.1vw, 64px);
  line-height: 1.03;
  letter-spacing: 0;
  color: #fffdf4;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}

.hero-content h1 span {
  color: var(--gold);
}

.hero-content p,
.article-hero p {
  margin: 20px 0 30px;
  max-width: 490px;
  color: #e1e9df;
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 227, 138, .58);
  font-size: 14px;
  font-weight: 950;
}

.btn.primary {
  color: #051008;
  background: linear-gradient(135deg, var(--gold), #fff1a6);
  box-shadow: 0 12px 24px rgba(246, 200, 74, .22);
}

.btn.secondary {
  color: #fff9e7;
  background: rgba(4, 8, 5, .68);
}

.side-panel {
  display: grid;
  gap: 16px;
}

.rank-card,
.schedule-card,
.article-side {
  border: 1px solid rgba(246, 200, 74, .34);
  border-radius: var(--radius);
  background: rgba(8, 16, 12, .92);
  box-shadow: var(--shadow);
}

.rank-card h2,
.schedule-card h2,
.article-side h2 {
  margin: 0;
  padding: 18px 18px 14px;
  color: var(--gold-2);
  font-size: 17px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--red);
}

.rank-list,
.update-list {
  margin: 0;
  padding: 14px 18px 18px;
  list-style: none;
  display: grid;
  gap: 14px;
}

.rank-list li,
.rank-list a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.rank-list b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #061008;
  background: var(--gold);
  border-radius: 6px;
  font-size: 14px;
}

.rank-list strong,
.update-list strong,
.rank-list h3 {
  display: block;
  margin: 0;
  color: #fff8e7;
  font-size: 14px;
  line-height: 1.35;
}

.rank-list span,
.update-list span {
  display: block;
  margin-top: 4px;
  color: #a7b8ad;
  font-size: 12px;
}

.update-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}

.date-box {
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, #0e8b54, #0a5d3d);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.feature {
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid rgba(246, 200, 74, .34);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(11, 28, 18, .94), rgba(3, 7, 5, .94));
  box-shadow: 0 16px 32px rgba(0, 0, 0, .2);
}

.feature-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #07100b;
  background: linear-gradient(135deg, #ffe38a, #f0b833);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.feature strong {
  display: block;
  color: var(--gold-2);
  font-size: 14px;
  text-transform: uppercase;
}

.feature > span:not(.feature-icon) {
  display: block;
}

.feature > span:not(.feature-icon) > span {
  display: block;
  margin-top: 5px;
  color: #c9d5cd;
  font-size: 12px;
  line-height: 1.35;
}

.step-band {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 280px repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  border: 1px solid rgba(246, 200, 74, .44);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(3, 7, 5, .96), rgba(8, 38, 22, .9)),
    url("/assets/u9win-hero.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.step-title h2 {
  margin: 0 0 9px;
  color: var(--gold-2);
  font-size: 26px;
  line-height: 1.12;
}

.step-title p,
.step-card p {
  margin: 0;
  color: #cbd8cf;
  font-size: 13px;
  line-height: 1.5;
}

.step-card {
  padding: 18px;
  border: 1px solid rgba(255, 227, 138, .28);
  border-radius: var(--radius);
  background: rgba(4, 10, 7, .68);
  backdrop-filter: blur(3px);
}

.step-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 8px;
  background: var(--gold);
  color: #081109;
  font-size: 18px;
  font-weight: 950;
}

.step-card h3 {
  margin: 0 0 8px;
  color: #fff8e7;
  font-size: 16px;
}

.content-light {
  margin-top: 32px;
  color: #111a13;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--red);
}

.section-head h2 {
  margin: 0;
  color: var(--red);
  font-size: 22px;
  font-weight: 950;
  text-transform: uppercase;
}

.section-head a {
  color: #0d6b45;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

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

.news-card {
  overflow: hidden;
  border: 1px solid #dce4da;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 36, 26, .09);
}

.news-thumb {
  height: 150px;
  background:
    linear-gradient(90deg, rgba(6, 13, 9, .34), rgba(6, 13, 9, .04)),
    url("/assets/u9win-hero.png") center / cover no-repeat;
}

.news-body {
  padding: 20px;
}

.news-date {
  display: block;
  margin-bottom: 10px;
  color: #0e8b54;
  font-size: 12px;
  font-weight: 950;
}

.news-card h3 {
  margin: 0 0 10px;
  color: #121c15;
  font-size: 20px;
  line-height: 1.18;
}

.news-card p {
  margin: 0 0 16px;
  color: var(--paper-muted);
  font-size: 14px;
  line-height: 1.55;
}

.readmore {
  color: var(--red);
  font-weight: 950;
  font-size: 13px;
  text-transform: uppercase;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  color: #1b271f;
}

.pager a,
.pager span {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #dbe4db;
  border-radius: 6px;
  background: #fff;
  color: #0d6b45;
  font-size: 13px;
  font-weight: 900;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 24px;
  margin-top: 30px;
}

.paper-panel {
  border: 1px solid #dbe4db;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 36, 26, .08);
}

.paper-panel h2 {
  margin: 0;
  padding: 22px 24px 14px;
  color: #101a13;
  font-size: 24px;
  border-bottom: 2px solid var(--red);
}

.guide-list {
  display: grid;
  gap: 0;
  padding: 10px 24px 22px;
}

.guide-list div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #e9eee7;
}

.guide-list div:last-child {
  border-bottom: 0;
}

.guide-list strong {
  color: var(--red);
  text-transform: uppercase;
  font-size: 13px;
}

.guide-list span {
  color: #1b271f;
  font-weight: 800;
  line-height: 1.35;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 24px 24px;
}

.info-box {
  padding: 18px;
  border: 1px solid #e4ebe2;
  border-radius: var(--radius);
  background: #fbfdf9;
}

.info-box strong {
  display: block;
  color: #111a13;
  font-size: 15px;
  margin-bottom: 8px;
}

.info-box span {
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.45;
}

.article-hero {
  margin: 26px auto 24px;
  padding: 54px;
  min-height: 300px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
  color: #111a13;
}

.article-body {
  padding: 34px;
  border: 1px solid #dbe4db;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 36, 26, .08);
}

.article-body time {
  display: block;
  color: #0e8b54;
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 12px;
}

.article-body h2,
.article-body h3 {
  color: #101a13;
}

.article-body h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.2;
}

.article-body h3 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.article-body p,
.article-body li {
  color: #465249;
  font-size: 16px;
  line-height: 1.75;
}

.article-body a {
  color: var(--red);
  font-weight: 800;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

.prev-next {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e5ece3;
}

footer {
  background: #07100c;
  border-top: 1px solid rgba(246, 200, 74, .25);
  color: #c4d0c7;
  padding: 36px 0;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 32px;
}

footer h2 {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 15px;
  text-transform: uppercase;
}

footer p,
footer a {
  display: block;
  margin: 0 0 8px;
  color: #c4d0c7;
  font-size: 13px;
  line-height: 1.55;
}

.copyright {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
  color: #8b998e;
  font-size: 12px;
}

@media (max-width: 960px) {
  .wrap {
    width: min(100% - 28px, 760px);
  }

  .topbar .wrap,
  .masthead .wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .search {
    width: 100%;
    max-width: none;
  }

  .nav .wrap {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .hero-grid,
  .two-col,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .step-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(22, 200, 120, .13), transparent 24%),
      linear-gradient(180deg, #030504 0%, #07100b 42%, #f3f6f0 42%, #f3f6f0 100%);
  }

  .brand-title {
    font-size: 32px;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions a {
    flex: 1;
    text-align: center;
  }

  .hero-card {
    min-height: 520px;
    background:
      linear-gradient(180deg, rgba(3, 5, 4, .94) 0%, rgba(3, 5, 4, .8) 45%, rgba(3, 5, 4, .28) 100%),
      url("/assets/u9win-hero.png") center / cover no-repeat;
  }

  .hero-content {
    width: 100%;
    padding: 34px 24px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .article-hero {
    padding: 34px 24px;
  }

  .article-hero h1 {
    font-size: 32px;
  }

  .article-body {
    padding: 24px;
  }

  .feature-row,
  .news-grid,
  .info-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .guide-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Codex 2026-07-07: links added for real U9WIN column pages. */
.feature > a,
.step-card > a,
.update-list a,
.info-box a {
  display: inherit;
  color: inherit;
  text-decoration: none;
}

.feature > a {
  align-items: center;
  gap: 14px;
}

.update-list a {
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}

.news-card h3 a:hover,
.section-head a:hover,
.readmore:hover,
.guide-list a:hover,
footer a:hover {
  color: var(--red);
}

/* Codex 2026-07-07: make linked rank items span the full card width. */
.rank-list li {
  display: block;
}

.rank-list li > a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
}

/* Codex 2026-07-07: make linked rank items span the full card width. */
.rank-list li {
  display: block;
}

.rank-list li > a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
}

/* Codex 2026-07-07: make linked schedule items span the full card width. */
.update-list li {
  display: block;
}

.update-list li > a {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
}
