:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #101216;
  color: #f5f6f7;
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; isolation: isolate; }
body::before { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 17, .48), rgba(10, 14, 17, .8)), url("home-art/wallpaper-desktop-1920x1080.webp") center / cover no-repeat; content: ""; pointer-events: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.beta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 8px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid #2a303a;
  background: rgba(10, 14, 17, .24);
  font-weight: 700;
}
.beta-header img { width: 132px; height: 66px; object-fit: contain; }
.beta-header-home { display: inline-flex; align-items: center; text-decoration: none; }
.home-menu { position: relative; z-index: 20; }
.home-menu[hidden] { display: none; }
.home-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #414b59; border-radius: 5px; background: #2b323d; cursor: pointer; list-style: none; }
.home-menu summary::-webkit-details-marker { display: none; }
.home-menu summary:hover, .home-menu[open] summary { background: #394352; }
.home-menu summary:focus-visible { outline: 2px solid #96d6c5; outline-offset: 2px; }
.menu-bars { display: grid; gap: 4px; width: 20px; }
.menu-bars i { display: block; height: 2px; border-radius: 1px; background: #f5f6f7; }
.home-menu-content { position: absolute; top: calc(100% + 8px); right: 0; width: min(240px, calc(100vw - 32px)); padding: 8px; border: 1px solid #414b59; border-radius: 6px; background: #171b21; box-shadow: 0 14px 32px rgb(0 0 0 / 38%); }
.home-menu-content button { display: block; width: 100%; min-height: 40px; padding: 9px 12px; border: 0; border-radius: 4px; background: transparent; color: #f5f6f7; text-align: left; font-weight: 700; }
.home-menu-content button:hover, .home-menu-content button:focus-visible { background: #2b323d; }
.home-menu-content button[aria-pressed="true"] { background: #33554a; }
.home-menu-group { margin-top: 7px; padding-top: 7px; border-top: 1px solid #303844; }
.beta-main { width: min(100%, 1040px); margin: 0 auto; padding: 28px 20px 60px; }
.beta-main.narrow { max-width: 460px; padding-top: min(11vh, 90px); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
h1 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 34px); letter-spacing: 0; }
h2 { margin: 0 0 14px; font-size: 18px; letter-spacing: 0; }
p { margin: 0 0 16px; line-height: 1.45; }
.muted { color: #b6bfce; }
.eyebrow { margin-bottom: 8px; color: #d4b567; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.panel { padding: 22px; border: 1px solid #2b323d; border-radius: 8px; background: rgb(23 27 33 / 88%); }
.panel + .panel { margin-top: 18px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-grid .panel { margin: 0; }
label { display: block; margin: 0 0 14px; color: #c8d0dc; font-size: 13px; font-weight: 700; }
input, select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid #414b59;
  border-radius: 5px;
  background: #262d37;
  color: #fff;
}
input:focus, select:focus, button:focus-visible { outline: 2px solid #96d6c5; outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #5b786f;
  border-radius: 5px;
  background: #263e37;
  color: #fff;
  font-weight: 700;
}
.button:hover { background: #33554a; }
.button.secondary { border-color: #414b59; background: #2b323d; }
.button.secondary:hover { background: #394352; }
.button.plain { border-color: transparent; background: transparent; color: #9bd6c5; }
.button:disabled { opacity: .5; cursor: default; }
.notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #52786c; border-radius: 5px; background: #20342f; }
.notice.error { border-color: #965b59; background: #3b2527; }
.role-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.role-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #303844; border-radius: 5px; }
.role-list small { color: #aab5c4; }
.role-list a { color: #9bd6c5; font-size: 13px; font-weight: 700; white-space: nowrap; }
.role-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.empty { padding: 14px; border: 1px dashed #414b59; border-radius: 5px; color: #b6bfce; }
.home-main { width: 100%; max-width: none; min-height: calc(100vh - 72px); padding: 26px clamp(16px, 2.2vw, 42px) 32px; }
.home-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.home-topline h1 { margin: 0; }
.home-tile:focus-visible { outline: 2px solid #96d6c5; outline-offset: 2px; }
.home-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(230px, 1fr)); gap: clamp(14px, 1.3vw, 24px); min-height: min(76vh, 820px); }
.home-tile { position: relative; display: block; min-width: 0; overflow: hidden; border: 1px solid #3b454b; border-radius: 8px; background: #10151a; color: #fff; text-decoration: none; isolation: isolate; }
.home-tile::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 38%, rgba(7, 10, 14, .28) 57%, rgba(7, 10, 14, .94) 100%); content: ""; pointer-events: none; }
.home-tile-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
a.home-tile:hover { border-color: #91c4b5; }
a.home-tile:hover .home-tile-art { transform: scale(1.035); }
.home-tile-art { transition: transform .2s ease; }
.home-tile-copy { position: absolute; right: 54px; bottom: clamp(18px, 1.8vw, 30px); left: clamp(18px, 1.8vw, 30px); z-index: 1; display: grid; gap: 7px; min-width: 0; }
.home-tile strong { font-size: clamp(19px, 1.35vw, 25px); line-height: 1.18; overflow-wrap: anywhere; }
.home-tile small { color: #d5dce3; font-size: 14px; overflow-wrap: anywhere; }
.home-tile-arrow { position: absolute; right: clamp(18px, 1.8vw, 30px); bottom: clamp(19px, 1.8vw, 30px); z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #9eb0bd; border-radius: 50%; background: rgba(9, 12, 16, .32); font-size: 27px; line-height: 1; }
.home-tile.unavailable .home-tile-art { opacity: .7; }
.home-tile-state { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 5px 7px; border: 1px solid #53606b; border-radius: 4px; background: rgba(9, 12, 16, .76); color: #e0e4ea; font-size: 11px; }
.home-footnote { margin: 18px 0 0; color: #8491a1; font-size: 12px; }
.player-home-main .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; width: 100%; max-width: 640px; min-height: 0; }
.player-home-main .home-tile { aspect-ratio: 1; }
@media (max-width: 680px) {
  body::before { background-image: linear-gradient(180deg, rgba(10, 14, 17, .6), rgba(10, 14, 17, .8)), url("home-art/wallpaper-mobile-1080x1920.webp"); }
  .account-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; }
  .beta-main { padding: 20px 14px 48px; }
  .panel { padding: 18px; }
  .role-list li { flex-wrap: wrap; }
  .role-links { justify-content: flex-start; }
  .home-main { padding: 18px 12px 32px; }
  .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; min-height: 0; gap: 10px; }
  .home-tile { aspect-ratio: 1; }
  .home-tile-copy { right: 27px; bottom: 12px; left: 12px; gap: 4px; }
  .home-tile strong { font-size: 16px; }
  .home-tile small { font-size: 11px; }
  .home-tile-arrow { right: 8px; bottom: 12px; width: 22px; height: 22px; font-size: 18px; }
  .home-tile-state { top: 8px; right: 8px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .home-tile-art { transition: none; } a.home-tile:hover .home-tile-art { transform: none; } }
