/* ============================================================
   Tech Reads® Auto Math RPG — Standalone Fullscreen Styles
   Dark navy RPG theme · Neon cyan / gold / red accents
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Core palette */
  --navy-900: #060d18;
  --navy-800: #0a1628;
  --navy-700: #0f1f3d;
  --navy-600: #162a4a;
  --navy-500: #1e3a5f;

  /* Accents */
  --cyan: #00e5ff;
  --cyan-dim: #00b8d4;
  --gold: #ffd54f;
  --gold-dim: #ffb300;
  --red: #ff3d5a;
  --red-dim: #c62828;
  --green: #00e676;
  --purple: #7c4dff;

  /* UI */
  --text: #e8f4ff;
  --text-muted: #7a9bbf;
  --border: rgba(0, 229, 255, 0.25);
  --border-gold: rgba(255, 213, 79, 0.35);
  --panel-bg: rgba(10, 22, 40, 0.92);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.35);
  --glow-gold: 0 0 20px rgba(255, 213, 79, 0.3);

  /* Layout */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  /* Typography — offline-safe stack */
  --font-ui: "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --font-display: "Courier New", "MS Gothic", monospace;
}

/* Reset document — break out of WordPress containers */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font-ui);
  touch-action: manipulation;
}

/* ============================================================
   FULLSCREEN APP SHELL
   ============================================================ */
.game-app {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--navy-800);
  z-index: 999999; /* above WP theme */
  display: flex;
  flex-direction: column;
}

/* Animated starfield background */
.game-app::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(124, 77, 255, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(15, 31, 61, 0.5) 0%, transparent 70%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-900) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Pixel grid overlay */
.game-app::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ============================================================
   SCREEN SYSTEM
   ============================================================ */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  z-index: 1;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  overflow: hidden;
}

.screen-active {
  display: flex;
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#screen-loading {
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
}

.loading-inner {
  text-align: center;
  padding: 2rem;
  max-width: 360px;
  width: 100%;
}

.loading-logo {
  width: min(280px, 80vw);
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(var(--glow-cyan));
  animation: float 2.5s ease-in-out infinite;
}

.loading-title {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 3.5vw, 1rem);
  color: var(--cyan);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.loading-sub {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 2rem;
}

.loading-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--navy-600);
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan), var(--gold));
  transition: width 0.15s ease;
  box-shadow: var(--glow-cyan);
}

.loading-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  animation: blink 1.2s step-end infinite;
}

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

@keyframes blink {
  50% { opacity: 0.4; }
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(6, 13, 24, 0.85);
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
  z-index: 2;
}

.top-logo {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.top-bar-right {
  display: flex;
  gap: 0.4rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-700);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  touch-action: manipulation;
}

.icon-btn:active {
  transform: scale(0.94);
  background: var(--navy-600);
  border-color: var(--cyan);
}

.icon-btn.muted {
  opacity: 0.5;
}

.back-btn {
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
}

/* ============================================================
   MAP SCREEN
   ============================================================ */
.map-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 1rem 1.5rem;
}

.title-block {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.brand-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  margin-bottom: 0.35rem;
}

.game-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4.5vw, 1.5rem);
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255, 213, 79, 0.4);
  margin-bottom: 0.25rem;
}

.game-title-jp {
  font-size: clamp(0.85rem, 3.5vw, 1rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}

.celebration {
  font-size: 0.8rem;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-block;
  padding: 0.3rem 0.9rem;
  margin-bottom: 0.35rem;
}

.tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
}

/* Global HUD */
.global-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 1rem 0;
}

.hud-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--panel-bg);
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  min-width: 72px;
}

.hud-pill.gold {
  border-color: var(--border-gold);
}

.hud-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.hud-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--cyan);
  font-weight: bold;
}

.hud-pill.gold .hud-value {
  color: var(--gold);
}

.hero-intro {
  text-align: center;
  margin: 0.75rem 0 1.25rem;
  padding: 1rem;
  background: var(--panel-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
}

.hero-intro h2 {
  font-size: clamp(0.95rem, 4vw, 1.15rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.hero-intro p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Level Map Grid */
.level-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Boss level spans full width */
.level-node.boss-node {
  grid-column: 1 / -1;
}

.level-node {
  position: relative;
  background: var(--panel-bg);
  border: 3px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  touch-action: manipulation;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.level-node.unlocked:hover,
.level-node.unlocked:focus-visible {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.level-node.unlocked:active {
  transform: scale(0.97);
}

.level-node.locked {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: rgba(122, 155, 191, 0.2);
}

.level-node.cleared {
  border-color: var(--green);
}

.level-node.cleared::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 8px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: bold;
}

.level-node.boss-node.unlocked {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 213, 79, 0.08), var(--panel-bg));
}

.level-node.boss-node.unlocked:hover {
  box-shadow: var(--glow-gold);
  border-color: var(--gold);
}

.level-num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.level-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.level-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.level-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 13, 24, 0.65);
  border-radius: 9px;
  font-size: 1.5rem;
}

.map-actions {
  text-align: center;
  margin: 0.5rem 0 1rem;
}

/* ============================================================
   BATTLE SCREEN
   ============================================================ */
.battle-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: rgba(6, 13, 24, 0.9);
  border-bottom: 2px solid var(--border);
  flex-shrink: 0;
}

.battle-level-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.battle-lv {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--cyan);
}

.battle-lv-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

.combo-badge {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  animation: combo-pulse 0.6s ease infinite;
}

.combo-badge.hidden {
  display: none;
}

@keyframes combo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Battle arena */
.battle-arena {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1rem;
  gap: 0.25rem;
  min-height: 0;
}

.fighter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 400px;
}

.enemy-fighter {
  flex-direction: row-reverse;
}

.fighter-sprite {
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s;
}

.fighter-sprite.hit {
  animation: shake 0.4s ease;
}

.fighter-sprite.attack {
  animation: lunge 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

@keyframes lunge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px) scale(1.1); }
}

.fighter-info {
  flex: 1;
  min-width: 0;
}

.fighter-name {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.hp-bar-wrap {
  height: 12px;
  background: var(--navy-600);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.2rem;
}

.hp-bar {
  height: 100%;
  transition: width 0.4s ease;
  border-radius: 2px;
}

.enemy-hp {
  background: linear-gradient(90deg, var(--red-dim), var(--red));
  float: right;
}

.player-hp {
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
}

.hp-text {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.vs-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  padding: 0.15rem 0;
}

/* Battle panel */
.battle-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  border-top: 3px solid var(--border);
  padding: 0.75rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.question-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.battle-score-live {
  color: var(--gold);
}

.formula-hint {
  font-size: 0.75rem;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
  border-left: 3px solid var(--cyan);
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.6rem;
  border-radius: 0 6px 6px 0;
}

.question-text {
  font-size: clamp(0.95rem, 4vw, 1.1rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  color: var(--text);
}

/* Answer options */
.answer-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.answer-btn {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  text-align: left;
  background: var(--navy-700);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  touch-action: manipulation;
  line-height: 1.4;
}

.answer-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  background: var(--navy-600);
}

.answer-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.answer-btn:disabled {
  cursor: default;
}

.answer-btn.correct {
  border-color: var(--green);
  background: rgba(0, 230, 118, 0.15);
  color: var(--green);
}

.answer-btn.wrong {
  border-color: var(--red);
  background: rgba(255, 61, 90, 0.15);
  color: var(--red);
}

.answer-btn.reveal-correct {
  border-color: var(--green);
  background: rgba(0, 230, 118, 0.1);
}

/* Feedback panel */
.feedback-panel {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--navy-700);
  border: 2px solid var(--border);
  border-radius: 10px;
}

.feedback-panel.hidden {
  display: none;
}

.feedback-result {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feedback-result.correct {
  color: var(--green);
}

.feedback-result.wrong {
  color: var(--red);
}

.feedback-formula {
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.feedback-steps {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-line;
  margin-bottom: 0.75rem;
}

/* ============================================================
   MODAL SCREENS (Clear / Game Over / Victory)
   ============================================================ */
#screen-clear,
#screen-gameover,
#screen-victory {
  align-items: center;
  justify-content: center;
  background: rgba(6, 13, 24, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-card {
  text-align: center;
  background: var(--panel-bg);
  border: 3px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  max-width: 360px;
  width: calc(100% - 2rem);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.4s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  animation: float 2s ease-in-out infinite;
}

.modal-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 1.8rem);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.clear-card h2 { color: var(--gold); }
.gameover-card h2 { color: var(--red); }
.victory-card h2 { color: var(--gold); text-shadow: var(--glow-gold); }

.modal-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.clear-stats,
.victory-stats {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.clear-stats strong,
.victory-stats strong {
  color: var(--cyan);
  font-family: var(--font-display);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.victory-actions {
  margin-bottom: 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  color: var(--navy-900);
  border: 2px solid var(--cyan);
  box-shadow: var(--glow-cyan);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--border);
}

.btn-danger {
  background: transparent;
  color: var(--red);
  border: 2px solid rgba(255, 61, 90, 0.4);
}

.btn-share {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: var(--text);
  border: 2px solid var(--text-muted);
}

.btn-sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   FOOTER
   ============================================================ */
.game-footer {
  text-align: center;
  padding: 1rem 0 0.5rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.footer-tag {
  margin-top: 0.2rem;
  letter-spacing: 0.15em;
}

.inline-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

/* ============================================================
   DAMAGE FLOAT TEXT
   ============================================================ */
.damage-popup {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: bold;
  pointer-events: none;
  animation: damage-float 0.8s ease forwards;
  z-index: 10;
}

.damage-popup.enemy-dmg { color: var(--red); }
.damage-popup.player-dmg { color: var(--cyan); }

@keyframes damage-float {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-30px); }
}

/* ============================================================
   LANDSCAPE MOBILE
   ============================================================ */
@media (orientation: landscape) and (max-height: 500px) {
  .battle-arena {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    padding: 0.4rem 1rem;
  }

  .fighter {
    flex-direction: column;
    max-width: 160px;
    text-align: center;
  }

  .enemy-fighter {
    flex-direction: column;
  }

  .vs-badge {
    align-self: center;
  }

  .fighter-sprite {
    font-size: 2rem;
  }

  .hp-bar-wrap {
    height: 8px;
  }

  .battle-panel {
    padding: 0.5rem 1rem;
  }

  .answer-btn {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
  }

  .loading-logo {
    width: 180px;
    margin-bottom: 0.75rem;
  }

  .level-map {
    grid-template-columns: repeat(4, 1fr);
  }

  .level-node.boss-node {
    grid-column: span 2;
  }

  .level-node {
    min-height: 90px;
    padding: 0.6rem 0.5rem;
  }

  .level-icon {
    font-size: 1.4rem;
  }

  .hero-intro {
    padding: 0.6rem;
    margin: 0.5rem 0;
  }
}

/* ============================================================
   DESKTOP WIDER
   ============================================================ */
@media (min-width: 600px) {
  .level-map {
    grid-template-columns: repeat(3, 1fr);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .level-node.boss-node {
    grid-column: 1 / -1;
    max-width: 280px;
    margin: 0 auto;
    width: 100%;
  }

  .map-scroll {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .battle-panel {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
    border-radius: 12px 12px 0 0;
    border-left: 3px solid var(--border);
    border-right: 3px solid var(--border);
  }
}

@media (min-width: 900px) {
  .level-map {
    grid-template-columns: repeat(4, 1fr);
    max-width: 720px;
  }

  .level-node.boss-node {
    grid-column: 2 / 4;
    max-width: none;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   FULLSCREEN PSEUDO-CLASS
   ============================================================ */
.game-app:fullscreen,
.game-app:-webkit-full-screen {
  width: 100%;
  height: 100%;
}