@font-face { font-family: "Plop Display"; src: url("assets/fonts/Grandstander.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plop Text"; src: url("assets/fonts/Andika-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plop Text"; src: url("assets/fonts/Andika-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root { color-scheme: only light; font-family: "Plop Text", sans-serif; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #e9a83a; touch-action: none; }
main, canvas { width: 100%; height: 100%; display: block; }
.card { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; color: #443b36; background-color: #d8b979; background-image: radial-gradient(#694d3530 1px,transparent 1px),linear-gradient(#e6ce96ed,#c99562ed); background-size: 9px 9px,auto; transition: opacity .25s; }
.card.hidden { opacity: 0; pointer-events: none; }
.mascot { width:min(62vw,310px); max-height:31vh; object-fit:contain; filter:drop-shadow(3px 8px 0 #76584355); animation:bob 2.1s infinite ease-in-out; }
h1 { margin: 4px 0 18px; font-family: "Plop Display",sans-serif; font-weight:850; font-size: clamp(52px,16vw,90px); line-height: .78; transform: rotate(-3deg); text-shadow: 2px 3px #f6e8bd,5px 7px #a8684b; }
p { font-size: 17px; font-weight: 750; line-height: 1.3; }
.how { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:min(92vw,430px); align-items:start; gap:10px; }
.how span { min-width:0; display:grid; grid-template-rows:24px 2.5em; align-items:start; gap:5px; padding:8px 3px 0; border-top:2px solid #59483c; color:#59483c; }
.how b { display:flex; height:24px; align-items:center; justify-content:center; gap:5px; font-family:"Plop Display",sans-serif; font-size:15px; white-space:nowrap; }
.how i { display:grid; width:18px; height:18px; flex:0 0 18px; place-items:center; border:1.5px solid currentColor; border-radius:50%; font-family:"Plop Text",sans-serif; font-size:11px; font-style:normal; line-height:1; }
.how small { display:grid; min-height:2.5em; place-items:start center; font-size:11px; line-height:1.2; }
.scoring { display:grid; gap:2px; margin:17px 0 13px; color:#5a4236; font-size:13px; }
.scoring span { display:block; }
.scoring b { margin-top:2px; font-family:"Plop Display",sans-serif; font-size:15px; }
button { border: 3px solid #493d35; border-radius: 47% 53% 45% 55%; padding: 15px 30px; color: #fff5d8; background: #587554; box-shadow: 3px 5px 0 #493d35; font-family:"Plop Display",sans-serif; font-size: 18px; font-weight: 800; cursor: pointer; transform:rotate(-1deg); }
button:active { transform: translateY(5px); box-shadow: 0 2px 0 #452455; }
.secondary { margin-top: 13px; padding: 9px 22px; color: #493d35; background: #ddc58f; box-shadow: 2px 4px 0 #765843; font-size: 13px; transform:rotate(1deg); }
.copyright { position:absolute; right:0; bottom:max(10px,env(safe-area-inset-bottom)); left:0; color:#5a4236; font-size:11px; font-weight:700; letter-spacing:.04em; opacity:.72; }
.album-card { padding: 22px; background: linear-gradient(#ffd86af5,#f3a43af5); }
.album-card h2 { margin: 0 0 18px; font-family:"Plop Display",sans-serif; font-size:clamp(30px,10vw,48px); font-weight:850; line-height:.95; }
#albumGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(92vw,430px); margin-bottom: 22px; }
.album-item { display: grid; gap: 5px; min-height: 112px; padding: 7px; border: 2px solid #68416e; border-radius: 20px 13px 23px 15px; color: #4a2e54; background: #fff3c9; box-shadow: 2px 4px 0 #b96f5366; font-weight: 850; font-size: 12px; overflow: hidden; transform: rotate(-.7deg); }
.album-item:nth-child(even) { border-radius: 13px 22px 15px 24px; transform: rotate(.8deg); }
.album-item.locked { color: #a97b70; background: #eecb92; }
.album-thumb { min-height: 76px; border-radius: 10px; background-image: url('assets/the-moments.png'); background-size: 200% 300%; background-repeat: no-repeat; }
.album-item.locked .album-thumb { background-image: none; display: grid; place-content: center; font-size: 34px; }
#albumTabs { display: flex; gap: 7px; min-height: 8px; margin-bottom: 10px; }
#albumTabs button { padding: 7px 12px; font-size: 11px; box-shadow: 0 3px 0 #452455; }
@media (max-height: 670px) {
  .mascot { width:170px; max-height:22vh; }
  h1 { margin-bottom: 11px; font-size: 50px; }
  .how { gap: 4px; }
  .how span { padding: 5px 2px 0; }
  .scoring { margin: 10px 0 8px; }
  button { padding: 11px 24px; }
  .secondary { margin-top: 8px; }
}
@keyframes bob { 50% { transform: translateY(-10px) rotate(3deg); } }
