@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* Scope all styles to the game only */
html, body.futoeo-game { 
  width: 100%; 
  height: 100%; 
  margin: 0;
  padding: 0;
}

body.futoeo-game { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
  background: #FAFAFA; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Minimal reset within the game */
body.futoeo-game * { box-sizing: border-box; cursor: crosshair !important; }

/* Buttons hover/active only inside the game */
body.futoeo-game button { transition: all 0.2s ease !important; }
body.futoeo-game button:hover { transform: translateY(-2px); filter: brightness(0.95); }
body.futoeo-game button:active { transform: translateY(0); }

/* Input focus styling */
body.futoeo-game #playerNameInput:focus { outline: none; border-color: #C3DABE !important; }

/* Level button hover styling */
body.futoeo-game .levelBtn:hover { background: #1a1a1a !important; color: #fff !important; }

/* === LAYOUT STYLES === */

/* Main Menu */
.futoeo-main-menu {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://futbolonetwork.org/wp-content/uploads/2026/01/fonas-puslapiams.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.futoeo-menu-content {
  text-align: center;
  max-width: 600px;
  width: 100%;
  padding: 40px;
}

.futoeo-menu-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #1a1a1a;
  letter-spacing: -1px;
}

.futoeo-game-headline {
  font-size: clamp(20px, 5.8vw, 64px);
  font-weight: 800;
  margin: 0;
  padding: 0 4px;
  color: #fff;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(74, 144, 226, 0.4);
  letter-spacing: -0.5px;
  animation: slideDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  line-height: 1.08;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.futoeo-game-emoji {
  font-size: clamp(28px, 6vw, 52px);
  margin: 8px 0 16px 0;
  text-align: center;
  animation: slideDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.futoeo-game-tagline {
  font-size: clamp(13px, 3.2vw, 22px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 20px 0;
  padding: 0 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.8s ease 0.2s both;
  line-height: 1.3;
}

.futoeo-game-cta {
  font-size: 18px;
  font-weight: 700;
  color: #4AB0E2;
  margin: 0 0 48px 0;
  padding: 0 20px;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease 0.4s both;
  text-transform: uppercase;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.futoeo-menu-subtitle {
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 48px;
  font-weight: 400;
}

.futoeo-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* Ensure main menu start button is centered within the stack */
#menuStartBtn {
  align-self: center;
}

/* Screen Overlays */
.futoeo-screen-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.4);
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Difficulty and Level Selection Screens with Background Image */
#difficultySelectScreen,
#levelSelectScreen {
  background-image: url('https://futbolonetwork.org/wp-content/uploads/2026/01/fonas-puslapiams.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.futoeo-screen-content {
  background: white;
  padding: 48px;
  border-radius: 0;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.futoeo-screen-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #1a1a1a;
}

/* Sunkumo mygtukų blokas */
.futoeo-difficulty-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 500px;
  align-items: stretch; /* Suvienodina visų mygtukų plotį */
}

/* Tamsūs sunkumo mygtukai */
.futoeo-difficulty-container .futoeo-difficulty-btn {
  background: #1a1a1a;
  color: white;
}

.futoeo-difficulty-container .futoeo-difficulty-btn:hover {
  background: #333;
  color: white;
}

/* Difficulty/Level Selection */
.futoeo-difficulty-grid,
.futoeo-level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.futoeo-difficulty-btn,
.futoeo-level-btn {
  padding: 32px 36px;
  font-size: 18px;
  cursor: pointer;
  background: white;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: 0;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
  min-width: 280px;
  width: 100%;
  max-width: 500px;
}

.futoeo-difficulty-btn:hover,
.futoeo-level-btn:hover {
  background: #f5f5f5;
}

.futoeo-level-header {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

/* Buttons */
.futoeo-btn-primary {
  width: 100%;
  max-width: 500px;
  padding: 18px 48px;
  font-size: 20px;
  cursor: pointer;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 0;
  font-weight: 700;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  align-self: center;
}

.futoeo-btn-secondary {
  width: 100%;
  padding: 16px 32px;
  font-size: 18px;
  cursor: pointer;
  background: white;
  color: #1a1a1a;
  border: 2px solid #e0e0e0;
  border-radius: 0;
  font-weight: 600;
  transition: all 0.2s;
  max-width: 500px;
}

.futoeo-btn-secondary-bordered {
  width: 100%;
  padding: 16px 32px;
  font-size: 18px;
  cursor: pointer;
  background: white;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: 0;
  font-weight: 600;
  transition: all 0.2s;
  max-width: 500px;
}

.futoeo-btn-back {
  width: 100%;
  padding: 16px 32px;
  font-size: 18px;
  cursor: pointer;
  background: white;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: 0;
  font-weight: 600;
  transition: all 0.2s;
  max-width: 500px;
}

/* Instructions */
.futoeo-instructions-list {
  text-align: left;
  max-width: 600px;
  margin: 0 auto 32px;
}

.futoeo-instructions-item {
  font-size: 16px;
  margin: 16px 0;
  color: #333;
  line-height: 1.6;
}

.futoeo-instructions-text {
  text-align: left;
  color: #4a4a4a;
  line-height: 1.8;
  font-size: 15px;
  max-width: 600px;
  width: 100%;
}

.futoeo-instructions-heading {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.futoeo-instructions-heading-mt {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  margin-top: 20px;
}

.futoeo-instructions-ul {
  margin-left: 20px;
  margin-bottom: 24px;
}

.futoeo-instructions-ul-plain {
  margin-left: 20px;
}

/* Game Container */
.futoeo-game-container {
  display: none;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border: 2px solid #e0e0e0;
  background: linear-gradient(135deg, #1a472a 0%, #2d5f3f 50%, #1a472a 100%);
  background-attachment: fixed;
  user-select: none;
  cursor: crosshair;
  border-radius: 0;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
}

/* Field Lines */
.futoeo-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  opacity: 0.4;
}

.futoeo-center-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 80px;
  border: 2px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
}

.futoeo-center-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
}

/* Penalty Areas */
.futoeo-penalty-area-left,
.futoeo-penalty-area-right {
  position: absolute;
  top: 50%;
  width: 100px;
  height: 200px;
  border: 2px solid white;
  transform: translateY(-50%);
  opacity: 0.3;
}

.futoeo-penalty-area-left {
  left: 0;
  border-left: none;
}

.futoeo-penalty-area-right {
  right: 0;
  border-right: none;
}

/* Goals */
.futoeo-goal-left,
.futoeo-goal-right {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid white;
  transform: translateY(-50%);
  z-index: 1;
}

.futoeo-goal-left {
  left: -30px;
  border-right: none;
}

.futoeo-goal-right {
  right: -30px;
  border-left: none;
}

/* Ball */
.futoeo-ball {
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  border: 2px solid #333;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.05s linear;
}

/* Score Panels */
.futoeo-score-panel {
  position: absolute;
  top: 20px;
  background: rgba(26, 26, 26, 0.8);
  color: white;
  padding: 16px 32px;
  font-size: 24px;
  font-weight: 700;
  border-radius: 0;
  z-index: 50;
}

.futoeo-score-left {
  left: 20px;
}

.futoeo-score-right {
  right: 20px;
}

/* Timer */
.futoeo-timer {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 26, 0.9);
  color: white;
  padding: 16px 32px;
  font-size: 28px;
  font-weight: 700;
  border-radius: 0;
  z-index: 51;
  letter-spacing: 2px;
}

/* Control Panel */
.futoeo-control-panel {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 52;
}

.futoeo-control-btn {
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  background: rgba(26, 26, 26, 0.9);
  color: white;
  border: none;
  border-radius: 0;
  font-weight: 600;
  transition: all 0.2s;
}

/* Level Info */
.futoeo-level-info {
  position: absolute;
  top: 80px;
  right: 20px;
  background: rgba(26, 26, 26, 0.8);
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 0;
  z-index: 50;
}

/* Pause Overlay */
.futoeo-pause-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.futoeo-pause-message {
  font-size: 48px;
  color: white;
  font-weight: 700;
  margin-bottom: 24px;
}

.futoeo-pause-buttons {
  display: flex;
  gap: 16px;
}

/* Results Screen */
.futoeo-results-content {
  text-align: center;
  min-width: 400px;
}

.futoeo-results-screen-content {
  background: white;
  padding: 48px;
  border-radius: 0;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.futoeo-results-list {
  margin-bottom: 20px;
}

.futoeo-results-empty {
  text-align: center;
  color: #999;
}

.futoeo-results-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.futoeo-results-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.futoeo-results-score {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.futoeo-results-stats {
  background: #f5f5f5;
  padding: 24px;
  border-radius: 0;
  margin-bottom: 24px;
}

.futoeo-results-stat {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 16px;
}

.futoeo-results-stat:last-child {
  border-bottom: none;
}

.futoeo-results-stat-label {
  color: #1a1a1a;
  font-weight: 600;
}

.futoeo-results-stat-value {
  color: #1a1a1a;
  font-weight: 700;
}

.futoeo-results-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Save Results */
.futoeo-save-content {
  text-align: center;
  max-width: 500px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.futoeo-form-group {
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
  max-width: 500px;
}

.futoeo-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #1a1a1a;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.futoeo-form-input {
  width: 100%;
  max-width: 500px;
  padding: 18px 48px;
  font-size: 20px;
  border: 2px solid #1a1a1a;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
  margin: 0 auto;
  display: block;
  transition: all 0.2s;
  background: #ffffff;
  color: #1a1a1a;
}

.futoeo-form-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Results Table */
.futoeo-results-table-container {
  margin-top: 32px;
  max-height: 400px;
  overflow-y: auto;
}

.futoeo-results-table {
  width: 100%;
  border-collapse: collapse;
}

.futoeo-results-table th,
.futoeo-results-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.futoeo-results-table th {
  background: #f5f5f5;
  font-weight: 700;
  color: #333;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px;
}

.futoeo-results-table th.futoeo-th-left {
  text-align: left;
}

.futoeo-results-table th.futoeo-th-center {
  text-align: center;
}

.futoeo-results-table th.futoeo-th-right {
  text-align: right;
}

.futoeo-results-table td {
  font-size: 14px;
  color: #1a1a1a;
}

.futoeo-results-table tr:hover {
  background: #fafafa;
}

.futoeo-results-table .futoeo-header-row {
  border-bottom: 2px solid #e0e0e0;
}

.futoeo-results-table .futoeo-gold-border {
  border-bottom: 4px solid #FFD700;
}

.futoeo-results-table .futoeo-silver-border {
  border-bottom: 4px solid #C0C0C0;
}

.futoeo-results-table .futoeo-bronze-border {
  border-bottom: 4px solid #CD7F32;
}

.futoeo-results-table .futoeo-td-name {
  padding: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.futoeo-results-table .futoeo-td-score {
  text-align: center;
  padding: 16px;
  font-weight: 800;
  color: #C3DABE;
  font-size: 20px;
}

.futoeo-results-table .futoeo-td-date {
  text-align: right;
  padding: 16px;
  font-size: 14px;
  color: #999;
}

/* Message Display */
.futoeo-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(26, 26, 26, 0.95);
  color: white;
  padding: 24px 48px;
  font-size: 24px;
  font-weight: 700;
  border-radius: 0;
  z-index: 150;
  display: none;
  text-align: center;
  white-space: nowrap;
}

/* Header */
.futoeo-header {
  padding: 24px;
  text-align: center;
}

.futoeo-header-title {
  color: #1a1a1a;
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: rgba(255, 255, 255, 0.5);
  display: inline-block;
  padding: 8px 16px;
  backdrop-filter: blur(5px);
}

.futoeo-header-subtitle {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.5);
  display: inline-block;
  padding: 4px 12px;
  backdrop-filter: blur(5px);
}

/* Score Panel Container */
.futoeo-score-panel-container {
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.futoeo-mission-panel {
  background: #C3DABE;
  padding: 12px 16px;
  border: none;
  border-radius: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 280px;
}

.futoeo-mission-label {
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.futoeo-mission-target {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.futoeo-stat-box {
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  padding: 8px 12px;
  backdrop-filter: blur(5px);
}

.futoeo-stat-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.futoeo-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
}

.futoeo-stat-value-md {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

/* Main Container with Background */
.futoeo-main-container {
  background-image: url('https://futbolonetwork.org/wp-content/uploads/2026/01/tribuna-1.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}

/* Game Elements */
.futoeo-timer-display {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border: none;
  background: #1a1a1a;
  color: white;
  display: none;
  font-weight: 700;
  z-index: 50;
  border-radius: 0;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.futoeo-ball-container {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  font-size: 32px;
  pointer-events: none;
}

.futoeo-characters-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background-image: url('https://futbolonetwork.org/wp-content/uploads/2026/01/futbolo-aikste-vartai.jpg');
  background-size: cover;
  background-position: center;
}

/* Personažų elementų stiliai */
.character {
  position: absolute;
  cursor: crosshair !important; /* Griežtai priversti išlaikyti pliusą */
  pointer-events: auto;
  z-index: 5;
  transition: transform 0.1s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.character:hover {
  transform: scale(1.1);
  cursor: crosshair !important; /* Neleisti keistis net užvedus (hover) */
  z-index: 6;
}

.character:active {
  transform: scale(0.95);
}

.futoeo-goal-container {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.futoeo-goal {
  position: relative;
  width: 140px;
  height: 100px;
  border: 2px solid #1a1a1a;
}

.futoeo-goal-post-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: #1a1a1a;
}

.futoeo-goal-post-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: #1a1a1a;
}

.futoeo-goal-bar-top {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 8px;
  background: #1a1a1a;
}

.futoeo-goal-net {
  position: absolute;
  left: 8px;
  top: 8px;
  right: 8px;
  bottom: 0;
  font-size: 36px;
  color: #999;
  overflow: hidden;
}

.futoeo-camera-flash {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.65) 35%, rgba(255, 255, 255, 0.05) 70%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 180ms ease-out;
}

.futoeo-focus-frame {
  position: fixed;
  border: 2px solid #000;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}

.futoeo-controls {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
}

.futoeo-result-message {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 32px 64px;
  border: none;
  background: #1a1a1a;
  color: white;
  display: none;
  text-align: center;
  z-index: 110;
  font-size: 32px;
  font-weight: 800;
  border-radius: 0;
  letter-spacing: -0.5px;
}

/* Pagination */
.futoeo-pagination {
  display: none;
  margin-bottom: 20px;
  text-align: center;
}

.futoeo-pagination-btn {
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  background: white;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: 0;
  font-weight: 700;
  margin: 0 10px;
}

.futoeo-page-info {
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 10px;
}

/* Difficulty/Level Buttons Specific */
.futoeo-difficulty-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.futoeo-level-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  justify-items: center;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}

/* Dynamic content classes */
.futoeo-countdown-label {
  font-size: 24px;
  margin-bottom: 20px;
}

.futoeo-countdown-number {
  font-size: 48px;
}

.futoeo-attempts-info {
  font-size: 18px;
  margin-top: 8px;
}

.futoeo-target-image {
  height: 50px;
  vertical-align: middle;
  margin-right: 8px;
}

.futoeo-target-image-sm {
  height: 32px;
  vertical-align: middle;
  margin-right: 8px;
}

/* Utility classes */
.futoeo-mt-24 {
  margin-top: 24px;
}

.futoeo-mt-32 {
  margin-top: 32px;
}

.futoeo-mb-12 {
  margin-bottom: 12px;
}

.futoeo-mb-32 {
  margin-bottom: 32px;
}

.futoeo-w-100 {
  width: 100%;
}

.futoeo-mr-10 {
  margin-right: 10px;
}

.futoeo-ml-10 {
  margin-left: 10px;
}

.futoeo-padding-controls {
  padding: 16px 32px;
  font-size: 14px;
}

.futoeo-instructions-fullscreen {
  background-image: url('https://futbolonetwork.org/wp-content/uploads/2026/01/fonas-puslapiams.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 40px;
}

.futoeo-instructions-scroll {
  max-height: 80vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.futoeo-score-green {
  color: #C3DABE;
}

/* Scoped keyframes */
@keyframes futoeo-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes futoeo-glow {
  0%, 100% { filter: drop-shadow(0 0 8px gold); }
  50% { filter: drop-shadow(0 0 16px gold); }
}

/* ==========================================
   RESPONSIVE / MEDIA QUERIES
   ========================================== */

@media (max-width: 768px) {
  .futoeo-menu-content {
    padding: 24px 16px;
    width: 95%;
  }

  .futoeo-screen-content {
    padding: 24px 16px;
    max-width: 95%;
  }

  .futoeo-screen-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .futoeo-difficulty-btn,
  .futoeo-level-btn {
    padding: 16px 20px;
    font-size: 16px;
    min-width: 0;
  }

  .futoeo-btn-primary,
  .futoeo-btn-secondary,
  .futoeo-btn-secondary-bordered,
  .futoeo-btn-back,
  .futoeo-form-input {
    padding: 14px 24px;
    font-size: 16px;
  }

  .futoeo-header {
    padding: 12px;
  }

  .futoeo-header-title {
    font-size: 16px;
    padding: 6px 12px;
  }

  .futoeo-header-subtitle {
    font-size: 13px;
  }

  .futoeo-score-panel-container {
    padding: 10px 12px;
    gap: 8px;
  }

  .futoeo-mission-panel {
    min-width: 200px;
    padding: 8px 12px;
  }

  .futoeo-mission-target {
    font-size: 22px;
  }

  .futoeo-stat-box {
    padding: 6px 10px;
  }

  .futoeo-stat-label {
    font-size: 12px;
  }

  .futoeo-stat-value {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .futoeo-menu-content {
    padding: 16px 10px;
  }

  .futoeo-game-headline {
    font-size: clamp(18px, 6vw, 32px);
  }

  .futoeo-game-tagline {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .futoeo-menu-buttons {
    gap: 10px;
  }

  .futoeo-btn-primary,
  .futoeo-btn-secondary,
  .futoeo-btn-secondary-bordered,
  .futoeo-form-input {
    padding: 12px 18px;
    font-size: 15px;
  }
}

/* Landscape / low height viewports (e.g. mobile landscape or embedded iframes) */
@media (max-height: 600px) {
  .futoeo-menu-content {
    padding: 12px 10px;
  }

  .futoeo-game-headline {
    font-size: clamp(18px, 5.5vh, 38px);
    line-height: 1.05;
  }

  .futoeo-game-emoji {
    font-size: 22px;
    margin: 4px 0 8px 0;
  }

  .futoeo-game-tagline {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .futoeo-menu-buttons {
    gap: 8px;
  }

  .futoeo-btn-primary,
  .futoeo-btn-secondary,
  .futoeo-btn-secondary-bordered,
  .futoeo-form-input {
    padding: 10px 16px;
    font-size: 14px;
  }
}
