@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #ff9d00;
  --primary-glow: rgba(255,157,0,0.7);
  --bg-dark: #0a0b0d;
  --text-main: #ffffff;
  --text-muted: #dcdcdc;
  --gold: #ffd700;
  --gold-border: #c8860a;
  --gold-dark: #8b5e0f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: 'Be Vietnam Pro', Tahoma, Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-dark);
}

/* =====================
   AUTH PAGE BACKGROUND
   ===================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('/static/images/bg_all.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

/* =====================
   GOLDEN FRAMED PANEL
   ===================== */
.auth-container {
  width: 100%;
  max-width: 420px;
  margin: 20px;
  position: relative;
  z-index: 2;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 5px solid var(--gold-border);
  border-radius: 22px;
  padding: 32px 32px 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 40%),
    linear-gradient(180deg, #1a5276 0%, #154360 40%, #0e2f44 100%);
  box-shadow:
    0 0 0 3px #e8a917,
    0 0 0 7px var(--gold-dark),
    0 0 0 9px rgba(0,0,0,0.4),
    0 12px 40px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.15);
  overflow: visible;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 4px; left: 20px; right: 20px;
  height: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%);
  border-radius: 18px 18px 50% 50%;
  pointer-events: none;
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Wide panel for server select */
.auth-container.wide {
  max-width: 520px;
}

/* Panel heading */
.auth-container h1,
.auth-container h2 {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
  letter-spacing: 2px;
  text-shadow:
    0 2px 0 #b8860b,
    0 3px 0 #8b6508,
    0 0 15px rgba(255,215,0,0.5),
    2px 2px 4px rgba(0,0,0,0.8);
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255,215,0,0.25);
  margin-bottom: 4px;
}

.form-subtitle {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #87ceeb;
  margin: 8px 0 22px;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* =====================
   FORM FIELDS
   ===================== */
.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.field small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  padding-left: 6px;
  color: #999;
}

/* Input with icon wrapper */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  z-index: 2;
  pointer-events: none;
}

/* Game-styled pill input */
.game-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border: 3px solid var(--gold-border);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #f5f0e0 100%);
  color: #4a3728;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Be Vietnam Pro', Tahoma, Arial, sans-serif;
  outline: none;
  transition: all 0.25s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.12), 0 2px 0 var(--gold-dark);
  letter-spacing: 0.3px;
}

.game-input.no-icon {
  padding-left: 16px;
}

.game-input::placeholder {
  color: #a09080;
  font-weight: 600;
  font-size: 12px;
}

.game-input:focus {
  border-color: var(--gold);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.12),
    0 2px 0 var(--gold-dark),
    0 0 0 3px rgba(255,215,0,0.3);
}

/* Checkbox row */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin: 14px 0 18px;
  padding: 0 6px;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: color 0.2s;
}

.form-options label:hover { color: var(--gold); }

.form-options input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: #2ecc71;
  cursor: pointer;
}

/* =====================
   BUTTONS
   ===================== */
.auth-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: 'Be Vietnam Pro', Tahoma, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  filter: grayscale(0.4);
}

/* Green (primary action) */
.btn-green {
  height: 56px;
  border-radius: 28px;
  border: 3px solid var(--gold);
  background: linear-gradient(180deg, #5dde73 0%, #28b445 50%, #1f9e3a 100%);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0,80,0,0.5), 0 0 10px rgba(0,0,0,0.2);
  box-shadow:
    0 4px 0 #16772a,
    0 6px 8px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

.btn-green:hover {
  background: linear-gradient(180deg, #6bea80 0%, #30c450 50%, #24ad42 100%);
  transform: translateY(1px);
  box-shadow:
    0 3px 0 #16772a,
    0 5px 6px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn-green:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #16772a, inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Blue (secondary action) */
.btn-blue {
  height: 44px;
  margin-top: 10px;
  border-radius: 22px;
  border: 3px solid var(--gold-border);
  background: linear-gradient(180deg, #5ba3e6 0%, #2d7ec7 50%, #1d6aaf 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 0 rgba(0,0,60,0.5);
  box-shadow:
    0 3px 0 #14507a,
    0 5px 6px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-blue:hover {
  background: linear-gradient(180deg, #6db1f0 0%, #3590d8 50%, #2278c0 100%);
  transform: translateY(1px);
  box-shadow: 0 2px 0 #14507a, 0 4px 5px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-blue:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 #14507a, inset 0 2px 4px rgba(0,0,0,0.15);
}

/* Ghost logout */
.btn-ghost {
  width: 100%;
  height: 40px;
  margin-top: 14px;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,0.15);
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Be Vietnam Pro', Tahoma, sans-serif;
}

.btn-ghost:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
  background: rgba(255,107,107,0.12);
  transform: translateY(1px);
}

.btn-ghost:active {
  transform: translateY(2px);
  box-shadow: none;
}

.btn-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.btn-subtitle {
  font-size: 9px;
  font-weight: 700;
  opacity: 0.85;
  margin-top: -1px;
  letter-spacing: 0.5px;
}

/* =====================
   ALERT MESSAGES
   ===================== */
.alert {
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  background: rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}

.alert-success {
  color: #2ecc71;
  border-color: rgba(46,204,113,0.4);
  background: rgba(0,200,80,0.12);
}

.alert-danger {
  color: #ff6b6b;
  border-color: rgba(255,107,107,0.4);
  background: rgba(255,0,0,0.15);
}

.sub-link {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.sub-link a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.sub-link a:hover { color: #fff; }

/* =====================
   WELCOME TEXT
   ===================== */
.welcome-text {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #87ceeb;
  margin: 8px 0 18px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.welcome-text b { color: var(--gold); font-weight: 900; }

/* =====================
   SERVER LIST
   ===================== */
.server-list {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.server-list::-webkit-scrollbar { width: 6px; }
.server-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 3px; }
.server-list::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 3px; }

.server-list .empty {
  text-align: center;
  padding: 20px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

.server-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border: 2px solid rgba(200,134,10,0.4);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  text-decoration: none;
  color: #fff;
}

.server-item:hover {
  background: linear-gradient(180deg, rgba(255,215,0,0.15) 0%, rgba(255,215,0,0.05) 100%);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  color: #fff;
}

.server-name {
  font-weight: 800;
  font-size: 15px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.server-status {
  font-size: 11px;
  color: #2ecc71;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =====================
   MODAL
   ===================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 20px;
  border: 5px solid var(--gold-border);
  border-radius: 22px;
  padding: 26px 28px 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 40%),
    linear-gradient(180deg, #1a5276 0%, #154360 40%, #0e2f44 100%);
  box-shadow:
    0 0 0 3px #e8a917,
    0 0 0 7px var(--gold-dark),
    0 0 0 9px rgba(0,0,0,0.4),
    0 12px 40px rgba(0,0,0,0.6);
  position: relative;
}

.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 3px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255,215,0,0.25);
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-shadow: 0 2px 0 #b8860b, 0 0 10px rgba(255,215,0,0.4);
}

.modal-header a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
  transition: color 0.2s;
}

.modal-header a:hover { color: #ff6b6b; }

/* =====================
   PLAY PAGE
   ===================== */
.play-page {
  min-height: 100vh;
  background: #0a0b0d;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.topbar {
  width: 100%;
  height: 44px;
  background: linear-gradient(90deg, #0e2f44, #1a5276, #0e2f44);
  border-bottom: 2px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.topbar-info {
  font-size: 13px;
  font-weight: 700;
  color: #87ceeb;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.topbar-info b { color: var(--gold); }

.topbar-links {
  display: flex;
  gap: 4px;
}

.topbar-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 16px;
  border: 2px solid rgba(200,134,10,0.4);
  background: rgba(255,255,255,0.06);
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.topbar-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255,215,0,0.1);
}


.debug {
  width: 1000px;
  max-width: 100%;
  margin: 8px auto;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  border: 2px solid #ba0000;
  border-radius: 8px;
  font-size: 12px;
}

.debug input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  margin-top: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid #555;
  color: #fff;
  border-radius: 4px;
  font-family: monospace;
}

/* =====================
   SIDEBAR TOGGLE BTN
   ===================== */
.sidebar-toggle {
  background: transparent;
  border: none;
  color: #f1c40f;
  font-size: 20px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* =====================
   SIDEBAR PANEL
   ===================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: linear-gradient(to bottom, #1e272e, #0a0b0d);
  border-right: 2px solid #f39c12;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
  box-shadow: 5px 0 20px rgba(0,0,0,0.8);
}

.sidebar.closed {
  transform: translateX(-100%);
}

.sidebar-header {
  padding: 24px 20px 18px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.sidebar-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #f39c12;
  background: linear-gradient(135deg, #1a5276, #0e2f44);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 10px;
}

.sidebar-header h3 {
  color: #f1c40f;
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
  text-shadow: 1px 1px 0px #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-header p {
  font-size: 12px;
  color: #2ed573;
  font-weight: 700;
  margin-top: 4px;
}

.sidebar-menu {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-btn {
  padding: 12px 15px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Be Vietnam Pro', Tahoma, sans-serif;
}

.sidebar-btn:hover {
  background: rgba(243,156,18,0.2);
  border-color: #f39c12;
  color: #f39c12;
}

.sidebar-btn.danger { color: #ff6b6b; }

.sidebar-btn.danger:hover {
  background: rgba(255,71,87,0.2);
  border-color: #ff4757;
  color: #ff4757;
}

/* Backdrop */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 999;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =====================
   GAME AREA BACKGROUND
   ===================== */
#game-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('/static/images/bg_play_frame.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 0;
  padding: 0;
}

#game-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  pointer-events: none;
}

#game-mount {
  display: inline-block;
  width: 1000px;
  max-width: 100%;
  min-height: 600px;
  position: relative;
  z-index: 1;
}

#game-mount.engine-wasm-active {
  height: 600px;
  max-height: calc(100vh - 44px);
}

#game-mount.engine-wasm-active ruffle-player {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* =====================
   SIDEBAR PRIMARY BTN
   ===================== */
.sidebar-btn-primary {
  background: rgba(243,156,18,0.18);
  border-color: #f39c12;
  color: #f1c40f;
  font-weight: 900;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  width: 100%;
}

.sidebar-btn-primary:hover {
  background: rgba(243,156,18,0.36);
  color: #fff;
}

/* =====================
   LANDING PAGE
   ===================== */
.landing-body {
  background: var(--bg-dark);
  min-height: 100vh;
}

/* NAV */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(10,11,13,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,215,0,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 200;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  height: 34px;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(255,215,0,0.4);
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-username {
  font-size: 12px;
  font-weight: 700;
  color: #87ceeb;
  margin-right: 4px;
}

.nav-btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Be Vietnam Pro', Tahoma, sans-serif;
  letter-spacing: 0.3px;
}

.nav-btn-ghost {
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.nav-btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255,215,0,0.07);
}

.nav-btn-primary {
  background: linear-gradient(135deg, #f39c12, #c8860a);
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(243,156,18,0.4);
}

.nav-btn-primary:hover {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  box-shadow: 0 4px 20px rgba(243,156,18,0.6);
  transform: translateY(-1px);
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 20px 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/static/images/gameBackGround.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(255,157,0,0.12) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
}

.hero-title {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--gold);
  text-shadow:
    0 4px 0 #b8860b,
    0 6px 0 #8b6508,
    0 0 40px rgba(255,215,0,0.5),
    0 0 80px rgba(255,157,0,0.3);
  margin-bottom: 20px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-subtitle {
  font-size: clamp(14px, 2.5vw, 18px);
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.cta-btn {
  display: inline-block;
  padding: 15px 38px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.25s;
  font-family: 'Be Vietnam Pro', Tahoma, sans-serif;
  margin: 6px;
  background: linear-gradient(135deg, #f39c12, #c0392b);
  color: #fff;
  box-shadow: 0 4px 24px rgba(243,156,18,0.5), 0 0 0 3px rgba(255,215,0,0.15);
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 36px rgba(243,156,18,0.7), 0 0 0 4px rgba(255,215,0,0.25);
}

.cta-btn-outline {
  background: transparent;
  border: 2px solid rgba(255,215,0,0.5);
  color: var(--gold);
  box-shadow: none;
}

.cta-btn-outline:hover {
  background: rgba(255,215,0,0.1);
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(255,215,0,0.2);
}

/* SECTIONS */
.section {
  padding: 64px 20px;
}

.section-dark {
  background: rgba(0,0,0,0.3);
}

.section-cta {
  background: linear-gradient(135deg, rgba(243,156,18,0.08) 0%, rgba(192,57,43,0.08) 100%);
  border-top: 1px solid rgba(255,215,0,0.1);
  border-bottom: 1px solid rgba(255,215,0,0.1);
  padding: 72px 20px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 #b8860b, 0 0 20px rgba(255,215,0,0.25);
}

/* NEWS / EVENT CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.news-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 22px 22px 18px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
}

.news-card-event::before  { background: linear-gradient(90deg, #f39c12, #e67e22); }
.news-card-new::before    { background: linear-gradient(90deg, #2ecc71, #27ae60); }
.news-card-notice::before { background: linear-gradient(90deg, #3498db, #2980b9); }

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,215,0,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}

.news-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.card-date {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* FEATURE GRID */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  transition: 0.25s;
}

.feature-item:hover {
  border-color: rgba(255,215,0,0.25);
  background: rgba(255,215,0,0.04);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 38px;
  margin-bottom: 14px;
}

.feature-item h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FOOTER */
.landing-footer {
  padding: 24px 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 600px) {
  .landing-nav { padding: 0 16px; }
  .nav-logo-text { font-size: 16px; }
  .nav-btn { padding: 6px 12px; font-size: 12px; }
  .hero { padding: 70px 16px 40px; }
  .hero-title { letter-spacing: 3px; }
}

/* =====================
   PLAY SIDEBAR (parity air_client)
   ===================== */
.sidebar-wallet {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(243,156,18,0.08);
  border: 1px solid rgba(243,156,18,0.25);
  text-align: left;
}
.sidebar-wallet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #dfe6e9;
  font-size: 12px;
  font-weight: 600;
}
.sidebar-wallet-row b {
  color: #f1c40f;
  font-size: 14px;
}
.sidebar-wallet-hint {
  margin-top: 6px;
  font-size: 10px;
  color: #8E99A8;
  line-height: 1.35;
}

.sidebar-settings {
  margin: 2px 0 4px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-settings-title {
  color: #f1c40f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.sidebar-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.sidebar-chip-label {
  width: 100%;
  color: #9AA5B1;
  font-size: 11px;
  font-weight: 700;
}
.sidebar-chip {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  color: #cfd8dc;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.sidebar-chip.active,
.sidebar-chip:hover {
  border-color: #f39c12;
  color: #f1c40f;
  background: rgba(243,156,18,0.18);
}

.sidebar-menu { overflow-y: auto; }

/* Play modals */
.play-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.play-modal[hidden] { display: none !important; }
.play-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}
.play-modal-card {
  position: relative;
  width: min(420px, 96vw);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: linear-gradient(180deg, #151b22 0%, #0a0e14 100%);
  border: 1px solid rgba(243,156,18,0.45);
  border-radius: 12px;
  padding: 16px 18px 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  z-index: 1;
}
.play-modal-wide { width: min(560px, 96vw); }
.play-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.play-modal-head h3 {
  margin: 0;
  color: #f1c40f;
  font-size: 16px;
  font-weight: 900;
}
.play-modal-x {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.play-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.play-tab {
  flex: 1;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #b0bec5;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.play-tab.active {
  border-color: #f39c12;
  color: #f1c40f;
  background: rgba(243,156,18,0.16);
}
.play-hint {
  color: #8E99A8;
  font-size: 12px;
  margin: 0 0 10px;
  line-height: 1.45;
}
.play-hint b { color: #f1c40f; }
.play-body {
  color: #cfd8dc;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.play-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.play-form-grid label,
.play-block-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #9AA5B1;
  font-size: 11px;
  font-weight: 700;
}
.play-form-grid input,
.play-form-grid select,
.play-block-label select,
.play-input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #0A0E14;
  color: #f1c40f;
  font-size: 13px;
  font-family: inherit;
}
.play-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 1px;
}
.play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 6px;
}
.btn-gold, .btn-ghost {
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.btn-gold {
  background: #f1c40f;
  color: #1A1408;
  border: none;
}
.btn-ghost {
  background: transparent;
  color: #f1c40f;
  border: 1px solid rgba(243,156,18,0.5);
}
.play-status {
  min-height: 18px;
  font-size: 12px;
  margin: 4px 0 8px;
  color: #8E99A8;
}
.play-status.ok { color: #6BCB77; }
.play-status.err { color: #FF6B6B; }
.play-sub {
  margin: 12px 0 6px;
  color: #9AA5B1;
  font-size: 12px;
}
.play-hist {
  max-height: 120px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(0,0,0,0.25);
}
.play-hist-row {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #cfd8dc;
  font-size: 11px;
}
.play-hist-row:last-child { border-bottom: none; }
.play-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.play-value-chip {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  color: #cfd8dc;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.play-value-chip.active {
  border-color: #f39c12;
  color: #f1c40f;
  background: rgba(243,156,18,0.18);
}
.play-qr-img {
  display: block;
  width: min(260px, 70vw);
  height: auto;
  margin: 8px auto 12px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}
.play-vip-list {
  max-height: 360px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}
.play-vip-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #cfd8dc;
  font-size: 13px;
}
.play-vip-row b { color: #f1c40f; }
.play-vip-row:nth-child(odd) { background: rgba(255,255,255,0.03); }

@media (max-width: 520px) {
  .play-form-grid { grid-template-columns: 1fr; }
  .sidebar { width: min(280px, 88vw); }
}

