:root {
  --primary-green: #065f46;
  --dark-green: #064e3b;
  --accent-green: #10b981;
  --light-green: #34d399;
  --glass-bg: rgba(16, 185, 129, 0.1);
  --glass-border: rgba(16, 185, 129, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #d1fae5;
  --shadow-green: rgba(16, 185, 129, 0.3);
  --silver-gradient: linear-gradient(135deg, #C0C0C0 0%, #E8E8E8 50%, #A8A8A8 100%);
  --silver-shadow: rgba(192, 192, 192, 0.5);
  --tutorial-orange: #f59e0b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 50%, #022c22 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(52, 211, 153, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body.theme-landing {
  --bg0: #04110c;
  --bg1: #071a12;
  --emerald: #22c55e;
  --emerald2: #10b981;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(255, 255, 255, 0.6);
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
  --r: 18px;
  --r2: 26px;
  color: var(--text);
  background: radial-gradient(
      1000px 650px at 18% 12%,
      rgba(34, 197, 94, 0.18),
      transparent 58%
    ),
    radial-gradient(
      900px 600px at 86% 20%,
      rgba(16, 185, 129, 0.14),
      transparent 60%
    ),
    radial-gradient(
      1000px 800px at 50% 98%,
      rgba(34, 197, 94, 0.08),
      transparent 60%
    ),
    linear-gradient(160deg, var(--bg0), var(--bg1));
  background-attachment: fixed;
}

body.theme-landing::before {
  background: none;
}

/* Glass Morphism Effect */
.glass-card {
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.6) 0%, rgba(60, 60, 60, 0.6) 50%, rgba(30, 30, 30, 0.6) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(100, 100, 100, 0.3);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(150, 150, 150, 0.2) inset;
  transition: all 0.3s ease;
}

.glass-card:hover {
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(150, 150, 150, 0.3) inset;
}

/* Navigation */
.glass-nav {
  position: relative;
  width: 100%;
  background: rgba(6, 95, 70, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}

body.theme-landing .glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 17, 12, 0.72),
    rgba(4, 17, 12, 0.1)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
}

body.calculator-page:not(.demo-mode) .glass-nav {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
}

body.calculator-page.demo-mode .glass-nav .nav-buttons .btn.btn-primary {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f7a4b, #0b5f3c);
  box-shadow: 0 18px 55px rgba(15, 122, 75, 0.3);
}

body.calculator-page.demo-mode .glass-nav .nav-buttons .btn.btn-primary:hover {
  background: linear-gradient(135deg, #138a55, #0e6a42);
}

body.theme-landing .nav-container {
  max-width: var(--max);
  padding: 10px 14px;
  height: auto;
}

body.theme-landing .logo {
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: inherit;
  color: var(--text);
}

body.theme-landing.demo-mode .calculator-app {
  padding-top: 64px;
}

body.theme-landing .nav-buttons .btn {
  padding-left: 14px;
  padding-right: 14px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  text-shadow: 0 0 10px var(--silver-shadow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  height: 1em;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(232, 232, 232, 0.35));
}

.nav-buttons {
  display: flex;
  gap: 15px;
}

.icon-button {
  height: 40px;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(192, 192, 192, 0.45);
  background: rgba(20, 20, 20, 0.35);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

.icon-button:hover {
  border-color: rgba(232, 232, 232, 0.7);
  background: rgba(30, 30, 30, 0.55);
}

.btn {
  padding: 10px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  text-decoration: none;
}

.btn-primary {
  background: var(--silver-gradient);
  color: #1a1a1a;
  box-shadow: 0 4px 15px var(--silver-shadow);
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E8E8E8 0%, #F0F0F0 50%, #E8E8E8 100%);
  box-shadow: 0 6px 20px var(--silver-shadow);
}

.btn-secondary {
  background: transparent;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 1px solid #C0C0C0;
}

.btn-secondary:hover {
  background: var(--silver-gradient);
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #1a1a1a;
  background-clip: unset;
  border-color: #E8E8E8;
}

/* Landing Page */
.landing-page {
  padding: 90px 40px 40px;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  padding: 60px 40px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-green), var(--light-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary {
  padding-left: 16px;
  padding-right: 16px;
}

/* Calculator App */
.calculator-app {
  padding: 20px 1% 0;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.calculator-stack {
  padding: 18px 16px 20px;
  margin: 0 0 20px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calculator-stack.glass-card {
  background: linear-gradient(
    135deg,
    rgba(6, 95, 70, 0.45) 0%,
    rgba(6, 78, 59, 0.45) 50%,
    rgba(4, 50, 38, 0.45) 100%
  );
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 10px 32px rgba(6, 95, 70, 0.35),
    0 0 0 1px rgba(16, 185, 129, 0.2) inset;
}

.calculator-stack .selectors-container {
  padding-bottom: 0;
}

.calculator-stack .glass-card {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.app-header {
  text-align: center;
  margin-bottom: 15px;
}

.app-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--accent-green);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.app-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 5px 0;
}

.selectors-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 0;
  position: static;
  z-index: auto;
  background: transparent;
  padding-top: 0;
  padding-bottom: 10px;
  margin-top: 0;
}

.slider-container {
  padding: 0 15px 15px 15px;
  text-align: center;
}

.pot-slider-container {
  position: relative;
}

.slider-mode-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(192, 192, 192, 0.35);
  background: rgba(20, 20, 20, 0.35);
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.slider-reset-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(192, 192, 192, 0.35);
  background: rgba(20, 20, 20, 0.35);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.slider-reset-btn:hover {
  color: var(--text-primary);
  border-color: rgba(232, 232, 232, 0.6);
  background: rgba(30, 30, 30, 0.55);
}

.slider-mode-toggle:hover {
  color: var(--text-primary);
  border-color: rgba(232, 232, 232, 0.6);
  background: rgba(30, 30, 30, 0.55);
}

.slider-mode-toggle.disabled,
.slider-mode-toggle:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.slider-mode-toggle .mode-label,
.slider-mode-toggle .mode-value {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slider-mode-meter {
  display: flex;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.slider-mode-meter .mode-bar {
  width: 12px;
  height: 6px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.25);
  box-shadow: inset 0 0 6px rgba(16, 185, 129, 0.2);
}

.pot-slider-container.pot-style-10 .mode-bar:nth-child(1),
.pot-slider-container.pot-style-20 .mode-bar:nth-child(-n + 2),
.pot-slider-container.pot-style-100 .mode-bar:nth-child(-n + 3),
.pot-slider-container.pot-style-200 .mode-bar:nth-child(-n + 4) {
  background: rgba(16, 185, 129, 0.95);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.pot-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
}

.pot-controls-toggle {
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(6, 95, 70, 0.25);
  color: rgba(167, 243, 208, 0.8);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.pot-slider-container .slider-reset-btn,
.pot-slider-container .pot-controls-toggle,
.pot-slider-container .control-btn {
  border: 1px solid rgba(192, 192, 192, 0.35);
  background: rgba(20, 20, 20, 0.35);
  color: var(--text-secondary);
  box-shadow: none;
  text-shadow: none;
}

.pot-slider-container .control-btn.negative,
.pot-slider-container .control-btn.positive {
  text-shadow: none;
  box-shadow: none;
}

.pot-slider-container .control-btn.positive {
  color: rgba(16, 185, 129, 0.75);
}

.pot-controls .control-btn:focus,
.pot-controls .control-btn:focus-visible,
.pot-controls .control-btn:active {
  outline: none;
  color: inherit;
  border-color: rgba(192, 192, 192, 0.35);
  background: rgba(20, 20, 20, 0.35);
  box-shadow: none;
  text-shadow: none;
}

.pot-slider-container .slider-reset-btn:hover,
.pot-slider-container .pot-controls-toggle:hover,
.pot-slider-container .control-btn:hover {
  color: var(--text-primary);
  border-color: rgba(232, 232, 232, 0.6);
  background: rgba(30, 30, 30, 0.55);
}

@media (hover: none) {
  .pot-slider-container .slider-reset-btn:hover,
  .pot-slider-container .pot-controls-toggle:hover,
  .pot-slider-container .control-btn:hover {
    color: var(--text-secondary);
    border-color: rgba(192, 192, 192, 0.35);
    background: rgba(20, 20, 20, 0.35);
  }
}

.pot-controls-toggle:hover {
  color: #eafff5;
  border-color: rgba(16, 185, 129, 0.7);
  background: rgba(6, 95, 70, 0.45);
}

.pot-slider-container.controls-collapsed .pot-controls {
  display: none;
}

.pot-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.pot-controls-row .pot-btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: 25%;
  font-size: 1.2rem;
}

.pot-controls .control-btn {
  -webkit-tap-highlight-color: transparent;
}

@media (pointer: coarse) {
  .pot-controls .control-btn:hover,
  .pot-controls .control-btn:active,
  .pot-controls .control-btn:focus,
  .pot-controls .control-btn:focus-visible {
    background: rgba(20, 20, 20, 0.35) !important;
    border-color: rgba(192, 192, 192, 0.35) !important;
    color: var(--text-secondary) !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .pot-controls .control-btn.positive:hover,
  .pot-controls .control-btn.positive:active,
  .pot-controls .control-btn.positive:focus,
  .pot-controls .control-btn.positive:focus-visible {
    color: rgba(16, 185, 129, 0.75) !important;
  }

  .pot-controls .control-btn.negative:hover,
  .pot-controls .control-btn.negative:active,
  .pot-controls .control-btn.negative:focus,
  .pot-controls .control-btn.negative:focus-visible {
    color: #ff4444 !important;
  }
}

.slider-wrapper {
  width: 100%;
  padding: 0;
}

.slider-label {
  font-size: 2.2rem;
  font-weight: 600;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  text-shadow: 0 0 8px var(--silver-shadow);
  text-align: center;
}

.slider-label .slider-value {
  font-weight: 700;
  font-size: 2.4rem;
  color: #f6d34b;
  background: none;
  -webkit-text-fill-color: #f6d34b;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.pot-slider-wrapper {
  padding-top: 24px;
}

.pot-value-button {
  cursor: pointer;
  border-radius: 8px;
  padding: 2px 6px;
  transition: all 0.2s ease;
}

.pot-value-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
}

.pot-value-button:hover {
  background: rgba(16, 185, 129, 0.12);
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.6) 0%,
    rgba(16, 185, 129, 0.6) var(--slider-fill, 0%),
    rgba(4, 50, 38, 0.85) var(--slider-fill, 0%),
    rgba(4, 50, 38, 0.85) 100%
  );
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 8px 0;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.6) 0%,
    rgba(16, 185, 129, 0.6) var(--slider-fill, 0%),
    rgba(4, 50, 38, 0.85) var(--slider-fill, 0%),
    rgba(4, 50, 38, 0.85) 100%
  );
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    rgba(16, 185, 129, 0.6) 0%,
    rgba(16, 185, 129, 0.6) var(--slider-fill, 0%),
    rgba(4, 50, 38, 0.85) var(--slider-fill, 0%),
    rgba(4, 50, 38, 0.85) 100%
  );
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--silver-gradient);
  cursor: pointer;
  box-shadow: 0 0 12px var(--silver-shadow);
  transition: all 0.2s ease;
  margin-top: -12px;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: linear-gradient(135deg, #E8E8E8 0%, #F0F0F0 50%, #E8E8E8 100%);
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--silver-gradient);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 12px var(--silver-shadow);
  margin-top: -12px;
}

.control-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.control-btn {
  background: var(--silver-gradient);
  color: #1a1a1a;
  border: none;
  padding: 8.64px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px var(--silver-shadow);
  white-space: nowrap;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}

/* Negative buttons - Red */
.control-btn.negative {
  color: #ff4444;
  text-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
  box-shadow: 0 3px 8px rgba(255, 68, 68, 0.4);
}

.control-btn.negative:hover {
  box-shadow: 0 5px 12px rgba(255, 68, 68, 0.6);
}

/* Positive buttons - Vibrant Green (matching red brightness) */
.control-btn.positive {
  color: var(--primary-green);
  text-shadow: 0 0 8px rgba(6, 95, 70, 0.6);
  box-shadow: 0 3px 8px rgba(6, 95, 70, 0.4);
}

.control-btn.positive:hover {
  box-shadow: 0 5px 12px rgba(6, 95, 70, 0.6);
}

/* Pot buttons - match two rows of four */
.pot-controls .pot-btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: 25%;
}

.control-btn:hover {
  background: linear-gradient(135deg, #E8E8E8 0%, #F0F0F0 50%, #E8E8E8 100%);
  box-shadow: 0 5px 12px var(--silver-shadow);
}

.results-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.result-card {
  --result-scale: 1;
  flex: 1 1 calc((100% - 20px) / 3);
  padding: calc(12px * var(--result-scale));
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, flex-basis 0.2s ease;
}

.result-card h2 {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: inherit;
  background-clip: border-box;
  margin-bottom: 8px;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.6rem);
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.result-card p {
  margin: 6px 0;
  display: flex;
  justify-content: space-between;
  font-size: calc(0.85rem * var(--result-scale));
}

.result-value {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: inherit;
  background-clip: border-box;
  font-weight: 700;
  font-size: calc(1.105rem * var(--result-scale));
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

#flopCall,
#turnCall,
#totalCall,
#flopBet,
#turnBet,
#totalBet {
  background: none;
  -webkit-text-fill-color: inherit;
  text-shadow: none;
}

.results-container.is-expanded .result-card.is-expanded {
  --result-scale: 3;
  flex: 1 0 100%;
  order: 0;
}

.results-container.is-expanded .result-card:not(.is-expanded) {
  order: 1;
}

/* Max Call/Bet - amount and percent styling */
.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.odds-row {
  display: block !important;
  text-align: center;
  font-size: calc(0.85rem * var(--result-scale) * 1.25);
}

.odds-row .result-label,
.odds-row .result-value {
  display: inline;
}

.odds-row .result-label {
  margin-right: 0.35em;
  text-shadow: none;
}

.odds-row .result-value {
  font-weight: 700;
  color: inherit;
  text-shadow: none !important;
}

.result-label {
  font-weight: 700;
}

.result-card .result-label,
.result-card .result-amount,
.result-card .result-percent {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.result-amount {
  font-size: 1.603125em;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.result-percent {
  font-size: 1em;
  font-weight: 700;
}

body:not(.show-pop) .result-percent {
  display: none;
}

.call-amount,
.call-percent {
  color: #f6d34b;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.call-row .result-label {
  color: #f6d34b;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  font-size: 1.25em;
}

.bet-amount,
.bet-percent {
  color: #63b3ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.bet-row .result-label {
  color: #63b3ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  font-size: 1.25em;
}

.call-row,
.bet-row {
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.bet-row {
  margin-top: 14px;
}

.call-row .result-label,
.bet-row .result-label,
.call-row .result-value,
.bet-row .result-value {
  line-height: 1;
}

.draws-container {
  padding: 10px 15px;
  margin: 0 0 15px 0;
  text-align: center;
}

.draws-container h2 {
  color: var(--accent-green);
  font-size: 1.1rem;
  margin: 0;
}

.draws-container h2 span {
  color: var(--text-secondary);
}

.draws-container .draws-label {
  color: var(--accent-green);
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}

.draws-container .draws-value {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 1.05rem;
}

.info-section {
  padding: 15px;
  margin: 0 0 15px 0;
}

.quick-guide {
  position: relative;
}

.tutorial-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.6);
  background: rgba(30, 20, 5, 0.35);
  color: var(--tutorial-orange);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.tutorial-toggle:hover {
  color: #ffd27a;
  border-color: rgba(255, 210, 122, 0.8);
  background: rgba(40, 25, 6, 0.55);
}

.tutorial-text {
  display: none;
  margin: 30px 0 4px 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(20, 15, 8, 0.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--tutorial-orange);
  font-size: 1.26rem;
  font-weight: 700;
  text-align: justify;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.tutorial-dismiss {
  display: block;
  width: 100%;
  margin: 0 0 6px 0;
  padding: 0;
  text-align: left;
  background: transparent;
  border: none;
  color: rgba(245, 158, 11, 0.5);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-shadow: inherit;
}

.tutorial-dismiss:hover {
  color: rgba(255, 210, 122, 0.75);
}

.tutorial-heading {
  margin: 0 0 6px 0;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
}

body.tutorial-mode .tutorial-text {
  display: block;
}

.tutorial-text-pot {
  margin-top: 0;
}

.info-section h2 {
  color: var(--accent-green);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.info-section p {
  margin: 6px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  font-family: 'Courier New', monospace;
  margin-top: 15px;
}

.shortcut-group {
  order: 0;
}

.mode-shortcuts,
.manual-entry-shortcuts {
  grid-column: 1 / -1;
}

.mode-shortcuts {
  order: 2;
}

.manual-entry-shortcuts {
  order: 3;
}

.shortcut-group h3 {
  color: var(--accent-green);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.shortcut-list {
  margin: 6px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.shortcut-key {
  font-weight: 700;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

.pot-entry-modal {
  max-width: 360px;
}

.pot-entry-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.pot-entry-actions .btn {
  flex: 1;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.close:hover {
  color: var(--accent-green);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(6, 78, 59, 0.3);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(6, 78, 59, 0.3);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group select:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hidden {
  display: none !important;
}

.profile-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 20px 60px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.profile-summary {
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: grid;
  place-items: center;
}

.profile-avatar-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(16, 185, 129, 0.5);
}

.profile-avatar-core {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
}

.profile-meta h1 {
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  margin: 4px 0 6px;
}

.profile-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: rgba(167, 243, 208, 0.7);
  font-weight: 700;
}

.profile-email {
  color: var(--text-secondary);
  font-weight: 600;
}

.profile-meta-row {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  color: rgba(209, 250, 229, 0.7);
  font-size: 0.85rem;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.profile-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-card h2 {
  color: var(--accent-green);
  font-size: 1.1rem;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(6, 95, 70, 0.18);
}

.toggle-title {
  font-weight: 700;
}

.toggle-subtitle {
  color: rgba(209, 250, 229, 0.7);
  font-size: 0.85rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.switch .slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #f7f7f7;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.switch input:checked + .slider {
  background: rgba(16, 185, 129, 0.75);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
  background: #04110c;
}

.profile-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.plan-label {
  color: rgba(209, 250, 229, 0.7);
  font-size: 0.85rem;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.plan-price {
  font-weight: 800;
  color: #f6d34b;
}

.plan-price-strike {
  text-decoration: line-through;
  opacity: 0.6;
  margin-right: 8px;
}

.plan-price-free {
  color: #34d399;
}

.profile-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cancel-button {
  margin-top: 4px;
  background: linear-gradient(135deg, #fb7185, #be123c);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(251, 113, 133, 0.35);
}

.cancel-button:hover {
  background: linear-gradient(135deg, #fda4af, #be123c);
}

.profile-muted {
  color: rgba(209, 250, 229, 0.7);
  font-size: 0.9rem;
}

.danger-zone {
  border-top: 1px solid rgba(239, 68, 68, 0.3);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.danger-title {
  color: #fb7185;
  font-weight: 700;
}

.danger-outline {
  border: 1px solid rgba(251, 113, 133, 0.6);
}

@media (max-width: 768px) {
  .landing-page {
    padding: 90px 20px 40px;
  }
  
  .hero {
    padding: 60px 20px;
  }
  
  .calculator-app {
    padding: 10px 5px 10px;
  }
  
  .app-header {
    margin-bottom: 10px;
  }
  
  .app-header p {
    font-size: 0.8rem;
  }
  
  .selectors-container {
    gap: 10px;
    margin-bottom: 0;
  }
  
  .slider-container {
    padding: 0 8px 10px 8px;
  }

  .slider-mode-meter {
    gap: 4px;
    padding: 3px 6px;
  }

  .slider-mode-meter .mode-bar {
    width: 10px;
    height: 5px;
  }

  .slider-mode-toggle {
    top: 6px;
    right: 6px;
    padding: 5px 6px;
  }

  .slider-mode-toggle .mode-label,
  .slider-mode-toggle .mode-value {
    font-size: 0.6rem;
  }

  .slider-reset-btn {
    top: 6px;
    left: 6px;
    padding: 5px 8px;
    font-size: 0.65rem;
  }

  .slider-wrapper {
    padding: 0;
  }
  
  .slider-label {
    font-size: 2rem;
    margin-bottom: 5px;
    text-align: center;
  }
  
  .slider-label .slider-value {
    font-size: 2.2rem;
  }

  .pot-slider-wrapper {
    padding-top: 18px;
  }

  input[type="range"] {
    height: 5px;
    margin: 6px 0;
  }
  
  input[type="range"]::-webkit-slider-thumb {
    width: 27px;
    height: 27px;
  }
  
  input[type="range"]::-moz-range-thumb {
    width: 27px;
    height: 27px;
  }
  
  .control-btn {
    padding: 5.76px 8px;
    font-size: 0.7rem;
  }
  
  /* Pot buttons - match two rows of four on mobile */
  .pot-controls .pot-btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 25%;
    font-size: 1rem;
  }
  
  .results-container {
    gap: 5px;
    margin: 0 0 18px 0;
  }
  
  .result-card {
    padding: calc(8px * var(--result-scale)) calc(5px * var(--result-scale));
  }
  
  .result-card h2 {
    font-size: calc(1.35rem * var(--result-scale));
    margin-bottom: 5px;
  }
  
  .result-card p {
    font-size: calc(0.75rem * var(--result-scale));
    margin: 4px 0;
  }
  
  .result-value {
    font-size: calc(0.975rem * var(--result-scale));
  }

  
  .draws-container {
    padding: 8px 10px;
    margin: 0 0 10px 0;
  }
  
  .draws-container h2 {
    font-size: 0.95rem;
  }
  
  .info-section {
    padding: 10px 8px;
    margin: 0 0 10px 0;
  }

  .tutorial-toggle {
    top: 8px;
    right: 8px;
    padding: 5px 8px;
    font-size: 0.65rem;
  }

  .tutorial-text {
    font-size: 1.14rem;
  }
  
  .info-section h2 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  
  .info-section p {
    font-size: 0.75rem;
    margin: 4px 0;
  }
  
  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
    font-size: 0.7rem;
  }
  
  .nav-buttons {
    gap: 10px;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 600px) {
  .result-card h2 {
    font-size: calc(clamp(1.2rem, 1rem + 0.6vw, 1.6rem) * 1.7);
  }
}

@media (max-width: 400px) {
  body.landing .landingShell .topbarInner {
    transform: scale(0.9);
    transform-origin: top center;
  }

  .glass-nav .nav-container {
    transform: scale(0.9);
    transform-origin: center;
  }
}


/* === Landing page (index.html) === */
body.landing {
  --bg0: #04110c;
  --bg1: #071a12;
  --emerald: #22c55e;
  --emerald2: #10b981;
  --felt-green: #009245;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(255, 255, 255, 0.6);
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
  --r: 18px;
  --r2: 26px;
  --max: 80vw;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: radial-gradient(
      1000px 650px at 18% 12%,
      rgba(34, 197, 94, 0.18),
      transparent 58%
    ),
    radial-gradient(
      900px 600px at 86% 20%,
      rgba(16, 185, 129, 0.14),
      transparent 60%
    ),
    radial-gradient(
      1000px 800px at 50% 98%,
      rgba(34, 197, 94, 0.08),
      transparent 60%
    ),
    linear-gradient(160deg, var(--bg0), var(--bg1));
  overflow-x: hidden;
  min-height: 100%;
}

body.landing .landingShell {
  width: 100%;
}

body.landing .landingShell * {
  box-sizing: border-box;
}

body.landing .landingShell a {
  color: inherit;
  text-decoration: none;
}

body.landing .landingShell button {
  font: inherit;
}

body.landing .landingShell .wrap {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 96px clamp(14px, 3vw, 36px) 70px;
}

body.landing .landingShell .topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(
    180deg,
    rgba(4, 17, 12, 0.72),
    rgba(4, 17, 12, 0.1)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.landing .landingShell .topbarInner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.landing .landingShell .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: clamp(24px, 3.6vw, 32px);
  cursor: pointer;
}

body.landing .landingShell .logo {
  width: clamp(28px, 4vw, 42px);
  height: clamp(28px, 4vw, 42px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 26px rgba(34, 197, 94, 0.2);
  flex: 0 0 auto;
}

body.landing .landingShell .brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.landing .landingShell .btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
  user-select: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body.landing .landingShell .btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.26);
}

body.landing .landingShell .btn.primary {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #0f7a4b, #0b5f3c);
  box-shadow: 0 18px 55px rgba(15, 122, 75, 0.3);
}

body.landing .landingShell .btn.headerCta {
  padding: 6px 10px;
  font-size: 12px;
}

body.landing .landingShell .hero {
  margin-top: 14px;
  border-radius: var(--r2);
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(0, 0, 0, 0.22)
  );
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 18px;
  position: relative;
  margin-bottom: clamp(36px, 10vh, 140px);
  text-align: left;
}

body.landing .landingShell .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      600px 240px at 10% 12%,
      rgba(34, 197, 94, 0.14),
      transparent 60%
    ),
    radial-gradient(
      500px 260px at 85% 10%,
      rgba(16, 185, 129, 0.12),
      transparent 62%
    );
  opacity: 0.7;
  pointer-events: none;
}

body.landing .landingShell .hero > * {
  position: relative;
  z-index: 1;
}

body.landing .landingShell h1 {
  margin: 12px 0 10px;
  font-size: clamp(22.5px, 5.82vw, 58.1px);
  line-height: 1.1;
  letter-spacing: -0.6px;
  padding-bottom: 0.08em;
  margin-left: 14px;
  color: #0f7a4b;
  opacity: 1;
}

body.landing .landingShell .sub {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.55;
  max-width: 68ch;
}

body.landing .landingShell .hero > .sub {
  margin-left: 14px;
}


body.landing .landingShell .heroGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 24px;
  position: relative;
  z-index: 1;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(14px, 1.6vw, 18px);
}

body.landing .landingShell .heroCard {
  border-radius: 0;
}

body.landing .landingShell .heroGrid .heroCard:first-child {
  width: 100%;
  margin: 0 auto;
  font-size: 1.3em;
}


body.landing .landingShell .heroLead {
  margin: 0;
  max-width: none;
}

body.landing .landingShell .heroNotes {
  margin: 10px 0 0;
  max-width: none;
}

body.landing .landingShell .heroQuestion {
  text-align: center;
}

body.landing .landingShell .hero .heroCard h2 {
  font-size: clamp(22px, 4vw, 36px);
}

body.landing .landingShell .hero .heroCard .sub {
  font-size: clamp(16px, 2.2vw, 20px);
}

body.landing .landingShell .heroCard {
  border-radius: var(--r2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  backdrop-filter: blur(6px);
}

body.landing .landingShell .ctaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

body.landing .landingShell .ctaRow.center {
  justify-content: center;
}

body.landing .landingShell .ctaRow.spaced {
  margin-top: 12px;
}

body.landing .landingShell .mt10 {
  margin-top: 10px;
}

body.landing .landingShell .sections {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  padding: 6px 0 10px;
}

body.landing .landingShell .row {
  display: flex;
  justify-content: flex-start;
  position: relative;
  padding: 6px 0;
  --slideX: -180px;
}

body.landing .landingShell .row::before {
  content: "";
  position: absolute;
  left: 50%;
  width: min(900px, 92%);
  top: 50%;
  height: calc(100% - 8px);
  transform: translate(-50%, -50%);
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.08),
    rgba(16, 185, 129, 0.02)
  );
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.8;
  pointer-events: none;
}

body.landing .landingShell .row.right {
  justify-content: flex-end;
  --slideX: 180px;
}

body.landing .landingShell .row.right::before {
  background: linear-gradient(
    270deg,
    rgba(34, 197, 94, 0.08),
    rgba(16, 185, 129, 0.02)
  );
}

body.landing .landingShell .card {
  width: min(720px, 100%);
  border-radius: var(--r2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  box-shadow: 0 14px 55px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate3d(var(--slideX), 20px, 0);
  transition: opacity 0.7s ease, transform 0.7s ease,
    filter 0.7s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  filter: blur(8px);
}

body.landing .landingShell .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--emerald2));
  opacity: 0.55;
}

body.landing .landingShell .card::after {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: radial-gradient(
    260px 160px at 15% 10%,
    rgba(34, 197, 94, 0.1),
    transparent 70%
  );
  opacity: 0.6;
  pointer-events: none;
}

body.landing .landingShell .card.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

body.landing .landingShell .deferReveal {
  opacity: 0;
  transform: translate3d(var(--slideX), 20px, 0);
  filter: blur(8px);
}

body.landing.scrolled .landingShell .deferReveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

body.landing .landingShell .card h2 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0.2px;
}

body.landing .landingShell .card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

body.landing .landingShell .bullets {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

body.landing .landingShell .bullets li {
  margin: 6px 0;
}

body.landing .landingShell .leadIn {
  margin: 6px auto 0;
  max-width: 60ch;
  text-align: center;
  font-size: 13px;
  color: var(--muted2);
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.landing .landingShell .leadIn.visible {
  opacity: 1;
  transform: translateY(0);
}

body.landing .landingShell .downHint {
  margin-top: 16px;
  text-align: center;
  color: var(--muted2);
  font-size: 13px;
  letter-spacing: 0.2px;
}

body.landing .landingShell .downHint .arrow {
  display: inline-block;
  margin-top: 6px;
  font-size: 18px;
  animation: arrowBounce 1.6s ease-in-out infinite;
}

body.landing .landingShell .heroLogo {
  margin-top: 0;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

body.landing .landingShell .heroLogo img {
  width: min(420px, 70%);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  opacity: 0.95;
}

body.landing .landingShell .siteFooter {
  margin-top: 28px;
  text-align: right;
  color: var(--muted2);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.btnFull {
  width: 100%;
}

.authHint {
  text-align: center;
  margin-top: 20px;
}

.authHint a {
  color: var(--accent-green);
}

@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
  .profile-shell {
    padding: 96px 16px 40px;
  }

  .profile-summary {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .profile-actions {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 980px) {
  body.landing {
    --max: 100%;
  }

  body.landing .landingShell .heroGrid {
    grid-template-columns: 1fr;
  }

  body.landing .landingShell .pcShift {
    position: relative;
    left: 8px;
  }

  body.landing .landingShell .row,
  body.landing .landingShell .row.right {
    justify-content: center;
  }
}

@media (min-width: 981px) {
  body.landing .landingShell .heroGrid {
    width: 98%;
    margin-left: auto;
    margin-right: auto;
  }

  body.landing .landingShell .pcShift {
    position: relative;
    left: 15px;
  }

  body.landing .landingShell #sections .row:first-of-type {
    margin-top: 28vh;
  }
}

@media (max-width: 420px) {
  body.landing .landingShell .wrap {
    padding: 80px 12px 64px;
  }

  body.landing .landingShell .hero {
    padding: 16px;
  }

  body.landing .landingShell h1 {
    letter-spacing: -0.4px;
  }

  body.landing .landingShell .btn {
    padding: 10px 12px;
  }

  body.landing .landingShell .card {
    padding: 14px;
  }

  body.landing .landingShell .pcShift {
    left: 0;
  }
}
