@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700&family=Syne:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #0a1f14;
  --bg-card: #0f2a1a;
  --bg-card-hover: #132e1e;
  --bg-soft: rgb(15, 42, 26, 0.9);
  --ink: #f5ede0;
  --muted: rgb(245, 237, 224, 0.68);
  --quiet: rgb(245, 237, 224, 0.42);
  --gold: #c8922a;
  --gold-soft: #e8b84b;
  --green: #2d7a4f;
  --green-bright: #3eb576;
  --red: #e05a30;
  --line: rgb(200, 146, 42, 0.18);
  --line-strong: rgb(200, 146, 42, 0.36);
  --font-sans: "Outfit", sans-serif;
  --font-display: "Syne", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html,
body {
  width: 100%;
  height: 100%;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#root {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Game Overlay Bar */
.game-overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line-strong);
  z-index: 100;
  box-shadow: 0 4px 24px rgb(0, 0, 0, 0.4);
}

.game-overlay-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.overlay-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgb(200, 146, 42, 0.1);
  color: var(--gold);
  border-radius: 50%;
  transition:
    background 0.2s,
    transform 0.2s;
  text-decoration: none;
}

.overlay-back-btn:hover {
  background: rgb(200, 146, 42, 0.2);
  transform: translateX(-2px);
}

.overlay-back-btn svg {
  width: 20px;
  height: 20px;
}

.overlay-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.overlay-credit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.game-overlay-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shuffle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gold);
  color: #0a1f14;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.shuffle-btn:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.shuffle-btn:active {
  transform: translateY(0);
}

.fullscreen-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.fullscreen-btn:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: rgb(200, 146, 42, 0.05);
}

/* Game Frame */
.game-frame-wrapper {
  flex: 1;
  width: 100%;
  position: relative;
  background: #000;
  opacity: 0;
  transition: opacity 1s ease-in;
  display: flex;
}

.game-frame-wrapper.visible {
  opacity: 1;
}

.game-iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}
