/* The original mobile app's presentation, applied to the new shared services. */
:root {
  --bg: #000;
  --panel: #08070b;
  --border: rgba(255, 255, 255, 0.12);
  --pink: #ff2bd6;
  --cyan: #00e5ff;
  --gold: #ffeb00;
  --muted: #b4b4bd;
  --text: #fff;
  font-family: Arial, sans-serif;
}
html,
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
}
body:has(#lobby) {
  background: #000;
}
.preview {
  min-height: 22px;
  height: auto;
  padding: 5px 6px;
  font-size: 8px;
  letter-spacing: 0.7px;
  gap: 8px;
  background: #09070b;
  border-color: #26142c;
  color: #ffeb00;
}
.preview span {
  font-size: 8px;
  color: #9b939f;
}
.shell {
  display: block;
  width: 100%;
  max-width: 480px;
  min-height: calc(100dvh - 22px);
  margin: 0 auto;
  padding: 0 6px calc(6px + env(safe-area-inset-bottom));
}
.workspace {
  width: 100%;
}
.classic-header {
  position: relative;
  display: block;
  min-height: 0;
  padding: 2px 4px 4px;
  border: 0;
}
.classic-brand {
  display: block;
}
.classic-logo {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 18px auto 4px;
}
.header-rail {
  position: absolute;
  top: 3px;
  right: 4px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.95);
  background: rgba(0, 0, 0, 0.92);
  color: #ffeb00;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    0 0 8px rgba(0, 229, 255, 0.75),
    inset 0 0 8px rgba(255, 43, 214, 0.35);
}
.header-icon:active {
  transform: scale(0.94);
}
.classic-status {
  width: 100%;
  margin: 0 auto 4px;
}
.classic-points {
  margin: 0 auto 2px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2bd6, #7b3cff, #00e5ff);
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 900;
}
.classic-player-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.classic-player {
  text-align: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.65);
  background: rgba(0, 0, 0, 0.55);
  font-size: 11px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.classic-player-row .button {
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  border-color: rgba(255, 43, 214, 0.9);
  background: rgba(255, 43, 214, 0.16);
  color: #fff;
  box-shadow: 0 0 6px rgba(255, 43, 214, 0.35);
}
.classic-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 5px 2px;
  font-size: 12px;
  font-weight: 800;
}
.classic-page-bar a {
  color: var(--cyan);
}
main {
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 12px 4px 16px;
  outline: none;
}
body[data-view="home"] main {
  padding: 0;
}
.classic-home {
  width: 100%;
}
.classic-game-row,
.classic-image-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 1px;
}
.classic-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 350/200;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform-origin: center;
  animation: classicDance 3.2s ease-in-out infinite;
}
.buy-boinko {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 14px;
  background: linear-gradient(110deg, #df13b8, #7b37e7);
  color: #fff;
  border: 1px solid #ff68e0;
  font-weight: 800;
  text-decoration: none;
  border-radius: 24px;
  padding: 12px 18px;
}
.admin-master-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}
.admin-master-nav .button {
  font-size: 12px;
  padding: 7px 10px;
}
.master-admin section[id^="admin-"] {
  scroll-margin-top: 15px;
}
.master-admin li {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.master-admin p {
  overflow-wrap: anywhere;
}
.master-admin [data-review-form] {
  border-top: 1px solid #444;
  padding-top: 12px;
  margin-top: 14px;
}
.daily-bonus-complete {
  color: #baff63;
  border: 1px solid #6d9f27;
  border-radius: 12px;
  padding: 10px;
  background: #142008;
  font-weight: 700;
}
.coin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.coin-stats > div {
  padding: 12px 5px;
  border: 1px solid #333;
  border-radius: 16px;
  background: #050505;
  text-align: center;
}
.coin-stats span,
.coin-stats strong {
  display: block;
}
.coin-stats span {
  color: #aaa;
  font-size: 11px;
  margin-bottom: 5px;
}
.mint-address {
  overflow-wrap: anywhere;
  border: 1px solid #a5228a;
  padding: 10px;
  border-radius: 14px;
  font-size: 12px;
  user-select: all;
}
.coin-chart {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 16px;
}
.chat-title {
  text-align: center;
}
.chat-title h1 {
  color: #ff39dc;
  margin-bottom: 6px;
}
.chat-thread {
  height: clamp(240px, 45dvh, 480px);
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #333;
  border-radius: 16px;
  background: #090909;
}
.chat-message {
  max-width: 88%;
  padding: 10px 12px;
  margin: 8px 0;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f4f4f4;
  color: #111;
}
.chat-message.user {
  margin-left: auto;
  background: linear-gradient(135deg, #dd18b9, #7537d8);
  color: white;
}
.chat-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px 0;
}
.chat-quick .button {
  font-size: 12px;
  padding: 8px;
}
.chat-compose {
  display: flex;
  gap: 7px;
}
.chat-compose input {
  min-width: 0;
  flex: 1;
}
.games-catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.games-hub > h1 {
  text-align: center;
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}
.game-launch {
  display: block;
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: transparent;
  overflow: hidden;
  line-height: 0;
  color: white;
  text-align: center;
  text-decoration: none;
}
.game-launch img {
  display: block;
  width: 100%;
  height: clamp(88px, 14svh, 130px);
  object-fit: contain;
  border-radius: 17px;
}
.game-launch:active {
  transform: scale(0.985);
}
.hosted-game-name {
  display: block;
  line-height: 1.3;
  color: #caff80;
  font-size: 13px;
  text-align: center;
  padding-bottom: 8px;
}
.game-launch:focus-visible {
  outline: 3px solid #ffeb00;
  outline-offset: -3px;
}
.game-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
}
.game-toolbar a {
  color: #caff80;
  font-size: 12px;
}
.embedded-game {
  display: block;
  width: 100%;
  height: max(580px, 76dvh);
  border: 1px solid #52671f;
  border-radius: 10px;
  background: #000;
}
.game-player:fullscreen {
  background: #000;
  overflow: auto;
  padding: 10px;
}
.game-player:fullscreen .embedded-game {
  height: calc(100dvh - 90px);
}
.classic-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0.94);
}
.raid-status {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #777;
  border-radius: 20px;
  padding: 4px 9px;
  background: #171717;
  color: #eee;
  font:
    600 11px Arial,
    sans-serif;
  white-space: nowrap;
}
.raid-status[data-status="active"] {
  background: #15370b;
  border-color: #a6ff00;
  color: #caff80;
}
.classic-game-row a:nth-child(2) img {
  transform: scale(0.85);
}
.classic-tile:nth-child(2n) {
  animation-delay: 0.25s;
}
.classic-tile:nth-child(3n) {
  animation-delay: 0.5s;
}
.classic-tile:nth-child(4n) {
  animation-delay: 0.75s;
}
.classic-tile:active {
  animation: none;
  transform: scale(0.97);
}
.classic-socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 200px;
  margin: 6px auto 0;
}
.classic-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.classic-socials img {
  height: 28px;
  width: auto;
}
.classic-price {
  text-align: center;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 900;
}
.classic-price strong {
  display: block;
}
.classic-price a {
  display: block;
  color: #00e5ff;
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
}
.classic-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px 2px 4px;
}
.classic-nav a {
  display: block;
  padding: 6px 7px;
  border: 1px solid #00e5ff44;
  background: #000;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #ddd;
}
.classic-nav a.active {
  color: #fff;
  border-color: #ff2bd6bb;
  background: #ff2bd622;
  box-shadow: 0 0 6px #ff2bd633;
}
footer {
  border: 0;
  padding: 10px 3px 4px;
  font-size: 8px;
  color: #777;
  gap: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.two-columns,
.grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.hero {
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.hero-art {
  width: 65px;
  height: 65px;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
h2 {
  font-size: 17px;
  color: var(--cyan);
}
h3 {
  font-size: 15px;
}
p {
  font-size: 12px;
}
.eyebrow {
  font-size: 8px;
  color: var(--pink);
}
.panel {
  padding: 14px;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 43, 214, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(0, 229, 255, 0.12),
      transparent 34%
    ),
    rgba(255, 255, 255, 0.03);
}
.button {
  border: 1px solid #ff2bd6bb;
  color: #fff;
  background: linear-gradient(135deg, #ff2bd644, #7b3cff44, #00e5ff33);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.button.secondary {
  border-color: #00e5ff88;
  color: #fff;
  background: #00e5ff12;
}
.button.quiet {
  border-color: #ffffff33;
  background: #ffffff0a;
  color: #ccc;
}
.button.cyan {
  background: #00e5ff;
  color: #000;
  border-color: #00e5ff;
}
.stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.stat {
  background: #08080b;
  border-radius: 14px;
  padding: 13px;
}
.stat .number {
  font-size: 24px;
}
.stat .label {
  font-size: 10px;
}
.stat .note {
  line-height: 1.4;
}
.play-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.play-card {
  min-height: 180px;
  padding: 12px;
  background: #050509;
  border-radius: 16px;
}
.game-icon {
  height: 55px;
}
.play-card h3 {
  font-size: 16px;
}
.empty {
  padding: 22px 15px;
  background: #050408;
  border-color: #ff2bd644;
  border-radius: 16px;
}
.notice {
  border-color: #ffeb0044;
  background: #ffeb0008;
  color: #eee4c0;
  padding: 12px;
}
.notice.good {
  border-color: #00e5ff55;
  background: #00e5ff08;
}
input,
select,
textarea {
  background: #000;
  border-color: #00e5ff44;
  border-radius: 12px;
}
.section-heading {
  margin: 20px 0 12px;
}
.table-wrap {
  max-width: 100%;
}
th {
  background: #0a060d;
}
td,
th {
  padding: 12px;
}
dialog {
  background: #050309;
  border-color: #00e5ff88;
  border-radius: 16px;
  box-shadow: 0 0 30px #ff2bd62b;
}
.tabs {
  background: #000;
}
.tabs button.active {
  background: #ff2bd622;
  color: #ffeb00;
}
.tag {
  color: #00e5ff;
  border-color: #00e5ff55;
}
#toast {
  background: #0a0311;
  border-color: #00e5ff88;
  box-shadow: 0 0 18px #ff2bd633;
}
#infoDialog p {
  margin: 18px 0 0;
}
.classic-section-image {
  display: block;
  max-width: 260px;
  max-height: 140px;
  object-fit: contain;
  width: 100%;
  margin: 0 auto 15px;
}
@keyframes classicDance {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  20% {
    transform: translateY(-3px) rotate(-0.7deg);
  }
  40% {
    transform: translateY(1px) rotate(0.7deg);
  }
  60% {
    transform: translateY(-2px) rotate(-0.5deg);
  }
  80% {
    transform: translateY(1px) rotate(0.5deg);
  }
}
@media (max-height: 720px) {
  .classic-logo {
    max-width: 238px;
    margin-top: 14px;
  }
  .header-icon {
    width: 29px;
    height: 29px;
    font-size: 14px;
  }
  .classic-points,
  .classic-player {
    padding-top: 2px;
    padding-bottom: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .classic-tile {
    animation: none;
  }
}
