@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700;900&family=DM+Mono:wght@400;500&display=swap");
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

:root {
  --color-x: #60a5fa;
  --color-o: #f472b6;
  --color-win: #4ade80;
  --color-draw: #fbbf24;
}

body {
  background-color: #0a0b10;
  color: #e2e8f0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0b10;
}

::-webkit-scrollbar-thumb {
  background: #2a2d45;
  border-radius: 9999px;
}

::-moz-selection {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
}

::selection {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 32px 24px;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.app::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(96, 165, 250, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 165, 250, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
  animation: gridDrift 24s linear infinite;
}
.app::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 20% 30%, rgba(96, 165, 250, 0.05) 0%, transparent 60%), radial-gradient(ellipse 45% 40% at 80% 70%, rgba(244, 114, 182, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: blobPulse 10s ease-in-out infinite alternate;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 480px;
  animation: fadeDown 0.6s ease both;
}
.header__title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.header__title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #e2e8f0 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header__subtitle {
  font-family: "DM Mono", "Fira Code", monospace;
  font-size: 0.65rem;
  color: #64748b;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.header__symbol {
  font-size: 2rem;
  font-weight: 900;
  opacity: 0.4;
  transition: opacity 0.25s ease;
}
.header__symbol--x {
  color: #60a5fa;
}
.header__symbol--o {
  color: #f472b6;
}
.header__symbol:hover {
  opacity: 0.8;
}

.setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 480px;
  animation: fadeUp 0.6s 0.1s ease both;
  animation-fill-mode: both;
}
.setup__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.setup__label {
  font-family: "DM Mono", "Fira Code", monospace;
  font-size: 0.65rem;
  color: #64748b;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.setup__modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}
.setup__difficulties {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 480px;
  animation: fadeUp 0.5s ease both;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
}
.mode-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.mode-btn:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}
.mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a1d2e;
  border: 1px solid #2a2d45;
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mode-btn:hover:not(:disabled) {
  transform: translateY(-4px);
}
.mode-btn {
  padding: 24px 16px;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.mode-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #2a2d45;
  transition: background 0.25s ease;
}
.mode-btn__icon {
  font-size: 1.5rem;
}
.mode-btn__text {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
}
.mode-btn__sub {
  font-size: 0.65rem;
  color: #64748b;
  font-family: "DM Mono", "Fira Code", monospace;
}
.mode-btn:hover:not(.mode-btn--active) {
  border-color: #3a3f60;
}
.mode-btn:hover:not(.mode-btn--active)::before {
  background: #3a3f60;
}
.mode-btn--active {
  background: #222540;
  border: 1px solid #60a5fa;
  border-radius: 16px;
  box-shadow: 0 0 9.6px rgba(96, 165, 250, 0.18), 0 0 19.2px rgba(96, 165, 250, 0.09);
}
.mode-btn--active::before {
  background: #60a5fa;
}
.mode-btn--active .mode-btn__text {
  color: #60a5fa;
}
.mode-btn--active .mode-btn__sub {
  color: rgba(96, 165, 250, 0.7);
}

.diff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
}
.diff-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.diff-btn:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}
.diff-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a1d2e;
  border: 1px solid #2a2d45;
  border-radius: 16px;
  padding: 16px 12px;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.diff-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  transition: background 0.25s ease;
}
.diff-btn__level {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
}
.diff-btn__desc {
  font-size: 0.65rem;
  color: #64748b;
  font-family: "DM Mono", "Fira Code", monospace;
}
.diff-btn:hover:not(.diff-btn--active) {
  border-color: #3a3f60;
  transform: translateY(-2px);
}
.diff-btn--active {
  background: #222540;
}
.diff-btn--active .diff-btn__level {
  color: #4ade80;
}
.diff-btn--active .diff-btn__desc {
  color: rgba(74, 222, 128, 0.7);
}
.diff-btn--active {
  border-color: #4ade80;
}
.diff-btn--active::after {
  background: #4ade80;
}

.btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
}
.btn-start:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-start:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}
.btn-start {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-start:hover:not(:disabled) {
  transform: translateY(-3px);
}
.btn-start {
  width: 100%;
  padding: 20px 32px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #60a5fa 0%, rgb(36.6658536585, 131.4146341463, 248.1341463415) 100%);
  color: #0a0b10;
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.3);
  position: relative;
  overflow: hidden;
}
.btn-start::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  right: 100%;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease, right 0.5s ease;
}
.btn-start:hover::before {
  left: 100%;
  right: -100%;
}
.btn-start:hover:not(:disabled) {
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.3), 0 12px 32px rgba(96, 165, 250, 0.3);
}
.btn-start:active:not(:disabled) {
  transform: translateY(0);
}
.btn-start__arrow {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}
.btn-start:hover .btn-start__arrow {
  transform: translateX(4px);
}

.btn-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
}
.btn-control:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-control:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}
.btn-control {
  padding: 12px 20px;
  font-size: 0.78rem;
  border-radius: 10px;
}
.btn-control--secondary {
  background: #1a1d2e;
  border: 1px solid #2a2d45;
  color: #e2e8f0;
}
.btn-control--secondary:hover:not(:disabled) {
  background: #222540;
  border-color: #3a3f60;
}
.btn-control--ghost {
  background: transparent;
  border: 1px solid #2a2d45;
  color: #64748b;
}
.btn-control--ghost:hover:not(:disabled) {
  border-color: #3a3f60;
  color: #e2e8f0;
}
.btn-control--danger {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}
.btn-control--danger:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.2);
  border-color: #f87171;
}

.turn-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  background: #1a1d2e;
  border: 1px solid #2a2d45;
  border-radius: 9999px;
  min-width: 240px;
  transition: all 0.25s ease;
}
.turn-indicator__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 8px #60a5fa;
  transition: all 0.25s ease;
  animation: dotPulse 1.5s ease-in-out infinite;
}
.turn-indicator__dot--o {
  background: #f472b6;
  box-shadow: 0 0 8px #f472b6;
}
.turn-indicator__dot--thinking {
  background: #64748b;
  box-shadow: none;
  animation: dotBlink 0.8s ease-in-out infinite;
}
.turn-indicator__text {
  font-size: 0.78rem;
  font-weight: 500;
  color: #e2e8f0;
  font-family: "DM Mono", "Fira Code", monospace;
  letter-spacing: 0.04em;
}
.turn-indicator--x {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.06);
}
.turn-indicator--o {
  border-color: rgba(244, 114, 182, 0.35);
  background: rgba(244, 114, 182, 0.06);
}
.turn-indicator--thinking {
  border-color: #2a2d45;
  background: #1a1d2e;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 108px);
  grid-template-rows: repeat(3, 108px);
  gap: 8px;
  padding: 16px;
  background: #12141f;
  border: 1px solid #2a2d45;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
}
.board__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
}
.board__cell:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.board__cell:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}
.board__cell:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}
.board__cell {
  width: 108px;
  height: 108px;
  background: #1a1d2e;
  border: 1px solid #2a2d45;
  border-radius: 10px;
  font-size: 4rem;
  font-weight: 900;
  color: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}
.board__cell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.board__cell:hover:not(.board__cell--x):not(.board__cell--o):not(:disabled) {
  border-color: #3a3f60;
  background: #222540;
  transform: scale(0.97);
}
.board__cell:hover:not(.board__cell--x):not(.board__cell--o):not(:disabled)::before {
  background: radial-gradient(circle at center, rgba(226, 232, 240, 0.04), transparent);
  opacity: 1;
}
.board__cell:active:not(.board__cell--x):not(.board__cell--o):not(:disabled) {
  transform: scale(0.93);
}
.board__cell--x {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.3);
  cursor: not-allowed;
  animation: cellReveal 0.3s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.board__cell--x::after {
  content: "✕";
  position: absolute;
  font-size: 4rem;
  font-weight: 900;
  color: #60a5fa;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5));
}
.board__cell--o {
  color: #f472b6;
  background: rgba(244, 114, 182, 0.12);
  border-color: rgba(244, 114, 182, 0.3);
  cursor: not-allowed;
  animation: cellReveal 0.3s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.board__cell--o::after {
  content: "○";
  position: absolute;
  font-size: 4rem;
  font-weight: 900;
  color: #f472b6;
  filter: drop-shadow(0 0 8px rgba(244, 114, 182, 0.5));
}
.board__cell--winner {
  background: rgba(74, 222, 128, 0.15) !important;
  border-color: #4ade80 !important;
  box-shadow: 0 0 32px rgba(74, 222, 128, 0.35);
  animation: winnerPulse 0.5s ease forwards, winnerGlow 1.5s ease-in-out 0.5s infinite alternate;
}
.board__cell--winner.board__cell--x::after {
  color: #4ade80;
  filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.7));
}
.board__cell--winner.board__cell--o::after {
  color: #4ade80;
  filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.7));
}
.board__cell--draw {
  opacity: 0.5;
  animation: drawFade 0.4s ease forwards;
}
.board__cell--disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.board:not(.board--locked) .board__cell:not(.board__cell--x):not(.board__cell--o):hover::after {
  content: attr(data-hover);
  position: absolute;
  font-size: 2.8rem;
  font-weight: 900;
  opacity: 0.15;
}

.board--locked .board__cell:not(.board__cell--x):not(.board__cell--o) {
  cursor: not-allowed;
  pointer-events: none;
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  width: 100%;
}

.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a1d2e;
  border: 1px solid #2a2d45;
  border-radius: 16px;
  padding: 16px 12px;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.score-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 6px 6px 0 0;
}
.score-card__label {
  font-size: 0.65rem;
  color: #64748b;
  font-family: "DM Mono", "Fira Code", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.score-card__value {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.score-card__value.score-bump {
  animation: scoreBump 0.4s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.score-card__symbol {
  font-size: 0.65rem;
  opacity: 0.4;
  font-weight: 700;
}
.score-card--x::before {
  background: #60a5fa;
}
.score-card--x .score-card__value {
  color: #60a5fa;
}
.score-card--x .score-card__symbol {
  color: #60a5fa;
}
.score-card--x.score-card--active {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.1);
}
.score-card--o::before {
  background: #f472b6;
}
.score-card--o .score-card__value {
  color: #f472b6;
}
.score-card--o .score-card__symbol {
  color: #f472b6;
}
.score-card--o.score-card--active {
  border-color: rgba(244, 114, 182, 0.4);
  box-shadow: 0 4px 16px rgba(244, 114, 182, 0.1);
}
.score-card--draw::before {
  background: #fbbf24;
}
.score-card--draw .score-card__value {
  color: #fbbf24;
}
.score-card--draw .score-card__symbol {
  color: #fbbf24;
}
.score-card--draw {
  padding: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalIn 0.3s ease both;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(26, 29, 46, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid #2a2d45;
  border-radius: 16px;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 40px 32px;
  gap: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  animation: cardBounceIn 0.4s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.modal__card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #60a5fa, #f472b6, transparent);
  border-radius: 6px;
}
.modal__icon {
  font-size: 4rem;
  animation: iconDrop 0.5s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.modal__title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.1;
}
.modal__title--x {
  color: #60a5fa;
}
.modal__title--o {
  color: #f472b6;
}
.modal__title--draw {
  color: #fbbf24;
}
.modal__title--win {
  color: #4ade80;
}
.modal__message {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  font-family: "DM Mono", "Fira Code", monospace;
}
.modal__score-snap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #12141f;
  border: 1px solid #2a2d45;
  border-radius: 16px;
  width: 100%;
}
.modal__score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 4px;
}
.modal__score-label {
  font-size: 0.65rem;
  color: #64748b;
  font-family: "DM Mono", "Fira Code", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.modal__score-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #e2e8f0;
}
.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
}
.btn-modal:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-modal:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}
.btn-modal {
  width: 100%;
  padding: 16px;
  font-size: 0.9rem;
  border-radius: 10px;
}
.btn-modal--primary {
  background: linear-gradient(135deg, #60a5fa, rgb(36.6658536585, 131.4146341463, 248.1341463415));
  color: #0a0b10;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.3);
}
.btn-modal--primary:hover:not(:disabled) {
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.3), 0 8px 24px rgba(96, 165, 250, 0.3);
  transform: translateY(-2px);
}
.btn-modal--secondary {
  background: #1a1d2e;
  border: 1px solid #2a2d45;
  color: #e2e8f0;
}
.btn-modal--secondary:hover:not(:disabled) {
  background: #222540;
  border-color: #3a3f60;
}
.btn-modal--ghost {
  background: transparent;
  border: 1px solid #2a2d45;
  color: #64748b;
}
.btn-modal--ghost:hover:not(:disabled) {
  border-color: #3a3f60;
  color: #e2e8f0;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modalIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes cardBounceIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes iconDrop {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
@keyframes cellReveal {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes winnerPulse {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.06);
  }
  60% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes winnerGlow {
  from {
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.3);
  }
  to {
    box-shadow: 0 0 28px rgba(74, 222, 128, 0.6);
  }
}
@keyframes drawFade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.45;
  }
}
@keyframes scoreBump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.25);
    color: #4ade80;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}
@keyframes dotBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}
@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 48px 48px;
  }
}
@keyframes blobPulse {
  from {
    transform: scale(1) rotate(0deg);
    opacity: 0.7;
  }
  to {
    transform: scale(1.08) rotate(2deg);
    opacity: 1;
  }
}
@keyframes thinkingDot {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}
@keyframes shimmer {
  from {
    background-position: -200% center;
  }
  to {
    background-position: 200% center;
  }
}
@media (max-width: 480px) {
  .app {
    padding: 24px 16px;
    gap: 24px;
  }
  .header__title {
    font-size: 2rem;
  }
  .header__symbol {
    font-size: 1.5rem;
  }
  .board {
    grid-template-columns: repeat(3, 88px);
    grid-template-rows: repeat(3, 88px);
    padding: 12px;
    gap: 6px;
  }
  .board__cell {
    width: 88px;
    height: 88px;
    font-size: 2.8rem;
  }
  .board__cell--x::after, .board__cell--o::after {
    font-size: 2.8rem;
  }
  .scoreboard {
    gap: 8px;
  }
  .score-card {
    padding: 12px 8px;
  }
  .score-card__value {
    font-size: 2rem;
  }
  .setup__modes {
    gap: 8px;
  }
  .setup__difficulties {
    gap: 8px;
  }
  .mode-btn {
    padding: 16px 12px;
  }
  .mode-btn__icon {
    font-size: 1.2rem;
  }
  .mode-btn__text {
    font-size: 0.78rem;
  }
  .diff-btn {
    padding: 12px 8px;
  }
  .diff-btn__level {
    font-size: 0.65rem;
  }
  .btn-start {
    padding: 16px 24px;
    font-size: 0.9rem;
  }
  .controls {
    gap: 8px;
  }
  .btn-control {
    font-size: 0.65rem;
    padding: 8px 16px;
  }
  .modal {
    padding: 16px;
  }
  .modal__card {
    padding: 32px 24px;
  }
  .modal__title {
    font-size: 1.5rem;
  }
  .modal__icon {
    font-size: 2.8rem;
  }
  .turn-indicator {
    min-width: 200px;
    padding: 8px 20px;
  }
  .turn-indicator__text {
    font-size: 0.65rem;
  }
}
@media (max-width: 768px) {
  .header__title {
    font-size: 2rem;
  }
}/*# sourceMappingURL=main.css.map */