/* ============================================================
   RESET & BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

@font-face {
  font-family: 'Panchang';
  src: url('fonts_file_rrt/Panchang-Variable.ttf') format('truetype');
  font-weight: 300 900;
  font-display: swap;
}

html {
  min-height: 100vh;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  width: 100%;
  background-color: #080c14;
  background-image: 
    radial-gradient(circle at 12% 18%, rgba(57, 255, 20, 0.09) 0%, transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(0, 240, 255, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 65%, rgba(125, 44, 255, 0.08) 0%, transparent 55%),
    linear-gradient(rgba(0, 240, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.022) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 50px 50px, 50px 50px;
  background-attachment: fixed;
  color: #f0f4f8;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  padding-top: 62px;
}

.hidden { display: none !important; }

/* ============================================================
   NAVBAR  —  Premium Cyber Redesign
   ============================================================ */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(8, 14, 28, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1.5px solid rgba(0, 240, 255, 0.28);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.08);
}

.navbar {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 36px);
  gap: 16px;
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  flex-wrap: wrap;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  border-radius: 50%;
  border: 2px solid #39ff14;
  animation: spin 10s linear infinite;
  box-shadow: 0 0 12px #39ff1466;
  transition: box-shadow 0.3s;
}
.logo img:hover { box-shadow: 0 0 24px #39ff14cc; }

.logo-text {
  font-family: Panchang, Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 3px;
}
.logo-accent { color: #39ff14; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Nav links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  font-family: Panchang, Arial, sans-serif;
  font-size: 0.8rem;
  color: #cccccc;
  font-weight: 700;
  text-transform: uppercase;
  padding: 7px 14px;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 30px;
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #1a1a2e;
  background: #39ff14;
  border-color: #39ff14;
  box-shadow: 0 0 16px #39ff1466;
  transform: translateY(-2px);
}

/* History link - special accent */
.nav-history {
  border-color: #00f0ff44;
  color: #00f0ff;
}
.nav-history:hover {
  background: #00f0ff;
  border-color: #00f0ff;
  color: #1a1a2e;
  box-shadow: 0 0 16px #00f0ff66;
}

/* ── Auth buttons ── */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.welcome-msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Panchang', Arial, sans-serif;
  font-size: clamp(0.72rem, 0.95vw, 0.82rem);
  font-weight: 800;
  color: #39ff14;
  letter-spacing: 1px;
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid rgba(57, 255, 20, 0.4);
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.25);
  white-space: nowrap;
}

.welcome-msg b {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
}

.btn-login, .btn-signup, .btn-logout {
  font-family: Panchang, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-login {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid #ffffff55;
}
.btn-login:hover {
  background: #ffffff22;
  border-color: #fff;
  box-shadow: 0 0 12px #ffffff44;
}

.btn-signup {
  background: linear-gradient(90deg, #39ff14, #00f0ff);
  color: #1a1a2e;
}
.btn-signup:hover {
  transform: scale(1.06);
  box-shadow: 0 0 18px #39ff1466;
}

.btn-logout {
  background: #ff004455;
  color: #ff6688;
  border: 1.5px solid #ff004488;
}
.btn-logout:hover {
  background: #ff0044;
  color: #fff;
  box-shadow: 0 0 12px #ff004466;
}

/* ── Hamburger (mobile) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #39ff14;
  border-radius: 3px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   DECORATIVE SIDE TREES — Hidden for clean cyber look
   ============================================================ */
.side-image-left {
  display: none !important;
}

/* ============================================================
   HERO CONTENT — Cyber Battle Arena
   ============================================================ */
.hero-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  padding: 4px 16px 2px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: Panchang, Arial, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 0;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.hero-title .neon-vs {
  color: #39ff14;
  font-size: 0.75em;
  padding: 0 5px;
  text-shadow: 0 0 14px rgba(57, 255, 20, 0.6);
}

/* ============================================================
   GAME SECTION — Grand Cyber Arena
   ============================================================ */
.game-section {
  width: 100%;
  max-width: 100vw;
  min-height: unset;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 18px clamp(16px, 3vw, 40px) 10px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* ============================================================
   BATTLE MODE SELECTOR & ONLINE LOBBY DECK
   ============================================================ */
.game-mode-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 20, 36, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 40px;
  padding: 3px 5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  margin-bottom: 0;
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Panchang, Arial, sans-serif;
  font-size: clamp(0.68rem, 0.9vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  padding: 5px 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.mode-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.mode-tab.active {
  background: linear-gradient(135deg, #39ff14, #00f0ff);
  color: #080c14;
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.45);
}

.mode-badge-live {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: #ff0055;
  color: #fff;
  padding: 2px 7px;
  border-radius: 10px;
  animation: pulseDot 1.4s infinite alternate;
}

/* Online Lobby Deck */
.online-lobby-bar {
  width: min(860px, 95%);
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(16, 25, 48, 0.92) 0%, rgba(8, 12, 24, 0.98) 100%);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: 20px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 240, 255, 0.1);
  backdrop-filter: blur(16px);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.online-lobby-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff 40%, #39ff14 60%, transparent);
  pointer-events: none;
}

.online-lobby-bar.hidden {
  display: none !important;
}

.lobby-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lobby-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: Panchang, Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.22s ease;
  border: none;
  height: 38px;
  box-sizing: border-box;
}

.btn-quick-match {
  background: linear-gradient(135deg, #00f0ff, #39ff14);
  color: #080c14;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}
.btn-quick-match:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.55);
}

.btn-create-room {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.btn-create-room:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.lobby-join-box {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  padding: 2px 3px 2px 14px;
  height: 38px;
  box-sizing: border-box;
}

.lobby-join-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #00f0ff;
  font-family: Panchang, Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 1px;
  width: 150px;
}
.lobby-join-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.64rem;
}

.btn-join-room {
  background: #00f0ff;
  color: #080c14;
  padding: 0 14px;
  height: 30px;
  border-radius: 16px;
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-join-room:hover {
  background: #39ff14;
  box-shadow: 0 0 12px #39ff14;
}

.lobby-status-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.72rem;
  color: rgba(214, 226, 239, 0.88);
  padding: 6px 14px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 12px;
  text-align: center;
}

.lobby-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39ff14;
  box-shadow: 0 0 8px #39ff14;
  flex-shrink: 0;
  animation: pulseDot 1.6s infinite alternate;
}

.lobby-btn-leave {
  font-family: Panchang, Arial, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 1px;
  background: rgba(255, 0, 85, 0.15);
  border: 1px solid #ff0055;
  color: #ff6688;
  padding: 3px 10px;
  border-radius: 15px;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.2s;
}
.lobby-btn-leave:hover {
  background: #ff0055;
  color: #fff;
}



/* ── Last result bar (Tactical Announcer) ── */
.last-result-bar {
  width: min(860px, 95%);
  margin: 0 auto 12px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  border: 1.5px solid rgba(0, 240, 255, 0.28);
  background: rgba(14, 20, 36, 0.78);
  backdrop-filter: blur(12px);
  padding: 6px 24px;
  font-family: Panchang, Arial, sans-serif;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  letter-spacing: 1.2px;
  color: #d6e2ef;
  text-align: center;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.08);
  transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.last-result-bar.bar-win  { background: rgba(57, 255, 20, 0.15); border-color: #39ff14; color: #39ff14; box-shadow: 0 0 20px rgba(57, 255, 20, 0.25); }
.last-result-bar.bar-lose { background: rgba(255, 0, 85, 0.15); border-color: #ff0055; color: #ff6688; box-shadow: 0 0 20px rgba(255, 0, 85, 0.25); }
.last-result-bar.bar-draw { background: rgba(0, 240, 255, 0.15); border-color: #00f0ff; color: #00f0ff; box-shadow: 0 0 20px rgba(0, 240, 255, 0.25); }



/* ── CENTER: WEAPON ARSENAL (Arena Center) ── */
.arena-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 90%;
  margin: 6px auto 14px;
}

/* ================================================================
   CYBER ESPORTS BATTLE ARENA (CLASH STAGE)
================================================================ */
.clash-stage {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 12px;
  padding: clamp(12px, 2vw, 20px);
  background: radial-gradient(ellipse at 50% 0%, rgba(20, 34, 68, 0.75) 0%, rgba(7, 11, 24, 0.96) 75%);
  border: 1.5px solid rgba(0, 240, 255, 0.28);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 240, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

/* Glowing top laser guide */
.clash-stage::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff 30%, #39ff14 50%, #ff0055 70%, transparent);
  pointer-events: none;
}

/* ── Integrated Clash Topbar: Scores + Round + Weapon Selector ── */
.clash-stage-topbar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  position: relative;
}

/* Row 1: Combatant Scores (Player vs Round/Reset vs Opponent) */
.clash-topbar-scores {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Score Tiles */
.clash-score-tile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clash-score-tile.player-tile {
  justify-content: flex-start;
}

.clash-score-tile.opponent-tile {
  justify-content: flex-end;
}

.clash-score-tile .tile-meta-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clash-score-tile.opponent-tile .tile-meta-header {
  align-items: flex-end;
}

.combatant-title {
  font-family: 'Panchang', Arial, sans-serif;
  font-size: clamp(0.6rem, 1vw, 0.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: clamp(80px, 18vw, 180px);
}

.clash-score-display {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(4, 8, 20, 0.75);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
  padding: 0 8px;
}

.player-tile .clash-score-display {
  border: 1.5px solid rgba(0, 240, 255, 0.4);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 14px rgba(0, 240, 255, 0.2);
}

.opponent-tile .clash-score-display {
  border: 1.5px solid rgba(255, 0, 85, 0.4);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 14px rgba(255, 0, 85, 0.2);
}

.clash-score-value {
  font-family: 'Panchang', Arial, sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.player-tile .clash-score-value {
  color: #00f0ff;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.6);
}

.opponent-tile .clash-score-value {
  color: #ff3366;
  text-shadow: 0 0 16px rgba(255, 51, 102, 0.6);
}

/* Center: Round Badge & In-Place Reset Button */
.clash-round-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.clash-round-center .round-badge {
  font-family: 'Panchang', Arial, sans-serif;
  font-size: clamp(0.66rem, 0.9vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: 20px;
  padding: 5px 14px;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.clash-round-center .round-badge i {
  font-size: 0.55rem;
  color: #39ff14;
}

/* Quick In-Place Reset Button (No page reload) */
.clash-quick-reset-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 0, 85, 0.12);
  border: 1.5px solid rgba(255, 0, 85, 0.4);
  color: #ff6688;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 0.78rem;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.2);
}

.clash-quick-reset-btn:hover {
  background: #ff0055;
  border-color: #ff0055;
  color: #ffffff;
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 0 18px rgba(255, 0, 85, 0.6);
}

.clash-quick-reset-btn:active {
  transform: rotate(180deg) scale(0.95);
}

/* Row 2: Top Weapon Selector */
.top-weapon-selector {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.weapon-btn-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.6vw, 14px);
  width: 100%;
  max-width: 100%;
}

/* Tactical Weapon Buttons */
.choice-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: clamp(34px, 3.8vw, 38px);
  padding: 0 clamp(8px, 1.6vw, 18px);
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(20, 32, 60, 0.88) 0%, rgba(9, 15, 30, 0.98) 100%);
  color: #ffffff;
  font-family: 'Panchang', Arial, sans-serif;
  font-size: clamp(0.65rem, 0.88vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  user-select: none;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  white-space: nowrap;
}

/* Disabled / Locked State — while waiting for result */
.choice-btn:disabled,
.choice-btn.btn-locked {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(60%);
}

/* Locked container overlay */
.weapons-locked .choice-btn:not(.selected) {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(55%);
}

.weapons-locked .choice-btn.selected {
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
}

.choice-btn .btn-icon {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  flex-shrink: 0;
}

.choice-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 8px 22px rgba(0, 240, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.choice-btn:hover .btn-icon {
  transform: scale(1.2) rotate(6deg);
}

.choice-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Individual Weapon Accents */
.choice-btn-rock:hover,
.choice-btn-rock.selected {
  border-color: #ffaa00 !important;
  box-shadow: 0 0 24px rgba(255, 170, 0, 0.45), inset 0 0 10px rgba(255, 170, 0, 0.2) !important;
}

.choice-btn-rock.selected {
  background: linear-gradient(135deg, rgba(255, 170, 0, 0.25) 0%, rgba(20, 32, 64, 0.95) 100%) !important;
  color: #ffaa00 !important;
}

.choice-btn-paper:hover,
.choice-btn-paper.selected {
  border-color: #00f0ff !important;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.45), inset 0 0 10px rgba(0, 240, 255, 0.2) !important;
}

.choice-btn-paper.selected {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25) 0%, rgba(20, 32, 64, 0.95) 100%) !important;
  color: #00f0ff !important;
}

.choice-btn-scissor:hover,
.choice-btn-scissor.selected {
  border-color: #ff007f !important;
  box-shadow: 0 0 24px rgba(255, 0, 127, 0.45), inset 0 0 10px rgba(255, 0, 127, 0.2) !important;
}

.choice-btn-scissor.selected {
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.25) 0%, rgba(20, 32, 64, 0.95) 100%) !important;
  color: #ff007f !important;
}

.choice-btn.computer-pick {
  border-color: #ff3366 !important;
  box-shadow: 0 0 24px rgba(255, 51, 102, 0.6) !important;
}

/* ── Battle Hands Confrontation Row ── */
.clash-battle-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 36px);
  padding: 6px 0 2px;
}

/* Combatant Box */
.combatant-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Holographic Hand Viewport Frame */
.hand-frame {
  width: clamp(125px, 16vw, 185px);
  height: clamp(125px, 16vw, 185px);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(22, 34, 66, 0.92) 0%, rgba(5, 8, 18, 0.98) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.7), inset 0 0 24px rgba(0, 0, 0, 0.85);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.combatant-player .hand-frame {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.7), 0 0 22px rgba(0, 240, 255, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.combatant-opponent .hand-frame {
  border-color: rgba(255, 0, 85, 0.35);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.7), 0 0 22px rgba(255, 0, 85, 0.15), inset 0 0 20px rgba(255, 0, 85, 0.1);
}

/* Sci-Fi Corner Brackets Overlay */
.corner-bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 3;
}

.combatant-player .corner-bracket {
  border-color: #00f0ff;
}

.combatant-opponent .corner-bracket {
  border-color: #ff0055;
}

.corner-tl {
  top: 8px; left: 8px;
  border-top: 2px solid;
  border-left: 2px solid;
  border-top-left-radius: 4px;
}

.corner-tr {
  top: 8px; right: 8px;
  border-top: 2px solid;
  border-right: 2px solid;
  border-top-right-radius: 4px;
}

.corner-bl {
  bottom: 8px; left: 8px;
  border-bottom: 2px solid;
  border-left: 2px solid;
  border-bottom-left-radius: 4px;
}

.corner-br {
  bottom: 8px; right: 8px;
  border-bottom: 2px solid;
  border-right: 2px solid;
  border-bottom-right-radius: 4px;
}

.hand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
  display: block;
}

/* Opponent Hand in Online mode (Human vs Human): mirror horizontally to face left */
.mirror-hand {
  transform: scaleX(-1);
}

/* Cybernetic Hand Scanline Effect */
.hand-scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.8), transparent);
  opacity: 0.6;
  animation: handScan 2.6s infinite linear;
  pointer-events: none;
  z-index: 2;
}

@keyframes handScan {
  0% { top: -2px; }
  100% { top: 100%; }
}

/* Gesture Badge Below Hand */
.combatant-gesture-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Panchang', Arial, sans-serif;
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  font-weight: 800;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

/* Center VS Deck */
.clash-center-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.clash-vs-orb {
  width: clamp(52px, 7vw, 76px);
  height: clamp(52px, 7vw, 76px);
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0055 0%, #7928ca 50%, #00f0ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Panchang', Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(0.95rem, 1.4vw, 1.25rem);
  color: #ffffff;
  letter-spacing: 1px;
  box-shadow: 0 0 28px rgba(255, 0, 85, 0.55), inset 0 2px 5px rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 2;
  animation: orbPulse 2.5s infinite ease-in-out;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 0, 85, 0.45); }
  50% { transform: scale(1.08); box-shadow: 0 0 35px rgba(0, 240, 255, 0.7); }
}

.clash-status-bubble {
  font-family: 'Panchang', Arial, sans-serif;
  font-size: clamp(0.62rem, 0.85vw, 0.72rem);
  font-weight: 800;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: 12px;
  padding: 5px 12px;
  text-align: center;
  letter-spacing: 0.8px;
  white-space: nowrap;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  min-width: 110px;
}

/* ── SHAKE & CLASH ANIMATIONS ── */
@keyframes rpsShakeLeft {
  0% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-22px) rotate(-12deg); }
  40% { transform: translateY(6px) rotate(4deg); }
  60% { transform: translateY(-18px) rotate(-10deg); }
  80% { transform: translateY(4px) rotate(2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes rpsShakeRight {
  0% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-22px) rotate(12deg); }
  40% { transform: translateY(6px) rotate(-4deg); }
  60% { transform: translateY(-18px) rotate(10deg); }
  80% { transform: translateY(4px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes rpsShakeRightMirrored {
  0% { transform: scaleX(-1) translateY(0) rotate(0deg); }
  20% { transform: scaleX(-1) translateY(-22px) rotate(-12deg); }
  40% { transform: scaleX(-1) translateY(6px) rotate(4deg); }
  60% { transform: scaleX(-1) translateY(-18px) rotate(-10deg); }
  80% { transform: scaleX(-1) translateY(4px) rotate(2deg); }
  100% { transform: scaleX(-1) translateY(0) rotate(0deg); }
}

.hand-shaking-left {
  animation: rpsShakeLeft 0.38s ease-in-out;
}

.hand-shaking-right {
  animation: rpsShakeRight 0.38s ease-in-out;
}

.hand-shaking-right-mirrored {
  animation: rpsShakeRightMirrored 0.38s ease-in-out;
}

/* Winner, Loser, Draw States */
.hand-winner {
  border-color: #39ff14 !important;
  box-shadow: 0 0 35px rgba(57, 255, 20, 0.65), inset 0 0 16px rgba(57, 255, 20, 0.4) !important;
  transform: scale(1.06);
}

.hand-winner .combatant-gesture-badge {
  background: rgba(57, 255, 20, 0.22);
  border-color: #39ff14;
  color: #39ff14;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.35);
}

.hand-loser {
  border-color: rgba(255, 50, 80, 0.45) !important;
  opacity: 0.55;
  transform: scale(0.94);
  filter: grayscale(45%);
}

.hand-loser .combatant-gesture-badge {
  background: rgba(255, 50, 80, 0.15);
  border-color: rgba(255, 50, 80, 0.4);
  color: #ff6688;
}

.hand-draw {
  border-color: #ffd700 !important;
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.45) !important;
}

.hand-draw .combatant-gesture-badge {
  background: rgba(255, 215, 0, 0.18);
  border-color: #ffd700;
  color: #ffd700;
}


/* ============================================================
   RESULT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.modal-box {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 2px solid #39ff14;
  border-radius: 24px;
  padding: 38px 50px;
  max-width: 460px;
  width: 92%;
  text-align: center;
  box-shadow: 0 0 60px #39ff1433, 0 0 20px #00f0ff22;
  animation: modalPop 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}

@keyframes modalPop { from { transform:scale(0.7); opacity:0; } to { transform:scale(1); opacity:1; } }

#result-title {
  font-family: Panchang, Arial, sans-serif;
  font-size: 1.9rem;
  color: #39ff14;
  letter-spacing: 3px;
  margin-bottom: 14px;
  text-shadow: 0 0 16px #39ff14;
}

#result-message {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 2;
  margin-bottom: 24px;
}

.result-highlight { color: #39ff14; font-size: 1.15rem; font-weight: bold; }
.win-text  { color: #39ff14; font-size: 1.2rem; }
.lose-text { color: #ff4466; font-size: 1.2rem; }

.modal-btn {
  background: linear-gradient(90deg, #39ff14, #00f0ff);
  color: #181928;
  border: none;
  border-radius: 50px;
  padding: 11px 36px;
  font-family: Panchang, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 16px #39ff1444;
  margin: 4px;
}
.modal-btn:hover { transform: scale(1.07); box-shadow: 0 0 28px #39ff14aa; }
.modal-btn-cancel {
  background: transparent;
  color: #ff6688;
  border: 1.5px solid #ff004466;
}
.modal-btn-cancel:hover { background: #ff004422; box-shadow: none; }

.blast {
  position: absolute; inset: 0;
  background: radial-gradient(circle, #39ff1466 0%, transparent 70%);
  animation: blastAnim 0.8s ease-out forwards;
  pointer-events: none;
}
@keyframes blastAnim { 0% { opacity:1; transform:scale(0.3); } 100% { opacity:0; transform:scale(2); } }

/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth-box {
  border-color: #00f0ff;
  box-shadow: 0 0 40px #00f0ff33;
}
.auth-box h2 {
  color: #00f0ff;
  font-family: Panchang, Arial, sans-serif;
  font-size: 1.7rem;
  letter-spacing: 3px;
  margin-bottom: 6px;
  text-shadow: 0 0 12px #00f0ff;
}
#auth-subtitle {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: #aaaaaa;
  margin-bottom: 20px;
}
.auth-input {
  width: 100%;
  padding: 12px 20px;
  border-radius: 30px;
  border: 2px solid #00f0ff55;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-family: Panchang, Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.auth-input:focus { border-color: #00f0ff; }
.auth-input::placeholder { color: #666; }
.auth-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

/* Auth error */
.auth-error {
  background: rgba(255, 0, 68, 0.15);
  border: 1px solid #ff004466;
  border-radius: 20px;
  color: #ff6688;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  padding: 8px 16px;
  margin-bottom: 12px;
  text-align: center;
}

/* Toggle login/signup row */
.auth-toggle-row {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: #888;
  margin-top: 18px;
  text-align: center;
}
.auth-toggle-link {
  color: #00f0ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}
.auth-toggle-link:hover { color: #39ff14; text-decoration: underline; }

/* ============================================================
   HISTORY MODAL
   ============================================================ */
.history-box {
  max-width: 560px;
  border-color: #00f0ff;
  box-shadow: 0 0 40px #00f0ff33;
}
.history-box h2 {
  font-family: Panchang, Arial, sans-serif;
  font-size: 1.6rem;
  color: #00f0ff;
  letter-spacing: 3px;
  margin-bottom: 18px;
  text-shadow: 0 0 12px #00f0ff;
}
.history-list { margin-bottom: 20px; max-height: 320px; overflow-y: auto; }
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: #e0e0e0;
}
.history-table th {
  background: rgba(0,240,255,0.15);
  color: #00f0ff;
  padding: 8px 12px;
  font-family: Panchang, Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  border-bottom: 1px solid #00f0ff33;
}
.history-table td {
  padding: 7px 12px;
  border-bottom: 1px solid #ffffff11;
  text-align: center;
}
.hist-win  td:last-child { color: #39ff14; font-weight: bold; }
.hist-lose td:last-child { color: #ff6688; font-weight: bold; }
.hist-draw td:last-child { color: #00f0ff; font-weight: bold; }

/* History action buttons row */
.history-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Danger button variant */
.modal-btn-danger {
  background: linear-gradient(90deg, #ff4466, #ff0055);
  color: #fff;
  box-shadow: 0 0 16px #ff005544;
}
.modal-btn-danger:hover {
  background: linear-gradient(90deg, #ff6688, #ff4466);
  box-shadow: 0 0 24px #ff005577;
}

/* ============================================================
   GAME OVER MODAL
   ============================================================ */
.gameover-box {
  border-color: #39ff14;
  box-shadow: 0 0 60px #39ff1444, 0 0 20px #00f0ff22;
  max-width: 400px;
  padding: 36px 40px;
  text-align: center;
}

.gameover-icon {
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 10px;
  animation: iconBounce 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes iconBounce {
  0%   { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.gameover-title {
  font-family: Panchang, Arial, sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 18px;
  text-shadow: 0 0 20px currentColor;
}

.gameover-score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.go-score-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 22px;
  border-radius: 16px;
  min-width: 80px;
}

.go-score-tile.go-player {
  background: rgba(0, 240, 255, 0.1);
  border: 1.5px solid rgba(0, 240, 255, 0.4);
}

.go-score-tile.go-cpu {
  background: rgba(255, 51, 102, 0.1);
  border: 1.5px solid rgba(255, 51, 102, 0.4);
}

.go-score-label {
  font-family: Panchang, Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.7);
}

.go-score-num {
  font-family: Panchang, Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.go-score-tile.go-player .go-score-num { color: #00f0ff; }
.go-score-tile.go-cpu    .go-score-num { color: #ff3366; }

.go-score-vs {
  font-family: Panchang, Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.4);
}

.gameover-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ============================================================
   LEADERBOARD NAV LINK
   ============================================================ */
.nav-leaderboard {
  border-color: rgba(255, 215, 0, 0.44);
  color: #ffd700;
}
.nav-leaderboard:hover, .nav-leaderboard.active {
  background: #ffd700;
  border-color: #ffd700;
  color: #1a1a2e;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.55);
}

/* ============================================================
   LEADERBOARD MODAL
   ============================================================ */
.leaderboard-box {
  max-width: 580px;
  border-color: #ffd700;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.25);
}

.leaderboard-box h2 {
  font-family: Panchang, Arial, sans-serif;
  font-size: 1.5rem;
  color: #ffd700;
  letter-spacing: 3px;
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(255,215,0,0.5);
}

.lb-subtitle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}

.leaderboard-list { max-height: 360px; overflow-y: auto; margin-bottom: 14px; }

.lb-table-wrap { width: 100%; overflow-x: auto; }

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: #e0e0e0;
}

.lb-table thead tr { background: rgba(255, 215, 0, 0.1); }

.lb-table th {
  padding: 10px 12px;
  font-family: Panchang, Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: #ffd700;
  border-bottom: 1px solid rgba(255, 215, 0, 0.25);
  text-align: left;
}

.lb-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-align: left;
}

.lb-table tr:hover td { background: rgba(255,255,255,0.04); }

.lb-me td { background: rgba(57, 255, 20, 0.08) !important; }
.lb-me .lb-name { color: #39ff14; }

.lb-rank { font-size: 1.1rem; text-align: center !important; }
.lb-wins { color: #ffd700; font-weight: 700; }
.lb-pct  { color: #00f0ff; }

/* ============================================================
   GAME HISTORY CARDS
   ============================================================ */
.history-box h2 {
  font-family: Panchang, Arial, sans-serif;
  font-size: 1.4rem;
  color: #00f0ff;
  letter-spacing: 2px;
  margin-bottom: 14px;
  text-shadow: 0 0 12px #00f0ff;
}

.game-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.ghist-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  transition: background 0.2s;
}

.ghist-row:hover { background: rgba(255,255,255,0.08); }

.ghist-win  { border-color: rgba(57, 255, 20, 0.35); }
.ghist-lose { border-color: rgba(255, 51, 102, 0.35); }
.ghist-draw { border-color: rgba(255, 215, 0, 0.35); }

.ghist-outcome {
  font-family: Panchang, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ghist-win  .ghist-outcome { color: #39ff14; }
.ghist-lose .ghist-outcome { color: #ff3366; }
.ghist-draw .ghist-outcome { color: #ffd700; }

.ghist-score {
  font-family: Panchang, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
}

.ghist-margin {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  padding: 3px 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
}

.ghist-date {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}



/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.rps-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: linear-gradient(90deg, #1a1a2e, #0f3460);
  border: 2px solid #39ff14;
  color: #39ff14;
  font-family: Panchang, Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 0 24px #39ff1444;
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap;
  pointer-events: none;
}
.rps-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.rps-toast.toast-error {
  border-color: #ff4466;
  color: #ff6688;
  box-shadow: 0 0 24px #ff004444;
}
.rps-toast i { margin-right: 6px; }

/* ============================================================
   GAME RULES SECTION — Modern Cyber Glass (Widescreen Fluid)
   ============================================================ */
.game-rule-section {
  width: 100%;
  max-width: 1440px;
  margin: 60px auto 20px;
  padding: 0 clamp(16px, 3vw, 40px);
  position: relative;
  z-index: 1;
}

.rules-header {
  text-align: center;
  margin-bottom: 36px;
}

.rules-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.rules-title {
  font-family: Panchang, Arial, sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.rules-subtitle {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  letter-spacing: 0.8px;
}

.rules-card {
  max-width: 90%;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(16, 25, 48, 0.88) 0%, rgba(8, 12, 24, 0.96) 100%);
  border: 1.5px solid rgba(0, 240, 255, 0.28);
  border-radius: 22px;
  padding: clamp(18px, 2.8vw, 32px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 240, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rules-card:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.6), 0 0 36px rgba(0, 240, 255, 0.12);
}

.rules-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.rules-intro-icon {
  width: clamp(44px, 4vw, 54px);
  height: clamp(44px, 4vw, 54px);
  border-radius: 14px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: #00f0ff;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.rules-intro-text h3 {
  font-family: Panchang, Arial, sans-serif;
  font-size: clamp(0.92rem, 1.25vw, 1.1rem);
  color: #ffffff;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
}

.rules-intro-text p {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.76rem, 1vw, 0.84rem);
  line-height: 1.45;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(12px, 1.5vw, 18px);
}

.rule-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: clamp(14px, 1.8vw, 18px);
  position: relative;
  transition: all 0.25s ease;
}

.rule-box:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.07);
}

.rule-box-rock:hover {
  border-color: rgba(57, 255, 20, 0.45);
  box-shadow: 0 8px 24px rgba(57, 255, 20, 0.15);
}

.rule-box-scissors:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.15);
}

.rule-box-paper:hover {
  border-color: rgba(255, 187, 0, 0.45);
  box-shadow: 0 8px 24px rgba(255, 187, 0, 0.15);
}

.rule-box-draw:hover {
  border-color: rgba(160, 160, 255, 0.45);
  box-shadow: 0 8px 24px rgba(160, 160, 255, 0.15);
}

.rule-badge-outcome {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 16px;
  margin-bottom: 10px;
}

.rule-badge-outcome.win {
  background: rgba(57, 255, 20, 0.15);
  color: #39ff14;
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.rule-badge-outcome.draw {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.rule-matchup {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: Panchang, Arial, sans-serif;
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.matchup-winner {
  color: #39ff14;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.matchup-vs {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.matchup-loser {
  color: #ff6688;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rule-box-draw .matchup-winner,
.rule-box-draw .matchup-loser {
  color: #00f0ff;
}

.matchup-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.72rem, 0.9vw, 0.78rem);
  line-height: 1.45;
}

/* ============================================================
   CONTACT & DEVELOPER SECTION — Immersive Widescreen
   ============================================================ */
.contact-section {
  width: 100%;
  margin-top: 70px;
  padding: 50px 0 0;
  background: linear-gradient(180deg, rgba(22, 33, 62, 0.4) 0%, #070a10 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #39ff1488, transparent);
}

.contact-container {
  max-width: 1440px;
  width: 94%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.35);
  color: #39ff14;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact-title {
  font-family: Panchang, Arial, sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.contact-accent {
  background: linear-gradient(135deg, #39ff14, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-subtitle {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  letter-spacing: 1px;
}

/* ── Developer Profile Card ── */
.developer-card {
  background: rgba(18, 26, 48, 0.85);
  border: 1.5px solid rgba(57, 255, 20, 0.25);
  border-radius: 28px;
  padding: clamp(32px, 4.5vw, 56px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 32px rgba(57, 255, 20, 0.08);
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.developer-card:hover {
  border-color: rgba(57, 255, 20, 0.45);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.6), 0 0 40px rgba(57, 255, 20, 0.14);
}

/* ── Compact & Simple Developer Profile Card ── */
.dev-card-compact {
  max-width: 90% !important;
  margin: 0 auto !important;
  padding: clamp(20px, 3vw, 32px) !important;
  border-radius: 24px !important;
  background: linear-gradient(135deg, rgba(16, 25, 48, 0.88) 0%, rgba(8, 12, 24, 0.96) 100%) !important;
  border: 1.5px solid rgba(57, 255, 20, 0.3) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), 0 0 28px rgba(57, 255, 20, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.dev-banner-compact {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 24px);
  width: 100%;
}

.dev-card-compact .dev-avatar {
  width: clamp(70px, 7vw, 90px);
  height: clamp(70px, 7vw, 90px);
  border-radius: 50%;
  background: linear-gradient(135deg, #39ff14, #00f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
}

.dev-card-compact .avatar-text {
  font-family: Panchang, Arial, sans-serif;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 900;
  color: #080c14;
}

.dev-info-compact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.dev-info-compact .dev-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.dev-info-compact .dev-name {
  font-family: Panchang, Arial, sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1.5px;
}

.dev-info-compact .dev-badge {
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid #39ff14;
  color: #39ff14;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.dev-info-compact .dev-role {
  color: #39ff14;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.dev-skills-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-mini {
  font-size: 0.65rem;
  font-weight: 700;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  padding: 2px 8px;
  letter-spacing: 0.5px;
}

.dev-links-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-link-mail-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dev-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.dev-link-pill:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  color: #00f0ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 240, 255, 0.25);
}

.dev-copy-pill {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dev-copy-pill:hover {
  background: rgba(57, 255, 20, 0.2);
  border-color: #39ff14;
  color: #39ff14;
  transform: scale(1.05);
}

.pill-linkedin:hover {
  border-color: #0077b5 !important;
  color: #00a0dc !important;
  background: rgba(0, 119, 181, 0.18) !important;
}

.pill-portfolio:hover {
  border-color: #39ff14 !important;
  color: #39ff14 !important;
  background: rgba(57, 255, 20, 0.18) !important;
}

.pill-github:hover {
  border-color: #ffffff !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

/* Banner: Avatar + Dev Info */
.dev-banner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-avatar {
  width: clamp(86px, 8vw, 115px);
  height: clamp(86px, 8vw, 115px);
  border-radius: 50%;
  background: linear-gradient(135deg, #39ff14, #00f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 28px rgba(57, 255, 20, 0.45);
}

.avatar-text {
  font-family: Panchang, Arial, sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 900;
  color: #0b101b;
}

.avatar-status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: clamp(16px, 1.8vw, 22px);
  height: clamp(16px, 1.8vw, 22px);
  background: #39ff14;
  border-radius: 50%;
  border: 3px solid #121a30;
  box-shadow: 0 0 10px #39ff14;
}

.dev-info {
  flex: 1;
}

.dev-info-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.dev-name {
  font-family: Panchang, Arial, sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
}

.dev-badge {
  font-size: 0.74rem;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid #39ff14;
  color: #39ff14;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dev-role {
  color: #39ff14;
  font-size: clamp(0.92rem, 1.3vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.dev-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
  line-height: 1.55;
  max-width: 980px;
}

/* Skills Badges Row */
.dev-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.skill-tag {
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #00f0ff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: #00f0ff;
  transform: translateY(-2px);
}

/* ── Contact Grid Tiles (2 spacious cards per row, no truncation) ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  margin-top: 36px;
}

.contact-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 2.5vw, 28px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.contact-tile:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.075);
}

.contact-tile-email:hover {
  border-color: rgba(255, 75, 75, 0.55);
  box-shadow: 0 10px 30px rgba(255, 75, 75, 0.18);
}

.contact-tile-linkedin:hover {
  border-color: rgba(0, 160, 220, 0.55);
  box-shadow: 0 10px 30px rgba(0, 160, 220, 0.18);
}

.contact-tile-portfolio:hover {
  border-color: rgba(57, 255, 20, 0.55);
  box-shadow: 0 10px 30px rgba(57, 255, 20, 0.18);
}

.contact-tile-github:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

/* Header row inside each tile: Icon + Labels on Left, Buttons on Right */
.tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.tile-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-tile-email .tile-icon {
  background: rgba(255, 75, 75, 0.16);
  color: #ff5555;
  border: 1px solid rgba(255, 75, 75, 0.35);
}

.contact-tile-linkedin .tile-icon {
  background: rgba(0, 160, 220, 0.16);
  color: #00a0dc;
  border: 1px solid rgba(0, 160, 220, 0.35);
}

.contact-tile-portfolio .tile-icon {
  background: rgba(57, 255, 20, 0.16);
  color: #39ff14;
  border: 1px solid rgba(57, 255, 20, 0.35);
}

.contact-tile-github .tile-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.tile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tile-label {
  font-family: Panchang, Arial, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  font-weight: 700;
}

.tile-tag {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

/* Action buttons */
.tile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-tile-primary {
  padding: 8px 18px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #39ff14, #00f2fe);
  color: #0d1117;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-tile-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(57, 255, 20, 0.4);
}

.btn-tile-secondary {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-tile-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #39ff14;
  color: #39ff14;
}

/* Bottom row: The full address/URL with prominent font and NO truncation */
.tile-body {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.tile-body .tile-link {
  color: #f0f4f8;
  font-weight: 600;
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  word-break: break-all;
  transition: color 0.2s ease;
}

.tile-body .tile-link i {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.95em;
  transition: color 0.2s;
  flex-shrink: 0;
}

.contact-tile-email .tile-body .tile-link:hover { color: #ff5555; }
.contact-tile-email .tile-body .tile-link:hover i { color: #ff5555; }

.contact-tile-linkedin .tile-body .tile-link:hover { color: #00a0dc; }
.contact-tile-linkedin .tile-body .tile-link:hover i { color: #00a0dc; }

.contact-tile-portfolio .tile-body .tile-link:hover { color: #39ff14; }
.contact-tile-portfolio .tile-body .tile-link:hover i { color: #39ff14; }

.contact-tile-github .tile-body .tile-link:hover { color: #ffffff; text-shadow: 0 0 10px rgba(255,255,255,0.6); }
.contact-tile-github .tile-body .tile-link:hover i { color: #ffffff; }

/* ── App Footer ── */
.app-footer {
  margin-top: 60px;
  padding: 28px 20px;
  background: #06090e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.footer-content {
  max-width: 1440px;
  width: 94%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 clamp(12px, 2vw, 36px);
}

.footer-copy {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-author {
  color: #39ff14;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.footer-author:hover {
  color: #00f2fe;
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.footer-icon-btn:hover {
  background: #39ff14;
  color: #0d1117;
  border-color: #39ff14;
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.5);
}

/* ============================================================
   RESPONSIVE DESIGN — Modern Fluid Layouts
   ============================================================ */
@media (max-width: 992px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: rgba(14, 20, 36, 0.98);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 14px;
    padding: 12px 16px;
    gap: 8px;
    order: 3;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  }
  .nav-links.open { display: flex; }

  .nav-auth { margin-left: auto; }
  .navbar { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .logo-text { font-size: 1.1rem; }

  .last-result-bar { width: 100%; font-size: 0.82rem; }
  .rules-container { padding: 0 16px; }
  .rules-card { padding: 24px 18px; }
  .rules-title { font-size: 1.5rem; }
  .rules-grid { gap: 14px; }

  .contact-container { padding: 0 16px; }
  .developer-card { padding: 24px 18px; }
  .contact-title { font-size: 1.5rem; }
  .dev-name { font-size: 1.3rem; }
}

@media (max-width: 768px) {
  .hero-content { padding: 6px 10px 2px; }
  .hero-title { font-size: 1.25rem; }
  .subtitle { font-size: 0.72rem; }

  .game-mode-bar {
    width: 100%;
    gap: 6px;
    padding: 3px;
  }
  .mode-tab {
    flex: 1;
    padding: 7px 6px;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    justify-content: center;
  }
  .mode-badge-live {
    font-size: 0.5rem;
    padding: 1px 5px;
  }

  .online-lobby-bar {
    width: 100%;
    padding: 12px 10px;
    gap: 8px;
  }
  .lobby-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .lobby-btn {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.72rem;
  }
  .lobby-join-box {
    width: 100%;
    box-sizing: border-box;
    padding: 3px 4px 3px 12px;
  }
  .lobby-join-box input {
    flex: 1;
    width: auto;
    min-width: 0;
    font-size: 0.68rem;
  }
  .lobby-join-box .btn-join-room {
    width: auto;
    flex-shrink: 0;
    padding: 6px 14px;
  }
  .lobby-status-line {
    font-size: 0.7rem;
    flex-wrap: wrap;
    gap: 6px;
    text-align: center;
  }

  .clash-stage {
    gap: 20px;
    padding: 10px 50px;
    margin-bottom: 12px;
    border-radius: 20px;
  }
  .clash-stage-topbar {
    gap: 20px;
    padding-bottom: 15px;
  }
  .clash-topbar-scores {
    gap: 6px;
  }
  .clash-score-display {
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .clash-score-value {
    font-size: 1.3rem;
  }
  .combatant-title { font-size: clamp(0.62rem, 1.4vw, 0.74rem); }

  .weapon-btn-group {
    gap: 6px;
  }
  .choice-btn {
    height: 36px;
    padding: 0 8px;
    font-size: 0.62rem;
    gap: 5px;
    letter-spacing: 0.5px;
  }
  .choice-btn .btn-icon {
    font-size: 0.92rem;
  }

  .clash-battle-row {
    gap: 12px;
  }
  .hand-frame {
    width: clamp(100px, 28vw, 135px);
    height: clamp(100px, 28vw, 135px);
    border-radius: 16px;
  }
  .combatant-gesture-badge { font-size: 0.62rem; padding: 4px 10px; }
  .clash-vs-orb { width: 44px; height: 44px; font-size: 0.8rem; }
  .clash-status-bubble { font-size: 0.58rem; padding: 3px 8px; }

  .modal-box { padding: 24px 16px; }
  #result-title { font-size: 1.35rem; }
  .modal-btn { padding: 8px 22px; font-size: 0.85rem; }

  .game-rule-section { margin-top: 30px; }
  .rules-header { margin-bottom: 18px; }
  .rules-title { font-size: 1.3rem; }
  .rules-subtitle { font-size: 0.8rem; }
  .rules-card { padding: 20px 14px; border-radius: 16px; }
  .rules-intro { flex-direction: column; text-align: center; gap: 12px; }
  .rules-intro-text h3 { font-size: 0.95rem; }
  .rules-intro-text p { font-size: 0.82rem; }
  .rules-grid { grid-template-columns: 1fr; gap: 12px; }

  .contact-section { margin-top: 32px; }
  .contact-header { margin-bottom: 18px; }
  .contact-title { font-size: 1.3rem; }
  .contact-subtitle { font-size: 0.8rem; }
  .developer-card { padding: 20px 14px; border-radius: 16px; }
  .dev-banner { flex-direction: column; text-align: center; gap: 14px; }
  .dev-info-header { justify-content: center; }
  .dev-role { font-size: 0.84rem; }
  .dev-tagline { font-size: 0.82rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-tile { padding: 12px 14px; }
  .footer-content { flex-direction: column; text-align: center; gap: 10px; }
  .footer-copy { font-size: 0.78rem; }
}

@media (max-width: 420px) {
  .navbar { padding: 8px 10px; }
  .logo img { height: 34px; }
  .logo-text { font-size: 0.92rem; }

  .btn-login, .btn-signup, .btn-logout { padding: 5px 10px; font-size: 0.68rem; }

  .mode-tab {
    font-size: 0.58rem;
    padding: 6px 4px;
    gap: 4px;
    letter-spacing: 0.3px;
  }

  .clash-stage {
    gap: 8px;
    padding: 10px 6px;
    margin-bottom: 10px;
    border-radius: 16px;
  }
  .hand-frame {
    width: clamp(82px, 25vw, 100px);
    height: clamp(82px, 25vw, 100px);
    border-radius: 12px;
  }
  .combatant-title { font-size: 0.6rem; max-width: 85px; }
  .combatant-gesture-badge { font-size: 0.52rem; padding: 2px 6px; gap: 3px; }
  .clash-vs-orb { width: 32px; height: 32px; font-size: 0.68rem; }
  .clash-status-bubble { font-size: 0.5rem; padding: 2px 5px; }

  .choice-btn {
    height: 34px;
    padding: 0 4px;
    font-size: 0.56rem;
    letter-spacing: 0.3px;
    gap: 3px;
    border-radius: 10px;
  }
  .choice-btn .btn-icon {
    font-size: 0.85rem;
  }

  .rules-card { padding: 16px 10px; }
  .rule-matchup { font-size: 0.82rem; gap: 5px; }
  .matchup-desc { font-size: 0.74rem; }

  .modal-box { padding: 20px 12px; }
  #result-title { font-size: 1.15rem; letter-spacing: 1.5px; }
  #result-message { font-size: 0.85rem; }

  .developer-card { padding: 16px 10px; }
  .dev-avatar { width: 56px; height: 56px; }
  .avatar-text { font-size: 1.2rem; }
  .dev-name { font-size: 1.05rem; }
  .tile-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tile-actions { width: 100%; justify-content: flex-start; }
}
