:root {
  --bg: #f5f7fa;
  --ink: #17202a;
  --muted: #667085;
  --line: #dfe5ec;
  --accent: #176b87;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Malgun Gothic", Arial, sans-serif;
}

.account-mts-header {
  display: none;
}

.play-mts-header {
  display: none;
}

.account-mobile-section-menu {
  display: none;
}

.mega-menu {
  position: fixed;
  z-index: 45;
  top: 72px;
  left: 50%;
  width: min(1240px, calc(100vw - 40px));
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #2f3a49;
  border-radius: 10px;
  background: #1c2430;
  color: #f1f5f9;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
}

.mega-menu.anchored {
  left: clamp(260px, var(--mega-anchor-x, 50vw), calc(100vw - 260px));
  width: min(560px, calc(100vw - 32px));
}

.mega-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mega-head span {
  display: block;
  color: #ff575f;
  font-size: 12px;
  font-weight: 900;
}

.mega-head strong {
  font-size: 20px;
}

.mega-head button {
  min-height: 32px;
  border: 1px solid #34455a;
  border-radius: 6px;
  background: #172231;
  color: #f1f5f9;
  font-weight: 800;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mega-grid.review-layout,
.mega-grid.wide-layout {
  grid-template-columns: minmax(0, 1fr);
}

.mega-group {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: auto;
  padding: 14px;
  border: 1px solid #2f3a49;
  border-radius: 8px;
  background: #172231;
}

.mega-group h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.mega-group p {
  margin: 0 0 4px;
  color: #a2adba;
  font-size: 12px;
  line-height: 1.45;
}

.mega-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.mega-grid.wide-layout .mega-buttons {
  overflow-x: visible;
  flex-wrap: wrap;
}

.mega-buttons button,
.mega-buttons a {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #34455a;
  border-radius: 6px;
  background: #1c2430;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.mega-buttons button.primary,
.mega-buttons a.primary {
  background: #c7353a;
  border-color: #c7353a;
  color: #ffffff;
}

.play-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.play-auth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.play-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.play-brand span {
  font-size: 15px;
  color: var(--muted);
}

.play-brand strong {
  font-size: 22px;
}

.play-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.play-nav a {
  min-width: 84px;
  padding: 9px 12px;
  border-radius: 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.play-nav a.active,
.play-nav a:hover {
  background: #e8f3f6;
  color: var(--accent);
}

.play-nav a.service-switch-link {
  border: 1px solid #cde7ee;
  background: #f3fbfd;
  color: var(--accent);
}

.play-nav a.service-switch-link:hover {
  background: #dff3f8;
}

.play-auth a,
.member-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.play-auth a.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.play-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 28px;
}

.intro-shell {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: 0;
}

.intro-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.member-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.account-shell {
  display: grid;
  align-items: start;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px;
}

.account-sidebar {
  min-height: calc(100vh - 120px);
  align-self: start;
  position: sticky;
  top: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202734;
  color: #ffffff;
  padding: 20px 18px;
}

.account-sidebar h1 {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.2;
}

.account-menu-label {
  margin: 18px 0 8px;
  color: #9aa5b5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.account-menu {
  display: grid;
  gap: 6px;
}

.account-menu a,
.account-sidebar-actions a {
  display: flex;
  align-items: center;
  min-height: 38px;
  border-radius: 6px;
  color: #cfd6e2;
  padding: 0 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.account-menu a.active,
.account-menu a:hover,
.account-sidebar-actions a:hover {
  background: #334155;
  color: #ffffff;
}

.account-sidebar-actions {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.account-content {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.account-page-head,
.account-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.account-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  min-height: auto;
}

.account-page-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.account-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cde7ee;
  border-radius: 999px;
  background: #eef9fb;
  color: var(--accent);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.account-panel {
  padding: 18px 22px;
}

.account-sidebar-actions a.danger {
  margin-top: 18px;
  border: 1px solid rgba(255, 86, 86, .35);
  color: #ff9b9b;
}

.account-sidebar-actions a.danger:hover {
  background: rgba(255, 86, 86, .14);
  color: #ffffff;
}

.account-panel h3 {
  margin: 0 0 14px;
  font-size: 19px;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.account-profile,
.account-metrics {
  display: grid;
  gap: 10px;
}

.account-profile {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.account-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.account-profile div,
.account-metrics div {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.account-free-notice {
  grid-column: 1 / -1;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  color: var(--accent);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 900;
}

.account-profile span,
.account-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-profile strong,
.account-metrics strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.account-table {
  overflow-x: auto;
}

.account-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.account-table th,
.account-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

.account-table th {
  color: #344054;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.account-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-pager button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--ink);
  padding: 0 10px;
  font-weight: 900;
}

.account-pager button:disabled {
  opacity: .45;
}

.empty-row {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  padding: 18px;
  font-weight: 800;
}

.account-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.account-panel-actions input {
  min-height: 34px;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--ink);
  padding: 0 11px;
}

.account-panel-actions button {
  min-height: 34px;
  padding: 0 12px;
}

.account-list-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.account-list-summary div {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 12px;
}

.account-list-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.account-list-summary strong {
  color: var(--ink);
  font-size: 17px;
}

body[data-theme="dark"] .account-shell {
  background: #111821;
}

body[data-theme="dark"] .account-page-head,
body[data-theme="dark"] .account-panel {
  border-color: #2f3a49;
  background: #1c2430;
  color: #f1f5f9;
}

body[data-theme="dark"] .account-profile div,
body[data-theme="dark"] .account-metrics div,
body[data-theme="dark"] .account-list-summary div {
  border-color: #2f3a49;
  background: #222b36;
}

body[data-theme="dark"] .account-free-notice {
  border-color: #2b6f9a;
  background: rgba(23, 107, 135, .18);
  color: #7dd3fc;
}

body[data-theme="dark"] .account-table {
  border: 1px solid #2f3a49;
  border-radius: 8px;
}

body[data-theme="dark"] .account-table table {
  background: #1c2430;
  color: #f1f5f9;
}

body[data-theme="dark"] .account-table th {
  border-bottom-color: #2f3a49;
  background: #222b36;
  color: #a2adba;
}

body[data-theme="dark"] .account-table td {
  border-bottom-color: #2f3a49;
  color: #e5edf7;
}

body[data-theme="dark"] .empty-row {
  border-color: #3a4656;
  background: #222b36;
  color: #a2adba;
}

body[data-theme="dark"] .account-panel-actions input,
body[data-theme="dark"] .account-panel-actions button {
  border-color: #3a4656;
  background: #111821;
  color: #f1f5f9;
}

body[data-theme="dark"] .account-status {
  border-color: #3c7fb9;
  background: #102c47;
  color: #9fd2ff;
}

body[data-theme="dark"] .mini-link {
  color: #8ec9ff;
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background: #07101c;
  }

  .app-header,
  .account-shell,
  .account-content,
  .account-sidebar,
  .account-page-head,
  .account-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .app-header {
    display: none;
  }

  .mega-menu {
    display: none !important;
  }

  .account-mts-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: 4px 8px;
    border-bottom: 1px solid #253245;
    background: #0b1524;
    color: #f1f5f9;
  }

  .play-mts-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: 4px 8px;
    border-bottom: 1px solid #253245;
    background: #0b1524;
    color: #f1f5f9;
  }

  .play-mts-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #ffffff;
    text-decoration: none;
  }

  .play-mts-brand img {
    display: block;
    width: auto;
    height: 18px;
    max-width: 92px;
    object-fit: contain;
  }

  .play-mts-brand em {
    color: #ffffff;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
  }

  .play-mts-mode {
    min-width: 0;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #334155;
    border-radius: 6px;
    background: #182333;
    color: #f8fafc;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
  }

  .play-mts-menu {
    position: relative;
    min-width: 0;
  }

  .play-mts-menu summary {
    width: 34px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #334155;
    border-radius: 6px;
    background: #182333;
    color: #f8fafc;
    font-size: 17px;
    font-weight: 900;
    list-style: none;
    cursor: pointer;
  }

  .play-mts-menu summary::-webkit-details-marker {
    display: none;
  }

  .play-mts-menu nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(268px, calc(100vw - 18px));
    display: grid;
    gap: 6px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #101b2b;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .42);
  }

  .play-mts-menu:not([open]) nav {
    display: none;
  }

  .play-mts-menu nav a {
    min-height: 38px;
    display: flex;
    align-items: center;
    border: 1px solid #243247;
    border-radius: 7px;
    background: #162235;
    color: #eaf2ff;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
  }

  .account-mts-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #ffffff;
    text-decoration: none;
  }

  .account-mts-brand img {
    display: block;
    width: auto;
    height: 18px;
    max-width: 92px;
    object-fit: contain;
  }

  .account-mts-brand em {
    color: #ffffff;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
  }

  .account-mts-mode {
    min-width: 0;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #334155;
    border-radius: 6px;
    background: #182333;
    color: #f8fafc;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
  }

  .account-mts-menu {
    position: relative;
    min-width: 0;
  }

  .account-mts-menu summary {
    width: 30px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #334155;
    border-radius: 6px;
    background: #182333;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 900;
    list-style: none;
    cursor: pointer;
  }

  .account-mts-menu summary::-webkit-details-marker {
    display: none;
  }

  .account-mts-menu nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(260px, calc(100vw - 20px));
    display: grid;
    gap: 6px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #101b2b;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .42);
  }

  .account-mts-menu:not([open]) nav {
    display: none;
  }

  .account-mts-menu nav a {
    min-height: 38px;
    display: flex;
    align-items: center;
    border: 1px solid #243247;
    border-radius: 7px;
    background: #162235;
    color: #eaf2ff;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
  }

  .primary-nav,
  .theme-switch {
    max-width: 100%;
    min-width: 0;
  }

  .primary-nav a,
  .primary-nav button,
  .auth-link,
  .theme-switch label {
    min-width: 0;
    max-width: 100%;
  }

  .play-header {
    height: auto;
    min-height: 64px;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
  }

  .play-nav {
    width: 100%;
  }

  .play-auth {
    width: 100%;
  }

  .play-auth a {
    flex: 1;
  }

  .play-nav a {
    flex: 1;
    min-width: 0;
  }

  .play-main {
    padding: 36px 18px;
  }

  h1 {
    font-size: 34px;
  }

  .account-shell {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .account-sidebar {
    min-height: 0;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 8px;
    border-radius: 7px;
  }

  .account-sidebar h1 {
    margin: 0 0 8px;
    font-size: 16px;
  }

  .account-mobile-section-menu {
    display: block;
  }

  .account-mobile-section-menu summary {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #334155;
    border-radius: 7px;
    background: #334155;
    color: #ffffff;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 900;
    list-style: none;
    cursor: pointer;
  }

  .account-mobile-section-menu summary::-webkit-details-marker {
    display: none;
  }

  .account-mobile-section-menu summary::after {
    content: "⌄";
    color: #9fb4d0;
    font-size: 13px;
  }

  .account-mobile-section-menu[open] summary::after {
    content: "⌃";
  }

  .account-mobile-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 6px;
  }

  .account-mobile-section-grid a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2f3a49;
    border-radius: 6px;
    background: #202b3a;
    color: #dbeafe;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }

  .account-mobile-section-grid a.active {
    background: #334155;
    color: #ffffff;
  }

  .account-mobile-section-grid a.danger {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-height: 26px;
    margin-top: 8px;
    border-color: transparent;
    background: transparent;
    color: #cbd5e1;
    padding-left: 2px;
    font-size: 11px;
  }

  .account-menu-label {
    display: none;
  }

  .account-menu,
  .account-sidebar-actions {
    display: none;
  }

  .account-sidebar-actions {
    margin-top: 8px;
    padding-top: 8px;
  }

  .account-menu a,
  .account-sidebar-actions a {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
  }

  .account-sidebar-actions a.danger {
    flex-basis: 100%;
  }

  .account-profile,
  .account-metrics {
    grid-template-columns: 1fr;
  }

  .account-page-head {
    flex-direction: column;
  }

  .panel-title-row {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .account-panel {
    padding: 12px;
  }

  .account-panel h3 {
    margin-bottom: 4px;
    font-size: 17px;
  }

  .account-panel-actions {
    justify-content: stretch;
  }

  .account-panel-actions input,
  .account-panel-actions button,
  .account-panel-actions .mini-link {
    width: 100%;
    min-width: 0;
  }

  .account-list-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0;
  }

  .account-list-summary .account-free-notice {
    grid-column: 1 / -1;
  }

  .account-list-summary div {
    min-height: 58px;
    padding: 10px;
  }

  .account-table {
    overflow-x: visible;
    border: 0;
  }

  .account-table table,
  .account-table thead,
  .account-table tbody,
  .account-table tr,
  .account-table td {
    display: block;
    width: 100%;
  }

  .account-table thead {
    display: none;
  }

  .account-table tr {
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow: hidden;
  }

  .account-table td {
    display: grid;
    grid-template-columns: minmax(78px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding: 9px 10px;
    font-size: 13px;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .account-table td > * {
    min-width: 0;
  }

  .account-table td:last-child {
    border-bottom: 0;
  }

  .account-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
  }

  .account-pager {
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 6px;
  }

  body[data-theme="dark"] .account-table {
    border: 0;
  }

  body[data-theme="dark"] .account-table tr {
    border-color: #2f3a49;
    background: #222b36;
  }

  body[data-theme="dark"] .account-table td {
    border-bottom-color: #2f3a49;
  }
}

.play-intro-page {
  --intro-bg: #08111d;
  --intro-panel: #101c2d;
  --intro-panel-2: #142236;
  --intro-line: rgba(125, 166, 220, 0.22);
  --intro-text: #edf5ff;
  --intro-muted: #a8bdd8;
  --intro-blue: #6eb8ff;
  --intro-red: #ff5656;
  --intro-green: #7ce6d7;
  min-height: calc(100vh - 64px);
  background:
    radial-gradient(circle at 20% 0%, rgba(60, 120, 220, 0.2), transparent 32%),
    linear-gradient(180deg, #07101c 0%, #0b1626 46%, #07101c 100%);
  color: var(--intro-text);
  padding: 34px 28px 72px;
}

.play-intro-page a {
  color: inherit;
}

.play-intro-hero,
.play-intro-section,
.play-intro-flow,
.play-intro-split,
.play-intro-faq,
.play-intro-final {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.play-intro-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 34px;
  align-items: center;
  min-height: 560px;
  padding: 34px 0 56px;
}

.play-intro-copy {
  min-width: 0;
}

.play-intro-kicker,
.section-head span,
.play-intro-note {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(124, 230, 215, 0.34);
  border-radius: 999px;
  background: rgba(124, 230, 215, 0.12);
  color: #9ff8ea;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 900;
}

.play-intro-note {
  min-height: 42px;
  padding: 0 18px;
  font-size: 1rem;
}

.play-intro-copy h1 {
  margin: 22px 0 18px;
  color: var(--intro-text);
  font-size: clamp(1.85rem, 3.1vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.play-intro-copy h1 strong {
  color: var(--intro-red);
  font-style: normal;
}

.play-intro-copy p,
.play-intro-split p,
.play-intro-final p {
  margin: 0;
  color: var(--intro-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.play-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.play-intro-primary,
.play-intro-secondary,
.play-intro-final a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.play-intro-primary,
.play-intro-final a {
  border: 1px solid var(--intro-red);
  background: var(--intro-red);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(255, 86, 86, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.play-intro-secondary {
  border: 1px solid var(--intro-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--intro-text);
}

.play-intro-primary:hover,
.play-intro-final a:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 34px rgba(255, 86, 86, 0.28);
}

.play-intro-note {
  margin-top: 18px;
}

.play-intro-visual {
  min-width: 0;
  border: 1px solid var(--intro-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(27, 47, 76, 0.92), rgba(10, 20, 34, 0.96));
  padding: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.play-sample-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

.visual-placeholder {
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px dashed rgba(152, 188, 232, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(5, 12, 22, 0.6);
  background-size: 42px 42px;
  text-align: center;
}

.visual-placeholder span {
  color: var(--intro-green);
  font-size: 13px;
  font-weight: 900;
}

.visual-placeholder strong {
  color: var(--intro-text);
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
}

.visual-placeholder em {
  color: var(--intro-muted);
  font-style: normal;
}

.play-intro-section,
.play-intro-flow,
.play-intro-split,
.play-intro-faq {
  padding: 46px 0;
  border-top: 1px solid rgba(125, 166, 220, 0.16);
}

.section-head {
  margin-bottom: 22px;
}

.section-head.compact {
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 14px 0 0;
  color: var(--intro-text);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.18;
}

.feature-grid,
.notice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-grid article,
.notice-grid article,
.type-list article,
.split-panel,
.faq-list details {
  border: 1px solid var(--intro-line);
  border-radius: 8px;
  background: rgba(16, 28, 45, 0.82);
}

.feature-grid article,
.notice-grid article {
  min-height: 180px;
  padding: 20px;
}

.feature-grid strong,
.notice-grid strong,
.type-list strong,
.split-panel strong {
  display: block;
  color: var(--intro-text);
  font-size: 1.05rem;
}

.feature-grid p,
.notice-grid p,
.type-list p {
  margin: 10px 0 0;
  color: var(--intro-muted);
  line-height: 1.65;
}

.type-list {
  display: grid;
  gap: 10px;
}

.type-list article {
  display: grid;
  grid-template-columns: 58px 132px minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
}

.type-list b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(110, 184, 255, 0.16);
  color: var(--intro-blue);
}

.type-list p {
  margin: 0;
}

.type-visual {
  position: relative;
  height: 74px;
  overflow: hidden;
  border: 1px solid rgba(125, 166, 220, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    rgba(7, 16, 28, 0.62);
  background-size: 22px 22px;
}

.type-visual::before,
.type-visual::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 999px;
}

.type-visual::before {
  top: 44px;
  background: rgba(110, 184, 255, 0.55);
}

.type-visual::after {
  top: 28px;
  background: rgba(255, 86, 86, 0.65);
}

.type-visual i {
  position: absolute;
  bottom: 14px;
  width: 8px;
  border-radius: 2px;
  background: #ff5656;
}

.type-visual i::before {
  content: "";
  position: absolute;
  left: 3px;
  width: 2px;
  background: inherit;
}

.type-visual i:nth-child(1) { left: 16px; height: 20px; }
.type-visual i:nth-child(2) { left: 36px; height: 32px; background: #3194ff; }
.type-visual i:nth-child(3) { left: 56px; height: 28px; }
.type-visual i:nth-child(4) { left: 76px; height: 44px; }
.type-visual i:nth-child(5) { left: 96px; height: 36px; background: #3194ff; }

.type-visual i:nth-child(1)::before { top: -8px; height: 32px; }
.type-visual i:nth-child(2)::before { top: -12px; height: 46px; }
.type-visual i:nth-child(3)::before { top: -16px; height: 44px; }
.type-visual i:nth-child(4)::before { top: -10px; height: 54px; }
.type-visual i:nth-child(5)::before { top: -14px; height: 48px; }

.opening-visual i:nth-child(1) { height: 16px; }
.opening-visual i:nth-child(2) { height: 30px; }
.opening-visual i:nth-child(3) { height: 44px; }
.opening-visual i:nth-child(4) { height: 36px; }
.opening-visual i:nth-child(5) { height: 48px; }

.breakout-visual::after {
  top: 24px;
  border-top: 2px dashed rgba(255, 86, 86, 0.8);
  background: transparent;
}

.breakout-visual i:nth-child(4),
.breakout-visual i:nth-child(5) {
  height: 50px;
}

.vi-visual::after {
  top: 18px;
  height: 3px;
  background: #ffd34d;
}

.vi-visual {
  box-shadow: inset 0 0 0 1px rgba(255, 211, 77, 0.12);
}

.indicator-visual::before {
  top: 42px;
  background: #7a58ff;
}

.indicator-visual::after {
  top: 30px;
  background: #15b8a6;
}

.play-intro-flow ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.play-intro-flow li {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--intro-line);
  border-radius: 8px;
  background: rgba(10, 20, 34, 0.72);
  padding: 20px;
}

.play-intro-flow li span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--intro-red);
  color: #fff;
  font-weight: 900;
}

.play-intro-flow li strong {
  color: var(--intro-text);
  font-size: 1.08rem;
}

.play-intro-flow li em {
  color: var(--intro-muted);
  font-style: normal;
  line-height: 1.6;
}

.play-intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.split-panel {
  padding: 22px;
}

.split-panel ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.split-panel li {
  color: var(--intro-muted);
}

.split-panel li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--intro-green);
  vertical-align: 1px;
}

.notice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--intro-text);
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--intro-muted);
  line-height: 1.65;
}

.play-intro-final {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-top: 34px;
  border: 1px solid rgba(110, 184, 255, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(110, 184, 255, 0.16), rgba(255, 86, 86, 0.09));
  padding: 28px;
}

.play-intro-final strong {
  color: var(--intro-text);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

@media (max-width: 980px) {
  .play-intro-hero,
  .play-intro-split {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .notice-grid,
  .play-intro-flow ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .play-intro-page {
    padding: 24px 16px 48px;
  }

  .play-intro-hero {
    min-height: 0;
    padding-top: 24px;
  }

  .feature-grid,
  .notice-grid,
  .play-intro-flow ol,
  .type-list article {
    grid-template-columns: 1fr;
  }

  .visual-placeholder {
    min-height: 300px;
  }

  .play-intro-actions a {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .app-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 14px;
    height: auto;
    padding: 12px 16px;
  }

  .app-header .auth-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .primary-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    overflow-x: visible;
  }
}

@media (max-width: 1400px) {
  .app-header {
    grid-template-columns: auto minmax(0, 1fr);
    height: auto;
    row-gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .app-header .auth-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .primary-nav {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    overflow-x: visible;
  }
}

@media (max-width: 860px) {
  .app-header {
    grid-template-columns: 1fr;
  }

  .primary-nav,
  .app-header .auth-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .app-header {
    grid-template-columns: 1fr;
  }

  .primary-nav {
    justify-content: flex-start;
  }

  .primary-nav a,
  .primary-nav button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  body:has(.account-shell),
  body:has(.account-shell) .app-header,
  body:has(.account-shell) .account-shell,
  body:has(.account-shell) .account-content,
  body:has(.account-shell) .account-sidebar,
  body:has(.account-shell) .account-page-head,
  body:has(.account-shell) .account-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body:has(.account-shell) .primary-nav,
  body:has(.account-shell) .app-header .auth-actions {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body:has(.account-shell) .account-table {
    max-width: 100%;
    overflow-x: hidden;
  }

  body:has(.account-shell) .app-header {
    display: none;
  }

  body:has(.account-shell) .account-mts-header {
    display: grid;
  }
}

.play-intro-page + .footer-title-band {
  padding: 28px 0 0;
  background: #07101c;
}

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

.footer-title-image {
  display: block;
  width: min(100%, 1200px);
  height: auto;
  margin: 0 auto;
}

footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(5, 12, 22, 0.3), rgba(5, 12, 22, 0.86));
}

.footer-grid {
  padding: 26px;
  border-radius: 24px;
  background: rgba(9, 20, 36, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-note {
  color: var(--intro-muted, #a8bdd8);
  margin: 0 0 14px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: #c8d8f3;
  font-size: 12px;
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, 1180px);
  }
}
