/* roominogame.com: one stylesheet for every page. The colours are the game's: its purple, its gold, its rooms. */
:root {
  --purple: #4a4396; --purple-2: #3b3584; --purple-deep: #2c2768;
  --gold: #f7bd2e; --gold-deep: #d29210;
  --ink: #2a2456; --muted: #5f5a8c; --line: #e4e0f4; --mist: #f4f2fb; --paper: #ffffff; --link: #4637c2;
  --red: #ef5059; --orange: #f68b24; --green: #45b83f; --blue: #3d7be8; --pink: #e8559a; --teal: #1fae9d;
  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 18px/1.6 var(--text); color: var(--ink); background: var(--mist); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .brand, .tagline, .mail { font-family: var(--round); font-weight: 800; }
h1, h2, h3 { line-height: 1.2; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* Landing page */
body.home { min-height: 100vh; color: #fff;
  background: var(--purple-deep) linear-gradient(180deg, var(--purple) 0%, var(--purple-2) 60%, var(--purple-deep) 100%) no-repeat; }
.hero { text-align: center; padding: 56px 0 28px; }
.hero .icon { width: 144px; height: 144px; margin: 0 auto 22px; filter: drop-shadow(0 12px 24px rgba(16, 12, 48, .45)); }
.hero h1 { font-size: clamp(46px, 10vw, 76px); margin: 0; letter-spacing: -0.01em; }
.tagline { color: var(--gold); font-size: clamp(22px, 4.6vw, 32px); margin: 4px 0 14px; line-height: 1.25; }
.lead { max-width: 640px; margin: 0 auto; color: #e7e4ff; font-size: 19px; }
/* Apple's own "Download on the App Store" badge, unaltered, with clear space of at least a quarter of its height */
.get { margin: 26px 0 0; }
.get .store { display: inline-block; padding: 14px; border-radius: 12px; }
.get .store img { width: 162px; height: 54px; }
.get small { display: block; margin-top: 2px; font: 600 14px/1.3 var(--text); color: #e7e4ff; opacity: .85; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 30px 0 10px; }
.feature { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 20px 20px 18px; }
.feature h2 { font-size: 22px; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.feature h2::before { content: ""; width: 18px; height: 18px; border-radius: 5px; background: var(--tile, var(--gold)); flex: none;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.feature p { margin: 0; color: #e0ddfb; font-size: 17px; }

.shots { list-style: none; margin: 22px 0 0; padding: 8px 0 18px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 42%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
.shots li { scroll-snap-align: start; }
.shots img { border-radius: 18px; box-shadow: 0 10px 26px rgba(12, 9, 40, .45); }
@media (min-width: 900px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; } }

/* Pages with text: support, privacy */
.bar { background: var(--purple); }
.bar .wrap { padding-top: 14px; padding-bottom: 14px; }
.bar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.bar img { width: 40px; height: 40px; }
.bar .brand { font-size: 23px; }
.page { max-width: 780px; margin: 0 auto; padding: 28px 16px 40px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 5vw, 44px); }
.page h1 { font-size: clamp(32px, 7vw, 44px); margin: 0 0 6px; }
.page h2 { font-size: 24px; margin: 36px 0 8px; }
.page h3 { font-size: 19px; margin: 22px 0 4px; }
.meta { color: var(--muted); margin: 0 0 18px; }
.page ul, .page ol { padding-left: 1.3em; }
.page li { margin: 4px 0; }
.mail { display: inline-block; margin: 6px 0 4px; padding: 10px 18px; border-radius: 14px; background: var(--gold); color: var(--ink);
  font-size: clamp(18px, 4.6vw, 22px); text-decoration: none; box-shadow: 0 4px 0 var(--gold-deep); overflow-wrap: anywhere; }
.note { background: var(--mist); border-radius: 14px; padding: 12px 16px; }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font: 800 20px/1.25 var(--round); color: var(--link); width: 14px; flex: none; }
details[open] summary::before { content: "\2013"; }
details p, details ol, details ul { margin: 8px 0 4px 24px; }

.site-foot { text-align: center; color: var(--muted); font-size: 15px; padding: 10px 16px 44px; }
.site-foot nav { margin-bottom: 4px; }
.site-foot a { margin: 0 6px; }
body.home .site-foot { color: #cfcaf5; padding-top: 34px; }
body.home .site-foot a { color: #fff; }
