/* Animated Clouds */

.clouds-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.cloud {
  position: absolute;
  left: 0;
  height: auto;
  filter: blur(1px);
  animation: cloud-drift linear infinite;
  will-change: transform;
}

@keyframes cloud-drift {
  0% {
    transform: translateX(-200px);
  }
  100% {
    transform: translateX(100vw);
  }
}

/* Parallax effect - clouds at different depths move at different speeds */
.cloud:nth-child(odd) {
  filter: blur(0.5px);
}

.cloud:nth-child(even) {
  filter: blur(1.5px);
}
/* Custom Tooltip - iOS Glass Style */

.custom-tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  transform: translate(-50%, -100%);
  margin-top: -12px;
  animation: tooltip-fade-in 0.15s ease-out;
}

.tooltip-content {
  background: linear-gradient(
    145deg,
    rgba(45, 40, 35, 0.95) 0%,
    rgba(35, 30, 25, 0.98) 100%
  );
  color: rgba(255, 255, 255, 0.95);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 300px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tooltip-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 8px;
  text-transform: capitalize;
}

.tooltip-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.3) 80%,
    transparent 100%
  );
  margin-bottom: 8px;
}

.tooltip-description {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.tooltip-arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(35, 30, 25, 0.98);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

@keyframes tooltip-fade-in {
  from {
    opacity: 0;
    transform: translate(-50%, -100%) translateY(4px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(0);
  }
}

/* Tooltip for power items - positioned to the side */
.power-tooltip-wrapper {
  position: relative;
}

.power-tooltip {
  position: absolute;
  left: 110%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
}

.power-tooltip .tooltip-content {
  white-space: nowrap;
  max-width: none;
}

.power-tooltip .tooltip-arrow {
  bottom: auto;
  left: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
}

.power-tooltip-wrapper:hover .power-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Grid cell tooltip container */
.grid-tooltip-container {
  position: relative;
}

.cell-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  z-index: 100;
  animation: tooltip-fade-in 0.1s ease-out;
}

.cell-tooltip .tooltip-content {
  white-space: nowrap;
}
/* iOS 26 Design Tokens */
:root {
  /* Colors */
  --color-sand: #d4b896;
  --color-sand-light: #e8dcc8;
  --color-sand-dark: #8b7355;
  --color-brown: #6b4423;
  --color-brown-light: #8b6914;
  --color-olive: #5c5a45;
  --color-olive-dark: #3d3b2d;

  /* Cell colors */
  --cell-normal: #d9c9a8;
  --cell-hover: #e8dcc8;
  --cell-your-treasure: #7eb8d8;
  --cell-dug-empty: #a67c52;
  --cell-dug-found: #4a9d4a;

  /* Glass effects */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-bg-dark: rgba(60, 55, 45, 0.9);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.3);

  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --sf-fedora-titles-shift-xs: 1px;
  --sf-fedora-titles-shift-sm: 1.75px;
  --sf-fedora-titles-shift-md: 2.75px;
  --sf-fedora-titles-shift-lg: 4px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  height: 100%;
}

/* Button reset */
button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Input reset */
input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* Utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animation keyframes */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

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

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes dig {
  0% { transform: scale(1); }
  25% { transform: scale(0.9) rotate(-5deg); }
  50% { transform: scale(0.85); }
  75% { transform: scale(0.9) rotate(5deg); }
  100% { transform: scale(1); }
}
/* iOS 26 Glassmorphism Utilities */

/* Glass card - light */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

/* Glass card - dark */
.glass-card-dark {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  color: white;
}

/* Glass panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-sm);
}

/* Glass button - primary - Golden yellow from logo */
.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(
    145deg,
    rgba(245, 200, 60, 0.98) 0%,
    rgba(220, 170, 40, 0.98) 100%
  );
  color: rgba(70, 50, 20, 0.95);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 220, 100, 0.5);
  box-shadow:
    0 4px 16px rgba(220, 170, 40, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.glass-btn:hover:not(:disabled) {
  background: linear-gradient(
    145deg,
    rgba(255, 215, 80, 1) 0%,
    rgba(235, 185, 50, 1) 100%
  );
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(220, 170, 40, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.glass-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 2px 8px rgba(220, 170, 40, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.glass-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Glass button - secondary - Dark gray from objects panel */
.glass-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(
    145deg,
    rgba(70, 65, 55, 0.92) 0%,
    rgba(55, 50, 42, 0.95) 100%
  );
  color: rgba(255, 255, 255, 0.95);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-btn-secondary:hover:not(:disabled) {
  background: linear-gradient(
    145deg,
    rgba(85, 78, 65, 0.95) 0%,
    rgba(65, 60, 50, 0.98) 100%
  );
  transform: translateY(-2px);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.glass-btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Glass input - iOS 26 Liquid Glass */
.glass-input {
  width: 100%;
  padding: var(--space-md);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.45) 100%
  );
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 16px;
  color: rgba(60, 50, 40, 0.95);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.04);
  outline: none;
}

.glass-input::placeholder {
  color: rgba(60, 50, 40, 0.5);
}

.glass-input option {
  background: rgb(210, 180, 140);
  color: rgba(60, 50, 40, 0.95);
}

/* Badge - iOS 26 style */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, #ff5f57 0%, #e74c3c 100%);
  color: white;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  border-radius: 9px;
  position: absolute;
  bottom: -3px;
  right: -3px;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Power button - iOS 26 Liquid Glass */
.power-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(
    145deg,
    rgba(80, 75, 65, 0.9) 0%,
    rgba(60, 55, 48, 0.95) 100%
  );
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.power-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.power-btn:hover:not(:disabled) {
  background: linear-gradient(
    145deg,
    rgba(100, 95, 80, 0.95) 0%,
    rgba(75, 70, 60, 0.95) 100%
  );
  transform: scale(1.08);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.power-btn.active {
  background: linear-gradient(
    145deg,
    rgba(110, 100, 75, 0.95) 0%,
    rgba(85, 78, 60, 0.95) 100%
  );
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.power-btn:disabled {
  opacity: 0.5;
  filter: grayscale(0.3);
}

/* Dig button - primary action */
.dig-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  margin-bottom: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(
    145deg,
    rgba(80, 75, 65, 0.9) 0%,
    rgba(60, 55, 48, 0.92) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.dig-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.dig-btn:hover:not(:disabled) {
  background: linear-gradient(
    145deg,
    rgba(100, 95, 80, 0.95) 0%,
    rgba(75, 70, 60, 0.95) 100%
  );
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dig-btn.active {
  background: linear-gradient(
    145deg,
    rgba(139, 119, 42, 0.95) 0%,
    rgba(120, 100, 35, 0.95) 100%
  );
  border-color: rgba(218, 165, 32, 0.5);
  box-shadow:
    0 0 12px rgba(218, 165, 32, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dig-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Grayed out state */
.grayed-out {
  filter: grayscale(0.6);
  opacity: 0.5;
}

/* ============================================
   Objects Panel - iOS 26 Liquid Glass Style
   ============================================ */

.objects-panel-glass {
  width: 100%;
  max-width: 300px;
  background: linear-gradient(
    145deg,
    rgba(210, 180, 140, 0.95) 0%,
    rgba(195, 165, 125, 0.9) 50%,
    rgba(180, 150, 110, 0.95) 100%
  );
  border-radius: var(--radius-lg);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.objects-panel-header {
  background: linear-gradient(
    180deg,
    rgba(160, 130, 90, 0.6) 0%,
    rgba(140, 110, 70, 0.5) 100%
  );
  color: rgba(70, 50, 30, 0.95);
  padding: var(--space-sm) var(--space-md);
  font-weight: var(--font-weight-bold);
  font-size: 13px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.objects-panel-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Dig action button - distinct primary style */
/* Dig action button - default state (similar to unselected power items) */
.dig-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: rgba(70, 50, 30, 0.9);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(245, 235, 220, 0.6) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.dig-action-btn img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.dig-action-btn:hover:not(:disabled):not(.selected) {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(250, 240, 225, 0.8) 100%
  );
  transform: translateY(-1px);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Dig action button - selected state (golden) */
.dig-action-btn.selected {
  color: rgba(70, 50, 20, 0.95);
  background: linear-gradient(
    145deg,
    rgba(245, 200, 60, 0.95) 0%,
    rgba(220, 170, 40, 0.95) 100%
  );
  border: 1px solid rgba(255, 220, 100, 0.5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: pulse-gold 1.5s ease-in-out infinite;
  box-shadow:
    0 0 0 3px rgba(245, 200, 60, 0.5),
    0 4px 12px rgba(220, 170, 40, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.dig-action-btn.selected:hover:not(:disabled) {
  background: linear-gradient(
    145deg,
    rgba(255, 215, 80, 1) 0%,
    rgba(235, 185, 50, 1) 100%
  );
}

.dig-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Divider */
.objects-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(120, 90, 50, 0.3) 20%,
    rgba(120, 90, 50, 0.3) 80%,
    transparent 100%
  );
  margin: var(--space-xs) 0;
}

/* Power items grid */
.objects-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* Power item button */
.power-item-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(245, 235, 220, 0.6) 100%
  );
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.power-item-btn img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.power-item-btn:hover:not(:disabled) {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(250, 240, 225, 0.8) 100%
  );
  transform: scale(1.08);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.power-item-btn.selected {
  background: linear-gradient(
    145deg,
    rgba(245, 200, 60, 0.95) 0%,
    rgba(220, 170, 40, 0.95) 100%
  );
  border: 1px solid rgba(255, 220, 100, 0.5);
  animation: pulse-gold 1.5s ease-in-out infinite;
  box-shadow:
    0 0 0 3px rgba(245, 200, 60, 0.5),
    0 4px 12px rgba(220, 170, 40, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.power-item-btn:disabled {
  opacity: 0.4;
  filter: grayscale(0.4);
  cursor: not-allowed;
}

/* Power badge */
.power-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: linear-gradient(135deg, #4a9eff 0%, #2d7dd2 100%);
  color: white;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(45, 125, 210, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Pulse animation for selected items */
@keyframes pulse-selection {
  0% {
    box-shadow:
      0 0 0 3px rgba(245, 200, 60, 0.5),
      0 4px 10px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(245, 200, 60, 0.3),
      0 4px 14px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
  100% {
    box-shadow:
      0 0 0 3px rgba(245, 200, 60, 0.5),
      0 4px 10px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
}

@keyframes pulse-gold {
  0% {
    box-shadow:
      0 0 0 3px rgba(245, 200, 60, 0.5),
      0 4px 12px rgba(220, 170, 40, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(245, 200, 60, 0.3),
      0 4px 16px rgba(220, 170, 40, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow:
      0 0 0 3px rgba(245, 200, 60, 0.5),
      0 4px 12px rgba(220, 170, 40, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
}

/* ============================================
   Game Logs Panel - iOS 26 Liquid Glass Style
   ============================================ */

.logs-panel-glass {
  grid-column: 2;
  grid-row: 3;
  justify-self: center;
  width: 100%;
  max-width: min(70vw, 560px);
  background: linear-gradient(
    145deg,
    rgba(210, 180, 140, 0.95) 0%,
    rgba(195, 165, 125, 0.9) 50%,
    rgba(180, 150, 110, 0.95) 100%
  );
  border-radius: var(--radius-lg);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.logs-header-glass {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(
    180deg,
    rgba(160, 130, 90, 0.5) 0%,
    rgba(140, 110, 70, 0.4) 100%
  );
  color: rgba(70, 50, 30, 0.95);
  cursor: pointer;
  font-weight: var(--font-weight-bold);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease;
}

.logs-header-glass:hover {
  background: linear-gradient(
    180deg,
    rgba(160, 130, 90, 0.6) 0%,
    rgba(140, 110, 70, 0.5) 100%
  );
}

.logs-header-glass svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(70, 50, 30, 0.8);
}

.logs-header-glass.expanded svg {
  transform: rotate(180deg);
}

.logs-content-glass {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logs-content-glass.expanded {
  max-height: 200px;
}

.logs-list-glass {
  padding: var(--space-md) var(--space-lg);
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-entry-glass {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(50, 40, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.log-entry-glass.log-empty {
  justify-content: center;
  color: rgba(80, 60, 40, 0.6);
  font-style: italic;
}

.log-time {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(100, 80, 50, 0.7);
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.log-message {
  flex: 1;
  font-weight: 500;
}

/* Log highlighting colors - matching cell colors */
.log-success {
  color: #27ae60;
  font-weight: 700;
}

.log-danger {
  color: #e74c3c;
  font-weight: 700;
}

.log-warning {
  color: #f39c12;
  font-weight: 700;
}

.log-neutral {
  color: rgba(100, 80, 50, 0.7);
}

.log-info {
  color: #3498db;
  font-weight: 600;
}

.log-position {
  font-family: 'SF Mono', Monaco, monospace;
  font-weight: 600;
  color: rgba(70, 50, 30, 0.9);
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 4px;
  border-radius: 5px;
}

.log-you {
  color: #2980b9;
  font-weight: 700;
}

.log-opponent {
  color: #8e44ad;
  font-weight: 700;
}

/* Scrollbar styling for logs */
.logs-list-glass::-webkit-scrollbar {
  width: 6px;
}

.logs-list-glass::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.logs-list-glass::-webkit-scrollbar-thumb {
  background: rgba(120, 90, 50, 0.3);
  border-radius: 3px;
}

.logs-list-glass::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 90, 50, 0.5);
}

/* Responsive adjustments for objects panel */
@media (max-width: 1100px) {
  .objects-panel-glass {
    max-width: 200px;
  }

  .objects-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
  .objects-panel-glass {
    max-width: 180px;
  }
}

@media (max-width: 900px) {
  .objects-panel-glass {
    max-width: 170px;
  }

  .objects-items-grid {
    gap: 6px;
  }

  .dig-action-btn {
    padding: 10px 12px;
    font-size: 14px;
  }

  .dig-action-btn img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .objects-panel-glass {
    max-width: 200px;
  }

  .objects-items-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .logs-panel-glass {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}
/* Game Page Styles */

/* Game background */
.game-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Animated background with subtle zoom */
.game-container::before {
  content: '';
  position: absolute;
  inset: -4%;
  background-image: url('/game/bg.png');
  filter: brightness(0.9);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center center;
  animation: menu-background-breathe 18s ease-in-out infinite;
  will-change: transform;
  z-index: 0;
}

/* Ensure clouds show above background */
.game-container .clouds-container {
  z-index: 1;
}

/* Game layout above clouds */
.game-container .game-layout {
  position: relative;
  z-index: 2;
}

/* Game layout */
.game-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding: var(--space-md);
  column-gap: 4px;
  row-gap: 4px;
  align-items: center;
  justify-items: center;
}

/* Turn indicator - iOS 26 Liquid Glass */
.turn-indicator {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-bottom: 4px;
  z-index: 10;
  width: 100%;
}

.turn-indicator-box {
  padding: var(--space-sm) var(--space-xl);
  background: linear-gradient(
    145deg,
    rgba(55, 50, 42, 0.85) 0%,
    rgba(45, 42, 36, 0.9) 100%
  );
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.turn-text {
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Lobby indicator in TurnIndicator */
.turn-indicator-box.lobby-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-md) var(--space-xl);
}

.lobby-game-id {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lobby-game-id-label {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lobby-game-id-value {
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  color: rgba(255, 215, 0, 0.95);
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  font-family: ui-monospace, monospace;
}

.lobby-waiting {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lobby-waiting-text {
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.8);
}

.loading-spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-left-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Player panels */
.player-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-self: center;
}

.player-panel.left {
  grid-column: 1;
  grid-row: 2;
  align-items: flex-end;
  justify-self: end;
}

.player-panel.right {
  grid-column: 3;
  grid-row: 2;
  align-items: flex-start;
  justify-self: start;
}

/* Player card - iOS 26 Liquid Glass */
.player-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 10px;
  background: linear-gradient(
    145deg,
    rgba(210, 180, 140, 0.95) 0%,
    rgba(195, 165, 125, 0.9) 50%,
    rgba(180, 150, 110, 0.95) 100%
  );
  border-radius: var(--radius-lg);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.player-card.active-turn {
  border-color: rgba(46, 204, 113, 0.9);
  box-shadow:
    0 0 0 4px rgba(46, 204, 113, 0.5),
    0 0 20px rgba(46, 204, 113, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.player-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Treasure progress bar */
.treasure-progress {
  margin-top: 10px;
  padding: 8px 10px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(245, 235, 220, 0.6) 100%
  );
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.treasure-progress-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.treasure-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.treasure-count {
  font-size: 14px;
  font-weight: 700;
  color: rgba(70, 50, 30, 0.9);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.treasure-progress-bar {
  display: flex;
  gap: 6px;
}

.treasure-progress-step {
  flex: 1;
  height: 10px;
  background: linear-gradient(
    145deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.15) 100%
  );
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.treasure-progress-step.filled {
  background: linear-gradient(
    145deg,
    #27ae60 0%,
    #219a52 100%
  );
  border-color: rgba(39, 174, 96, 0.3);
  box-shadow:
    0 2px 8px rgba(39, 174, 96, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Objects panel styles moved to glass.css */

/* Grid container */
.grid-container {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px var(--space-sm) var(--space-sm) var(--space-sm);
  position: relative;
  width: 100%;
  height: 100%;
}

/* Grid actions (below grid) */
.grid-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.grid-hint {
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-size: 16px;
  margin: 0;
}

/* Waiting for opponent overlay */
.waiting-opponent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: linear-gradient(
    145deg,
    rgba(55, 50, 42, 0.95) 0%,
    rgba(45, 42, 36, 0.98) 100%
  );
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10;
  min-width: 280px;
}

.game-id-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.game-id-label {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.game-id-value {
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  color: rgba(255, 215, 0, 0.95);
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  font-family: ui-monospace, monospace;
}

.waiting-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.waiting-message p {
  margin: 0;
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.9);
}

.share-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  text-align: center;
}

/* Game grid - iOS 26 Liquid Glass */
.game-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  padding: var(--space-lg);
  background: linear-gradient(
    145deg,
    rgba(190, 170, 145, 0.8) 0%,
    rgba(175, 155, 130, 0.75) 50%,
    rgba(165, 145, 120, 0.8) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  width: min(calc(100vh - 300px), 600px);
  height: min(calc(100vh - 300px), 600px);
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
}

/* Grid cell - iOS 26 Liquid Glass */
.grid-cell {
  aspect-ratio: 1;
  background: linear-gradient(
    145deg,
    rgba(220, 200, 170, 0.9) 0%,
    rgba(210, 190, 160, 0.85) 100%
  );
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.grid-cell:hover:not(.disabled) {
  background: linear-gradient(
    145deg,
    rgba(235, 215, 185, 0.95) 0%,
    rgba(225, 205, 175, 0.9) 100%
  );
  transform: scale(1.04);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.grid-cell.clickable {
  cursor: pointer;
}

.grid-cell.disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Cell states */
.grid-cell.your-treasure {
  background: linear-gradient(
    145deg,
    rgba(135, 180, 220, 0.85) 0%,
    rgba(115, 160, 200, 0.8) 100%
  );
  border-color: rgba(100, 150, 200, 0.3);
}

/* === MY DIGS - Dark background to show I already dug here === */
.grid-cell.dug-mine.dug-empty {
  background: linear-gradient(
    145deg,
    rgba(140, 115, 85, 0.9) 0%,
    rgba(120, 95, 65, 0.85) 100%
  );
  border-color: rgba(100, 80, 55, 0.4);
}

.grid-cell.dug-mine.dug-found {
  background: linear-gradient(
    145deg,
    rgba(100, 160, 100, 0.9) 0%,
    rgba(80, 140, 80, 0.85) 100%
  );
  border-color: rgba(60, 120, 60, 0.4);
}

/* === OPPONENT DIGS - Only red border, normal sand background === */
.grid-cell.dug-opponent.dug-empty {
  /* Keep normal sand background, just add red border */
  border: 3px solid rgba(220, 80, 80, 0.85);
  box-shadow: 0 0 8px rgba(220, 80, 80, 0.4);
}

.grid-cell.dug-opponent.dug-found {
  background: linear-gradient(
    145deg,
    rgba(205, 102, 92, 0.92) 0%,
    rgba(176, 73, 68, 0.88) 100%
  );
  border: 3px solid rgba(185, 54, 48, 0.94);
  box-shadow:
    0 0 12px rgba(185, 54, 48, 0.42),
    inset 0 1px 0 rgba(255, 220, 220, 0.2);
}

/* Trap triggered - purple/dark style */
.grid-cell.dug-trap {
  background: linear-gradient(
    145deg,
    rgba(128, 90, 140, 0.9) 0%,
    rgba(100, 70, 110, 0.85) 100%
  ) !important;
  border-color: rgba(150, 100, 160, 0.5) !important;
}

.grid-cell.selected {
  background: linear-gradient(
    145deg,
    rgba(243, 180, 100, 0.95) 0%,
    rgba(230, 165, 80, 0.9) 100%
  );
  box-shadow:
    0 0 0 3px rgba(243, 156, 18, 0.4),
    0 4px 12px rgba(243, 156, 18, 0.25);
  border-color: rgba(243, 156, 18, 0.5);
}

/* Cell content */
.cell-content {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

/* Cell animations */
.grid-cell.digging {
  animation: dig 0.4s ease;
}

.grid-cell.digging-pulse {
  animation: digging-pulse 1s ease-in-out infinite;
  background: linear-gradient(
    145deg,
    rgba(200, 200, 200, 0.6) 0%,
    rgba(180, 180, 180, 0.65) 100%
  ) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 20px rgba(150, 150, 150, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

@keyframes digging-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 10px rgba(150, 150, 150, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 25px rgba(200, 200, 200, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
}

.digging-indicator {
  position: absolute;
  width: 90%;
  height: 90%;
  object-fit: contain;
  animation: bounce-dig 0.5s ease-in-out infinite;
}

@keyframes bounce-dig {
  0%, 100% { transform: translateY(0) rotate(-15deg); }
  50% { transform: translateY(-8px) rotate(15deg); }
}

.grid-cell.found .cell-content {
  animation: pop 0.5s ease forwards;
}

/* Scanned area visual feedback */
.grid-cell.scanned {
  border: 2px solid rgba(52, 152, 219, 0.8) !important;
  box-shadow:
    inset 0 0 12px rgba(52, 152, 219, 0.3),
    0 0 8px rgba(52, 152, 219, 0.4);
}

.grid-cell.detector-preview {
  border: 2px dashed rgba(52, 152, 219, 0.6) !important;
  background: rgba(52, 152, 219, 0.15) !important;
}

.scan-result-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.95), rgba(41, 128, 185, 0.95));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: white;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  z-index: 10;
}

/* Compass result visual feedback */
.grid-cell.compass-result {
  border: 2px solid rgba(243, 156, 18, 0.9) !important;
  box-shadow:
    inset 0 0 12px rgba(243, 156, 18, 0.35),
    0 0 10px rgba(243, 156, 18, 0.5);
}

.compass-result-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.95), rgba(230, 126, 34, 0.95));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: white;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  z-index: 10;
}

/* Golden Shovel selection states */
.grid-cell.shovel-selectable {
  animation: shovel-pulse 1.5s ease-in-out infinite;
  border: 2px dashed rgba(255, 215, 0, 0.7) !important;
}

.grid-cell.shovel-source {
  border: 3px solid rgba(255, 215, 0, 0.95) !important;
  box-shadow:
    0 0 15px rgba(255, 215, 0, 0.6),
    inset 0 0 10px rgba(255, 215, 0, 0.2);
  animation: shovel-source-glow 1s ease-in-out infinite;
}

.grid-cell.shovel-target {
  border: 2px dashed rgba(100, 200, 100, 0.6) !important;
  background: rgba(100, 200, 100, 0.1) !important;
}

.grid-cell.shovel-target:hover {
  border: 2px solid rgba(100, 200, 100, 0.9) !important;
  background: rgba(100, 200, 100, 0.25) !important;
  box-shadow: 0 0 10px rgba(100, 200, 100, 0.4);
}

@keyframes shovel-pulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  }
}

@keyframes shovel-source-glow {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(255, 215, 0, 0.5),
      inset 0 0 8px rgba(255, 215, 0, 0.15);
  }
  50% {
    box-shadow:
      0 0 20px rgba(255, 215, 0, 0.8),
      inset 0 0 12px rgba(255, 215, 0, 0.3);
  }
}

/* Trap indicator - only visible to the player who placed it */
.grid-cell.has-trap {
  position: relative;
}

/* Trap placed but not triggered - semi-transparent */
.cell-content.trap-placed {
  opacity: 0.5;
}

/* Action preview on hover */
.action-preview {
  position: absolute;
  width: 50%;
  height: 50%;
  object-fit: contain;
  opacity: 0.5;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Active action in progress */
.grid-cell.action-in-progress {
  animation: action-pulse 1s ease-in-out infinite;
  background: linear-gradient(
    145deg,
    rgba(200, 200, 200, 0.6) 0%,
    rgba(180, 180, 180, 0.65) 100%
  ) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 20px rgba(150, 150, 150, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

@keyframes action-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 10px rgba(150, 150, 150, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 25px rgba(200, 200, 200, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
}

.active-action-indicator {
  position: absolute;
  width: 70%;
  height: 70%;
  object-fit: contain;
  animation: bounce-action 0.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  z-index: 5;
}

@keyframes bounce-action {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-6px) rotate(10deg); }
}

/* Logs panel styles moved to glass.css */

.lobby-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Animated background with subtle zoom for lobby */
.lobby-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: bg-zoom 20s ease-in-out infinite;
  z-index: 0;
}

/* Ensure clouds show above background in lobby */
.lobby-container .clouds-container {
  z-index: 1;
}

/* Lobby content above clouds */
.lobby-container > *:not(.clouds-container) {
  position: relative;
  z-index: 2;
}

.lobby-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 40%
  );
  pointer-events: none;
  z-index: 1;
}

.lobby-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(
    145deg,
    rgba(210, 180, 140, 0.95) 0%,
    rgba(195, 165, 125, 0.9) 50%,
    rgba(180, 150, 110, 0.95) 100%
  );
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lobby-logo {
  display: block;
  margin: 0 auto var(--space-xl) auto;
  max-width: 500px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4)) 
          drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3))
          drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
  animation: logoFloat 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.lobby-title {
  display: block;
  margin: 0 auto var(--space-sm) auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.lobby-subtitle {
  font-size: 15px;
  color: rgba(60, 50, 40, 0.85);
  text-align: center;
  margin-bottom: var(--space-xl);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.lobby-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.lobby-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lobby-row .glass-input {
  flex: 1;
}

.lobby-btn-full {
  width: 100%;
}

.lobby-buttons {
  display: flex;
  gap: var(--space-md);
}

.lobby-buttons button {
  flex: 1;
}

/* Address display */
.lobby-address {
  padding: 14px 18px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.35) 100%
  );
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: ui-monospace, monospace;
  text-align: center;
  margin-bottom: 8px;
  color: rgba(60, 50, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Text divider */
.lobby-divider {
  text-align: center;
  color: rgba(60, 50, 40, 0.6);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Lobby loading state */
.lobby-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Loading overlay - iOS 26 Liquid Glass */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  min-width: 200px;
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(
    145deg,
    rgba(210, 180, 140, 0.95) 0%,
    rgba(195, 165, 125, 0.9) 50%,
    rgba(180, 150, 110, 0.95) 100%
  );
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
}

.loading-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  text-align: center;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-left-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

/* Status message - iOS 26 Liquid Glass */
.status-toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    145deg,
    rgba(55, 50, 42, 0.95) 0%,
    rgba(45, 42, 36, 0.98) 100%
  );
  color: rgba(255, 255, 255, 0.95);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  font-weight: var(--font-weight-medium);
}

/* Error message - iOS 26 Liquid Glass with red tint */
.error-toast {
  position: fixed;
  top: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    145deg,
    rgba(228, 80, 66, 0.85) 0%,
    rgba(181, 55, 48, 0.9) 100%
  );
  color: rgba(255, 255, 255, 0.95);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(248, 9, 9, 0.3);
  box-shadow:
    0 8px 32px rgba(150, 45, 40, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  font-weight: var(--font-weight-semibold);
  font-size: 15px;
  cursor: pointer;
  max-width: 90vw;
  text-align: center;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .game-layout {
    grid-template-columns: 220px 1fr 220px;
  }

  .player-card,
  .objects-panel-glass {
    max-width: 200px;
  }
}

@media (max-width: 1000px) {
  .game-layout {
    grid-template-columns: 200px 1fr 200px;
  }

  .player-card,
  .objects-panel-glass {
    max-width: 180px;
  }
}

@media (max-width: 900px) {
  .game-layout {
    grid-template-columns: 180px 1fr 180px;
    gap: var(--space-xs);
    padding: var(--space-sm);
  }

  .player-card,
  .objects-panel-glass {
    max-width: 170px;
  }

  .objects-items-grid {
    gap: 6px;
    padding: 8px;
  }

  .turn-text {
    font-size: 18px;
  }

  .turn-indicator-box {
    padding: var(--space-xs) var(--space-lg);
  }

  .game-grid {
    width: min(calc(100vh - 220px), 480px);
    height: min(calc(100vh - 220px), 480px);
    padding: var(--space-md);
    gap: 4px;
  }
}

@media (max-width: 750px) {
  .game-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto auto;
    gap: var(--space-sm);
  }

  .player-panel {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-md);
  }

  .player-panel.left, .player-panel.right {
    align-items: center;
  }

  .player-card,
  .objects-panel-glass {
    max-width: 200px;
  }

  .objects-items-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .game-grid {
    width: min(80vw, 400px);
    height: min(80vw, 400px);
    padding: var(--space-sm);
    gap: 3px;
  }
}

/* ============================================
   Game screen redesign
   ============================================ */

/* Optical baseline correction for SF Fedora Titles */
.turn-text,
.game-finished-card__title,
.game-setup-modal__title {
  transform: translateY(var(--sf-fedora-titles-shift-lg));
}

.game-rail .treasure-count,
.game-finished-card__eyebrow,
.game-empty-card__eyebrow,
.game-setup-modal__position-pill,
.game-setup-modal__cancel,
.game-setup-modal__confirm {
  transform: translateY(var(--sf-fedora-titles-shift-md));
}

.game-rail .objects-panel-header > span,
.logs-header-glass > span {
  display: inline-block;
  transform: translateY(var(--sf-fedora-titles-shift-md));
}

.game-empty-card__copy,
.game-setup-modal__copy {
  transform: translateY(var(--sf-fedora-titles-shift-sm));
}

.game-container {
  min-height: 100vh;
}

.game-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 36%, rgba(31, 12, 2, 0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

.game-clouds {
  z-index: 1;
  opacity: 0.52;
}

.game-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vh, 28px);
  padding: clamp(18px, 2.2vw, 34px) clamp(18px, 2.8vw, 42px) clamp(16px, 1.5vw, 24px);
}

.game-shell--empty {
  align-items: center;
  justify-content: center;
}

.game-topbar {
  width: min(100%, 1900px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.game-topbar__slot {
  display: flex;
  align-items: flex-start;
}

.game-topbar__slot--left {
  justify-content: flex-start;
}

.game-topbar__slot--center {
  justify-content: center;
}

.game-topbar__slot--right {
  justify-content: flex-end;
}

.game-accelerator-wrap {
  display: inline-flex;
  align-items: center;
}

.game-activity-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(221, 198, 163, 0.92) 0%, rgba(194, 168, 131, 0.9) 100%);
  border: 1px solid rgba(255, 246, 231, 0.28);
  box-shadow:
    0 16px 30px rgba(67, 34, 8, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: rgba(77, 54, 28, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.game-activity-indicator__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(77, 54, 28, 0.16);
  border-left-color: rgba(77, 54, 28, 0.9);
  border-radius: 50%;
  animation: spin 0.72s linear infinite;
  flex: 0 0 auto;
}

.game-stage {
  flex: 1;
  min-height: 0;
  width: min(100%, 1900px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(680px, 1fr) minmax(260px, 330px);
  align-items: stretch;
  gap: clamp(18px, 2.2vw, 42px);
}

.game-rail {
  display: flex;
  justify-content: center;
  align-self: stretch;
}

.game-rail__stack {
  width: min(100%, 340px);
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vh, 24px);
}

.game-rail__stack--inactive .player-card,
.game-rail__stack--inactive .objects-panel-glass {
  box-shadow:
    0 18px 30px rgba(28, 13, 3, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  filter: brightness(0.62) saturate(0.58);
}

.game-rail__stack--inactive .treasure-progress,
.game-rail__stack--inactive .dig-action-btn,
.game-rail__stack--inactive .power-item-btn {
  filter: brightness(0.88) saturate(0.84);
}

.game-rail__stack--waiting .player-card,
.game-rail__stack--waiting .treasure-progress {
  filter: none;
  opacity: 1;
}

.game-center {
  --game-board-max: clamp(720px, 49vw, 980px);
  --game-board-fit: calc(100vh - 235px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2vh, 26px);
}

.game-board-frame {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.game-center__logs {
  width: 100%;
  display: flex;
  justify-content: center;
}

.turn-indicator {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  padding: 0;
  margin: 0;
}

.turn-indicator-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 68px;
  padding: 14px 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(65, 57, 47, 0.92) 0%, rgba(49, 42, 35, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 32px rgba(31, 17, 8, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.turn-text {
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: clamp(19px, 1.55vw, 31px);
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-align: center;
  color: rgba(255, 249, 237, 0.96);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.turn-indicator-box.loading .turn-text {
  font-size: clamp(15px, 1.05vw, 22px);
}

.loading-dot {
  color: #63f1a3;
  font-size: 12px;
}

.game-grid {
  width: min(100%, var(--game-board-fit));
  max-width: var(--game-board-max);
  height: auto;
  padding: clamp(14px, 1.3vw, 20px);
  gap: clamp(4px, 0.45vw, 8px);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(220, 197, 162, 0.84) 0%, rgba(199, 173, 137, 0.82) 100%);
  border: 1px solid rgba(255, 244, 224, 0.28);
  box-shadow:
    0 24px 42px rgba(71, 39, 14, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.grid-cell {
  border-radius: 20px;
}

.grid-actions {
  margin-top: 2px;
}

.game-action-btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 14px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffa71f 0%, #ff8b08 100%);
  color: #fff8ef;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 16px 24px rgba(122, 58, 4, 0.28),
    inset 0 1px 0 rgba(255, 238, 211, 0.42);
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
}

.game-action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.game-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.18);
  box-shadow:
    0 8px 18px rgba(122, 58, 4, 0.14),
    inset 0 1px 0 rgba(255, 238, 211, 0.2);
}

.game-rail .player-card {
  width: 100%;
  max-width: none;
  background: linear-gradient(180deg, rgba(221, 200, 171, 0.9) 0%, rgba(198, 169, 133, 0.88) 100%);
  border: 1px solid rgba(255, 246, 231, 0.22);
  box-shadow:
    0 24px 36px rgba(67, 34, 8, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.game-rail .player-card.active-turn {
  border-color: rgba(91, 230, 148, 0.92);
  box-shadow:
    0 0 0 4px rgba(91, 230, 148, 0.32),
    0 24px 36px rgba(35, 78, 46, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.game-rail .player-avatar-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 20px 34px rgba(44, 22, 8, 0.2),
    0 8px 16px rgba(44, 22, 8, 0.14);
}

.game-rail .player-avatar-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-position: 0 50%;
  background-size: auto 100%;
  filter: blur(1px);
  animation: player-avatar-pan 52s ease-in-out infinite;
}

.game-rail .player-avatar-frame--player-1::before {
  background-image: url('/images/player_1_bg.png');
}

.game-rail .player-avatar-frame--player-2::before {
  background-image: url('/images/player_2_bg.png');
}

.game-rail .player-avatar-frame--void::before {
  background-image: url('/images/player_void_bg.png');
}

.game-rail .player-avatar {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  display: block;
  object-fit: cover;
  object-position: center 14px;
}

.game-rail .player-avatar-frame--mirrored .player-avatar {
  transform: scaleX(-1);
}

.game-rail .player-card--waiting .player-avatar {
  object-position: center bottom;
}

.game-rail .treasure-progress {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(252, 245, 231, 0.72) 0%, rgba(239, 225, 198, 0.66) 100%);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.game-rail .treasure-progress-header {
  margin-bottom: 10px;
}

.game-rail .treasure-count {
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: clamp(18px, 1.05vw, 24px);
  letter-spacing: 0.04em;
  color: rgba(77, 54, 28, 0.92);
}

.game-rail .treasure-progress-step {
  height: 12px;
  border-radius: 999px;
}

.game-rail .objects-panel-glass {
  width: 100%;
  max-width: none;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(203, 176, 138, 0.84) 0%, rgba(183, 154, 118, 0.82) 100%);
  border: 1px solid rgba(255, 246, 231, 0.2);
  box-shadow:
    0 24px 36px rgba(67, 34, 8, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.game-rail .objects-panel-header {
  padding: 14px 18px;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: clamp(18px, 1vw, 22px);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(82, 58, 30, 0.9);
}

.game-rail .objects-panel-content {
  padding: 18px;
  gap: 14px;
}

.game-rail .dig-action-btn {
  min-height: 96px;
  border-radius: 24px;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: clamp(28px, 1.8vw, 34px);
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, rgba(252, 210, 98, 0.9) 0%, rgba(222, 176, 66, 0.84) 100%);
  color: rgba(95, 63, 18, 0.96);
  text-shadow: none;
}

.game-rail .dig-action-btn img {
  width: 54px;
  height: 54px;
}

.game-rail .dig-action-btn.selected {
  box-shadow:
    0 0 0 3px rgba(255, 214, 117, 0.46),
    0 14px 24px rgba(204, 141, 27, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.game-rail .objects-divider {
  margin: 2px 0;
}

.game-rail .objects-items-grid {
  gap: 12px;
}

.game-rail .power-item-btn {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 240, 226, 0.66) 0%, rgba(229, 214, 189, 0.64) 100%);
}

.game-rail .power-item-btn.selected {
  box-shadow:
    0 0 0 3px rgba(255, 214, 117, 0.42),
    0 12px 22px rgba(204, 141, 27, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.game-rail .power-badge {
  bottom: -6px;
  right: -6px;
}

.game-rail__logs {
  width: 100%;
  display: flex;
}

.game-rail .logs-panel-glass {
  display: flex;
  flex-direction: column;
  height: clamp(286px, 34vh, 382px);
  width: 100%;
  max-width: none;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(221, 198, 163, 0.84) 0%, rgba(194, 168, 131, 0.82) 100%);
  border: 1px solid rgba(255, 246, 231, 0.22);
  box-shadow:
    0 20px 34px rgba(67, 34, 8, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.game-center__logs .logs-panel-glass {
  grid-column: auto;
  grid-row: auto;
  justify-self: auto;
  width: min(100%, var(--game-board-fit));
  max-width: var(--game-board-max);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(221, 198, 163, 0.84) 0%, rgba(194, 168, 131, 0.82) 100%);
  border: 1px solid rgba(255, 246, 231, 0.22);
  box-shadow:
    0 20px 34px rgba(67, 34, 8, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logs-header-glass {
  justify-content: center;
  padding: 14px 16px;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: clamp(18px, 1vw, 22px);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logs-content-glass {
  display: flex;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.logs-list-glass {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 12px;
  gap: 8px;
  overflow-y: auto;
}

.log-entry-glass {
  display: flex;
  align-items: center;
  border-radius: 20px;
  padding: 10px 12px;
  background: rgba(255, 250, 242, 0.52);
}

.log-message {
  min-width: 0;
  width: 100%;
  color: rgba(77, 54, 28, 0.92);
  font-size: 14px;
  line-height: 1.35;
}

.log-empty {
  justify-content: center;
  text-align: center;
  color: rgba(97, 72, 42, 0.72);
}

.game-finished-card {
  width: min(100%, 640px);
  padding: 34px 28px 30px;
  border-radius: 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(79, 69, 57, 0.92) 0%, rgba(52, 43, 35, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 22px 36px rgba(26, 13, 6, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.game-finished-card__eyebrow {
  margin: 0 0 12px;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 243, 223, 0.72);
}

.game-finished-card__title {
  margin: 0 0 24px;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: clamp(34px, 3vw, 54px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: #fffaf0;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.game-finished-card__title.is-win {
  color: #7bf0ab;
}

.game-finished-card__title.is-loss {
  color: #ff9b8f;
}

.game-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: min(100%, 760px);
}

.game-empty-state__logo {
  width: min(100%, clamp(360px, 30vw, 620px));
  height: auto;
  filter:
    drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35))
    drop-shadow(0 20px 28px rgba(60, 20, 0, 0.2));
}

.game-empty-card {
  width: min(100%, 440px);
  padding: 28px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(221, 200, 171, 0.92) 0%, rgba(198, 169, 133, 0.9) 100%);
  border: 1px solid rgba(255, 246, 231, 0.22);
  box-shadow:
    0 24px 36px rgba(67, 34, 8, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}

.game-empty-card__eyebrow {
  margin: 0 0 10px;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(82, 58, 30, 0.68);
}

.game-empty-card__copy {
  margin: 0 0 20px;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: rgba(77, 54, 28, 0.82);
}

.game-setup-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 13, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.game-setup-modal__dialog {
  position: relative;
  width: min(100%, 520px);
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(221, 198, 163, 0.96) 0%, rgba(194, 168, 131, 0.94) 100%);
  box-shadow:
    0 24px 42px rgba(67, 34, 8, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 246, 231, 0.22);
}

.game-setup-modal__hero {
  height: 220px;
  overflow: hidden;
}

.game-setup-modal__hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.game-setup-modal__body {
  padding: 18px 20px 22px;
}

.game-setup-modal__title {
  margin: 0 0 10px;
  text-align: center;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1;
  letter-spacing: 0.05em;
  color: rgba(77, 54, 28, 0.96);
  text-transform: uppercase;
}

.game-setup-modal__copy {
  margin: 0 0 18px;
  text-align: center;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: rgba(77, 54, 28, 0.78);
}

.game-setup-modal__positions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.game-setup-modal__position-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(252, 245, 231, 0.72) 0%, rgba(239, 225, 198, 0.66) 100%);
  color: rgba(77, 54, 28, 0.92);
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.game-setup-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.game-setup-modal__cancel,
.game-setup-modal__confirm {
  min-height: 58px;
  border-radius: 18px;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.game-setup-modal__cancel {
  background: linear-gradient(180deg, rgba(79, 69, 57, 0.92) 0%, rgba(52, 43, 35, 0.94) 100%);
  color: rgba(255, 249, 237, 0.94);
  box-shadow:
    0 12px 20px rgba(43, 23, 8, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-setup-modal__confirm {
  background: linear-gradient(180deg, #ffa71f 0%, #ff8b08 100%);
  color: #fff8ef;
  box-shadow:
    0 14px 24px rgba(255, 136, 10, 0.24),
    inset 0 1px 0 rgba(255, 234, 195, 0.45);
}

.game-setup-modal__confirm:disabled {
  opacity: 0.58;
}

.game-error-toast {
  position: fixed;
  top: clamp(14px, 2vh, 24px);
  left: 50%;
  transform: translateX(-50%);
}

@keyframes player-avatar-pan {
  0% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

@media (min-width: 1700px) {
  .game-stage {
    grid-template-columns: minmax(300px, 360px) minmax(760px, 1fr) minmax(300px, 360px);
    gap: clamp(26px, 2.6vw, 52px);
  }

  .game-center {
    --game-board-max: clamp(820px, 50vw, 1080px);
    --game-board-fit: calc(100vh - 245px);
  }
}

@media (max-width: 1440px) {
  .game-stage {
    grid-template-columns: minmax(230px, 290px) minmax(580px, 1fr) minmax(230px, 290px);
    gap: 18px;
  }

  .game-center {
    --game-board-max: clamp(620px, 46vw, 840px);
    --game-board-fit: calc(100vh - 245px);
  }

  .game-rail .dig-action-btn {
    min-height: 88px;
    font-size: clamp(24px, 1.6vw, 30px);
  }
}

@media (max-width: 1180px) {
  .game-shell {
    gap: 16px;
  }

  .game-stage {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .game-center {
    order: 1;
    --game-board-max: clamp(520px, 74vw, 760px);
    --game-board-fit: calc(100vh - 330px);
  }

  .game-rail {
    width: 100%;
  }

  .game-rail--left {
    order: 2;
  }

  .game-rail--right {
    order: 3;
  }

  .game-rail__stack {
    width: min(100%, 940px);
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    align-items: start;
  }

  .game-grid {
    width: min(100%, calc(100vh - 360px));
  }

  .game-rail .logs-panel-glass {
    height: clamp(286px, 30vh, 340px);
  }
}
@font-face {
  font-family: 'SF Fedora';
  src: url('/fonts/SF%20Fedora.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'SF Fedora Titles';
  src: url('/fonts/SF%20Fedora%20Titles.ttf') format('truetype');
  font-display: swap;
}

/* Optical baseline correction for SF Fedora Titles */
.unsupported-card__title,
.menu-panel-kicker,
.menu-wallet-button__label,
.menu-join-modal__title {
  transform: translateY(var(--sf-fedora-titles-shift-lg));
}

.unsupported-card__eyebrow,
.unsupported-card__copy,
.menu-session__wallet,
.menu-session__disconnect,
.menu-action-card__status,
.menu-status-modal__copy,
.menu-provider-button__name,
.menu-join-modal__submit,
.menu-flow-button {
  transform: translateY(var(--sf-fedora-titles-shift-md));
}

.menu-inline-error,
.menu-wallet-helper,
.menu-action-card__hint,
.menu-status-modal__eyebrow,
.menu-flow-back,
.menu-flow-copy,
.menu-flow-note,
.menu-provider-button__hint,
.accelerator-badge__status,
.accelerator-badge__time,
.accelerator-badge__toggle {
  transform: translateY(var(--sf-fedora-titles-shift-sm));
}

.menu-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 67, 119, 0.08) 0%, rgba(24, 8, 2, 0.24) 100%);
}

.menu-screen::before {
  content: '';
  position: absolute;
  inset: -4%;
  background: url('/menu/bg.png') center center / cover no-repeat;
  transform-origin: center center;
  animation: menu-background-breathe 18s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}

.menu-screen__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 36%, rgba(31, 12, 2, 0.18) 100%);
  pointer-events: none;
}

.menu-clouds {
  z-index: 1;
  opacity: 0.52;
}

.unsupported-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(17, 67, 119, 0.08) 0%, rgba(24, 8, 2, 0.24) 100%),
    url('/menu/bg.png') center center / cover no-repeat;
}

.unsupported-screen__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 36%, rgba(31, 12, 2, 0.26) 100%);
  pointer-events: none;
}

.unsupported-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 28px 24px;
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(221, 200, 171, 0.9) 0%, rgba(198, 169, 133, 0.88) 100%);
  border: 1px solid rgba(255, 246, 231, 0.22);
  box-shadow:
    0 24px 36px rgba(67, 34, 8, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.unsupported-card__logo {
  width: min(100%, 320px);
  height: auto;
  margin-bottom: 18px;
  filter:
    drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35))
    drop-shadow(0 20px 28px rgba(60, 20, 0, 0.2));
}

.unsupported-card__eyebrow {
  margin: 0 0 10px;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(82, 58, 30, 0.68);
}

.unsupported-card__title {
  margin: 0 0 14px;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: rgba(77, 54, 28, 0.96);
}

.unsupported-card__copy {
  margin: 0;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: rgba(77, 54, 28, 0.82);
}

.menu-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(18px, 2.2vw, 32px) clamp(18px, 2.7vw, 40px) 14px;
}

.menu-error-toast {
  top: 18px;
}

.menu-stage {
  flex: 1;
  display: grid;
  width: min(100%, 1640px);
  margin: 0 auto;
  grid-template-columns: minmax(320px, 480px) minmax(680px, 1020px);
  justify-content: center;
  gap: clamp(40px, 4.4vw, 110px);
  align-items: center;
}

.menu-column {
  min-height: 0;
}

.menu-column--left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4.5vh, 50px);
}

.menu-column--right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.menu-brand__logo {
  width: min(100%, clamp(360px, 33vw, 660px));
  min-width: 0;
  height: auto;
  image-rendering: auto;
  filter:
    drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35))
    drop-shadow(0 20px 28px rgba(60, 20, 0, 0.2));
  animation: menu-logo-float 3.6s linear infinite;
}

.menu-connect-panel {
  width: min(100%, 430px);
  padding: 24px 22px 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(221, 200, 171, 0.9) 0%, rgba(198, 169, 133, 0.88) 100%);
  border: 1px solid rgba(255, 246, 231, 0.22);
  box-shadow:
    0 24px 36px rgba(67, 34, 8, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.menu-connect-content,
.menu-session {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-panel-kicker {
  margin: 0;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: clamp(18px, 1.45vw, 26px);
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  color: rgba(82, 58, 30, 0.9);
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.menu-inline-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(141, 27, 26, 0.82);
  color: #fff1ee;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(91, 7, 7, 0.18);
}

.menu-connect-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-wallet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 72px;
  width: 100%;
  border-radius: 22px;
  padding: 16px 20px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.menu-wallet-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.menu-wallet-button:disabled {
  opacity: 0.62;
  filter: grayscale(0.2);
}

.menu-wallet-button--embedded {
  background: linear-gradient(180deg, #ffa71f 0%, #ff8b08 100%);
  color: white;
  box-shadow:
    0 14px 28px rgba(255, 136, 10, 0.24),
    inset 0 1px 0 rgba(255, 234, 195, 0.45);
}

.menu-wallet-button--azguard {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.96) 0%, rgba(10, 10, 10, 0.98) 100%);
  color: white;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.menu-wallet-button__label {
  display: inline-block;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: clamp(18px, 1.45vw, 28px);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: inherit;
}

.menu-wallet-helper {
  margin: 2px 0 0;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-align: center;
  color: rgba(77, 54, 28, 0.68);
}

.menu-azguard-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.menu-azguard-brand__mark,
.menu-azguard-brand__wordmark {
  fill: white;
  flex-shrink: 0;
}

.menu-connect-panel__brand {
  display: block;
  width: min(132px, 44%);
  margin: 10px auto 0;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

.menu-session {
  align-items: center;
  text-align: center;
}

.menu-session__wallet-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.menu-session__wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  min-width: 0;
  padding: 12px 16px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffa71f 0%, #ff8b08 100%);
  color: white;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 10px 22px rgba(255, 136, 10, 0.22),
    inset 0 1px 0 rgba(255, 234, 195, 0.4);
}

.menu-session__address {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(252, 245, 231, 0.72) 0%, rgba(239, 225, 198, 0.66) 100%);
  color: rgba(77, 54, 28, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.menu-session__accelerator {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.menu-session__disconnect {
  margin-bottom: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(79, 69, 57, 0.92) 0%, rgba(52, 43, 35, 0.94) 100%);
  color: rgba(255, 249, 237, 0.94);
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 22px rgba(43, 23, 8, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.accelerator-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 4px 4px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(252, 245, 231, 0.62) 0%, rgba(239, 225, 198, 0.58) 100%);
  border: 1px solid rgba(193, 154, 91, 0.28);
  color: rgba(82, 58, 30, 0.88);
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 10px 18px rgba(67, 34, 8, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.accelerator-badge.is-native {
  border-color: rgba(99, 255, 180, 0.3);
}

.accelerator-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #f0c040;
}

.accelerator-badge.is-native .accelerator-badge__dot {
  background: #63ffb4;
  box-shadow: 0 0 8px rgba(99, 255, 180, 0.45);
}

.accelerator-badge.is-proving .accelerator-badge__dot {
  animation: accelerator-pulse 1s linear infinite;
}

.accelerator-badge__content {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.accelerator-badge__status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.accelerator-badge__status--native {
  color: #63ffb4;
}

.accelerator-badge__status--warm {
  color: #f0c040;
}

.accelerator-badge__time {
  color: rgba(77, 54, 28, 0.56);
  font-size: 9px;
}

.accelerator-badge__toggle {
  min-height: 26px;
  padding: 6px 9px 5px;
  border-radius: 999px;
  background: rgba(132, 104, 68, 0.14);
  border: 1px solid rgba(132, 104, 68, 0.18);
  color: rgba(77, 54, 28, 0.7);
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.03em;
}

.accelerator-badge__toggle:hover {
  background: rgba(132, 104, 68, 0.2);
}

.menu-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(290px, 1fr));
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 2.2vw, 40px);
  max-width: 960px;
}

.menu-action-stack {
  position: relative;
  display: flex;
  align-items: center;
}

.menu-action-card {
  position: relative;
  width: min(100%, clamp(300px, 24vw, 438px));
  aspect-ratio: 454 / 680;
  overflow: hidden;
  border-radius: 18px;
  box-shadow:
    0 24px 42px rgba(54, 20, 3, 0.28),
    0 10px 18px rgba(0, 0, 0, 0.2);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    filter 200ms ease;
}

.menu-action-card:hover:not(:disabled) {
  transform: translateY(-8px);
  box-shadow:
    0 30px 48px rgba(54, 20, 3, 0.34),
    0 14px 22px rgba(0, 0, 0, 0.24);
}

.menu-action-card.is-locked {
  filter: saturate(0.62) brightness(0.68) contrast(0.96);
  box-shadow:
    0 18px 34px rgba(18, 8, 4, 0.42),
    0 8px 16px rgba(0, 0, 0, 0.3);
}

.menu-action-card.is-locked::after {
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.18) 0%, rgba(8, 4, 3, 0.2) 38%, rgba(5, 4, 4, 0.68) 100%);
}

.menu-action-card.is-locked .menu-action-card__label {
  color: rgba(255, 255, 255, 0.9);
  text-shadow:
    -3px 0 0 rgba(22, 14, 12, 0.98),
    0 3px 10px rgba(0, 0, 0, 0.5),
    0 8px 14px rgba(0, 0, 0, 0.32);
}

.menu-action-card.is-locked .menu-action-card__hint {
  background: rgba(8, 10, 14, 0.84);
  color: rgba(255, 255, 255, 0.88);
}

.menu-action-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-action-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(8, 4, 3, 0.08) 66%, rgba(5, 4, 4, 0.48) 100%);
  pointer-events: none;
}

.menu-action-card__label {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) skewX(-9deg);
  z-index: 1;
  font-family: 'SF Fedora', serif;
  font-size: clamp(60px, 5vw, 96px);
  line-height: 0.82;
  letter-spacing: 0.01em;
  color: white;
  text-shadow:
    -3px 0 0 rgba(31, 18, 14, 0.94),
    0 3px 12px rgba(0, 0, 0, 0.42),
    0 8px 14px rgba(0, 0, 0, 0.24);
  white-space: nowrap;
}

.menu-action-card__hint {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 8px 11px 7px;
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.72);
  color: rgba(255, 255, 255, 0.94);
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-action-card__status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 12px 14px 10px;
  border-radius: 18px;
  background: rgba(11, 15, 22, 0.76);
  color: #fff;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu-join-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 13, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.menu-join-modal__dialog {
  position: relative;
  width: min(100%, 460px);
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(221, 198, 163, 0.96) 0%, rgba(194, 168, 131, 0.94) 100%);
  box-shadow:
    0 24px 42px rgba(67, 34, 8, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 246, 231, 0.22);
}

.menu-join-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(112, 92, 62, 0.64);
  color: rgba(255, 248, 236, 0.96);
  font-size: 24px;
  line-height: 1;
}

.menu-join-modal__hero {
  height: 230px;
  overflow: hidden;
}

.menu-join-modal__hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.menu-join-modal__body {
  padding: 16px 18px 20px;
}

.menu-join-modal__title {
  margin: 0 0 18px;
  text-align: center;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: clamp(26px, 2vw, 34px);
  line-height: 1;
  letter-spacing: 0.05em;
  color: rgba(77, 54, 28, 0.96);
  text-transform: uppercase;
}

.menu-join-modal__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.menu-join-modal__input {
  min-width: 0;
  width: 100%;
  padding: 17px 18px 13px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(252, 252, 252, 0.98) 0%, rgba(236, 236, 236, 0.98) 100%);
  color: #433023;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.menu-join-modal__input::placeholder {
  color: rgba(67, 48, 35, 0.38);
  line-height: 1.18;
}

.menu-join-modal__submit {
  min-width: 132px;
  padding: 16px 24px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffa71f 0%, #ff8b08 100%);
  color: white;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow:
    0 14px 24px rgba(255, 136, 10, 0.24),
    inset 0 1px 0 rgba(255, 234, 195, 0.45);
}

.menu-join-modal__submit:disabled {
  opacity: 0.58;
}

.menu-status-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 12, 18, 0.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu-status-modal__dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(100%, 380px);
  padding: 28px 26px 24px;
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(221, 200, 171, 0.92) 0%, rgba(198, 169, 133, 0.9) 100%);
  border: 1px solid rgba(255, 246, 231, 0.22);
  box-shadow:
    0 24px 36px rgba(67, 34, 8, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.menu-status-modal__eyebrow {
  margin: 0;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(82, 58, 30, 0.68);
}

.menu-status-modal__copy {
  margin: 0;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: rgba(77, 54, 28, 0.9);
}

.menu-connect-content--flow {
  gap: 14px;
}

.menu-flow-back {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(252, 245, 231, 0.72) 0%, rgba(239, 225, 198, 0.66) 100%);
  color: rgba(77, 54, 28, 0.9);
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.menu-flow-copy,
.menu-flow-note {
  margin: 0;
  color: rgba(77, 54, 28, 0.8);
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0.05em;
  text-align: center;
}

.menu-flow-spinner {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.menu-provider-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-provider-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(252, 245, 231, 0.72) 0%, rgba(239, 225, 198, 0.66) 100%);
  color: rgba(77, 54, 28, 0.92);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 10px 20px rgba(67, 34, 8, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.menu-provider-button__icon,
.menu-provider-button__fallback {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.menu-provider-button__content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.menu-provider-button__name,
.menu-provider-button__hint {
  font-family: 'SF Fedora Titles', sans-serif;
  line-height: 1;
  letter-spacing: 0.05em;
}

.menu-provider-button__name {
  font-size: 14px;
}

.menu-provider-button__hint {
  font-size: 11px;
  opacity: 0.62;
}

.menu-emoji-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(252, 245, 231, 0.6) 0%, rgba(239, 225, 198, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.menu-emoji-grid__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.3);
  font-size: 34px;
}

.menu-flow-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.menu-flow-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 16px 12px;
  border-radius: 18px;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-flow-button--secondary {
  background: linear-gradient(180deg, rgba(79, 69, 57, 0.92) 0%, rgba(52, 43, 35, 0.94) 100%);
  color: rgba(255, 249, 237, 0.94);
  box-shadow:
    0 12px 20px rgba(43, 23, 8, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.menu-flow-button--primary {
  background: linear-gradient(180deg, #ffa71f 0%, #ff8b08 100%);
  color: white;
}

.menu-footer {
  margin-top: auto;
  padding-top: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.36);
}

@keyframes menu-logo-float {
  0% {
    transform: translateY(0) scale(1);
  }
  12.5% {
    transform: translateY(-2px) scale(1.003);
  }
  25% {
    transform: translateY(-4px) scale(1.006);
  }
  37.5% {
    transform: translateY(-6px) scale(1.009);
  }
  50% {
    transform: translateY(-8px) scale(1.012);
  }
  62.5% {
    transform: translateY(-6px) scale(1.009);
  }
  75% {
    transform: translateY(-4px) scale(1.006);
  }
  87.5% {
    transform: translateY(-2px) scale(1.003);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes menu-background-breathe {
  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.04) translate3d(0.6%, -0.8%, 0);
  }
}

@keyframes accelerator-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-screen::before {
    animation: none;
  }

  .menu-brand__logo {
    animation: none;
  }
}

@media (min-width: 1700px) {
  .menu-stage {
    width: min(100%, 1840px);
    grid-template-columns: minmax(360px, 560px) minmax(860px, 1220px);
    gap: clamp(56px, 5vw, 132px);
  }

  .menu-column--left {
    gap: clamp(28px, 4.5vh, 58px);
  }

  .menu-brand__logo {
    width: min(100%, clamp(420px, 34vw, 760px));
  }

  .menu-connect-panel {
    width: min(100%, 470px);
  }

  .menu-actions {
    max-width: 1080px;
    gap: clamp(28px, 2.4vw, 44px);
  }

  .menu-action-card {
    width: min(100%, clamp(340px, 23vw, 490px));
  }

  .menu-join-panel {
    width: min(100%, 490px);
  }
}

@media (min-width: 2100px) {
  .menu-stage {
    width: min(100%, 1980px);
    grid-template-columns: minmax(400px, 620px) minmax(960px, 1320px);
    gap: clamp(72px, 5.4vw, 160px);
  }

  .menu-brand__logo {
    width: min(100%, clamp(480px, 35vw, 860px));
  }

  .menu-connect-panel {
    width: min(100%, 510px);
  }

  .menu-actions {
    max-width: 1180px;
  }

  .menu-action-card {
    width: min(100%, clamp(380px, 24vw, 540px));
  }

  .menu-join-panel {
    width: min(100%, 540px);
  }
}

@media (max-width: 1200px) {
  .menu-stage {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
    align-items: center;
  }

  .menu-column--left,
  .menu-column--right {
    width: 100%;
  }

  .menu-actions {
    justify-content: center;
  }
}

@media (max-width: 920px) {
  .menu-brand {
    justify-content: center;
  }

  .menu-brand__logo {
    width: min(88vw, 520px);
    animation-duration: 6.4s;
  }

  .menu-actions {
    grid-template-columns: 1fr;
    width: min(100%, 438px);
  }

  .menu-connect-panel {
    width: min(100%, 430px);
  }
}

@media (max-width: 640px) {
  .menu-shell {
    padding: 16px 16px 12px;
  }

  .menu-connect-panel {
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

  .menu-wallet-button {
    min-height: 66px;
    border-radius: 18px;
  }

  .menu-wallet-button__label {
    font-size: 18px;
  }

  .menu-azguard-brand {
    gap: 10px;
    transform: scale(0.9);
  }

  .menu-action-card__label {
    bottom: 20px;
    font-size: clamp(48px, 18vw, 88px);
  }

  .menu-join-panel {
    position: static;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 12px;
    visibility: visible;
    transform: none;
  }

  .menu-join-panel__submit {
    min-width: 0;
  }

  .menu-join-panel:not(.is-open) {
    display: none;
  }
}
.settings-fab {
  position: fixed;
  top: 24px;
  left: 40px;
  z-index: 70;
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(221, 198, 163, 0.94) 0%, rgba(194, 168, 131, 0.92) 100%);
  border: 1px solid rgba(255, 246, 231, 0.26);
  box-shadow:
    0 20px 34px rgba(67, 34, 8, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.settings-fab:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 38px rgba(67, 34, 8, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.settings-fab__icon {
  width: 28px;
  height: 28px;
  fill: rgba(94, 72, 44, 0.98);
}

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(32, 21, 11, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.settings-modal__dialog {
  position: relative;
  width: min(100%, 520px);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(221, 198, 163, 0.97) 0%, rgba(194, 168, 131, 0.95) 100%);
  border: 1px solid rgba(255, 246, 231, 0.24);
  box-shadow:
    0 28px 48px rgba(67, 34, 8, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.settings-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(102, 85, 57, 0.42);
  color: rgba(255, 250, 242, 0.96);
  font-size: 34px;
  line-height: 1;
  padding-bottom: 3px;
}

.settings-modal__header {
  padding: 32px 32px 18px;
}

.settings-modal__title {
  margin-top: 10px;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: clamp(28px, 2.2vw, 36px);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(82, 58, 30, 0.96);
  transform: translateY(var(--sf-fedora-titles-shift-md));
}

.settings-modal__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 32px 26px;
}

.settings-modal__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 248, 235, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.settings-modal__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-modal__label,
.settings-modal__value,
.settings-modal__pill,
.settings-modal__status,
.settings-modal__link,
.settings-modal__action {
  font-family: 'SF Fedora Titles', sans-serif;
  line-height: 1;
  transform: translateY(var(--sf-fedora-titles-shift-sm));
}

.settings-modal__label {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(82, 58, 30, 0.94);
}

.settings-modal__value {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(110, 82, 47, 0.82);
}

.settings-modal__slider {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(140, 112, 75, 0.2);
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
}

.settings-modal__slider::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  background: transparent;
}

.settings-modal__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 169, 33, 0.96) 0%, rgba(241, 146, 21, 0.94) 100%);
  border: 2px solid rgba(255, 244, 224, 0.88);
  box-shadow: 0 8px 14px rgba(170, 94, 11, 0.26);
}

.settings-modal__slider::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  background: transparent;
}

.settings-modal__slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 169, 33, 0.96) 0%, rgba(241, 146, 21, 0.94) 100%);
  border: 2px solid rgba(255, 244, 224, 0.88);
  box-shadow: 0 8px 14px rgba(170, 94, 11, 0.26);
}

.settings-modal__status,
.settings-modal__link,
.settings-modal__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 18px;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.settings-modal__status {
  background: rgba(87, 185, 122, 0.16);
  color: rgba(44, 101, 57, 0.96);
}

.settings-modal__status--idle {
  background: rgba(107, 86, 54, 0.12);
  color: rgba(82, 58, 30, 0.9);
}

.settings-modal__link,
.settings-modal__action {
  background: linear-gradient(180deg, rgba(255, 169, 33, 0.96) 0%, rgba(241, 146, 21, 0.94) 100%);
  color: rgba(255, 248, 237, 0.98);
  box-shadow:
    0 16px 28px rgba(170, 94, 11, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.settings-modal__toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(107, 86, 54, 0.12);
}

.settings-modal__toggle-option {
  min-height: 46px;
  border-radius: 16px;
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(82, 58, 30, 0.82);
  transform: translateY(var(--sf-fedora-titles-shift-sm));
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.settings-modal__toggle-option.is-active {
  background: linear-gradient(180deg, rgba(255, 169, 33, 0.96) 0%, rgba(241, 146, 21, 0.94) 100%);
  color: rgba(255, 248, 237, 0.98);
  box-shadow:
    0 12px 22px rgba(170, 94, 11, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.settings-modal__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 6px auto 28px;
}

.settings-modal__brand {
  display: block;
  width: 120px;
  opacity: 0.92;
}

.settings-modal__network-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(107, 86, 54, 0.12);
  font-family: 'SF Fedora Titles', sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(82, 58, 30, 0.86);
  transform: translateY(var(--sf-fedora-titles-shift-xs));
}

@media (max-width: 760px) {
  .settings-fab {
    top: 18px;
    left: 28px;
    width: 56px;
    height: 56px;
    border-radius: 20px;
  }

  .settings-modal {
    padding: 18px;
  }

  .settings-modal__dialog {
    border-radius: 28px;
  }

  .settings-modal__header {
    padding: 24px 22px 16px;
  }

  .settings-modal__body {
    padding: 0 22px 22px;
  }

  .settings-modal__footer {
    margin-bottom: 24px;
  }
}
