
@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@500;700&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  --ink: #15191f;
  --paper: #f5f6f8;
  --accent: #ff6a4a;
  --accent-dark: #cc4c32;
  --shadow: rgba(15, 23, 42, 0.14);
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.95), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(255, 242, 230, 0.9), transparent 50%),
    linear-gradient(160deg, #f3f5f9 0%, #e7edf5 40%, #d8e1ec 100%);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 18px 28px;
  perspective: 1000px;
}
main {
  width: min(980px, 100%);
  display: grid;
  align-content: start;
  gap: 8px;
}
h1 {
  font-family: "Fraunces", "Yu Mincho", serif;
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.hero {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(255, 230, 214, 0.5), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 248, 250, 0.92) 100%);
  border-radius: 22px;
  padding: 18px 22px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 32px var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.6), transparent 55%);
  opacity: 0.45;
  pointer-events: none;
}
.hero p {
  margin: 0;
  color: rgba(21, 25, 31, 0.72);
  max-width: 560px;
  line-height: 1.6;
}
.hero p:last-of-type {
  margin-bottom: 0;
}
.games {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  align-content: start;
  gap: 16px;
}
.games li {
  margin: 0;
}
.game-card {
  display: block;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.game-card:hover {
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.2);
}
.game-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 14px 16px;
  transform: translateZ(20px);
}
.game-visual {
  border-radius: 16px;
  height: 130px;
  position: relative;
  overflow: hidden;
  transform: translateZ(40px);
  border: 1px solid rgba(21, 25, 31, 0.06);
  display: grid;
  place-items: center;
}
.game-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.25), transparent);
  z-index: 1;
}
.game-visual::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(21, 25, 31, 0.08);
  z-index: 2;
}
.game-thumb {
  width: 78%;
  height: 78%;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 10px 16px rgba(23, 15, 10, 0.2));
}
.game-card[data-game="library"] .game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
.feedback {
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 32px var(--shadow);
  display: grid;
  gap: 10px;
}
.feedback h2 {
  margin: 0;
  font-family: "Fraunces", "Yu Mincho", serif;
  font-size: 1.2rem;
}
.feedback p {
  margin: 0;
  color: rgba(21, 25, 31, 0.72);
}
.feedback-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 20px rgba(255, 106, 74, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feedback-link:hover,
.feedback-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(255, 106, 74, 0.36);
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}
.scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.piece {
  position: absolute;
  border-radius: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 8px 12px rgba(23, 15, 10, 0.2));
}
.scene-room .window {
  left: 10%;
  top: 18%;
  width: 32%;
  height: 40%;
  background-image: url("1/assets/safe-closed.svg");
  border-radius: 12px;
}
.scene-room .shelf {
  left: 8%;
  bottom: 12%;
  width: 60%;
  height: 28%;
  background-image: url("1/assets/shelf.svg");
}
.scene-room .key {
  right: 14%;
  top: 18%;
  width: 20%;
  height: 20%;
  background-image: url("1/assets/key.svg");
}
.scene-room .memo {
  right: 12%;
  bottom: 16%;
  width: 28%;
  height: 22%;
  background-image: url("1/assets/memo.svg");
}
.scene-train .train-window {
  left: 12%;
  top: 20%;
  width: 38%;
  height: 40%;
  background-image: url("2/assets/window.svg");
  border-radius: 18px;
}
.scene-train .door {
  right: 12%;
  top: 18%;
  width: 26%;
  height: 60%;
  background-image: url("2/assets/door.svg");
  border-radius: 12px;
}
.scene-train .monitor {
  left: 18%;
  bottom: 18%;
  width: 26%;
  height: 16%;
  background-image: url("2/assets/monitor.svg");
}
.scene-library .shelf {
  left: 6%;
  top: 16%;
  width: 44%;
  height: 48%;
  background-image: url("3/assets/shelf.svg");
}
.scene-library .desk {
  right: 8%;
  bottom: 16%;
  width: 40%;
  height: 32%;
  background-image: url("3/assets/desk.svg");
}
.scene-library .bookmark {
  right: 18%;
  top: 16%;
  width: 18%;
  height: 28%;
  background-image: url("3/assets/bookmark.svg");
}
.scene-library .page {
  left: 14%;
  bottom: 12%;
  width: 28%;
  height: 24%;
  background-image: url("3/assets/page.svg");
}
.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(21, 25, 31, 0.6);
}
.game-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 700;
}
.game-desc {
  margin: 4px 0 6px;
  color: rgba(21, 25, 31, 0.72);
}
.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  width: fit-content;
  transition: background-color 0.2s, transform 0.2s ease;
  box-shadow: 0 10px 18px rgba(255, 106, 74, 0.28);
}
.game-card:hover .play {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.play span {
  font-size: 1rem;
  transition: transform 0.3s ease;
}
.game-card:hover .play span {
    transform: translateX(2px);
}

.game-card[data-game="room"] .game-visual {
  background: radial-gradient(circle at 30% 20%, rgba(206, 95, 58, 0.5), transparent 60%),
    linear-gradient(140deg, #f4e5cf, #d0b59a);
}
.game-card[data-game="train"] .game-visual {
  background: radial-gradient(circle at 70% 30%, rgba(80, 130, 180, 0.45), transparent 60%),
    linear-gradient(140deg, #e3ecf6, #b7c7da);
}
.game-card[data-game="library"] .game-visual {
  background: radial-gradient(circle at 30% 20%, rgba(240, 200, 150, 0.45), transparent 60%),
    linear-gradient(140deg, #f4ede4, #d8c8b7);
}
@media (min-width: 760px) {
  .game-inner {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    align-items: center;
  }
  .game-visual {
    height: 150px;
  }
  .games {
    gap: 24px;
  }
}
.note {
  color: rgba(21, 25, 31, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
}
