/* Paper Party: the landing page (home.html). The game's own paper: cream stock, brown ink outline, white die-cut edge,
   hard drop shadow, the game's colours on a lawn. Light by design: no three.js; the only script is src/home/home.js,
   which draws the hero's world map with the game's own renderer (world.css styles it). */
:root {
  --ink: #4a2c1a; --ink2: #6b4a35; --paper: #fffaf0;
  --red: #ef4b3c; --yellow: #ffd84d; --blue: #39b8ee; --green: #57c94f; --purple: #b07cf2; --orange: #ff9838; --gold: #f5b800;
  --sky: #59a5f0; --grass: #8fd465;
  --display: "Lilita One", "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  /* white letters with an ink edge, like the game's titles (text-shadow, so it works in every browser) */
  --edge: .05em 0 0 var(--ink), -.05em 0 0 var(--ink), 0 .05em 0 var(--ink), 0 -.05em 0 var(--ink),
          .036em .036em 0 var(--ink), -.036em .036em 0 var(--ink), .036em -.036em 0 var(--ink), -.036em -.036em 0 var(--ink);
  --edge-thin: 1.5px 0 0 var(--ink), -1.5px 0 0 var(--ink), 0 1.5px 0 var(--ink), 0 -1.5px 0 var(--ink),
          1px 1px 0 var(--ink), -1px 1px 0 var(--ink), 1px -1px 0 var(--ink), -1px -1px 0 var(--ink);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--grass) var(--grain); color: var(--ink); font: 500 18px/1.45 var(--text); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid #1d5fd1; outline-offset: 4px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 8px 14px; font-weight: 700; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* ------------------------------------------------------------------------------------------ paper parts */
.cutout { color: #fff; text-shadow: var(--edge), 0 .1em 0 var(--ink); letter-spacing: .01em; line-height: 1.08; }
/* a die-cut sticker: ink line, white margin, hard shadow (the sprites' own edge). (.die, not .cut: world.css draws the
   map's cut-outs as .place .cut) */
.die { background: var(--paper) var(--grain); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 0 0 7px #fff, 0 11px 0 7px rgba(74, 44, 26, .24); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px;
  font: 400 20px/1 var(--display); letter-spacing: .02em; color: var(--ink); text-decoration: none; white-space: nowrap;
  padding: .7em 1.15em .75em; border-radius: 16px; border: 3px solid var(--ink); background: #fff; box-shadow: 0 5px 0 var(--ink);
  transition: transform .08s, box-shadow .08s, filter .15s; touch-action: manipulation;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.go { background: var(--yellow); }
.btn.big { font-size: 24px; }
.btn.sm { font-size: 17px; min-height: 42px; padding: .55em .95em .6em; box-shadow: 0 4px 0 var(--ink); }
.t0 { background-color: var(--red); } .t1 { background-color: var(--orange); } .t2 { background-color: var(--green); }
.t3 { background-color: var(--blue); } .t4 { background-color: var(--purple); } .t5 { background-color: var(--gold); }
.ico { flex: none; display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ink), 0 4px 0 2px rgba(74, 44, 26, .3); background-image: var(--grain); }
.ico svg { width: 28px; height: 28px; filter: drop-shadow(0 1.5px 0 rgba(74, 44, 26, .45)); }
.acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 18px; }
.center { text-align: center; margin-top: 44px; }

/* ------------------------------------------------------------------------------------------ the bar */
.bar { position: sticky; top: 0; z-index: 50; background: var(--paper) var(--grain); border-bottom: 3px solid var(--ink); box-shadow: 0 4px 0 rgba(74, 44, 26, .16); }
.bar-in { max-width: 1280px; margin: 0 auto; min-height: 70px; padding: 10px 24px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; gap: .32em; font: 400 25px/1 var(--display); text-decoration: none; flex: none; }
.logo .word { display: inline-flex; }
.logo i { font-style: normal; display: inline-block; color: #fff; min-width: .95em; padding: .05em .12em .09em; margin: 0 .02em; text-align: center; border: .08em solid #fff; border-radius: .18em; box-shadow: 0 0 0 .045em var(--ink), 0 .1em 0 .045em rgba(74, 44, 26, .45); background-image: var(--grain); text-shadow: 0 .06em 0 rgba(0, 0, 0, .25); }
.logo i:nth-child(odd) { rotate: -4deg; } .logo i:nth-child(even) { rotate: 3deg; translate: 0 .04em; }
.bar-links { display: flex; gap: 24px; margin-left: auto; }
.bar-links a, .textlink { font-weight: 600; text-decoration: none; padding: 6px 2px; border-bottom: 3px solid transparent; }
.bar-links a:hover, .textlink:hover { border-bottom-color: var(--orange); }
.bar-acts { display: flex; align-items: center; gap: 18px; }
@media (max-width: 900px) { .bar-links { display: none; } .bar-acts { margin-left: auto; } }
@media (max-width: 480px) { .bar-in { padding: 8px 16px; min-height: 62px; gap: 12px; } .logo { font-size: 19px; } .textlink { display: none; } }

/* ------------------------------------------------------------------------------------------ the hero: the sky, the trees, the world */
.hero { position: relative; overflow: hidden; background: var(--sky); border-bottom: 3px solid var(--ink); box-shadow: 0 5px 0 rgba(74, 44, 26, .16); }
.sky-band img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: max(100%, 1440px); max-width: none; height: auto; }
.hero-in { position: relative; max-width: 1380px; margin: 0 auto; padding: clamp(28px, 3.4vw, 44px) 24px 48px; }
.hero-copy { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(36px, 6vw, 76px); }
.lede { font-size: clamp(18px, 1.55vw, 21px); font-weight: 600; max-width: 650px; margin: 18px auto 0; }
.hero .acts { margin-top: 28px; }
.fine { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin-top: 24px; padding: .35em .9em .35em .4em; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; font-size: 16px; font-weight: 600; box-shadow: 0 3px 0 rgba(74, 44, 26, .3); }
.beta { background: var(--green) var(--grain); border: 2px solid var(--ink); border-radius: 12px; padding: .1em .6em .15em; font: 400 16px/1.3 var(--display); letter-spacing: .02em; }
/* the world: the game's paper sea (world.css .wstage) at 4:3, so its whole 4:3 middle shows, in a die-cut frame */
.hero-world { position: relative; max-width: 960px; margin: 40px auto 0; }
.hero-world .wstage { width: 100%; aspect-ratio: 4 / 3; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 0 0 7px #fff, 0 11px 0 7px rgba(40, 60, 90, .3); }
@supports not (aspect-ratio: 1) { .hero-world .wstage { height: 0; padding-top: 75%; } }
.map-key { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 14px; margin: 24px 0 0; }
.key { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; background: var(--paper) var(--grain); border: 2px solid var(--ink); border-radius: 999px; padding: .3em .45em .3em .55em; font: 400 18px/1.1 var(--display); letter-spacing: .01em; text-decoration: none; box-shadow: 0 3px 0 rgba(74, 44, 26, .3); }
.key::before { content: ''; width: .95em; height: .95em; border-radius: 50%; border: 2px solid var(--ink); background: #eadfcf; }
.key.live { background-color: var(--yellow); }
.key.live::before { background: #fff6b0; box-shadow: 0 0 6px 2px rgba(255, 255, 255, .9); }
.key b { font: 400 .8em/1 var(--display); letter-spacing: .03em; padding: .35em .6em .38em; border-radius: 999px; background: var(--green); border: 2px solid var(--ink); }
.key.soon { font: 600 16px/1.1 var(--text); padding-right: 1em; }
.key.live:hover { filter: brightness(1.05); transform: translateY(-1px); }
@media (min-width: 960px) {          /* side by side: the whole world above the fold, down to a 1024 x 768 projector */
  .hero-in { display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); gap: 36px; align-items: center; padding-bottom: 40px; }
  .hero-copy { text-align: left; margin: 0; max-width: 440px; }
  .hero h1 { font-size: clamp(34px, 3.3vw, 48px); }
  .lede { margin-left: 0; font-size: clamp(17px, 1.4vw, 20px); }
  .hero .acts { justify-content: flex-start; }
  .hero-world { margin: 0; max-width: none; }
  .map-key { margin-top: 22px; }
}
@media (min-width: 960px) and (max-width: 1199px) { .hero .btn.big { font-size: 20px; } .fine { font-size: 15px; } }
@media (max-width: 640px) {
  .hero-in { padding: 26px 16px 40px; }
  .hero-world { margin-top: 32px; }
  .hero-world .wstage { border-radius: 18px; }
  .key { font-size: 17px; }
}

/* ------------------------------------------------------------------------------------------ sections */
.sect { position: relative; padding: clamp(64px, 7.5vw, 104px) 0 0; }
.wrap { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.head { text-align: center; max-width: 960px; margin: 0 auto 44px; }
.head .sub { max-width: 660px; }
.head h2 { font-size: clamp(34px, 4.6vw, 58px); }
.sub { font-size: 20px; font-weight: 600; max-width: 660px; margin: 16px auto 0; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: .42em .9em .48em; font: 400 17px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: var(--edge-thin); border: 3px solid #fff; border-radius: 10px; box-shadow: 0 0 0 2px var(--ink), 0 4px 0 2px rgba(74, 44, 26, .35); background-image: var(--grain); rotate: -2deg; }
.eyebrow.red { background-color: var(--red); } .eyebrow.blue { background-color: var(--blue); } .eyebrow.orange { background-color: var(--orange); }
.eyebrow.purple { background-color: var(--purple); } .eyebrow.yellow { background-color: var(--gold); }
/* the paper world in the margins: only where the margins are wide enough to hold it whole */
.sect > .deco { display: none; position: absolute; z-index: 0; }
@media (min-width: 1440px) {
  .sect > .deco { display: block; }
  .g-left { left: calc(50% - 700px); } .g-right { right: calc(50% - 700px); }
  .d-tent { width: 132px; top: 120px; rotate: -4deg; }
  .d-bal-1 { width: 62px; top: 96px; right: calc(50% - 650px); rotate: 5deg; }
  .d-bal-2 { width: 62px; top: 232px; right: calc(50% - 690px); rotate: -4deg; }
  .d-perch { width: 96px; top: 140px; }
  .d-castle { width: 140px; top: 130px; }
  .d-lamp { width: 84px; top: 150px; left: calc(50% - 680px); }
  .d-egg { width: 110px; top: 150px; rotate: 5deg; }
  .d-sock { width: 100px; top: 140px; rotate: -6deg; }
  .d-crown { width: 104px; top: 120px; rotate: 8deg; }
  .d-star { width: 62px; top: 262px; right: calc(50% - 660px); }
  .d-flowers { width: 128px; top: 170px; }
  .d-fence { width: 136px; top: 170px; }
}

/* one turn */
.turn { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 24px; counter-reset: step; }
.step { counter-increment: step; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 12px 18px; }
.step::before { content: counter(step); position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; display: grid; place-items: center; font: 400 16px/1 var(--display); background: var(--ink); color: var(--paper); border-radius: 50%; }
.step img, .marks { height: 96px; width: auto; margin-bottom: 8px; }
.marks { display: flex; align-items: center; gap: 8px; }
.marks i { font-style: normal; display: grid; place-items: center; width: 52px; height: 52px; font: 400 32px/1 var(--display); color: #fff; border-radius: 14px; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--ink), 0 5px 0 2px rgba(74, 44, 26, .3); background-image: var(--grain); text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.marks .ok { background-color: var(--green); rotate: -5deg; } .marks .no { background-color: var(--red); rotate: 4deg; }
.step b { font: 400 21px/1.1 var(--display); }
.step span:not(.marks) { font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--ink2); }
@media (max-width: 1040px) { .turn { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .turn { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; } .step img, .marks { height: 80px; } .marks i { width: 44px; height: 44px; font-size: 26px; } }
/* the class, cheering */
.parade { list-style: none; max-width: 1180px; margin: 64px auto 0; padding: 0 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.parade img { display: block; height: 112px; width: auto; max-width: none; }
.parade li:nth-child(odd) img { rotate: -4deg; } .parade li:nth-child(even) img { rotate: 4deg; }
@media (max-width: 900px) { .parade li:nth-child(n+7) { display: none; } .parade img { height: 92px; } }
@media (max-width: 560px) { .parade li:nth-child(n+5) { display: none; } .parade img { height: 78px; } }

/* the games */
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: stretch; }
.game { display: flex; flex-direction: column; }
.shot { display: block; width: 100%; height: auto; border-radius: 19px 19px 0 0; border-bottom: 3px solid var(--ink); }
.game-body { display: flex; flex-direction: column; gap: 14px; padding: 22px 26px 26px; flex: 1; }
.game h3 { font-size: 34px; }
.game p { font-size: 17.5px; }
.shouts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shouts .lab { font-weight: 700; margin-right: 4px; }
.shouts i { font-style: normal; display: inline-block; font: 400 17px/1 var(--display); letter-spacing: .04em; color: #fff; text-shadow: var(--edge-thin); padding: .38em .65em .42em; border-radius: 9px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ink), 0 3px 0 2px rgba(74, 44, 26, .3); background-image: var(--grain); }
.boards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.boards img { display: block; width: 100%; height: auto; border-radius: 8px; border: 2px solid var(--ink); box-shadow: 0 3px 0 rgba(74, 44, 26, .25); }
.count { font-weight: 700; font-size: 15px; margin-top: -6px; color: var(--ink2); }
.perks { margin: 0; padding: 0 0 0 1.2em; font-size: 17px; font-weight: 600; display: grid; gap: 6px; }
.perks li::marker { color: var(--orange); }
.game .acts { justify-content: flex-start; margin-top: auto; padding-top: 6px; }
.soon-h { text-align: center; font-size: 30px; color: #fff; text-shadow: var(--edge), 0 .1em 0 var(--ink); margin: 60px 0 22px; }
.soon-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.soon-list li { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 8px 14px 8px 10px; background: var(--paper) var(--grain); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 0 0 5px #fff, 0 7px 0 5px rgba(74, 44, 26, .22); }
.soon-list img { flex: none; height: 50px; width: auto; max-width: 60px; object-fit: contain; }
.soon-list b { font: 400 17px/1.15 var(--display); }
@media (max-width: 900px) { .games { grid-template-columns: minmax(0, 1fr); max-width: 600px; margin: 0 auto; } .soon-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .game-body { padding: 18px 18px 22px; } .game h3 { font-size: 30px; } .soon-list { gap: 18px 16px; } .soon-list li { padding: 8px 10px 8px 8px; gap: 8px; } .soon-list img { height: 40px; max-width: 46px; } .soon-list b { font-size: 15.5px; } }

/* make a deck */
.make { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; align-items: start; }
.deckmock { margin: 0; padding: 22px 22px 24px; }
.deckmock figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.deckmock figcaption b { font: 400 24px/1.1 var(--display); }
.deckmock figcaption span { font-weight: 700; font-size: 15px; color: var(--ink2); }
.deckmock ol { list-style: none; margin: 0; padding: 0; counter-reset: card; }
.qrow { counter-increment: card; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 2px 14px; align-items: center; margin-top: 14px; padding: 10px 14px 10px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 rgba(74, 44, 26, .2); }
.qrow img { grid-row: span 2; width: 62px; height: auto; max-height: 72px; object-fit: contain; }
.qrow .q { font-weight: 700; font-size: 17px; }
.qrow .a { font-weight: 600; font-size: 16px; color: #2c7322; }
.qrow.mc { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ch { display: flex; flex-wrap: wrap; gap: 6px; }
.ch i { font-style: normal; font-weight: 600; font-size: 15px; padding: .12em .55em .16em; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); }
.ch i.right { background: #c9efb9; }
.mock-btn { display: inline-block; margin-top: 18px; font: 400 18px/1 var(--display); padding: .6em 1em .65em; background: var(--yellow); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
.ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
.way { padding: 20px 20px 22px; }
.way h3 { font-size: 23px; margin: 14px 0 6px; }
.way p { font-size: 16.5px; }
@media (max-width: 980px) { .make { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; } }
@media (max-width: 560px) { .ways { grid-template-columns: minmax(0, 1fr); gap: 26px; } .deckmock { padding: 18px 16px 20px; } }

/* the library */
.lib { padding: 30px 30px 34px; }
.decks3 { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.deckcard { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 124px; padding: 18px 18px 16px; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 rgba(74, 44, 26, .28); background-image: var(--grain); }
.c-green { background-color: #d9f4c6; } .c-blue { background-color: #cdeefd; } .c-orange { background-color: #ffe1c4; }
.deckcard b { font: 400 22px/1.15 var(--display); }
.lvl { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 15px; }
.lvl i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.lvl i.on { background: var(--ink); } .lvl i:nth-of-type(3) { margin-right: 6px; }
.topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.topics li { font-weight: 600; font-size: 15.5px; padding: .3em .85em .34em; background: #fff; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 rgba(74, 44, 26, .22); }
.topics li:nth-child(5n+1) { background: #ffe9a6; } .topics li:nth-child(5n+2) { background: #cdeefd; } .topics li:nth-child(5n+3) { background: #ffd9cf; }
.topics li:nth-child(5n+4) { background: #d9f4c6; } .topics li:nth-child(5n) { background: #eadcfd; }
.lib .center { margin-top: 30px; }
@media (max-width: 760px) { .decks3 { grid-template-columns: minmax(0, 1fr); gap: 16px; } .deckcard { min-height: 0; } .lib { padding: 22px 18px 26px; } }

/* runs on anything */
.devices { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: 1.45fr 1.1fr .75fr; gap: 40px; align-items: end; }
.device { display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.device b { font: 400 21px/1.15 var(--display); color: #fff; text-shadow: var(--edge), 0 .1em 0 var(--ink); }
.screen { position: relative; display: block; width: 100%; padding: 10px; background: var(--ink); border-radius: 16px; box-shadow: 0 0 0 5px #fff, 0 9px 0 5px rgba(74, 44, 26, .25); }
.screen img { display: block; width: 100%; height: auto; border-radius: 6px; }
.tv .screen::after, .pc .screen::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); background: var(--ink); }
.tv .screen::after { bottom: -21px; width: 34%; height: 11px; border-radius: 0 0 10px 10px; }
.pc .screen::after { bottom: -24px; width: 40%; height: 14px; border-radius: 6px 6px 3px 3px; }
.pad .screen { padding: 12px 16px; border-radius: 20px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.fact { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.fact p { font-size: 16.5px; }
.fact b { font-family: var(--display); font-weight: 400; font-size: 19px; }
@media (max-width: 900px) { .devices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; } .devices .tv { grid-column: 1 / -1; max-width: 560px; width: 100%; justify-self: center; } .facts { grid-template-columns: minmax(0, 1fr); max-width: 600px; margin: 0 auto; gap: 26px; } }

/* the last word */
.last { padding-bottom: 96px; }
.finale { text-align: center; padding: 26px 28px 22px; }
.flags { list-style: none; margin: 0 0 22px; padding: 0; display: flex; justify-content: center; gap: 28px; }
.flags img { display: block; width: 170px; }
.finale h2 { font-size: clamp(40px, 6vw, 72px); }
.finale p { font-size: 21px; font-weight: 600; margin: 16px auto 30px; max-width: 560px; }
.finale-hedge { display: block; width: 260px; margin: 34px auto 0; }
@media (max-width: 760px) { .flags li:nth-child(3) { display: none; } .flags { gap: 18px; } .flags img { width: 130px; } }
@media (max-width: 420px) { .flags img { width: 120px; } .finale { padding: 22px 16px 18px; } }

/* the foot */
.foot { background: var(--paper) var(--grain); border-top: 3px solid var(--ink); padding: 30px 0 40px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px 32px; }
.foot-brand { font-weight: 600; font-size: 16px; }
.foot-brand b { font: 400 22px var(--display); margin-right: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { font-weight: 600; font-size: 16px; text-decoration: none; border-bottom: 2px solid var(--orange); padding: 4px 0; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .btn.big { font-size: 20px; }
  .hero .acts { gap: 14px 12px; }
  .sub { font-size: 18px; }
  .head { margin-bottom: 36px; }
}
