/* Dead or Alive Xtreme 2: Zack Island lagoon / hibiscus pink / sand (own stylesheet, site.css is not replaced) */
.theme-doax2 {
  --bg: #04202c; --panel: #082d3b; --panel-2: #0d3a4b; --line: #19506a;
  --text: #f1fbff; --muted: #8fbccb; --accent: #ff5f9a; --accent-2: #ff8cb6; --accent-ink: #fff;
  --sea: #2fd8d0; --sand: #f6d7a2; --sun: #ffb15e; --win: #2fd8d0;
  background: var(--bg); min-height: 100vh;
}
html:has(body.theme-doax2) { background: #04202c; }
.theme-doax2 footer { background: transparent; }
.theme-doax2 h1 em, .theme-doax2 h2 em { color: var(--sea); font-style: normal; }
.theme-doax2 .subnav a.on { background: linear-gradient(90deg, var(--accent), #ff7d6e); }
.theme-doax2 .subnav .rule { background: linear-gradient(90deg, var(--accent), var(--sun) 50%, var(--sea)); }
.theme-doax2 .stat { background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.theme-doax2 .stat::before { content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--sea), transparent); }
.theme-doax2 .stat:nth-child(2)::before { background: linear-gradient(90deg, var(--accent), transparent); }
.theme-doax2 .stat:nth-child(4)::before { background: linear-gradient(90deg, var(--sun), transparent); }
.theme-doax2 td.pts { color: var(--sea); }
.theme-doax2 .tag.ranked { color: var(--sun); border-color: color-mix(in srgb, var(--sun) 45%, var(--line)); }
.theme-doax2 .tag.hot { background: var(--accent); border-color: var(--accent); }

/* hero: banner + logo plate centred, sea fading into the page */
.dxhero { background: #0a6f8a; }
.dxhero .art { height: clamp(220px, 32vw, 420px); object-position: 50% 28%; }
.dxhero::after { background: linear-gradient(180deg, rgba(4, 32, 44, 0) 50%, var(--bg) 100%); }
.dxhero .plate { top: auto; bottom: 34px; width: clamp(140px, 17vw, 260px); }
.dxhero .plate img { filter: drop-shadow(0 8px 26px rgba(0, 20, 30, .6)); }
.dxhero + .subnav { margin-top: -26px; }

/* island decoration left / right of the content (wide screens only): scrolls with the page */
.theme-doax2 { position: relative; }
.dxdeco { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; z-index: 0; display: none; overflow: hidden; }
.dxdeco > div { position: absolute; top: clamp(300px, 32vw, 520px); width: calc((100vw - 1180px) / 2 - 8px); max-width: 420px;
  height: 2810px; background-repeat: no-repeat; background-size: 100% auto; opacity: .92; }
.dxdeco .dx-l { left: 0; background-image: url(/assets/doax2/side-left.png?v=2); background-position: left top;
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.dxdeco .dx-r { right: 0; background-image: url(/assets/doax2/side-right.png?v=2); background-position: right top;
  -webkit-mask-image: linear-gradient(270deg, #000 60%, transparent); mask-image: linear-gradient(270deg, #000 60%, transparent); }
@media (min-width: 1600px) { .dxdeco { display: block; } }
.theme-doax2 header.top, .theme-doax2 .hero, .theme-doax2 .subnav, .theme-doax2 main, .theme-doax2 footer { position: relative; z-index: 1; }
.dxmain { padding-bottom: 48px; }

/* rooms */
.dxrooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.dxroom { padding: 14px 16px; display: grid; gap: 10px; border-color: color-mix(in srgb, var(--sea) 25%, var(--line)); }
.dxroom.playing { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.dxroom-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dxroom-top b { font: 800 20px/1 var(--head); letter-spacing: .02em; margin-right: auto; }
.dxroom-host { color: var(--muted); font-size: 14px; }
.dxseats { display: flex; flex-wrap: wrap; gap: 8px; }
.dxseats .dxp { padding: 4px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.dxseats .free { padding: 4px 10px; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.dxroom-foot { color: var(--muted); font-size: 12px; }
.dxp { color: var(--text); text-decoration: none; font-weight: 600; }
.dxp:hover { color: var(--sea); }
.dxonline { display: flex; flex-wrap: wrap; gap: 8px; }
.dxchip { padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.dxchip::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sea);
  margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 6px var(--sea); }

/* the girls of Zack Island (oval portraits from the game's select screen) */
.dxcast { display: flex; justify-content: space-between; gap: 6px; margin: 22px 0 6px; overflow: hidden; }
.dxcast figure { margin: 0; flex: 1 1 0; min-width: 0; text-align: center; transition: transform .2s; }
.dxcast figure:hover { transform: translateY(-4px); }
.dxcast img { width: 100%; max-width: 104px; height: auto; filter: drop-shadow(0 6px 12px rgba(0, 10, 20, .45)); }
.dxcast figcaption { font: 800 14px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--sand); margin-top: 4px; }
@media (max-width: 700px) { .dxcast figure:nth-child(n+6) { display: none; } }

/* mode icons (volleyball / jet ski) */
.dxm { width: 30px; height: 30px; flex: none; display: inline-block; background: center/contain no-repeat; }
.dxm.vb { background-image: url(/assets/doax2/volleyball.png); }
.dxm.jet { background-image: url(/assets/doax2/jetski.png); width: 38px; }

/* latest matches */
.dxmatch { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.dxmatch:first-child { border-top: 0; }
.dxsides { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.dxside { display: flex; align-items: baseline; gap: 6px; }
.dxside.w .dxp { color: var(--sea); }
.dxside.l .dxp { color: var(--muted); }
.dxside small.up { color: var(--sea); font-weight: 700; }
.dxside small.down { color: var(--accent); font-weight: 700; }
.dxsides .vs { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.dxmeta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); }

/* leaderboards */
.dxtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.dxtabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none;
  font: 700 14px/1 var(--body); background: var(--panel); }
.dxtabs a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dxlb tr.top1 td:first-child { color: transparent; background: url(/assets/doax2/crown.png) center/26px no-repeat; }
.dxlb tr.top2 td:first-child { color: #d9e6ee; font-weight: 800; }
.dxlb tr.top3 td:first-child { color: #e2a27a; font-weight: 800; }
.dxlb td.empty { text-align: left; }

@media (max-width: 760px) { .dxmatch { grid-template-columns: auto minmax(0, 1fr); } .dxmeta { grid-column: 2; align-items: flex-start; flex-direction: row; } }

/* how to play (same layout as the other game pages: credit, download box, requirements, steps, FAQ) */
.dxmain section { margin-top: 30px; }
.dxcredit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 6px 0 22px; padding: 20px 22px;
  border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--sea) 40%, var(--line));
  background: linear-gradient(120deg, color-mix(in srgb, var(--sea) 14%, var(--panel)), var(--panel) 55%, color-mix(in srgb, var(--accent) 10%, var(--panel))); }
.dxcredit .ctext { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.dxcredit .clabel { font: 700 12px/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--sea); }
.dxcredit .ctext > b { font: 800 28px/1.05 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.dxcredit p { margin: 4px 0; color: var(--text); line-height: 1.6; }
.dxcredit p b { color: var(--accent-2); }
.dxcredit small { color: var(--muted); line-height: 1.55; }
.dxcredit a, .dxdlbox a:not(.btn), .dxmain details a, .dxmain p.sub a { color: var(--sea); }
.dxcredit .cact { display: flex; flex-direction: column; gap: 8px; }
.dxcredit .cact .btn { justify-content: center; }
.dxdlbox { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  margin: 4px 0 26px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--panel); }
.dxdlbox::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(/assets/doax2/banner.jpg) 50% 30%/cover; opacity: .28; }
.dxdlbox::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--panel) 38%, transparent); }
.dxdlbox > div { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; }
.dxdlbox b { font: 800 24px/1.1 var(--head); text-transform: uppercase; }
.dxdlbox b em { font-style: normal; color: var(--accent-2); }
.dxdlbox span { color: var(--muted); font-size: 14px; }
.dxdlbox .btn { font-size: 16px; padding: 12px 28px; }
.dxdl-soon { color: var(--muted); font-size: 14px; }
.dxreq { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.dxreq div, .dxctl div { border-top: 3px solid var(--sea); }
.dxreq div:nth-child(2n), .dxctl div:nth-child(2n) { border-top-color: var(--accent); }
.dxreq span, .dxctl span { display: block; margin-top: 4px; }
.dxctl { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dxver { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.dxver dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; margin: 0 0 12px; }
.dxver dt { font: 700 11px/1 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.dxver dd { margin: 5px 0 0; font: 800 19px/1.15 var(--head); color: var(--text); }
.dxver dd code { color: var(--sand); font-size: 16px; }
.dxver p { margin: 0; color: var(--muted); }
.dxver p b { color: var(--text); }
.dxmain .step::before { color: var(--sea); }
.dxmain .step:nth-child(2n)::before { color: var(--accent); }
.dxlegal { margin-top: 10px !important; padding: 8px 12px; border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--muted); font-size: 13px; }
.dxmain .callout { margin-top: 14px; }
.dxmain summary::marker { color: var(--sea); }
@media (max-width: 700px) { .dxcredit .cact { flex-direction: row; flex-wrap: wrap; } }
