/* Puffin Towers' Glossy Toy Box look: the sunset sky behind, a cream panel with a white rim and a
   soft drop, white rows, and headings in Lilita One (SIL Open Font License, fonts/LilitaOne-OFL.txt).
   The colours are the game's own (App/Views/Theme.swift). */

@font-face {
  font-family: "Lilita One";
  src: url("fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #3b1e54;
  --ink-soft: #7a6690;
  --panel-top: #fffbf2;
  --panel-bottom: #fff2dc;
  --panel-inner: #e9d6b8;
  --row-border: #f1e1c6;
  --row-inner: #f1e4cf;
  --row-shade: #d9c3a0;
  --shade: rgba(42, 20, 64, 0.28);
  --cherry: #e5203b;
  --cherry-edge: #9c0f25;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: #ee86c2; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #ee86c2 0%, #ffa3ae 45%, #ffc48e 80%, #ffe6a6 100%) fixed;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 56px;
}

header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

header img.icon {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 22%;
  border: 4px solid #fff;
  box-shadow: 0 5px 0 var(--shade), 0 12px 22px rgba(0, 0, 0, 0.12);
}

header a { color: inherit; text-decoration: none; }

h1, h2 {
  font-family: "Lilita One", ui-rounded, -apple-system, sans-serif;
  font-weight: 400;
}

h1 { margin: 0; line-height: 1; }

/* The support page uses the game's logo as its title. */
h1 img.logo {
  display: block;
  width: 228px;
  max-width: 100%;
  height: auto;
}

/* A white title with a cherry outline and drop, like the game's titles. */
h1.title {
  font-size: 40px;
  line-height: 1.1;
  color: #fff;
  text-shadow:
    2px 0 0 var(--cherry-edge), -2px 0 0 var(--cherry-edge), 0 2px 0 var(--cherry-edge), 0 -2px 0 var(--cherry-edge),
    2px 2px 0 var(--cherry-edge), -2px 2px 0 var(--cherry-edge), 2px -2px 0 var(--cherry-edge), -2px -2px 0 var(--cherry-edge),
    0 5px 0 var(--cherry-edge);
}

.tagline {
  margin-top: 6px;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 0 rgba(59, 30, 84, 0.4);
}

/* The cream panel: a white rim, a warm inner edge at the bottom, a firm drop and a soft shadow. */
.sheet {
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border: 5px solid #fff;
  border-radius: 32px;
  padding: 6px 24px 22px;
  box-shadow: inset 0 -5px 0 var(--panel-inner), 0 6px 0 var(--shade), 0 16px 28px rgba(0, 0, 0, 0.14);
}

h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 28px 0 6px;
  color: var(--ink);
}

/* A white row, like the lists in the game. */
.card {
  background: #fff;
  border: 2px solid var(--row-border);
  border-radius: 20px;
  padding: 14px 18px;
  margin: 20px 0 8px;
  box-shadow: inset 0 -2px 0 var(--row-inner), 0 3px 0 var(--row-shade);
}

ul { padding-left: 22px; }

/* Long addresses (the email) wrap instead of sticking out on very narrow screens. */
a { color: var(--cherry); font-weight: 700; overflow-wrap: anywhere; }

nav {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 3px dashed var(--row-border);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.credits {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.credits a { font-weight: 600; }

@media (max-width: 480px) {
  h1.title { font-size: 32px; }
  h1 img.logo { width: 176px; }
  .tagline { font-size: 15px; }
  header img.icon { width: 68px; height: 68px; }
  .sheet { padding: 4px 16px 18px; border-radius: 26px; }
}
