:root {
  --blue: #2f78ad;
  --blue-soft: #74a9cf;
  --blue-dark: #0e496d;
  --button: #0d4a70;
  --button-dark: #073451;
  --yellow: #e0d111;
  --text: #ffffff;
  --dark-text: #123047;
  --muted: #5e7283;
  --page: #ffffff;
  --soft-page: #f3f6f8;
  --line: rgba(255, 255, 255, 0.55);
  --border: #c8d8e5;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Ubuntu', Arial, Helvetica, sans-serif;
  background: var(--page);
  color: var(--dark-text);
}

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

.topbar {
  min-height: 106px;
  background: var(--blue);
  color: var(--text);
  position: relative;
  z-index: 10;
}

.topbar-inner {
  width: min(var(--max), calc(100% - 48px));
  height: 106px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-right: auto;
  min-width: 300px;
}

.brand img { width: 80px; height: 80px; }

.brand span {
  font-size: 39px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  height: 44px;
}

.main-nav a {
  height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-left: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.main-nav a:last-child { border-right: 1px solid var(--line); }
.main-nav a:hover { background: rgba(255, 255, 255, .12); }

.join-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 166px;
  height: 60px;
  background: var(--button);
  color: white;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 4px 9px rgba(0, 0, 0, .25);
}

.join-button:hover { background: var(--button-dark); }

.mobile-menu {
  display: none;
  background: var(--button);
  color: white;
  border: 0;
  padding: 10px 14px;
  font-weight: 700;
}

.hero {
  height: min(70vh, 660px);
  min-height: 460px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #244d73;
  background-image:
    linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, .18)),
    linear-gradient(135deg, #244d73, #89b6d6);
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .18);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  text-shadow: 0 3px 12px rgba(0,0,0,.35);
  padding: 0 28px;
}

.hero-copy h1 {
  margin: 0 0 54px;
  font-size: clamp(42px, 5vw, 78px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 700;
}

.hero-copy h1 span,
.hero-copy h1 strong {
  display: block;
}

.hero-copy h1 strong {
  color: var(--yellow);
}

.hero-copy p {
  margin: 0;
  font-size: clamp(23px, 2.4vw, 36px);
  line-height: 1.25;
  font-weight: 500;
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 58px;
  height: 58px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%) rotate(45deg);
}

.hero-arrow::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  border: solid white;
  border-width: 0 0 4px 4px;
  opacity: .9;
}

.hero-arrow-left { left: 9%; }
.hero-arrow-right { right: 9%; transform: translateY(-50%) rotate(225deg); }

.hero-arrow:hover::before { opacity: 1; }

.status-ribbon {
  background: var(--blue-dark);
  color: white;
}

.status-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  min-height: 110px;
  display: grid;
  grid-template-columns: 1.4fr .65fr .65fr .9fr 1fr;
  align-items: center;
  gap: 16px;
}

.status-block .label {
  display: block;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 8px;
}

.status-block strong,
.ip-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
}

.ip-copy {
  background: transparent;
  border: 0;
  color: white;
  padding: 0;
  cursor: pointer;
}

.ip-copy:hover { text-decoration: underline; }

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #999;
  display: inline-block;
}

.status-dot.online { background: #52d273; }
.status-dot.offline { background: #e34a4a; }

.status-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.status-actions a,
.small-button,
.big-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--blue-dark);
  min-height: 42px;
  padding: 0 18px;
  font-weight: 700;
}

.status-actions a:hover,
.small-button:hover,
.big-button:hover { background: #e8f1f8; }

.info-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 70px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.info-card {
  min-height: 210px;
  padding: 26px;
  background: white;
  border-top: 8px solid var(--blue);
  box-shadow: 0 12px 30px rgba(13, 74, 112, .13);
}

.info-card h2 {
  margin: 0 0 18px;
  color: var(--blue);
  text-transform: uppercase;
  font-size: 28px;
  letter-spacing: .06em;
}

.info-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.info-card:hover { transform: translateY(-3px); transition: .15s ease; }

.page-hero {
  min-height: 230px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #edf5fb;
  color: var(--blue-soft);
}

.page-hero h1,
.section-heading h2,
.about-title,
.team-title {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1;
  letter-spacing: .12em;
  color: var(--blue-soft);
  font-weight: 700;
}

.page-hero .underline,
.section-heading .underline,
.team-title::after {
  width: 76px;
  height: 4px;
  background: var(--blue-soft);
  display: block;
  margin: 24px auto 0;
  content: "";
}

.page-copy {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto 70px;
  text-align: center;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.55;
}

.about-section {
  width: min(880px, calc(100% - 48px));
  margin: 90px auto;
  text-align: center;
}

.section-heading p {
  margin: 0 0 10px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 700;
}

.section-text {
  margin: 40px auto 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.two-column {
  width: min(var(--max), calc(100% - 48px));
  margin: 70px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.panel {
  background: white;
  padding: 34px;
  box-shadow: 0 12px 30px rgba(13, 74, 112, .12);
  border-top: 8px solid var(--blue);
}

.panel h2 {
  margin: 0 0 16px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.panel p,
.panel li { color: var(--muted); line-height: 1.7; }

.online-panel {
  width: min(var(--max), calc(100% - 48px));
  margin: 70px auto;
  background: var(--blue-dark);
  color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 38px;
}

.online-panel h2 { margin: 0; font-size: 34px; }
.online-panel ul { margin: 0; padding-left: 20px; line-height: 1.8; }
.mini-title { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .15em; opacity: .7; }

.rules-layout {
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto 90px;
}

.rules-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: -32px 0 48px;
  position: relative;
  z-index: 3;
}

.rules-nav a {
  background: var(--blue);
  color: white;
  padding: 13px 18px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .06em;
}

.rule-section {
  background: white;
  border-left: 8px solid var(--blue);
  box-shadow: 0 12px 30px rgba(13, 74, 112, .10);
  padding: 34px 40px;
  margin-bottom: 28px;
}

.rule-section h2 {
  margin: 0 0 22px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.rule-section ul,
.rule-section ol {
  padding-left: 23px;
  color: var(--muted);
  line-height: 1.72;
}

.rule-section li { margin: 10px 0; }
.rule-note { margin-top: 28px; color: var(--dark-text); line-height: 1.7; font-weight: 500; }

.about-page .about-title,
.about-page .team-title { text-align: center; }
.about-title { margin-top: 64px; }
.team-title { margin: 90px 0 56px; }
.team-title::after { margin-top: 18px; }

.team-grid {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px 70px;
}

.team-member:first-child { grid-column: 1 / -1; width: min(440px, 100%); margin: 0 auto; }
.team-card { display: grid; grid-template-columns: 130px 1fr; align-items: stretch; background: var(--blue-dark); color: white; }
.team-card img { width: 130px; height: 100px; object-fit: cover; background: #d7e0e8; }
.team-card h2 { margin: 0; font-size: 22px; line-height: 1.1; }
.team-card p { margin: 4px 0 0; font-size: 17px; line-height: 1.2; font-weight: 700; }
.team-card-text { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.team-bio { color: var(--blue-dark); line-height: 1.65; font-size: 14px; margin: 18px 0 0; }

.help-body {
  background:
    linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)),
    url("images/help-bg.jpg"),
    linear-gradient(135deg, #d9ecf8, #8fb8d3);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.help-shell {
  min-height: calc(100vh - 106px - 92px);
  padding: 58px 24px 66px;
}

.help-shell h1 {
  text-align: center;
  color: white;
  font-size: 42px;
  text-transform: uppercase;
  margin: 0 0 44px;
  letter-spacing: .05em;
  text-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.faq-card {
  width: min(760px, 100%);
  margin: 0 auto;
  background: rgba(255,255,255,.96);
  padding: 34px 38px;
  box-shadow: 0 16px 36px rgba(13, 74, 112, .18);
}

.faq-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 22px;
}

.faq-top h2 { margin: 0; color: var(--blue-dark); font-size: 24px; font-weight: 400; }
.faq-search { border: 0; border-bottom: 1px solid var(--blue); padding: 8px 2px; width: 220px; color: var(--blue-dark); background: transparent; }
.faq-tabs { margin: 22px 0 0; }
.faq-tabs span { display: inline-block; padding-bottom: 13px; border-bottom: 2px solid var(--blue); color: var(--blue); font-size: 13px; }

.faq-item { border-bottom: 1px solid var(--blue); }
.faq-question { width: 100%; background: transparent; border: 0; padding: 22px 0; text-align: left; color: var(--blue-dark); display: flex; justify-content: space-between; gap: 20px; cursor: pointer; }
.faq-question::after { content: "⌄"; color: var(--blue); font-size: 20px; }
.faq-item.open .faq-question::after { content: "⌃"; }
.faq-answer { display: none; color: var(--blue-dark); font-size: 14px; line-height: 1.65; padding: 0 0 24px; }
.faq-item.open .faq-answer { display: block; }
.faq-answer ol { margin: 12px 0 0; padding-left: 22px; }

.play-grid,
.status-page-grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 70px auto 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.step-card,
.status-card {
  background: white;
  padding: 32px;
  border-top: 8px solid var(--blue);
  box-shadow: 0 12px 30px rgba(13, 74, 112, .10);
}

.step-card h2,
.status-card h2 { margin: 0 0 18px; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.step-card ol,
.step-card ul { color: var(--muted); line-height: 1.75; }
.big-button { background: var(--blue); color: white; min-height: 52px; margin-top: 12px; }
.big-button:hover { background: var(--blue-dark); color: white; }

.status-stat { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 13px 0; gap: 20px; }
.status-stat span:first-child { color: var(--muted); }
.status-stat strong { color: var(--blue-dark); }

.footer {
  background: var(--blue-dark);
  color: white;
  min-height: 92px;
}

.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: 14px;
}

.socials { display: flex; gap: 16px; align-items: center; }
.socials a { font-size: 15px; }

@media (max-width: 1020px) {
  .topbar-inner { height: auto; min-height: 106px; padding: 18px 0; flex-wrap: wrap; }
  .brand { min-width: auto; }
  .mobile-menu { display: inline-flex; margin-left: auto; }
  .main-nav { display: none; width: 100%; height: auto; flex-direction: column; align-items: stretch; order: 4; }
  .main-nav.open { display: flex; }
  .main-nav a { border: 0; border-top: 1px solid var(--line); }
  .join-button { min-width: 150px; height: 52px; font-size: 22px; }
  .status-inner { grid-template-columns: repeat(2, 1fr); padding: 22px 0; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .topbar-inner { width: min(var(--max), calc(100% - 28px)); gap: 14px; }
  .brand img { width: 58px; height: 58px; }
  .brand span { font-size: 30px; }
  .join-button { width: 100%; order: 5; }
  .hero { min-height: 420px; }
  .hero-copy h1 { margin-bottom: 34px; }
  .hero-arrow-left { left: 4%; }
  .hero-arrow-right { right: 4%; }
  .status-inner,
  .info-grid,
  .two-column,
  .online-panel,
  .play-grid,
  .status-page-grid,
  .team-grid { grid-template-columns: 1fr; }
  .status-actions { justify-content: flex-start; }
  .team-member:first-child { grid-column: auto; width: auto; }
  .faq-top { flex-direction: column; }
  .faq-search { width: 100%; }
  .rule-section { padding: 28px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; padding: 24px 0; }
}
