/* One narrow column of big, tappable doors on a cotton candy wall papered with banana friends. */
:root {
  color-scheme: light;
  --pink: #ffd3e4;
  --pink-deep: #e84f8f;
  --butter: #fff2ad;
  --cream: #fffdf4;
  --plum: #57233f;
  --plum-soft: #7b4560;
  --display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, sans-serif;
}
html { background: var(--pink); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--plum);
  font: 500 1.05rem/1.5 var(--body);
  background-color: var(--pink);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cdefs%3E%3Cg id='b'%3E%3Cpath d='M20 15C16 42 38 70 75 66c6-1 10-6 7-11C62 50 46 36 36 13 34 8 21 9 20 15Z' fill='%23ffdc55' stroke='%238a5a2b' stroke-width='2.5' stroke-linejoin='round'/%3E%3Cpath d='M22 15c-1-4 0-8 2-10l8 1c1 3 2 5 3 8' fill='%23a9783f' stroke='%238a5a2b' stroke-width='2.5' stroke-linejoin='round'/%3E%3Ccircle cx='38' cy='44' r='2.8' fill='%2357233f'/%3E%3Ccircle cx='49' cy='47' r='2.8' fill='%2357233f'/%3E%3Cpath d='M40 50c2 3 5 3.500 7 1.500' fill='none' stroke='%2357233f' stroke-width='2' stroke-linecap='round'/%3E%3Cellipse cx='34' cy='50' rx='3.500' ry='2.200' fill='%23ff9dbf'/%3E%3Cellipse cx='53' cy='54' rx='3.500' ry='2.200' fill='%23ff9dbf'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23b' transform='translate(18 14) rotate(-10 50 40)'/%3E%3Cuse href='%23b' transform='translate(190 62) rotate(24 50 40) scale(.8)'/%3E%3Cuse href='%23b' transform='translate(84 186) rotate(12 50 40) scale(.9)'/%3E%3Cuse href='%23b' transform='translate(226 222) rotate(-28 50 40) scale(.7)'/%3E%3Cg fill='%23fff7c2'%3E%3Ccircle cx='150' cy='40' r='5'/%3E%3Ccircle cx='40' cy='150' r='4'/%3E%3Ccircle cx='290' cy='180' r='5'/%3E%3Ccircle cx='190' cy='300' r='4'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #ffc9df 0%, #ffdfe9 45%, var(--butter) 100%);
  background-size: 320px 320px, 100% 100%;
  background-attachment: fixed;
}
main {
  max-width: 34rem;
  margin: 0 auto;
  padding-block: 2.5rem 3rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid;
  gap: 1rem;
}
header {
  background: var(--cream);
  border: 3px solid var(--plum);
  border-radius: 1.75rem;
  padding: 1.5rem;
  box-shadow: 0 6px 0 var(--pink-deep);
}
h1 {
  margin: 0;
  font: 700 clamp(2.1rem, 8vw, 3rem)/1.05 var(--display);
  color: var(--pink-deep);
  text-wrap: balance;
}
header { text-align: center; }
header p { margin: .6rem 0 0; font-weight: 700; }
.door {
  display: grid;
  gap: .1rem;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border: 3px solid var(--plum);
  border-radius: 1.25rem;
  box-shadow: 0 5px 0 var(--plum);
  color: var(--plum);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.door:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--plum); }
.door:active { transform: translateY(5px); box-shadow: 0 0 0 var(--plum); }
.door:focus-visible { outline: 4px solid var(--pink-deep); outline-offset: 3px; }
.door strong { font: 600 1.45rem/1.2 var(--display); }
.door span { color: var(--plum-soft); font-weight: 700; }
.door .poem { font-style: italic; line-height: 1.4; font-size: 0.92rem; }
.door .poem span { display: block; padding-left: 1.1em; text-indent: -1.1em; }
.door.main { background: var(--pink-deep); padding-block: 1.4rem; }
.door.main strong { color: #fff; font-size: 2rem; }
.door.main span { color: #fff; }
.game {
  background: var(--butter);
  border: 3px solid var(--plum);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  min-width: 0;
}
.game h2 { margin: 0; font: 600 1.45rem/1.2 var(--display); }
.game p { margin: .35rem 0 0; font-weight: 700; }
.game code {
  display: block;
  margin-top: .6rem;
  padding: .55rem .7rem;
  background: var(--cream);
  border: 2px dashed var(--plum);
  border-radius: .7rem;
  font: 700 .95rem/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
  user-select: all;
}
footer { text-align: center; font-weight: 800; color: var(--plum); }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
.pill {
  display: inline-block;
  margin-top: .8rem;
  padding: .3rem .85rem;
  border: 2px solid var(--plum);
  border-radius: 999px;
  background: #d9f7c9;
  color: var(--plum);
  font-weight: 800;
  text-decoration: none;
}
.pill.bad { background: #ffb3b3; }
.pill:focus-visible, .poster:focus-visible, .back:focus-visible { outline: 4px solid var(--pink-deep); outline-offset: 3px; }
.notice {
  background: var(--pink-deep);
  color: #fff;
  border: 3px solid var(--plum);
  border-radius: 1.25rem;
  padding: .85rem 1.25rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.card {
  background: var(--cream);
  border: 3px solid var(--plum);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  min-width: 0;
}
.card h2 { margin: 0; font: 600 1.45rem/1.2 var(--display); }
.card h3 { margin: 1rem 0 .5rem; font: 600 1.1rem/1.2 var(--display); }
.card p { margin: .4rem 0 0; }
.card ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.card a { color: var(--pink-deep); font-weight: 800; }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.poster { display: grid; gap: .25rem; align-content: start; min-width: 0; color: var(--plum) !important; text-decoration: none; font: 700 .82rem/1.2 var(--body) !important; overflow-wrap: anywhere; }
.poster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border: 2px solid var(--plum); border-radius: .6rem; background: var(--pink); }
.players { font-weight: 800 !important; }
.back { justify-self: start; padding: .3rem .85rem; background: var(--cream); border: 2px solid var(--plum); border-radius: 999px; color: var(--plum); font-weight: 800; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .door { transition: none; } }
