* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; font-family: "Trebuchet MS", system-ui, sans-serif;
  background: linear-gradient(160deg, #ffe3ec, #e6dcff); color: #5a2a45; text-align: center;
}
#app { max-width: 720px; margin: 0 auto; padding: 24px 16px; }
.hidden { display: none !important; }
h1 { font-size: 2rem; }
.cards { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.card {
  background: #fff; border: 3px solid transparent; border-radius: 18px; padding: 10px;
  width: 280px; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.12); transition: transform .15s;
  font: inherit; color: inherit;
}
.card:hover { transform: translateY(-4px) scale(1.03); border-color: #ff7aa8; }
.primary {
  background: #ff5c93; color: #fff; border: 0; border-radius: 999px; padding: 14px 34px;
  font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 10px rgba(255,92,147,.4);
}
.primary:disabled { background: #bbb; box-shadow: none; cursor: default; }
.hud { font-size: 1.3rem; font-weight: bold; margin-bottom: 8px; }
canvas {
  width: 100%; max-width: 360px; touch-action: none; border-radius: 18px;
  background: linear-gradient(#1c2a58, #3d5a9e); box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.memgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 360px; margin: 0 auto; }
.mem { aspect-ratio: 1; font-size: 2rem; border: 0; border-radius: 12px; background: #fff; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.mem.up { background: #ffd6e5; }
.mem:disabled { opacity: .6; }
.wheelwrap { position: relative; width: 280px; margin: 24px auto; }
.pointer { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 2rem; color: #ff3d7f; z-index: 2; }
.wheel {
  position: relative; width: 280px; height: 280px; border-radius: 50%; border: 6px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
  background: conic-gradient(#ff9ec0 0 25%, #c9b6ff 0 50%, #ffd98e 0 75%, #9fe0c8 0 100%);
  transition: transform 5s cubic-bezier(.12,.6,.1,1);
}
.photo { width: 100%; aspect-ratio: 1; border-radius: 14px; background-color: #f3e8ee; background-repeat: no-repeat; }
.photo.big { width: 320px; max-width: 90%; margin: 0 auto 16px; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.photo.thumb {
  position: absolute; left: 50%; top: 50%; width: 76px; border-radius: 50%; border: 3px solid #fff;
  transform: rotate(var(--a)) translateY(-90px) rotate(calc(-1 * var(--a))) translate(-50%, -50%);
}
.all { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.all figure { margin: 0; width: 44%; max-width: 230px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.all figcaption { font-size: .95rem; font-weight: bold; margin-top: 4px; }
.gallery { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gallery img { width: 46%; min-width: 220px; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.desc { max-width: 520px; margin: 0 auto 16px; line-height: 1.5; }
.desc ul { list-style: none; padding: 0; margin: 8px 0 0; color: #8a4a6b; font-size: .95rem; }
.present { max-width: 440px; margin: 0 auto; background: #fff; border-radius: 20px; padding: 14px 14px 22px; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.present img { width: 100%; border-radius: 14px; }
.present ul { text-align: left; display: inline-block; margin: 0 0 16px; padding-left: 20px; line-height: 1.6; }
.linkbtn { display: inline-block; text-decoration: none; }
.place { display: inline-block; background: #ff5c93; color: #fff; font-weight: bold; font-size: 1.15rem; padding: 8px 18px; border-radius: 999px; margin: 0 0 10px; }
