/* [project]/app/memory/memory.css [app-client] (css) */
.memory-container {
  max-width: 960px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  position: relative;
}

.memory-glow {
  opacity: .12;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, #3b82f666, #3b82f633, #0000 70%);
  border-radius: 50%;
  width: 600px;
  height: 400px;
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
}

.memory-header {
  border-bottom: 1px solid rgba(var(--surface-tint), .06);
  flex-direction: column;
  gap: .25rem;
  padding: 1.5rem 0 0;
  display: flex;
}

.memory-header-bar {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.memory-back-link {
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  align-items: center;
  gap: .4rem;
  padding: .5rem 0;
  font-size: .75rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
  display: inline-flex;
}

.memory-back-link:hover {
  color: var(--fg);
}

.memory-title-group {
  align-items: center;
  gap: .75rem;
  padding: 1rem 0 .5rem;
  display: flex;
}

.memory-title {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  color: var(--text-strong);
  font-size: 1.8rem;
  font-weight: 600;
}

.memory-subtitle {
  color: var(--muted);
  max-width: 640px;
  padding-bottom: 1.25rem;
  font-size: .85rem;
  line-height: 1.55;
}

.memory-overview-bar {
  background: rgba(var(--surface-tint), .02);
  border: 1px solid rgba(var(--surface-tint), .04);
  border-radius: 16px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  display: grid;
}

.memory-overview-stat {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  display: flex;
}

.memory-overview-value {
  color: var(--fg);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.memory-overview-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .7rem;
  font-weight: 600;
}

.memory-section {
  margin-top: 2rem;
}

.memory-section-head {
  border-bottom: 1px solid rgba(var(--surface-tint), .04);
  justify-content: space-between;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  display: flex;
}

.memory-section-label {
  font-family: var(--font);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--fg);
  font-size: .65rem;
  font-weight: 600;
}

.memory-section-meta {
  color: var(--muted);
  letter-spacing: .04em;
  font-size: .7rem;
}

.memory-section-desc {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 1.25rem;
  font-size: .8rem;
  line-height: 1.55;
}

.memory-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .75rem;
  display: grid;
}

.memory-game-card, .memory-option-card {
  background: rgba(var(--surface-tint), .025);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(var(--surface-tint), .05);
  text-align: left;
  cursor: pointer;
  color: var(--fg);
  border-radius: 14px;
  flex-direction: column;
  gap: .6rem;
  padding: 1.1rem 1.2rem;
  transition: background .3s cubic-bezier(.4, 0, .2, 1), border-color .3s cubic-bezier(.4, 0, .2, 1), transform .3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
}

.memory-game-card:hover, .memory-option-card:hover {
  background: rgba(var(--surface-tint), .05);
  border-color: rgba(var(--surface-tint), .1);
  transform: translateY(-2px);
}

.memory-game-card-head {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.memory-game-card-name {
  font-family: var(--font);
  color: var(--fg);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
}

.memory-game-card-summary {
  color: var(--muted);
  flex: 1;
  font-size: .78rem;
  line-height: 1.5;
}

.memory-game-card-foot, .memory-option-foot {
  border-top: 1px solid rgba(var(--surface-tint), .04);
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding-top: .4rem;
  display: flex;
}

.memory-game-card-best, .memory-option-best {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: .65rem;
  font-weight: 500;
}

.memory-option-head {
  flex-direction: column;
  flex: 1;
  gap: .2rem;
  display: flex;
}

.memory-option-name {
  font-family: var(--font);
  color: var(--fg);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
}

.memory-option-sub {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
}

.memory-tag {
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(var(--surface-tint), .05);
  color: var(--muted);
  border: 1px solid rgba(var(--surface-tint), .06);
  border-radius: 100px;
  align-items: center;
  padding: .2rem .55rem;
  font-size: .6rem;
  font-weight: 700;
  display: inline-flex;
}

.memory-tag--accent {
  color: var(--accent);
  background: #2563eb14;
  border-color: #2563eb40;
}

.memory-cta {
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  letter-spacing: .04em;
  border: none;
  border-radius: 8px;
  padding: .4rem .95rem;
  font-size: .75rem;
  font-weight: 600;
  transition: background .15s;
}

.memory-game-card:hover .memory-cta, .memory-option-card:hover .memory-cta {
  background: var(--accent-2);
}

.memory-game-topbar {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 40px;
  padding: 1.5rem 0 0;
  display: flex;
}

.memory-back {
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  gap: .4rem;
  padding: .5rem 0;
  font-size: .75rem;
  font-weight: 500;
  transition: color .2s;
  display: inline-flex;
}

.memory-back:hover {
  color: var(--fg);
}

.memory-timer {
  background: rgba(var(--surface-tint), .04);
  border: 1px solid rgba(var(--surface-tint), .06);
  color: var(--muted);
  border-radius: 100px;
  align-items: center;
  gap: .45rem;
  padding: .35rem .85rem;
  display: inline-flex;
}

.memory-timer-value {
  font-family: var(--font-mono);
  color: var(--fg);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  min-width: 4.2ch;
  font-size: .85rem;
  font-weight: 600;
}

.memory-recall-round {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg);
  font-size: .75rem;
  font-weight: 600;
}

.memory-play-stats {
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  min-width: 110px;
  display: flex;
}

.memory-play-stat {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: .7rem;
  font-weight: 600;
}

.memory-play-stat--mistakes {
  color: #ef4444;
}

.memory-state-card {
  text-align: center;
  background: rgba(var(--surface-tint), .02);
  border: 1px solid rgba(var(--surface-tint), .05);
  border-radius: 16px;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  margin-top: 1rem;
  padding: 3rem 2rem;
  display: flex;
}

.memory-state-title {
  color: var(--fg);
  font-size: .95rem;
  font-weight: 600;
}

.memory-state-text {
  color: var(--muted);
  max-width: 380px;
  font-size: .8rem;
  line-height: 1.55;
}

.memory-spinner {
  border: 2px solid rgba(var(--surface-tint), .1);
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  animation: .9s linear infinite memory-spin;
}

@keyframes memory-spin {
  to {
    transform: rotate(360deg);
  }
}

.memory-actions {
  justify-content: center;
  gap: .6rem;
  display: flex;
}

.memory-action-btn {
  font-family: var(--font);
  letter-spacing: .04em;
  cursor: pointer;
  border-radius: 10px;
  padding: .55rem 1.15rem;
  font-size: .8rem;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}

.memory-action-btn--ghost {
  color: var(--muted);
  border: 1px solid rgba(var(--surface-tint), .08);
  background: none;
}

.memory-action-btn--ghost:hover {
  color: var(--fg);
  border-color: rgba(var(--surface-tint), .15);
}

.memory-action-btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.memory-action-btn--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.memory-results {
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
  display: flex;
}

.memory-results-head {
  justify-content: center;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.memory-results-title {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  color: var(--text-strong);
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
}

.memory-newbest {
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: #2563eb14;
  border: 1px solid #2563eb40;
  border-radius: 100px;
  align-items: center;
  padding: .2rem .55rem;
  font-size: .6rem;
  font-weight: 700;
  display: inline-flex;
}

.memory-results-bar {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: 0;
}

.memory-match-layout {
  grid-template-columns: minmax(220px, 300px) 1fr;
  align-items: start;
  gap: 1.5rem;
  margin-top: 1rem;
  display: grid;
}

.memory-match-prompt {
  background: rgba(var(--surface-tint), .025);
  border: 1px solid rgba(var(--surface-tint), .05);
  border-radius: 14px;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1.1rem 1.2rem;
  display: flex;
  position: sticky;
  top: 1.5rem;
}

.memory-prompt-label {
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  font-size: .65rem;
  font-weight: 600;
}

.memory-media-box {
  aspect-ratio: 1;
  border: 1px solid rgba(var(--surface-tint), .1);
  background: #fff;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 240px;
  display: flex;
  overflow: hidden;
}

.memory-media-box img {
  object-fit: contain;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  width: 100%;
  height: 100%;
  padding: .75rem;
}

.memory-match-grid {
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: .5rem;
  display: grid;
}

.memory-tile {
  aspect-ratio: 1;
  border: 1px solid rgba(var(--surface-tint), .06);
  background: rgba(var(--surface-tint), .025);
  color: var(--fg);
  font-family: var(--font);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s, opacity .2s;
  display: flex;
}

.memory-tile:hover:not(:disabled) {
  background: rgba(var(--surface-tint), .05);
  border-color: rgba(var(--surface-tint), .12);
}

.memory-tile:active:not(:disabled) {
  background: rgba(var(--surface-tint), .08);
}

.memory-tile--done {
  opacity: .25;
  cursor: default;
}

.memory-tile--right {
  color: #4ade80;
  background: #4ade8024 !important;
  border-color: #4ade8080 !important;
}

.memory-tile--wrong {
  color: #ef4444;
  animation: .35s memory-shake;
  background: #ef44441f !important;
  border-color: #ef444473 !important;
}

@keyframes memory-shake {
  0%, 100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-2px);
  }
}

.memory-pairs-grid {
  gap: .6rem;
  width: 100%;
  max-width: 640px;
  margin: 1rem auto 0;
  display: grid;
}

.memory-pairs-grid--easy, .memory-pairs-grid--medium {
  grid-template-columns: repeat(4, 1fr);
}

.memory-pairs-grid--hard {
  grid-template-columns: repeat(5, 1fr);
}

.memory-flip-card {
  aspect-ratio: 3 / 3.6;
  cursor: pointer;
  perspective: 700px;
  background: none;
  border: none;
  padding: 0;
}

.memory-flip-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  display: block;
  position: relative;
}

.memory-flip-card--flipped .memory-flip-inner {
  transform: rotateY(180deg);
}

.memory-flip-face {
  backface-visibility: hidden;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  inset: 0;
}

.memory-flip-back {
  background: rgba(var(--surface-tint), .025);
  border: 1px solid rgba(var(--surface-tint), .06);
  color: rgba(var(--surface-tint), .25);
  transition: background .2s, border-color .2s;
}

.memory-flip-card:hover .memory-flip-back {
  background: rgba(var(--surface-tint), .05);
  border-color: rgba(var(--surface-tint), .12);
}

.memory-flip-front {
  border: 1px solid rgba(var(--surface-tint), .12);
  background: #fff;
  overflow: hidden;
  transform: rotateY(180deg);
}

.memory-flip-front img {
  object-fit: contain;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  width: 100%;
  height: 100%;
  padding: .4rem;
}

.memory-flip-char {
  font-family: var(--font);
  color: #0f172a;
  font-size: 1.9rem;
  font-weight: 700;
}

.memory-flip-card--matched {
  cursor: default;
}

.memory-flip-card--matched .memory-flip-front {
  border-color: #4ade8080;
}

.memory-recall-stage {
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  min-height: 300px;
  margin-top: 1rem;
  display: flex;
}

.memory-recall-panel {
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.memory-recall-media {
  width: 220px;
}

.memory-recall-blank {
  background: #fff;
  width: 100%;
  height: 100%;
}

.memory-recall-cleared {
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #4ade80;
  padding: 2.5rem 0;
  font-size: .75rem;
  font-weight: 600;
}

.memory-recall-dots {
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  max-width: 420px;
  display: flex;
}

.memory-dot {
  background: rgba(var(--surface-tint), .12);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  transition: background .2s, transform .2s;
}

.memory-dot--active {
  background: var(--accent);
  transform: scale(1.3);
}

.memory-dot--done {
  background: #4ade80;
}

.memory-recall-grid {
  width: 100%;
  max-width: 640px;
}

.memory-footer {
  text-align: center;
  color: rgba(var(--surface-tint), .2);
  letter-spacing: .04em;
  padding: 3rem 0 1rem;
  font-size: .7rem;
}

.memory-footer a {
  color: rgba(var(--surface-tint), .35);
  text-underline-offset: 2px;
  text-decoration: underline;
}

.memory-footer a:hover {
  color: var(--fg);
}

@media (max-width: 860px) {
  .memory-match-layout {
    grid-template-columns: 1fr;
  }

  .memory-match-prompt {
    flex-flow: wrap;
    justify-content: center;
    position: static;
  }

  .memory-media-box {
    max-width: 170px;
  }
}

@media (max-width: 640px) {
  .memory-container {
    padding: 1rem 1rem 3rem;
  }

  .memory-title {
    font-size: 1.4rem;
  }

  .memory-grid {
    grid-template-columns: 1fr;
  }

  .memory-overview-bar {
    gap: .75rem;
    padding: 1rem;
  }

  .memory-overview-value {
    font-size: 1.2rem;
  }

  .memory-game-topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .memory-match-grid {
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
    gap: .4rem;
  }

  .memory-tile {
    border-radius: 8px;
    font-size: 1rem;
  }

  .memory-pairs-grid--easy, .memory-pairs-grid--medium, .memory-pairs-grid--hard {
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
  }

  .memory-flip-char {
    font-size: 1.5rem;
  }

  .memory-recall-media {
    width: 180px;
  }
}

/*# sourceMappingURL=app_memory_memory_39fd7db7.css.map*/