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

body {
  min-height: 100vh;
  background: #000;
  font-family: 'Gaegu', cursive;
  color: #fff;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.container {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Header */
header {
  margin-bottom: 30px;
}

h1 {
  font-size: 5rem;
  font-weight: 700;
  color: #f7a020;
  line-height: 1;
}

.tagline {
  font-size: 1.4rem;
  color: #666;
  margin-top: 8px;
}

/* Live Stats */
.live-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.live-stat {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 12px 20px;
  text-decoration: none;
  transition: all 0.2s;
}

.live-stat:hover {
  border-color: #f7a020;
}

.live-label {
  display: block;
  font-size: 0.8rem;
  color: #555;
  text-transform: uppercase;
}

.live-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #f7a020;
}

/* Game */
.game {
  background: #111;
  border: 2px solid #f7a020;
  border-radius: 20px;
  padding: 30px 25px;
  margin-bottom: 20px;
}

.progress-bar {
  height: 12px;
  background: #222;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #f7a020;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: #555;
  margin-bottom: 25px;
}

.fold-btn {
  width: 120px;
  height: 120px;
  background: #f7a020;
  border: none;
  border-radius: 50%;
  font-family: 'Gaegu', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: 0 6px 0 #b87400;
}

.fold-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #b87400;
}

.fold-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #b87400;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 25px 0 20px;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #f7a020;
}

.stat-label {
  font-size: 0.95rem;
  color: #555;
}

.message {
  font-size: 1.2rem;
  color: #666;
  min-height: 24px;
}

.timer {
  margin-top: 15px;
  font-size: 1.1rem;
  color: #555;
}

.timer-value {
  color: #f7a020;
  font-weight: 700;
}

/* Leaderboard */
.leaderboard {
  margin-bottom: 20px;
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lb-item {
  display: flex;
  align-items: center;
  background: #0a0a0a;
  border-radius: 10px;
  padding: 10px 15px;
}

.lb-rank {
  width: 25px;
  font-weight: 700;
  color: #f7a020;
}

.lb-name {
  flex: 1;
  text-align: left;
  color: #888;
}

.lb-time {
  color: #f7a020;
  font-weight: 700;
}

.lb-item:first-child {
  background: rgba(247, 160, 32, 0.15);
  border: 1px solid #f7a020;
}

/* Sections */
.section {
  background: #111;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.equation {
  font-size: 1.3rem;
  color: #aaa;
}

.highlight {
  color: #f7a020;
  font-weight: 700;
}

.note {
  font-size: 1.1rem;
  color: #555;
  margin-top: 8px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-top: 15px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.ca {
  font-family: monospace;
  font-size: 0.8rem;
  color: #f7a020;
  word-break: break-all;
  margin-bottom: 15px;
  line-height: 1.5;
}

.copy-btn {
  background: #222;
  border: 2px solid #333;
  border-radius: 20px;
  padding: 8px 25px;
  color: #fff;
  font-family: 'Gaegu', cursive;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #f7a020;
  border-color: #f7a020;
  color: #000;
}

/* Links */
.links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.links a {
  padding: 12px 20px;
  border: 2px solid #333;
  border-radius: 25px;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.links a:hover {
  border-color: #f7a020;
  color: #f7a020;
}

.links a.primary {
  background: #f7a020;
  border-color: #f7a020;
  color: #000;
  font-weight: 700;
}

.links a.primary:hover {
  background: #ffd700;
  border-color: #ffd700;
}

/* Footer */
footer {
  color: #333;
  font-size: 1rem;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.overlay.show {
  display: flex;
}

.overlay-content {
  text-align: center;
}

.overlay-content h2 {
  font-size: 3rem;
  color: #f7a020;
  margin-bottom: 15px;
}

.overlay-content p {
  font-size: 1.3rem;
  color: #888;
  margin-bottom: 20px;
}

.overlay-content input {
  width: 200px;
  padding: 12px 15px;
  background: #111;
  border: 2px solid #333;
  border-radius: 12px;
  color: #fff;
  font-family: 'Gaegu', cursive;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 15px;
}

.overlay-content input:focus {
  outline: none;
  border-color: #f7a020;
}

.overlay-content button {
  display: block;
  width: 200px;
  margin: 10px auto;
  padding: 12px 35px;
  background: #f7a020;
  border: none;
  border-radius: 25px;
  font-family: 'Gaegu', cursive;
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  cursor: pointer;
}

.overlay-content button:hover {
  background: #ffd700;
}

.overlay-content button:last-child {
  background: #222;
  color: #fff;
}

.overlay-content button:last-child:hover {
  background: #333;
}
