/* ============================================
   Geometria Narrow Font Face Declarations
   ============================================ */

@font-face {
  font-family: 'Geometria Narrow';
  src: url('assets/font-geometria/geometrianarrow-thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geometria Narrow';
  src: url('assets/font-geometria/geometrianarrow-extralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geometria Narrow';
  src: url('assets/font-geometria/geometrianarrow-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geometria Narrow';
  src: url('assets/font-geometria/geometrianarrow-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geometria Narrow';
  src: url('assets/font-geometria/geometrianarrow-medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geometria Narrow';
  src: url('assets/font-geometria/geometrianarrow-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geometria Narrow';
  src: url('assets/font-geometria/geometrianarrow-extrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geometria Narrow';
  src: url('assets/font-geometria/geometrianarrow-heavy.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   CSS Custom Properties
   ============================================ */

:root {
  --color-black: #0D0D0D;
  --color-white: #FFFFFF;
  /* WCAG AA compliant grays (4.5:1 minimum contrast ratio on white) */
  --color-gray-body: #545454;           /* 7.0:1 contrast - body text */
  --color-gray-placeholder: #767676;    /* 4.5:1 contrast - placeholder text */
  --color-gray-label-muted: #6B6B6B;    /* 5.5:1 contrast - muted labels */
  --color-gray-divider: #E0E0E0;        /* decorative only */
  --color-gray-border: #E8E8E8;         /* decorative only */
  --color-gray-input-bg: #FAFAFA;       /* background only */
  --color-gray-ascii: #767676;          /* 4.5:1 contrast - decorative text */
  --color-gray-disclaimer: #545454;     /* 7.0:1 contrast - disclaimer text */

  --color-lmt-red: #C8102E;             /* 5.9:1 contrast on white */
  --color-lmt-red-shadow: #c8102e33;
  --color-lmt-dark-red: #9D2235;        /* 7.6:1 contrast on white */
  --color-lmt-orange: #B83600;          /* 5.4:1 contrast - adjusted for AA */
  --color-lmt-light-orange: #B84000;    /* 5.1:1 contrast - adjusted for AA */

  --font-family: 'Geometria Narrow', 'Inter', Arial, Helvetica, sans-serif;

  /* Spacing scale */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;

  /* Container max width */
  --container-max: 600px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background: var(--color-white);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ============================================
   Accessibility - Skip Link
   ============================================ */

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 24px;
  background: var(--color-lmt-red);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-black);
  outline-offset: 2px;
}

/* ============================================
   Accessibility - Visually Hidden
   ============================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Accessibility - Focus Styles
   ============================================ */

/* Remove default outline and add custom focus for all focusable elements */
:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--color-lmt-red);
  outline-offset: 2px;
}

/* Better focus for buttons */
button:focus-visible,
.cta-button:focus-visible,
.game-btn:focus-visible {
  outline: 3px solid var(--color-black);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(200, 16, 46, 0.25);
}

/* Focus for links */
a:focus-visible {
  outline: 3px solid var(--color-lmt-red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Focus for form inputs */
.form-field__input:focus-visible {
  outline: 3px solid var(--color-lmt-red);
  outline-offset: -1px;
  border-color: var(--color-lmt-red);
}

/* High contrast focus for email card */
.email-card--active:focus-visible {
  outline: 3px solid var(--color-lmt-red);
  outline-offset: 4px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   App Container (Responsive)
   ============================================ */

.app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-white);
}

/* ============================================
   Screen System (SPA)
   ============================================ */

.screen {
  position: absolute;
  inset: 0;
  background: var(--color-white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.screen--active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   Landing Screen - Header
   ============================================ */

.landing-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  padding-bottom: 0;
}

/* Logo */
.logo {
  width: 70px;
  height: auto;
}

.logo svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Headline */
.headline {
  font-family: var(--font-family);
  font-size: clamp(28px, 8vw, 34px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--color-black);
  margin-top: var(--spacing-md);
}

/* Subtitle */
.subtitle {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-gray-body);
  max-width: 320px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
  position: relative;
  width: 100%;
  margin-top: var(--spacing-md);
}

.hero-image-wrapper {
  width: 100%;
  aspect-ratio: 430 / 230;
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prize Badge */
.prize-badge {
  position: absolute;
  top: 16px;
  right: 12px;
  width: 100px;
  height: 96px;
}

.prize-badge__shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.prize-badge__shape img,
.prize-badge__shape svg {
  width: 100%;
  height: 100%;
}

.prize-badge__text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-white);
  text-align: center;
  line-height: 1.35;
}

/* ============================================
   Landing Content
   ============================================ */

.landing-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
}

.subtitle--secondary {
  max-width: 100%;
}

/* ============================================
   Form Section
   ============================================ */

.form-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  border-top: 1px dashed var(--color-gray-divider);
  padding-top: var(--spacing-md);
}

.form-section__label {
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-gray-label-muted);
  user-select: none;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field__label {
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-black);
}

.form-field__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-gray-border);
  border-radius: 8px;
  background: var(--color-gray-input-bg);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-black);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field__input::placeholder {
  color: var(--color-gray-placeholder);
  font-weight: 300;
}

.form-field__input:focus {
  border-color: var(--color-lmt-red);
}

.form-field__input--error {
  border-color: var(--color-lmt-red);
  background: #fff5f5;
}

/* ============================================
   CTA Button
   ============================================ */

.cta-button {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-lmt-red);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px var(--color-lmt-red-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-top: var(--spacing-xs);
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -4px var(--color-lmt-red-shadow);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button__text {
  font-family: var(--font-family);
  font-size: 17px;
  font-weight: 500;
  color: var(--color-white);
}

/* ============================================
   Disclaimer
   ============================================ */

.disclaimer {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-gray-body);
  text-align: center;
  margin-top: var(--spacing-xs);
}

.disclaimer a {
  color: var(--color-lmt-red);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.disclaimer a:hover {
  color: var(--color-lmt-dark-red);
}

/* ============================================
   Game Screen
   ============================================ */

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--spacing-md) 12px;
}

.game-header__logo {
  width: 100px;
  height: auto;
}

.game-header__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.game-header__progress {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-body);
  letter-spacing: 1px;
}

.game-progress-bar {
  margin: 0 var(--spacing-md) var(--spacing-sm);
  height: 3px;
  background: var(--color-gray-border);
  border-radius: 2px;
  overflow: hidden;
}

.game-progress-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--color-lmt-red);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.game-label {
  margin: 0 var(--spacing-md) var(--spacing-xs);
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-gray-label-muted);
  user-select: none;
}

.game-instruction {
  margin: 0 var(--spacing-md) 20px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-gray-body);
  line-height: 1.4;
}

/* ============================================
   Card Stack
   ============================================ */

.card-stack {
  position: relative;
  margin: 0 var(--spacing-md);
  min-height: 300px;
  height: calc(100vh - 340px);
  height: calc(100dvh - 340px);
  max-height: 500px;
}

.email-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 250px;
  max-height: 100%;
  overflow-y: auto;
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: 12px;
  user-select: none;
  -webkit-user-select: none;
}

.email-card--active {
  z-index: 2;
  cursor: grab;
}

.email-card--active:active {
  cursor: grabbing;
}

.email-card--next {
  z-index: 1;
  transform: scale(0.95) translateY(8px);
  opacity: 0.6;
}

/* ============================================
   Email Card Content
   ============================================ */

.email-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--color-gray-border);
  background: var(--color-gray-input-bg);
}

.email-header__row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  font-family: var(--font-family);
  font-size: 12px;
  line-height: 1.4;
}

.email-header__label {
  font-weight: 500;
  color: var(--color-gray-body);
  white-space: nowrap;
  min-width: 50px;
}

.email-header__value {
  font-weight: 300;
  color: var(--color-black);
  word-break: break-all;
}

.email-header__value--subject {
  font-weight: 700;
}

.email-body {
  padding: 16px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-black);
}

.email-attachment {
  margin: 0 16px 12px;
  padding: 10px 14px;
  background: var(--color-gray-input-bg);
  border: 1px solid var(--color-gray-border);
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-gray-body);
}

.email-action-btn {
  margin: 0 16px 12px;
  padding: 10px 20px;
  background: #0B5CFF;
  color: var(--color-white);
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  pointer-events: none;
}

.email-qr {
  display: flex;
  justify-content: center;
  padding: 0 16px 16px;
}

.email-qr__placeholder {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-gray-border);
  border-radius: 4px;
  font-family: var(--font-family);
  font-size: 20px;
  color: var(--color-gray-body);
  letter-spacing: 2px;
}

/* ============================================
   Swipe Overlays
   ============================================ */

.swipe-overlay {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.05s ease;
}

.swipe-overlay--left {
  left: 12px;
  background: rgba(200, 16, 46, 0.12);
  color: var(--color-lmt-red);
  border: 2px solid var(--color-lmt-red);
}

.swipe-overlay--right {
  right: 12px;
  background: rgba(21, 120, 21, 0.12);
  color: #157815;               /* 5.0:1 contrast on white - WCAG AA */
  border: 2px solid #157815;
}

/* ============================================
   Game Buttons
   ============================================ */

.game-buttons {
  display: flex;
  gap: 12px;
  padding: 20px var(--spacing-md) var(--spacing-md);
}

.game-btn {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  background: var(--color-white);
}

.game-btn__icon {
  font-size: 16px;
  font-weight: 700;
}

.game-btn--phishing {
  border: 2px solid var(--color-lmt-red);
  color: var(--color-lmt-red);
}

.game-btn--phishing:hover {
  background: rgba(200, 16, 46, 0.06);
}

.game-btn--phishing:active {
  background: rgba(200, 16, 46, 0.12);
  transform: scale(0.97);
}

.game-btn--safe {
  border: 2px solid #157815;    /* WCAG AA compliant green */
  color: #157815;
}

.game-btn--safe:hover {
  background: rgba(21, 120, 21, 0.06);
}

.game-btn--safe:active {
  background: rgba(21, 120, 21, 0.12);
  transform: scale(0.97);
}

.game-btn--restart {
  flex: 0 0 auto;
  width: 100%;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  border: 2px solid var(--color-lmt-red);
  color: var(--color-lmt-red);
  background: var(--color-white);
  border-radius: 10px;
  font-size: 17px;
  font-weight: 500;
  margin-top: var(--spacing-sm);
}

.game-btn--restart:hover {
  background: rgba(200, 16, 46, 0.06);
}

.game-btn--restart:active {
  background: rgba(200, 16, 46, 0.12);
  transform: scale(0.98);
}

/* ============================================
   Results Screen
   ============================================ */

.results-label {
  padding: var(--spacing-md) var(--spacing-md) 12px;
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-gray-label-muted);
  user-select: none;
}

.results-score-wrapper {
  padding: 0 var(--spacing-md) var(--spacing-md);
  text-align: center;
}

.results-score {
  font-family: var(--font-family);
  font-size: clamp(48px, 15vw, 64px);
  font-weight: 800;
  color: var(--color-black);
  line-height: 1;
  letter-spacing: -2px;
}

.results-message {
  margin-top: 12px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-gray-body);
  line-height: 1.45;
}

.results-list {
  padding: 0 var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.result-item {
  border: 1px solid var(--color-gray-border);
  border-radius: 10px;
  padding: var(--spacing-sm);
  background: var(--color-white);
}

.result-item--correct {
  border-left: 4px solid #157815;  /* WCAG AA compliant green */
}

.result-item--wrong {
  border-left: 4px solid var(--color-lmt-red);
}

.result-item__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.result-item__icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.result-item--correct .result-item__icon {
  background: rgba(21, 120, 21, 0.12);
  color: #157815;              /* WCAG AA compliant green */
}

.result-item--wrong .result-item__icon {
  background: rgba(200, 16, 46, 0.12);
  color: var(--color-lmt-red);
}

.result-item__meta {
  flex: 1;
  min-width: 0;
}

.result-item__subject {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.3;
}

.result-item__from {
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 300;
  color: var(--color-gray-body);
  margin-top: 2px;
  word-break: break-all;
}

.result-item__verdict {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-family);
  font-size: 11px;
  color: var(--color-gray-body);
}

.result-item__flags {
  margin-bottom: 10px;
  font-family: var(--font-family);
  font-size: 12px;
  color: var(--color-black);
  line-height: 1.5;
}

.result-item__flags strong {
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.result-item__flags ul {
  margin: 0;
  padding-left: 18px;
}

.result-item__flags li {
  margin-bottom: 2px;
  color: var(--color-lmt-red);
  font-weight: 400;
}

.result-item__explanation {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 300;
  color: var(--color-gray-body);
  line-height: 1.5;
  padding-top: 10px;
  border-top: 1px solid var(--color-gray-border);
}

.results-footer {
  padding: var(--spacing-md);
}

.cta-button--results {
  position: static;
  width: 100%;
  max-width: 100%;
}

/* ============================================
   CTA Screen
   ============================================ */

.cta-screen {
  position: relative;
  min-height: 100%;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cta-screen__logo {
  width: 70px;  /* Match landing screen logo size */
  margin-bottom: var(--spacing-md);
}

.cta-screen__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.cta-screen__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.cta-screen__headline {
  font-family: var(--font-family);
  font-size: clamp(24px, 7vw, 28px);
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.cta-screen__text {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-gray-body);
  line-height: 1.5;
}

.cta-button--contact,
.cta-button--phone {
  position: static;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
}

.cta-button--phone {
  background: var(--color-white);
  border: 2px solid var(--color-lmt-red);
}

.cta-button--phone .cta-button__text {
  color: var(--color-lmt-red);
}

/* ============================================
   Tablet & Desktop Breakpoints
   ============================================ */

@media (min-width: 480px) {
  .landing-header {
    padding: var(--spacing-lg);
    padding-bottom: 0;
  }

  .landing-content {
    padding: var(--spacing-lg);
  }

  .prize-badge {
    width: 118px;
    height: 114px;
    right: 16px;
  }

  .prize-badge__text {
    font-size: 11px;
  }

  .swipe-overlay {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  body {
    background: #F4F4F4;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: var(--spacing-lg);
  }

  .app {
    max-width: var(--container-max);
    min-height: auto;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: visible;
  }

  .screen {
    position: relative;
    inset: auto;
    min-height: auto;
    height: auto;
  }

  .screen:not(.screen--active) {
    display: none;
  }

  .landing-header {
    padding: var(--spacing-xl);
    padding-bottom: 0;
  }

  .landing-content {
    padding: var(--spacing-xl);
  }

  .headline {
    margin-top: var(--spacing-lg);
  }

  .subtitle {
    font-size: 16px;
    max-width: 400px;
  }

  .form-section {
    padding-top: var(--spacing-lg);
  }

  .cta-button {
    height: 56px;
  }

  .cta-button__text {
    font-size: 18px;
  }

  .game-header,
  .game-buttons {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }

  .game-progress-bar,
  .game-label,
  .game-instruction {
    margin-left: var(--spacing-lg);
    margin-right: var(--spacing-lg);
  }

  .card-stack {
    margin-left: var(--spacing-lg);
    margin-right: var(--spacing-lg);
    height: 440px;
    max-height: 440px;
  }

  .results-label,
  .results-score-wrapper,
  .results-list,
  .results-footer {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }

  .cta-screen {
    padding: var(--spacing-xl);
  }
}

/* ============================================
   Safe area insets for modern mobile devices
   ============================================ */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .landing-content {
    padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
  }

  .game-buttons {
    padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
  }

  .results-footer {
    padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
  }

  .cta-screen {
    padding-bottom: calc(var(--spacing-md) + env(safe-area-inset-bottom));
  }
}

/* ============================================
   ASCII Decorative Elements
   Terminal/cybersecurity aesthetic - subtle
   ============================================ */

/* Base ASCII decoration styles */
.ascii-deco {
  position: absolute;
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 300;
  line-height: 1.2;
  color: #EBEBEB;
  pointer-events: none;
  user-select: none;
  white-space: pre;
  z-index: 0;
}

/* Right edge vertical line - landing screen */
.ascii-deco--edge-right {
  top: 24px;
  right: 8px;
  font-size: 10px;
  line-height: 1.4;
  color: #E8E8E8;
  animation: ascii-pulse 4s ease-in-out infinite;
}

/* Dots decoration - game screen */
.ascii-deco--dots {
  top: 8px;
  right: 12px;
  font-size: 12px;
  letter-spacing: 4px;
  color: #E0E0E0;
  animation: ascii-pulse 3s ease-in-out infinite;
}

/* Top line decoration - results screen */
.ascii-deco--line-top {
  top: 8px;
  right: 12px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #E8E8E8;
}

/* CTA Screen - Playful ASCII decorations */

/* Top left dots pattern */
.ascii-deco--cta-tl {
  top: 110px;
  left: 20px;
  font-size: 24px;
  line-height: 1.4;
  color: #909090;
  animation: ascii-float 4s ease-in-out infinite;
}

/* Top right slashes */
.ascii-deco--cta-tr {
  top: 24px;
  right: 20px;
  font-size: 28px;
  line-height: 1.3;
  color: #909090;
  animation: ascii-float 4.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Bottom left backslashes */
.ascii-deco--cta-bl {
  bottom: 20px;
  left: 20px;
  font-size: 28px;
  line-height: 1.3;
  color: #909090;
  animation: ascii-float 5s ease-in-out infinite;
  animation-delay: 1s;
}

/* Bottom right dots pattern */
.ascii-deco--cta-br {
  bottom: 20px;
  right: 20px;
  font-size: 24px;
  line-height: 1.4;
  color: #909090;
  animation: ascii-float 4s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Left side dashes */
.ascii-deco--cta-side-left {
  top: 42%;
  left: 6px;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 2.5;
  color: #999999;
  animation: ascii-pulse 6s ease-in-out infinite;
}

/* Right side dashes */
.ascii-deco--cta-side-right {
  top: 58%;
  right: 6px;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 2.5;
  color: #999999;
  animation: ascii-pulse 6s ease-in-out infinite;
  animation-delay: 3s;
}

/* Center left plus signs */
.ascii-deco--cta-center-left {
  top: 22%;
  left: 24px;
  font-size: 22px;
  letter-spacing: 8px;
  color: #888888;
  animation: ascii-float 5s ease-in-out infinite;
  animation-delay: 0.8s;
}

/* Center right plus signs */
.ascii-deco--cta-center-right {
  bottom: 160px;
  right: 24px;
  font-size: 22px;
  letter-spacing: 8px;
  color: #888888;
  animation: ascii-float 5s ease-in-out infinite;
  animation-delay: 2s;
}

/* Mid top-left circles */
.ascii-deco--cta-mid-tl {
  top: 16%;
  left: 38%;
  font-size: 20px;
  letter-spacing: 10px;
  color: #999999;
  animation: ascii-float 4.5s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* Mid top-right circles */
.ascii-deco--cta-mid-tr {
  top: 6%;
  right: 32%;
  font-size: 20px;
  letter-spacing: 10px;
  color: #999999;
  animation: ascii-float 4s ease-in-out infinite;
  animation-delay: 2.5s;
}

/* ============================================
   ASCII Animations
   ============================================ */

@keyframes ascii-pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes ascii-float {
  0%, 100% {
    opacity: 0.5;
    transform: translateY(0);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-3px);
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .ascii-deco--edge-right,
  .ascii-deco--dots,
  .ascii-deco--cta-tl,
  .ascii-deco--cta-tr,
  .ascii-deco--cta-bl,
  .ascii-deco--cta-br,
  .ascii-deco--cta-side-left,
  .ascii-deco--cta-side-right,
  .ascii-deco--cta-center-left,
  .ascii-deco--cta-center-right,
  .ascii-deco--cta-mid-tl,
  .ascii-deco--cta-mid-tr {
    animation: none;
    opacity: 0.5;
  }
}
