:root {
  --bg-1: #ffecd2;
  --bg-2: #fcb69f;
  --ink: #2b3a4a;
  --muted: #5e738a;
  --card: rgba(255, 255, 255, 0.82);
  --accent: #ff8a2a;
  --accent-2: #0ea5b8;
  --line: rgba(219, 228, 238, 0.5);
  --glow: rgba(255, 138, 42, 0.4);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  overflow-x: hidden;
  position: relative;
}

.bg-shape {
  position: absolute;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.6;
  border-radius: 50%;
  animation: float 12s infinite alternate ease-in-out;
}
.shape-1 { top: -5%; left: -10%; width: 350px; height: 350px; background: #ff9a9e; }
.shape-2 { bottom: -10%; right: -5%; width: 450px; height: 450px; background: #fecfef; animation-delay: -5s; }
.shape-3 { top: 40%; left: 50%; width: 300px; height: 300px; background: #a1c4fd; animation-duration: 15s; }

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-40px) scale(1.1); }
}

.app {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero { margin-bottom: 24px; animation: slideDown 0.7s ease-out; }

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 14px;
}

.hero h1 {
  margin: 12px 0;
  font-family: "Baloo 2", cursive;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
  background: -webkit-linear-gradient(45deg, #ff6b6b, #ff8a2a);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 4px 15px rgba(255, 107, 107, 0.2);
}

.hero-copy {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  opacity: 0.85;
}

/* ARAMA KUTUSU */
.search-bar-container {
  width: 100%;
  max-width: 640px;
  margin-top: 10px;
  animation: slideDown 0.6s ease-out backwards;
  animation-delay: 0.1s;
}

.search-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
}

.search-input::placeholder {
  color: #94a3b8;
  font-weight: 600;
}

/* KONTROLLER */
.controls {
  width: 100%;
  max-width: 640px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  animation: slideUp 0.6s ease-out backwards;
  animation-delay: 0.2s;
}

label {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  display: grid;
  gap: 8px;
  text-align: left;
}

select {
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.3s ease;
  outline: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

select:hover, select:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

/* OYUN KARTI */
.game-card {
  width: 100%;
  max-width: 640px;
  margin-top: 32px;
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 28px;
  padding: 40px 32px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255,255,255,0.6);
  text-align: left;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: slideUp 0.6s ease-out backwards;
  animation-delay: 0.4s;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ff8a2a, #ff6b6b, #0ea5b8);
}

.game-card.animate-pop {
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-top-actions {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.action-btn {
  background: rgba(255,255,255,0.8);
  border: 1px solid #ffd89b;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0;
}

.action-btn:hover {
  transform: scale(1.15) rotate(5deg);
  background: #fff;
  box-shadow: 0 6px 15px rgba(201, 126, 26, 0.2);
}

.fav-btn-icon.active {
  background: #fff5dd;
  border-color: #ff9640;
}

@keyframes popIn {
  0% { transform: scale(0.96); opacity: 0; }
  50% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2px;
  padding-right: 100px;
}

.badges span {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff5dd, #ffeabf);
  color: #c97e1a;
  box-shadow: 0 2px 6px rgba(201, 126, 26, 0.12);
  border: 1px solid #ffd89b;
}

.game-card h2 {
  margin: 16px 0 0;
  font-family: "Baloo 2", cursive;
  font-size: 36px;
  line-height: 1.1;
  color: #2b3a4a;
}

.skill {
  margin: 8px 0 24px;
  color: #0c5f6d;
  font-weight: 800;
  font-size: 15px;
  display: inline-block;
  background: #e6f7f9;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #bce1e6;
}

ol {
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 16px;
  list-style: none;
  counter-reset: step-counter;
}

ol li {
  position: relative;
  padding-left: 44px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: #374151;
}

ol li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(255, 138, 42, 0.3);
}

/* TIMER DISPLAY */
.timer-display {
  margin-top: 28px;
  background: linear-gradient(135deg, #2b3a4a, #1a2533);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.4), 0 4px 15px rgba(14, 165, 184, 0.2);
}

.time-text {
  font-family: monospace;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #0ea5b8;
  text-shadow: 0 0 15px rgba(14, 165, 184, 0.6);
}

.time-text.urgent {
  color: #ff6b6b;
  text-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 1; }
  100% { opacity: 0.5; }
}

.timer-play-btn {
  background: linear-gradient(135deg, #0ea5b8, #0a8292);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(14, 165, 184, 0.3);
  transition: all 0.2s;
}

.timer-play-btn:active {
  transform: scale(0.95);
}

/* PLAYED BUTTON */
.played-btn {
  width: 100%;
  margin-top: 24px;
  background: #f1f5f9;
  color: #64748b;
  border: 2px dashed #cbd5e1;
  padding: 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.played-btn.played {
  background: #dcfce7;
  color: #166534;
  border: 2px solid #86efac;
}

.safety {
  margin-top: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eefbfd, #dcf4f9);
  color: #0b515d;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 5px solid var(--accent-2);
  box-shadow: 0 4px 10px rgba(12, 95, 109, 0.05);
}

.safety::before {
  content: "🛡️";
  font-size: 22px;
}

.actions {
  width: 100%;
  max-width: 640px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  animation: slideUp 0.6s ease-out backwards;
  animation-delay: 0.6s;
}

.primary {
  background: linear-gradient(135deg, #ff8a2a, #ff6b6b);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 107, 0.3);
  border: none;
  border-radius: 16px;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.primary:hover {
  box-shadow: 0 14px 28px rgba(255, 107, 107, 0.4);
  transform: translateY(-3px);
  background: linear-gradient(135deg, #ff9640, #ff7a7a);
}

.ghost {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.9);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.ghost:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  border-color: #fff;
}

@media (max-width: 680px) {
  .controls { grid-template-columns: 1fr 1fr; }
  .actions { grid-template-columns: 1fr; }
  .game-card h2 { font-size: 30px; }
  .game-card { padding: 32px 20px; }
  .app { padding: 24px 16px; }
  .card-top-actions { top: 16px; right: 16px; }
  .action-btn { width: 40px; height: 40px; font-size: 18px; }
  .badges { padding-right: 80px; }
  .time-text { font-size: 30px; }
}
