/* Fonts, served from this site instead of Google Fonts. Each file is the latin subset; the ones with a
   range of weights are variable fonts. */
@font-face { font-family: "Bungee"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/bungee-latin.woff2") format("woff2"); }
@font-face { font-family: "Lobster"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lobster-latin.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("../fonts/nunito-latin.woff2") format("woff2"); }

/* ===== Interactive resume (game page) ===== */
:root {
  --ink: #1d1530;
  --paper: #fffaf0;
  --pink: #f26b83;
  --orange: #ff9a2e;
  --green: #62d84e;
  --hud: rgba(22, 18, 44, 0.78);   /* the game sets this from the sky of the current zone */
  --display: "Bungee", "Impact", sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #29b6f6; color: var(--ink);
  font-family: var(--body);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink); }

/* ---------- stage, sky and parallax ---------- */
#stage { position: fixed; inset: 0; overflow: hidden; touch-action: none; }
#sky { position: absolute; inset: 0; background: #29b6f6; }
#stars {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 30% 42%, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 47% 12%, #ffe9a6 50%, transparent 52%),
    radial-gradient(2px 2px at 63% 33%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 78% 15%, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 90% 38%, #ffe9a6 50%, transparent 52%),
    radial-gradient(2px 2px at 20% 60%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 70% 55%, #fff 50%, transparent 52%);
}
#scene, #world { position: absolute; left: 0; top: 0; height: 600px; transform-origin: 0 0; will-change: transform; }
.layer { position: absolute; left: 0; right: 0; background-repeat: repeat-x; }
.layer--clouds {
  top: 20px; height: 300px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1100' height='300'%3E%3Cg fill='%23fff'%3E%3Crect x='80' y='60' width='150' height='34' rx='17'/%3E%3Ccircle cx='130' cy='58' r='24'/%3E%3Ccircle cx='178' cy='50' r='30'/%3E%3Crect x='470' y='140' width='120' height='28' rx='14'/%3E%3Ccircle cx='510' cy='138' r='20'/%3E%3Ccircle cx='548' cy='132' r='25'/%3E%3Crect x='780' y='48' width='170' height='36' rx='18'/%3E%3Ccircle cx='830' cy='46' r='26'/%3E%3Ccircle cx='884' cy='38' r='32'/%3E%3Crect x='300' y='210' width='100' height='24' rx='12'/%3E%3Ccircle cx='334' cy='208' r='17'/%3E%3Ccircle cx='366' cy='203' r='21'/%3E%3Crect x='930' y='200' width='100' height='24' rx='12'/%3E%3Ccircle cx='964' cy='198' r='17'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 1100px 300px;
}
.layer--hills {
  bottom: 96px; height: 264px;   /* 4px of empty margin under the hills: the image's bottom row must be transparent, or it bleeds into the top edge as a line */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='264'%3E%3Cpolygon points='860,260 1030,60 1200,260' fill='%23c9a26b'/%3E%3Cpolygon points='1030,60 1200,260 1030,260' fill='%238d6a3c'/%3E%3Cpath d='M0 260A200 120 0 0 1 400 260Z' fill='%2343a047'/%3E%3Cpath d='M370 260A250 85 0 0 1 870 260Z' fill='%2366bb6a'/%3E%3Cpath d='M1200 260A100 70 0 0 1 1400 260Z' fill='%2343a047'/%3E%3C/svg%3E");
  background-size: 1400px 264px;
}

/* ---------- icons ----------
   Drawn here as masks, so each one takes the colour and the size of the text around it and nothing
   is loaded from outside. The class names are the Font Awesome ones the markup was written with. */
.fa { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.fa-star { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.95 5.98 6.6.96-4.78 4.65 1.13 6.57L12 17.56l-5.9 3.1 1.13-6.57L2.45 9.44l6.6-.96z'/%3E%3C/svg%3E"); }
.fa-user { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4.2'/%3E%3Cpath d='M3.5 21a8.5 8.5 0 0 1 17 0z'/%3E%3C/svg%3E"); }
.fa-caret-left { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 5v14L7 12z'/%3E%3C/svg%3E"); }
.fa-caret-right { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 5v14l8.5-7z'/%3E%3C/svg%3E"); }
.fa-linkedin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='4.8' cy='5' r='2.3'/%3E%3Cpath d='M2.9 9h3.8v12H2.9zM9.400 9h3.600v1.700c.7-1.200 2.100-2 3.900-2 3.300 0 4.200 2.100 4.200 5.200V21h-3.800v-6.300c0-1.500-.4-2.600-1.800-2.600-1.500 0-2.300 1-2.300 2.600V21H9.400z'/%3E%3C/svg%3E"); }
.fa-volume-off { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 9.500h3.500L12 5v14l-5-4.500H3.500z'/%3E%3C/svg%3E"); }
.fa-volume-up { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 9.500h3.500L12 5v14l-5-4.500H3.500z'/%3E%3Cpath d='M15.5 9a4.300 4.300 0 0 1 0 6M18 6.300a8.200 8.200 0 0 1 0 11.400' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fa-file-text-o { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6zM14 3v4h4M9 12.500h6M9 16.500h6'/%3E%3C/svg%3E"); }
.fa-arrow-up { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V5M5.5 11.500L12 5l6.500 6.500'/%3E%3C/svg%3E"); }
.fa-times { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.fa-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7.500'/%3E%3C/svg%3E"); }
.fa-envelope { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 7.500l8.500 6 8.500-6'/%3E%3C/svg%3E"); }
.fa-cubes { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.500v9L12 21l-8-4.500v-9L12 3z'/%3E%3Cpath d='M4 7.500l8 4.500 8-4.500M12 12v9'/%3E%3C/svg%3E"); }
.fa-code { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5M13.500 4.500l-3 15'/%3E%3C/svg%3E"); }
.fa-exchange { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h15M15 4l4 4-4 4M20 16H5M9 12l-4 4 4 4'/%3E%3C/svg%3E"); }
.fa-laptop { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='5' width='14' height='10' rx='1.5'/%3E%3Cpath d='M2.5 19h19'/%3E%3C/svg%3E"); }
.fa-wrench { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.700 6.300a1 1 0 0 0 0 1.400l1.600 1.600a1 1 0 0 0 1.400 0l3.800-3.800a6 6 0 0 1-7.900 7.900l-6.900 6.900a2.100 2.100 0 0 1-3-3l6.900-6.900a6 6 0 0 1 7.900-7.900l-3.800 3.800z'/%3E%3C/svg%3E"); }
.fa-certificate { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='5.5'/%3E%3Cpath d='M8.500 13.500L7 21l5-2.500 5 2.500-1.500-7.500'/%3E%3C/svg%3E"); }
.fa-graduation-cap { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11.200V16c0 1.400 2.700 2.800 6 2.800s6-1.400 6-2.800v-4.800M22 9v5.500'/%3E%3C/svg%3E"); }
.fa-book { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.500C10 5 7 4.500 3.500 5v13c3.500-.5 6.500 0 8.500 1.500 2-1.500 5-2 8.500-1.500V5C17 4.500 14 5 12 6.500zM12 6.500v13'/%3E%3C/svg%3E"); }
.fa-language { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E"); }
.fa-microphone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5.500 11a6.500 6.500 0 0 0 13 0M12 17.500V21M8.500 21h7'/%3E%3C/svg%3E"); }
.fa-ticket { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2a2 2 0 0 0 0-4z'/%3E%3Cpath d='M14.500 7v2M14.500 11v2M14.500 15v2'/%3E%3C/svg%3E"); }
.fa-briefcase { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M3 13h18'/%3E%3C/svg%3E"); }

/* ---------- ground ---------- */
.ground {
  position: absolute; left: 0; bottom: 0; height: 100px;
  background:
    linear-gradient(#5fae2f 0 4px, transparent 4px) 0 14px / 100% 4px no-repeat,
    linear-gradient(#7ac943, #7ac943) 0 0 / 100% 14px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='40'%3E%3Crect width='60' height='40' fill='%238d5a30'/%3E%3Cpath d='M0 10 L15 0 L30 10 L45 0 L60 10 L60 24 L45 14 L30 24 L15 14 L0 24Z' fill='%23b07a45'/%3E%3C/svg%3E") 0 18px / 60px 40px repeat;
}

/* ---------- title ---------- */
.title { position: absolute; left: 330px; bottom: 130px; width: 760px; }
.ribbon {
  position: relative; display: inline-block; margin: 0 0 14px 150px;
  padding: 8px 34px; background: #e53947; color: #fff;
  font: 700 26px/1 "Lobster", cursive; letter-spacing: 0.5px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}
.ribbon::before, .ribbon::after {
  content: ""; position: absolute; top: 10px; width: 26px; height: 100%; background: #c52b39; z-index: -1;
}
.ribbon::before { left: -18px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); }
.ribbon::after { right: -18px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); }
.title h1 { margin: 0; font: 400 96px/0.95 var(--display); letter-spacing: 2px; }
.title h1 span { display: block; }
.title .t1 { color: #ffa63a; margin-left: 20px; }
.title .t2 { color: #ff7e96; margin-left: 110px; }
.title p { margin: 22px 0 0 112px; font: 800 22px/1 var(--body); letter-spacing: 3px; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); }

/* ---------- scenery ---------- */
.deco { position: absolute; bottom: 100px; pointer-events: none; }
.tree { width: 70px; height: var(--h, 150px); }
.tree::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 34%;
  background: var(--tc, #4caf50); border-radius: 36px 36px 22px 22px;
  box-shadow: inset -10px 0 0 rgba(0, 0, 0, 0.12);
}
.tree::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 16px; height: 42%; margin-left: -8px; background: #a1663a; }
.bush { width: 96px; height: 50px; background: var(--tc, #43a047); border-radius: 48px 48px 0 0; box-shadow: inset -12px 0 0 rgba(0, 0, 0, 0.12); }

.sign { width: 230px; height: 150px; }
.sign__post { position: absolute; left: 50%; bottom: 0; width: 14px; height: 90px; margin-left: -7px; background: #a1663a; box-shadow: inset -4px 0 0 rgba(0,0,0,.15); }
.sign__plate {
  position: absolute; left: 0; right: 0; top: 0; height: 64px; display: grid; place-items: center; text-align: center;
  background: #c98a4b; border: 5px solid #8d5a30; border-radius: 12px; color: #fff8e6;
  font: 400 24px/1.05 var(--display); text-shadow: 0 3px 0 rgba(0,0,0,.25); padding: 0 8px;
  box-shadow: inset 0 4px 0 rgba(255,255,255,.2);
}

.house { width: 190px; height: 150px; }
/* the wall tucks 2px under the roof's base, where the roof is wider than the wall, so no corner shows above it */
.house__body { position: absolute; left: 0; right: 0; bottom: 0; height: 82px; background: var(--hc, #ffe0b2); border-radius: 0 0 6px 6px; box-shadow: inset -14px 0 0 rgba(0,0,0,.08); }
.house__roof { position: absolute; left: -14px; right: -14px; top: 0; height: 70px; background: #d9534f; clip-path: polygon(50% 0, 100% 100%, 0 100%); z-index: 1; }   /* on top of the wall, so the eaves overhang it */
.house__door { position: absolute; left: 24px; bottom: 0; width: 38px; height: 58px; background: #8d5a30; border-radius: 19px 19px 0 0; }
.house__win { position: absolute; right: 26px; bottom: 26px; width: 44px; height: 38px; background: #81d4fa; border: 5px solid #fff; border-radius: 6px; }
.house__chim { position: absolute; right: 38px; top: 8px; width: 18px; height: 40px; background: #8d5a30; }

.bld { width: var(--w, 200px); height: var(--bh, 300px); background: var(--bc2, #7e57c2); border-radius: 6px 6px 0 0; box-shadow: inset -16px 0 0 rgba(0,0,0,.13); }
.bld::before {   /* a grid of lit windows */
  content: ""; position: absolute; inset: 40px 12px 80px;
  background: repeating-linear-gradient(90deg, transparent 0 14px, #ffe9a6 14px 32px, transparent 32px 46px);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 46px);
          mask-image: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 46px);
}
.pill {
  position: absolute; left: 50%; top: -14px; transform: translateX(-50%); z-index: 2; white-space: nowrap;
  background: var(--ink); color: #fff; font: 800 13px/1 var(--body); padding: 6px 14px; border-radius: 99px; box-shadow: 0 3px 0 rgba(0,0,0,.25);
}
.bld::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 44px; height: 56px; margin-left: -22px; background: rgba(0,0,0,.35); border-radius: 22px 22px 0 0; }

.uni { width: 560px; height: 300px; }
.uni__pediment { position: absolute; left: 0; right: 0; top: 0; height: 80px; background: #f3ece0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.uni__beam { position: absolute; left: 0; right: 0; top: 80px; height: 26px; background: #e4dccb; }
.uni__cols { position: absolute; left: 12px; right: 12px; top: 106px; bottom: 16px; background: repeating-linear-gradient(90deg, #f3ece0 0 26px, transparent 26px 62px); box-shadow: none; }
.uni__steps { position: absolute; left: -10px; right: -10px; bottom: 0; height: 16px; background: #d9cfba; border-radius: 4px; }
.uni__back { position: absolute; left: 12px; right: 12px; top: 106px; bottom: 16px; background: #8c7ab8; }

.castle { width: 300px; height: 310px; }
.castle__main { position: absolute; left: 50px; right: 50px; bottom: 0; height: 210px; background: #d7ccc8; clip-path: polygon(0 0, 14% 0, 14% 8%, 28% 8%, 28% 0, 43% 0, 43% 8%, 57% 8%, 57% 0, 72% 0, 72% 8%, 86% 8%, 86% 0, 100% 0, 100% 100%, 0 100%); box-shadow: inset -20px 0 0 rgba(0,0,0,.1); }
.castle__tower { position: absolute; bottom: 0; width: 76px; height: 300px; background: #cfc4c0; clip-path: polygon(0 0, 22% 0, 22% 6%, 40% 6%, 40% 0, 60% 0, 60% 6%, 78% 6%, 78% 0, 100% 0, 100% 100%, 0 100%); }
.castle__tower--l { left: 0; } .castle__tower--r { right: 0; }
.castle__door { position: absolute; left: 50%; bottom: 0; width: 70px; height: 100px; margin-left: -35px; background: #6d4328; border-radius: 35px 35px 0 0; border: 5px solid #4a2c18; border-bottom: 0; }
.castle__win { position: absolute; left: 50%; bottom: 140px; width: 28px; height: 40px; margin-left: -14px; background: #263238; border-radius: 14px 14px 0 0; }

.flag { width: 130px; height: 300px; }
.flag__pole { position: absolute; left: 6px; bottom: 0; width: 8px; height: 100%; background: #eceff1; border-radius: 4px; box-shadow: inset -2px 0 0 rgba(0,0,0,.15); }
.flag__ball { position: absolute; left: 1px; top: -4px; width: 18px; height: 18px; background: #ffd54f; border-radius: 50%; }
.flag__cloth { position: absolute; left: 14px; top: 14px; width: 104px; height: 66px; background: #e53947; clip-path: polygon(0 0, 100% 50%, 0 100%); transform-origin: 0 50%; animation: wave 1.6s ease-in-out infinite; }
/* initials on the flag, kept near the pole where the pennant is tallest */
.flag__cloth span { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font: 400 15px/1 var(--display); letter-spacing: 0.5px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
/* the finish: the flag slides down the pole once the character has jumped at it */
.flag__cloth { transition: top 1.2s cubic-bezier(.3, .7, .3, 1); }
.flag.is-down .flag__cloth { top: 222px; }
.flag__tip {
  position: absolute; left: 22px; top: 100px; padding: 5px 11px; white-space: nowrap; border-radius: 99px;
  background: #fff; color: var(--ink); font: 800 12px/1 var(--body); box-shadow: 0 3px 0 rgba(0,0,0,.2);
  animation: tip 1.1s ease-in-out infinite;
}
.flag.is-down .flag__tip { display: none; }
@keyframes tip { 50% { transform: translateY(-5px); } }
/* the planes at the two changes of country: js/game.js moves them with the character, so there is
   no animation here, only the plane standing on the ground and hidden until its flight starts */
.plane { width: 120px; height: 50px; bottom: 102px; opacity: 0; will-change: transform, opacity; }
.plane svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* a small flag by the door of each workplace, for its country */
.doorflag { width: 4px; height: 50px; background: #eceff1; border-radius: 2px; box-shadow: inset -1px 0 0 rgba(0,0,0,.15); }
.doorflag i { position: absolute; right: 4px; top: 2px; width: 30px; height: 20px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); background: linear-gradient(#c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75%); }
.doorflag--ch i { width: 20px; background: linear-gradient(#fff, #fff) center / 62% 20% no-repeat, linear-gradient(#fff, #fff) center / 20% 62% no-repeat, #da291c; }
/* CERN: the Globe and the lab with its accelerator ring */
.cern { width: 260px; height: 230px; }
.cern svg { display: block; width: 100%; height: 100%; overflow: visible; }
}
@keyframes wave { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-5deg) scaleX(.93); } }

.board { width: 170px; height: 160px; }
.board__post { position: absolute; bottom: 0; width: 10px; height: 56px; background: #a1663a; }
.board__post--l { left: 22px; } .board__post--r { right: 22px; }
.board__frame { position: absolute; left: 0; right: 0; top: 0; height: 116px; background: #fffaf0; border: 6px solid #fffaf0; border-radius: 10px; box-shadow: 0 6px 0 rgba(0,0,0,.2); overflow: hidden; }
.board__frame picture { display: contents; }   /* only there to offer the WebP copy of the photo */
.board__frame img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 4px; }

.lights { position: absolute; height: 30px; background: radial-gradient(circle at 50% 14px, #ffd54f 5px, rgba(255,213,79,.28) 6px, transparent 11px) 0 0 / 44px 30px repeat-x; pointer-events: none; }
.lights::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: rgba(255,255,255,.45); }
.beam { width: 150px; height: 440px; background: linear-gradient(rgba(255, 244, 179, .0), rgba(255, 244, 179, .34)); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.cloudp { width: 150px; height: 60px; background: #fff; border-radius: 30px; box-shadow: inset 0 -8px 0 rgba(120,160,200,.25); }
.cloudp::before, .cloudp::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloudp::before { width: 54px; height: 54px; left: 24px; top: -26px; }
.cloudp::after { width: 70px; height: 70px; left: 66px; top: -38px; }

.end { position: absolute; bottom: 330px; font: 400 54px/1 var(--display); color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,.28); }

/* ---------- blocks ---------- */
.block {
  position: absolute; z-index: 2; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 10px;
  background: var(--bc, #ffb300); color: #fff; font: 400 32px/1 var(--display);
  display: grid; place-items: center; text-shadow: 0 3px 0 rgba(0, 0, 0, .28);
  box-shadow: inset 0 -7px 0 rgba(0,0,0,.2), inset 0 5px 0 rgba(255,255,255,.38), inset 0 0 0 3px rgba(0,0,0,.28), 0 5px 0 rgba(0,0,0,.22);
}
.block i { font-size: 28px; }
.block img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.block--img { background: #fffaf0; }
.block--img { box-shadow: inset 0 0 0 4px var(--bc), 0 5px 0 rgba(0,0,0,.22); }
/* a logo that brings its own background covers the whole block, edge to edge */
.block--fill { box-shadow: 0 5px 0 rgba(0,0,0,.22); }
.block--fill img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; filter: none; }
.block__cap {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  white-space: nowrap; background: #fff; color: var(--ink); font: 800 12px/1 var(--body);
  padding: 6px 12px; border-radius: 99px; box-shadow: 0 3px 0 rgba(0,0,0,.2); pointer-events: none; text-shadow: none;
}
.block__cap::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #fff; }
.block__tick {
  position: absolute; right: -8px; top: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff;
  font: 400 12px/22px var(--body); text-align: center; display: none; text-shadow: none; box-shadow: 0 0 0 3px #fff;
}
.block.done .block__tick { display: block; }
.block.bump { animation: bump .24s ease-out; }
@keyframes bump { 0% { transform: translateY(0); } 40% { transform: translateY(-14px); } 100% { transform: translateY(0); } }
.block:hover { filter: brightness(1.08); }
.coin {
  position: absolute; z-index: 4; width: 22px; height: 30px; border-radius: 50%; background: #ffd54f; border: 3px solid #e0a100;
  pointer-events: none; animation: coin .7s ease-out forwards;
}
@keyframes coin { 0% { transform: translateY(0) scaleX(1); opacity: 1; } 50% { transform: translateY(-70px) scaleX(.2); } 100% { transform: translateY(-40px) scaleX(1); opacity: 0; } }

/* contact signs (real links) */
.link {
  position: absolute; z-index: 2; display: grid; justify-items: center; gap: 4px; width: 150px; text-decoration: none; color: #fff;
  text-align: center; font: 800 13px/1.15 var(--body);
}
.link__box {
  width: 84px; height: 84px; display: grid; place-items: center; border-radius: 14px; background: var(--bc);
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.2), inset 0 5px 0 rgba(255,255,255,.35), inset 0 0 0 3px rgba(0,0,0,.28), 0 6px 0 rgba(0,0,0,.22);
  font-size: 40px; transition: transform .15s;
}
.link__mark { display: block; width: 48px; height: 48px; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.link:hover .link__box, .link:focus-visible .link__box { transform: translateY(-6px); }
.link span { background: var(--ink); padding: 5px 10px; border-radius: 99px; margin-top: 8px; }

/* ---------- player ---------- */
.player { position: absolute; z-index: 3; width: 125px; height: 104px; pointer-events: none; will-change: transform; }
.player canvas { display: block; width: 125px; height: 104px; }
/* speech bubble above the character */
.say {
  position: absolute; left: 50%; bottom: calc(100% - 10px); width: 230px; margin: 0; padding: 10px 14px; text-align: center;
  background: #fff; color: var(--ink); font: 800 14px/1.35 var(--body); border-radius: 14px; box-shadow: 0 4px 0 rgba(0,0,0,.2);
  opacity: 0; transform: translate(-50%, 8px) scale(.9); transform-origin: 50% 100%; transition: opacity .25s, transform .25s;
}
.say::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -8px; border: 8px solid transparent; border-top-color: #fff; }
.say.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.player.left canvas { transform: scaleX(-1); }
.player--pixel canvas, .picker__card canvas.pixel { image-rendering: pixelated; }   /* the two pixel-art characters stay crisp */
/* they fill their whole sprite, so they are drawn at 76% to stand as tall as the first character (js/game.js METRICS allows for it) */
.player--pixel canvas, .picker__card canvas.pixel { transform: scale(.76); transform-origin: 50% 100%; }
.player--pixel.left canvas { transform: scale(-.76, .76); }

/* ---------- HUD ---------- */
.hud {
  position: fixed; z-index: 20; left: 12px; right: 12px; top: 10px;
  display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px;
  background: var(--hud); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 16px; color: #fff; box-shadow: 0 6px 0 rgba(0,0,0,.18);
}
.hud__brand { font: 400 20px/1 "Lobster", cursive; color: #fff; text-decoration: none; white-space: nowrap; }
.hud__nav { display: flex; gap: 4px; flex: 1; min-width: 0; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.hud__nav::-webkit-scrollbar { display: none; }
.hud__nav button {
  border: 0; background: transparent; color: #d8d2f2; padding: 8px 12px; border-radius: 10px; white-space: nowrap;
  font: 400 12px/1 var(--display); letter-spacing: .5px; text-transform: uppercase; transition: background .15s, color .15s;
}
.hud__nav button:hover { background: rgba(255,255,255,.12); color: #fff; }
.hud__nav button[aria-current="true"] { background: #ffd54f; color: var(--ink); }
.hud__right { display: flex; align-items: center; gap: 10px; }
.hud__score { font: 800 14px var(--body); white-space: nowrap; background: rgba(255,255,255,.12); padding: 7px 12px; border-radius: 10px; }
.hud__score .fa { color: #ffd54f; }
.hud__classic { color: #fff; text-decoration: none; font: 800 13px var(--body); padding: 7px 12px; border-radius: 10px; border: 2px solid rgba(255,255,255,.3); white-space: nowrap; }
.hud__classic:hover { background: rgba(255,255,255,.14); }
.hud__char { color: #fff; background: transparent; font: 800 13px var(--body); padding: 7px 12px; border-radius: 10px; border: 2px solid rgba(255,255,255,.3); white-space: nowrap; }
.hud__char:hover { background: rgba(255,255,255,.14); }
.hud__music { min-width: 38px; text-align: center; }
.hud__music.is-on { background: rgba(255,255,255,.22); border-color: #fff; }
.hud__vol { width: 76px; margin: 0 2px 0 -4px; accent-color: #fff; cursor: pointer; }
.hud__vol[hidden] { display: none; }
@media (max-width: 900px) { .hud__vol { display: none; } }   /* small screens: use the device's own volume */

.hint {
  position: fixed; z-index: 15; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 18px; padding: 10px 20px; background: var(--hud); color: #fff; border-radius: 99px;
  font: 800 14px var(--body); white-space: nowrap; transition: opacity .5s, transform .5s;
  box-shadow: 0 5px 0 rgba(0,0,0,.18);
}
.hint.hide { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
.hint kbd { display: inline-block; min-width: 26px; padding: 3px 7px; margin: 0 1px; background: #fff; color: var(--ink); border-radius: 6px; font: 800 13px var(--body); text-align: center; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.hint__q { display: inline-grid; place-items: center; width: 22px; height: 22px; background: #ffb300; border-radius: 5px; font: 400 14px var(--display); }

.pad { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; display: none; justify-content: space-between; align-items: flex-end; padding: 0 18px calc(18px + env(safe-area-inset-bottom)); pointer-events: none; }
body.touch .pad { display: flex; }
.pad button {
  pointer-events: auto; width: 76px; height: 76px; border: 0; border-radius: 50%; background: rgba(22,18,44,.7); color: #fff;
  font-size: 40px; display: grid; place-items: center; touch-action: none; box-shadow: 0 5px 0 rgba(0,0,0,.2); user-select: none; -webkit-user-select: none;
}
.pad button:active, .pad button.on { background: #ffd54f; color: var(--ink); }
.pad__dir { display: flex; gap: 14px; }
.pad__jump { background: rgba(242,107,131,.9) !important; }

/* ---------- card ---------- */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__back { position: absolute; inset: 0; background: rgba(12, 10, 30, .55); animation: fade .2s ease-out; }
.card {
  position: relative; width: min(100%, 640px); max-height: min(86vh, 760px); display: flex; flex-direction: column;
  background: var(--paper); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 0 rgba(0,0,0,.22), 0 20px 60px rgba(0,0,0,.35);
  animation: pop .26s cubic-bezier(.2, 1.4, .4, 1);
}
.card:focus { outline: none; }
@keyframes pop { from { transform: translateY(24px) scale(.9); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 18px 20px 16px 24px; background: var(--bc, #ffb300); color: #fff; box-shadow: inset 0 -6px 0 rgba(0,0,0,.14); }
.card__head h2 { margin: 2px 0 0; font: 400 26px/1.1 var(--display); text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.card__kicker { margin: 0; font: 800 12px var(--body); letter-spacing: 1.5px; text-transform: uppercase; opacity: .95; }
.card__close { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,.28); color: #fff; font-size: 20px; }
.card__close:hover { background: rgba(255,255,255,.45); }
.card__body { padding: 20px 24px 24px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(43,35,64,.45) transparent; font-size: 16px; line-height: 1.55; font-weight: 600; }
.card__body::-webkit-scrollbar { width: 10px; }
.card__body::-webkit-scrollbar-thumb { background: rgba(43,35,64,.4); border-radius: 99px; border: 2px solid var(--paper); }
/* a long card scrolls inside; this fade at the bottom says there is more to read */
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; pointer-events: none; opacity: 0; transition: opacity .2s; border-radius: 0 0 20px 20px; background: linear-gradient(to bottom, rgba(255,250,240,0), var(--paper)); }
.card.has-more::after { opacity: 1; }
.card__body > :first-child { margin-top: 0; }
.card__body p { margin: 0 0 12px; }
.card__body ul { margin: 0 0 12px; padding-left: 22px; }
.card__body li { margin-bottom: 6px; }
.card__body strong { font-weight: 800; }
.card__body a { color: #1565c0; font-weight: 800; }
.card__body .meta { color: #5c5472; font-weight: 800; margin-bottom: 10px; }
.card__body .tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; }
.card__body .tags li { margin: 0; padding: 5px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 99px; font: 800 12px var(--body); }
.card__body .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; padding: 0; margin: 4px 0 14px; }
.card__body .stats li { margin: 0; padding: 12px 8px; text-align: center; background: #fff; border-radius: 14px; box-shadow: 0 4px 0 rgba(0,0,0,.12); font-size: 13px; line-height: 1.25; }
.card__body .stats b { display: block; font: 400 34px/1.1 var(--display); color: #ff7043; }
.card__body .badge { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.card__body .badge img { width: 96px; height: 96px; object-fit: contain; flex: none; }
/* each certificate is a white item card, like the lists in the other boxes */
.card__body .badges .badge { gap: 14px; margin-bottom: 6px; padding: 10px 12px; background: #fff; border-radius: 12px; box-shadow: 0 3px 0 rgba(0,0,0,.1); }
.card__body .badges .badge:last-child { margin-bottom: 0; }
.card__body .badges .badge img { width: 56px; height: 56px; }
.card__body .badges .badge p { margin: 0; }
.card__body .badges .badge .meta { font-size: 14px; font-weight: 600; }
.card__body .list { list-style: none; padding: 0; }
.card__body .list li { padding: 10px 12px; background: #fff; border-radius: 12px; box-shadow: 0 3px 0 rgba(0,0,0,.1); }
.card__body .list span { display: block; color: #5c5472; font-size: 14px; }
.card__body .list .has-logo { display: flex; align-items: center; gap: 14px; }
.card__body .list .has-logo img { flex: none; width: 92px; height: auto; }
.card__body .list .talk-line { color: #d6336c; font-weight: 800; font-size: 15px; margin: 2px 0; }
.card__body .list .talk-line b { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #5c5472; margin-right: 4px; }

/* ---------- character selector ---------- */
.picker { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(12, 10, 30, .62); }
.picker[hidden] { display: none; }
.picker__panel {
  width: min(100%, 760px); max-height: 94vh; overflow-y: auto; padding: 26px 26px 22px; text-align: center;
  background: var(--paper); border-radius: 22px; box-shadow: 0 10px 0 rgba(0,0,0,.22), 0 20px 60px rgba(0,0,0,.35);
  animation: pop .26s cubic-bezier(.2, 1.4, .4, 1);
}
.picker__panel h2 { margin: 0 0 18px; font: 400 30px/1.1 var(--display); color: var(--ink); }
.picker__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.picker__card {
  display: grid; justify-items: center; gap: 8px; padding: 12px 6px 10px; border: 4px solid transparent; border-radius: 16px;
  background: #fff; color: var(--ink); font: 400 15px/1 var(--display); box-shadow: 0 4px 0 rgba(0,0,0,.12);
  transition: transform .15s, border-color .15s, background .15s;
}
.picker__card canvas { width: 100%; max-width: 144px; aspect-ratio: 192 / 160; }
.picker__card:hover { transform: translateY(-3px); }
.picker__card.is-on { border-color: #ffb300; background: #fff6dc; transform: translateY(-5px); }
.picker__card:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
/* the music switch on the character screen (js/music.js keeps it in step with the button in the header) */
.picker__opts { display: flex; justify-content: center; margin-top: 18px; }
.picker__music { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 0; border-radius: 99px; background: #fff; color: var(--ink); font: 800 14px/1 var(--body); box-shadow: 0 3px 0 rgba(0,0,0,.12); cursor: pointer; }
.picker__music[hidden] { display: none; }
.picker__music .fa { font-size: 17px; }
.picker__music b { position: relative; width: 44px; height: 24px; border-radius: 99px; background: #c9c3d6; transition: background .15s; }
.picker__music b::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.35); transition: transform .15s; }
.picker__music.is-on b { background: #3aa82b; }
.picker__music.is-on b::after { transform: translateX(20px); }
.picker__music em { min-width: 24px; font-style: normal; text-align: left; color: #5c5472; }
.picker__music:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.picker__go {
  margin-top: 20px; padding: 13px 44px; border: 0; border-radius: 14px; background: #62d84e; color: #10300a;
  font: 400 20px/1 var(--display); box-shadow: inset 0 -6px 0 rgba(0,0,0,.18), 0 5px 0 rgba(0,0,0,.2);
}
.picker__go:hover { filter: brightness(1.06); }
.picker__hint { margin: 14px 0 0; color: #5c5472; font: 800 13px var(--body); }
.picker__hint kbd { display: inline-block; min-width: 24px; padding: 2px 6px; background: #fff; color: var(--ink); border-radius: 6px; font: 800 12px var(--body); box-shadow: 0 2px 0 rgba(0,0,0,.3); }
@media (max-width: 620px) {
  .picker__list { grid-template-columns: repeat(2, 1fr); }
  .picker__panel h2 { font-size: 23px; }
  .picker__hint { display: none; }
  .hud__char span { display: none; }
}
.noscript { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; margin: 0; background: #29b6f6; color: #fff; font: 800 20px var(--body); padding: 20px; text-align: center; }
.noscript a { color: #fff; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .hud { flex-wrap: wrap; row-gap: 6px; padding: 8px 10px; left: 8px; right: 8px; top: 8px; }
  .hud__nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .hud__right { margin-left: auto; }
  .hud__classic span { display: none; }
  .hint { display: none; }
  .card__head h2 { font-size: 21px; }
  .card__body .stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .flag__cloth, .flag__tip, .block.bump, .coin, .card, .modal__back { animation: none; }
}

