@font-face {
  font-family: "Archivo Black";
  src: url("/wp-content/themes/czesc-gizycko/assets/fonts/archivo-black-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113;
}

@font-face {
  font-family: "Archivo Black";
  src: url("/wp-content/themes/czesc-gizycko/assets/fonts/archivo-black-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  src: url("/wp-content/themes/czesc-gizycko/assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113;
}

@font-face {
  font-family: "Montserrat";
  src: url("/wp-content/themes/czesc-gizycko/assets/fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #082754;
  --blue: #0849a2;
  --water: #57afd6;
  --sky: #bfe6f1;
  --pink: #efb7c8;
  --cream: #f5f1e7;
  --paper: #fffdf7;
  --coral: #e97d63;
  --forest: #173b31;
  --ink: #10294f;
  --line: rgba(8, 39, 84, .2);
  --page: min(1240px, calc(100vw - 64px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.portal-header {
  position: relative;
  z-index: 20;
  color: var(--navy);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.portal-header__inner {
  width: var(--page);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.portal-header__brand {
  display: inline-flex;
  width: 98px;
}

.portal-header__brand img {
  width: 100%;
  height: auto;
}

.portal-header__nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
}

.portal-header__nav a {
  min-width: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.portal-header__nav a[aria-current="page"] {
  color: #fff;
  background: var(--blue);
}

.portal-header__nav a:hover,
.portal-header__nav a:focus-visible {
  color: #fff;
  background: var(--navy);
  outline: none;
}

.hero {
  color: #fff;
  background: var(--blue);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  width: var(--page);
  min-height: 500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: clamp(52px, 8vw, 130px);
  align-items: center;
  padding: 72px 0 64px;
}

.hero__inner::before,
.hero__inner::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero__inner::before {
  width: 430px;
  height: 430px;
  right: -100px;
  top: -175px;
  border: 52px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
}

.hero__inner::after {
  right: 21%;
  bottom: -12px;
  width: 180px;
  height: 46px;
  background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(255, 255, 255, .13) 10px 12px);
  transform: skewX(-24deg);
}

.hero__copy,
.hero__manifest {
  position: relative;
  z-index: 1;
}

.hero__label,
.games__header > p,
.play-note__label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero__label::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 8px;
  margin-right: 12px;
  background: var(--pink);
}

.hero h1,
.games__header h2,
.game h3,
.play-note h2 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.035em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(58px, 7.4vw, 108px);
  text-transform: uppercase;
}

.hero__lead {
  max-width: 710px;
  margin: 28px 0 0;
  font-size: clamp(17px, 1.65vw, 22px);
  font-weight: 550;
  line-height: 1.5;
}

.hero__manifest {
  padding: 6px 0 4px 34px;
  border-left: 10px solid var(--pink);
}

.hero__number {
  display: block;
  margin-bottom: 8px;
  color: var(--pink);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(72px, 8vw, 126px);
  line-height: .8;
  letter-spacing: -.08em;
}

.hero__manifest p {
  max-width: 360px;
  margin: 24px 0;
  font-size: 15px;
}

.hero__manifest a {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.game-jump {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .28);
}

.game-jump a {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, .28);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.game-jump a:first-child {
  border-left: 1px solid rgba(255, 255, 255, .28);
}

.game-jump a:hover,
.game-jump a:focus-visible {
  color: var(--navy);
  background: var(--pink);
  outline: 0;
}

.games {
  width: var(--page);
  margin: 0 auto;
  padding: 104px 0 28px;
}

.games__header {
  display: grid;
  grid-template-columns: minmax(210px, .55fr) 1.45fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 38px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.games__header > p {
  margin: 0 0 5px;
  color: var(--blue);
}

.games__header h2 {
  font-size: clamp(42px, 5vw, 72px);
}

.game {
  --accent: var(--blue);
  --visual-bg: var(--water);
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  margin-bottom: 42px;
  background: var(--paper);
  border-bottom: 8px solid var(--accent);
  box-shadow: 0 14px 38px rgba(8, 39, 84, .08);
  scroll-margin-top: 96px;
}

.game--reverse {
  grid-template-columns: minmax(330px, .85fr) minmax(0, 1.15fr);
}

.game--reverse .game__visual {
  grid-column: 2;
}

.game--reverse .game__content {
  grid-row: 1;
  grid-column: 1;
}

.game__visual {
  position: relative;
  min-height: 430px;
  display: block;
  overflow: hidden;
  color: #fff;
  background: var(--visual-bg);
}

.game__visual::after {
  content: "GRAJ  →";
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 0;
  padding: 12px 17px;
  color: #fff;
  background: var(--navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .2s ease, transform .2s ease;
}

.game__visual:hover::after,
.game__visual:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.game__visual:focus-visible {
  outline: 5px solid var(--pink);
  outline-offset: -5px;
}

.visual-label {
  position: absolute;
  z-index: 12;
  top: 20px;
  left: 20px;
  padding: 9px 12px 8px;
  color: #fff;
  background: var(--navy);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.game__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(36px, 5vw, 68px);
}

.game__number {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
}

.game h3 {
  max-width: 560px;
  font-size: clamp(38px, 4.3vw, 62px);
}

.game__description {
  max-width: 590px;
  margin: 22px 0 20px;
  color: #425773;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.65;
}

.game__facts {
  width: 100%;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.game__facts li {
  position: relative;
  padding: 9px 0 9px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.game__facts li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: translateY(-50%);
}

.play-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 23px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .18s ease, transform .18s ease;
}

.play-button:hover,
.play-button:focus-visible {
  background: var(--navy);
  outline: 4px solid var(--pink);
  outline-offset: 3px;
  transform: translateY(-2px);
}

/* Mazurski Sztorm */
.game--sztorm {
  --accent: #f1b6c5;
  --visual-bg: #75c2df;
}

.game--sztorm .game__content {
  color: #fff;
  background: var(--blue);
}

.game--sztorm .game__number,
.game--sztorm .game__description {
  color: #fff;
}

.game--sztorm .game__facts,
.game--sztorm .game__facts li {
  border-color: rgba(255, 255, 255, .3);
}

.game--sztorm .game__facts li::before,
.game--sztorm .play-button {
  background: var(--pink);
  color: var(--navy);
}

.storm-board {
  position: absolute;
  z-index: 3;
  top: 58px;
  left: 50%;
  width: min(78%, 500px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  transform: translateX(-50%) rotate(-2deg);
}

.storm-board::before {
  content: "";
  position: absolute;
  inset: -17px;
  background: var(--navy);
  box-shadow: 14px 16px 0 rgba(8, 39, 84, .18);
}

.storm-tile {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff7e8;
  border: 5px solid #fff;
}

.storm-tile:nth-child(2),
.storm-tile:nth-child(6) { background: var(--pink); }
.storm-tile:nth-child(3) { background: #ec876d; }
.storm-tile:nth-child(4) { background: #dcecab; }
.storm-tile:nth-child(5) { background: #f5c85d; }

.storm-tile img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform .25s ease;
}

.storm-tile--tower img { height: 92%; }
.storm-tile--fish img { width: 93%; }
.storm-tile--duck img { width: 88%; }

.game__visual:hover .storm-tile:nth-child(odd) img {
  transform: translateY(-5px) rotate(-3deg);
}

.game__visual:hover .storm-tile:nth-child(even) img {
  transform: translateY(5px) rotate(3deg);
}

.visual-wave {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 92px;
  background: repeating-radial-gradient(ellipse at 0 100%, transparent 0 20px, rgba(255, 255, 255, .22) 21px 25px, transparent 26px 42px);
}

/* Zacumuj */
.game--harbor {
  --accent: #0849a2;
  --visual-bg: #70c3de;
}

.harbor-scene {
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(ellipse at 10% 90%, transparent 0 31px, rgba(255,255,255,.25) 32px 34px, transparent 35px 62px),
    linear-gradient(#bfe7ef 0 34%, #65b6d3 34% 100%);
}

.harbor-shore {
  position: absolute;
  z-index: 1;
  top: 27%;
  left: 0;
  width: 100%;
  height: 15%;
  background: #c9d89d;
  border-bottom: 8px solid #f1e3c5;
  clip-path: polygon(0 20%, 14% 3%, 31% 23%, 47% 4%, 66% 27%, 83% 10%, 100% 23%, 100% 100%, 0 100%);
}

.harbor-tower,
.harbor-castle,
.harbor-sail,
.harbor-swan {
  position: absolute;
  z-index: 3;
  object-fit: contain;
  transition: transform .3s ease;
}

.harbor-tower { top: 4%; left: 14%; width: 10%; height: 34%; }
.harbor-castle { top: 11%; right: 10%; width: 25%; height: 27%; }
.harbor-sail { left: 39%; bottom: 20%; width: 27%; height: 38%; transform: rotate(-4deg); }
.harbor-swan { right: 12%; bottom: 12%; width: 15%; height: 16%; }

.harbor-dock {
  position: absolute;
  z-index: 2;
  height: 30px;
  background: repeating-linear-gradient(90deg, #7a4d32 0 30px, #a86b46 31px 36px);
  border: 4px solid #5b3928;
  transform-origin: left center;
}

.harbor-dock--one { left: -2%; bottom: 23%; width: 31%; transform: rotate(10deg); }
.harbor-dock--two { right: -4%; bottom: 44%; width: 24%; transform: rotate(169deg); }

.game__visual:hover .harbor-sail { transform: translate(8px, -6px) rotate(-1deg); }
.game__visual:hover .harbor-swan { transform: translateX(-8px); }

/* Łoś */
.game--moose {
  --accent: #e97d63;
  --visual-bg: #cbe7ef;
}

.moose-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(#ccebf2 0 58%, #f2b7c7 58% 67%, #f5f1e7 67%);
}

.moose-postcard {
  position: absolute;
  top: 9%;
  right: 5%;
  width: 34%;
  border: 8px solid #fff;
  box-shadow: 8px 8px 0 rgba(8, 39, 84, .15);
  transform: rotate(6deg);
}

.moose-tower {
  position: absolute;
  top: 8%;
  left: 14%;
  width: 12%;
  height: 51%;
  object-fit: contain;
}

.moose-runner {
  position: absolute;
  z-index: 4;
  left: 28%;
  bottom: 13%;
  width: 31%;
  height: 48%;
  object-fit: contain;
  transition: transform .25s cubic-bezier(.2,.7,.3,1.2);
}

.moose-road {
  position: absolute;
  inset: auto 0 0;
  height: 31%;
  background: #48617a;
  border-top: 10px solid #fff;
}

.moose-road::after {
  content: "";
  position: absolute;
  top: 53%;
  left: 8%;
  width: 84%;
  height: 6px;
  background: repeating-linear-gradient(90deg, #fff 0 58px, transparent 58px 100px);
}

.game__visual:hover .moose-runner {
  transform: translate(18px, -16px) rotate(-4deg);
}

/* Grzyby */
.game--forest {
  --accent: #efad39;
  --visual-bg: #173b31;
}

.forest-scene {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(23, 59, 49, .2), rgba(23, 59, 49, .32)), url("assets/art/las.jpg") center 44% / cover;
}

.forest-mushroom {
  position: absolute;
  z-index: 3;
  width: 28%;
  object-fit: contain;
  filter: drop-shadow(0 13px 8px rgba(11, 35, 27, .28));
  transition: transform .28s ease;
}

.forest-mushroom--one { top: 7%; left: 14%; transform: rotate(-9deg); }
.forest-mushroom--two { top: 17%; right: 13%; width: 22%; transform: rotate(8deg); }

.forest-basket {
  position: absolute;
  z-index: 4;
  left: 31%;
  bottom: -12px;
  width: 38%;
  height: 31%;
  background: repeating-linear-gradient(90deg, #af6f37 0 8px, #d5964f 8px 16px);
  border: 8px solid #7e4b26;
  border-top-width: 12px;
  transform: perspective(250px) rotateX(-8deg);
}

.forest-basket::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 66%;
  height: 105%;
  border: 10px solid #7e4b26;
  border-bottom: 0;
  border-radius: 90px 90px 0 0;
}

.forest-basket i {
  position: absolute;
  inset: 9px;
  background: repeating-linear-gradient(0deg, transparent 0 12px, rgba(94, 53, 28, .55) 13px 16px);
}

.game__visual:hover .forest-mushroom--one { transform: translateY(16px) rotate(-4deg); }
.game__visual:hover .forest-mushroom--two { transform: translateY(23px) rotate(4deg); }

/* Łowisko */
.game--fishing {
  --accent: #159476;
  --visual-bg: #79c5dc;
}

.fishing-scene {
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(ellipse at 0 100%, transparent 0 26px, rgba(255,255,255,.17) 27px 30px, transparent 31px 54px),
    linear-gradient(#bfe8ef 0 40%, #83cadc 40% 56%, #2d8ba9 56% 100%);
}

.fishing-sun {
  position: absolute;
  top: 11%;
  left: 13%;
  width: 64px;
  aspect-ratio: 1;
  background: #f5c85d;
  border-radius: 50%;
}

.fishing-shore {
  position: absolute;
  top: 33%;
  width: 100%;
  height: 14%;
  background: #789252;
  clip-path: polygon(0 54%, 18% 15%, 33% 50%, 49% 5%, 68% 44%, 85% 12%, 100% 38%, 100% 100%, 0 100%);
}

.fishing-sail {
  position: absolute;
  z-index: 2;
  top: 21%;
  right: 12%;
  width: 14%;
  height: 27%;
  object-fit: contain;
}

.fishing-fish {
  position: absolute;
  z-index: 3;
  right: 21%;
  bottom: 12%;
  width: 34%;
  max-height: 30%;
  object-fit: contain;
  filter: drop-shadow(0 12px 7px rgba(5, 49, 77, .22));
  transform: rotate(-7deg);
  transition: transform .28s ease;
}

.fishing-pier {
  position: absolute;
  z-index: 4;
  left: -5%;
  bottom: 12%;
  width: 45%;
  height: 58px;
  background: repeating-linear-gradient(90deg, #7b4b2f 0 42px, #ad7048 43px 48px);
  border: 6px solid #593623;
  transform: rotate(8deg);
}

.fishing-pier::before,
.fishing-pier::after {
  content: "";
  position: absolute;
  top: 47px;
  width: 12px;
  height: 130px;
  background: #593623;
}

.fishing-pier::before { left: 12%; }
.fishing-pier::after { right: 15%; }

.fishing-line {
  position: absolute;
  z-index: 5;
  left: 26%;
  top: 13%;
  width: 35%;
  height: 50%;
  border-right: 2px solid rgba(8, 39, 84, .8);
  border-top: 4px solid #61412b;
  transform: skewX(-24deg) rotate(8deg);
  transform-origin: left bottom;
}

.fishing-float {
  position: absolute;
  z-index: 6;
  left: 59%;
  top: 61%;
  width: 13px;
  height: 35px;
  background: linear-gradient(#e65d4e 0 45%, #fff 45% 78%, #10294f 78%);
  border-radius: 50% 50% 45% 45%;
}

.game__visual:hover .fishing-fish { transform: translateY(-14px) rotate(-2deg); }

/* Wieża */
.game--tower {
  --accent: #bd684f;
  --visual-bg: #b9634e;
}

.tower-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(45,25,22,.08) 1px, transparent 1px) 0 0 / 60px 36px,
    linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px) 0 0 / 60px 36px,
    #ad604d;
}

.tower-window {
  position: absolute;
  z-index: 1;
  width: 100px;
  height: 136px;
  background: #8fd0e5;
  border: 12px solid #f3e4c8;
  border-radius: 52px 52px 0 0;
  box-shadow: inset 0 0 0 5px #4a302b;
}

.tower-window::before,
.tower-window::after {
  content: "";
  position: absolute;
  background: #4a302b;
}

.tower-window::before { inset: 0 50% 0 auto; width: 4px; }
.tower-window::after { inset: 48% 0 auto; height: 4px; }
.tower-window--one { top: 15%; left: 9%; }
.tower-window--two { top: 4%; right: 12%; transform: scale(.78); }
.tower-window--three { bottom: -25px; right: 35%; transform: scale(.62); }

.tower-platform {
  position: absolute;
  z-index: 3;
  height: 20px;
  background: #f0dfbf;
  border: 4px solid #53352d;
  box-shadow: 0 8px 0 rgba(73, 41, 33, .28);
}

.tower-platform--one { left: 3%; bottom: 17%; width: 35%; }
.tower-platform--two { right: 3%; top: 47%; width: 30%; background: #755039; }
.tower-platform--three { left: 29%; top: 23%; width: 25%; background: #34383b; }

.tower-duck {
  position: absolute;
  z-index: 5;
  left: 13%;
  bottom: 21%;
  width: 23%;
  height: 28%;
  object-fit: contain;
  transition: transform .28s cubic-bezier(.2,.7,.3,1.4);
}

.tower-landmark {
  position: absolute;
  z-index: 2;
  right: 35%;
  bottom: -26%;
  width: 23%;
  height: 76%;
  object-fit: contain;
  opacity: .24;
}

.game__visual:hover .tower-duck { transform: translate(26px, -85px) rotate(22deg); }

.play-note {
  width: var(--page);
  margin: 48px auto 96px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: end;
  padding: 48px 0;
  color: #fff;
  background: var(--navy);
  box-shadow: 34px 0 0 var(--navy), -34px 0 0 var(--navy);
}

.play-note__label {
  color: var(--pink);
}

.play-note h2 {
  max-width: 720px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
}

.play-note > p {
  max-width: 490px;
  margin: 0 0 4px;
  color: #d6e6fa;
  font-size: 14px;
  font-weight: 600;
}

.site-footer {
  min-height: 160px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 44px max(32px, calc((100vw - 1240px) / 2));
  color: #fff;
  background: var(--blue);
}

.site-footer img {
  width: 108px;
  padding: 8px;
  background: var(--paper);
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.site-footer a {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  :root {
    --page: min(100% - 40px, 900px);
  }

  .hero__inner {
    min-height: auto;
    grid-template-columns: 1fr .55fr;
    gap: 45px;
    padding: 62px 0 54px;
  }

  .hero h1 {
    font-size: clamp(58px, 9.5vw, 86px);
  }

  .game {
    min-height: 390px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
  }

  .game--reverse {
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1fr);
  }

  .game__visual {
    min-height: 390px;
  }

  .game__content {
    padding: 38px;
  }

  .game h3 {
    font-size: clamp(36px, 5vw, 48px);
  }
}

@media (max-width: 760px) {
  :root {
    --page: calc(100% - 30px);
  }

  html {
    scroll-padding-top: 74px;
  }

  .portal-header__inner {
    min-height: 64px;
  }

  .portal-header__brand {
    width: 78px;
  }

  .portal-header__nav a {
    min-width: auto;
    padding: 0 12px;
    font-size: 10px;
  }

  .hero__inner {
    display: block;
    padding: 48px 0 40px;
  }

  .hero__inner::before {
    right: -150px;
  }

  .hero h1 {
    font-size: clamp(48px, 15.5vw, 72px);
  }

  .hero__lead {
    max-width: 570px;
    margin-top: 22px;
    font-size: 16px;
  }

  .hero__manifest {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 22px;
    align-items: center;
    margin-top: 38px;
    padding-left: 20px;
    border-left-width: 7px;
  }

  .hero__number {
    grid-row: 1 / 3;
    margin: 0;
    font-size: 74px;
  }

  .hero__manifest p {
    margin: 0;
    font-size: 12px;
  }

  .hero__manifest a {
    font-size: 10px;
  }

  .game-jump {
    grid-template-columns: repeat(3, 1fr);
  }

  .game-jump a {
    min-height: 50px;
    padding: 10px 6px;
    border-top: 1px solid rgba(255, 255, 255, .28);
  }

  .games {
    padding-top: 70px;
  }

  .games__header {
    display: block;
    margin-bottom: 28px;
  }

  .games__header h2 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .game,
  .game--reverse {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 28px;
  }

  .game--reverse .game__visual,
  .game--reverse .game__content {
    grid-column: auto;
    grid-row: auto;
  }

  .game__visual {
    min-height: auto;
    height: clamp(300px, 78vw, 430px);
  }

  .game__content {
    padding: 34px 28px 38px;
  }

  .game h3 {
    font-size: clamp(36px, 11.5vw, 52px);
  }

  .game__description {
    margin-top: 17px;
    font-size: 14px;
  }

  .game__visual::after {
    display: none;
  }

  .play-button {
    width: 100%;
  }

  .storm-board {
    width: min(75%, 430px);
  }

  .play-note {
    margin: 46px auto 70px;
    display: block;
    padding: 38px 0;
    box-shadow: 15px 0 0 var(--navy), -15px 0 0 var(--navy);
  }

  .play-note > p {
    margin-top: 22px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 38px 20px;
  }
}

@media (max-width: 420px) {
  .portal-header__nav a:first-child {
    display: none;
  }

  .hero__label,
  .games__header > p,
  .play-note__label {
    font-size: 10px;
  }

  .hero__manifest {
    grid-template-columns: 62px 1fr;
  }

  .hero__number {
    font-size: 60px;
  }

  .game__visual {
    height: 285px;
  }

  .game__content {
    padding: 30px 22px 34px;
  }

  .storm-board {
    top: 56px;
    width: 75%;
    gap: 6px;
  }

  .storm-board::before {
    inset: -10px;
  }

  .storm-tile {
    border-width: 3px;
  }

  .moose-postcard {
    width: 42%;
  }

  .harbor-sail {
    width: 34%;
  }

  .forest-basket {
    width: 48%;
    left: 26%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Portal refresh: a quiet editorial catalogue around the game artwork. */
body.games-hub {
  color: var(--navy);
  background: #fff;
}

.games-hub .portal-header {
  min-height: 82px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.games-hub .portal-header__inner {
  min-height: 82px;
}

.games-hub .portal-header__brand img {
  width: 72px;
  height: 72px;
}

.games-hub .portal-header__nav a {
  min-height: 48px;
  padding: 0 15px;
  color: var(--blue);
  background: transparent;
}

.games-hub .portal-header__nav a:hover,
.games-hub .portal-header__nav a:focus-visible {
  color: #fff;
  background: var(--blue);
}

.games-hub .hero {
  color: var(--navy);
  background: #fff;
  overflow: visible;
}

.games-hub .hero__inner {
  min-height: 0;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .45fr);
  gap: clamp(48px, 8vw, 120px);
  padding: clamp(48px, 6vw, 82px) 0 clamp(40px, 5vw, 68px);
}

.games-hub .hero__inner::before,
.games-hub .hero__inner::after {
  content: none;
}

.games-hub .hero h1 {
  max-width: 760px;
  color: var(--blue);
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: 1;
  letter-spacing: -.045em;
  text-transform: none;
}

.games-hub .hero__lead {
  max-width: 690px;
  margin-top: 22px;
  color: #425773;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 600;
  line-height: 1.6;
}

.games-hub .hero__manifest {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 28px;
  border-left: 4px solid var(--blue);
}

.games-hub .hero__count {
  color: var(--blue);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -.03em;
}

.games-hub .hero__manifest p {
  max-width: 320px;
  margin: 12px 0 18px;
  color: #425773;
  font-size: 14px;
  line-height: 1.6;
}

.games-hub .hero__manifest a {
  min-height: 48px;
  align-self: flex-start;
  color: var(--blue);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 2px solid var(--blue);
}

.games-hub .game-jump {
  display: flex;
  color: var(--blue);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}

.games-hub .game-jump a,
.games-hub .game-jump a:first-child {
  min-width: max-content;
  min-height: 56px;
  flex: 1 0 auto;
  padding: 12px 22px;
  border: 0;
  text-transform: none;
}

.games-hub .game-jump a:hover,
.games-hub .game-jump a:focus-visible {
  color: #fff;
  background: var(--blue);
}

.games-hub .games {
  padding: clamp(62px, 7vw, 92px) 0 24px;
}

.games-hub .games__header {
  display: block;
  margin-bottom: 12px;
  padding: 0 0 24px;
  border-bottom: 0;
}

.games-hub .games__header h2 {
  color: var(--blue);
  font-size: clamp(34px, 3.2vw, 46px);
  line-height: 1;
}

.games-hub .game {
  min-height: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  margin: 0;
  padding: clamp(34px, 4vw, 54px) 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  box-shadow: none;
}

.games-hub .game__visual {
  min-height: 360px;
}

.games-hub .game__visual::after,
.games-hub .visual-label {
  display: none;
}

.games-hub .game__visual:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 4px;
}

.games-hub .game__content {
  padding: clamp(12px, 4vw, 58px);
  padding-right: 0;
  color: var(--navy);
  background: #fff;
}

.games-hub .game--reverse .game__content {
  padding-right: clamp(12px, 4vw, 58px);
  padding-left: 0;
}

.games-hub .game__number {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 11px;
}

.games-hub .game--sztorm .game__number,
.games-hub .game--sztorm .game__description {
  color: inherit;
}

.games-hub .game--sztorm .game__facts,
.games-hub .game--sztorm .game__facts li {
  border-color: transparent;
}

.games-hub .game h3 {
  max-width: 540px;
  color: var(--blue);
  font-size: clamp(31px, 3.25vw, 44px);
  line-height: 1;
}

.games-hub .game__description {
  margin: 18px 0 16px;
  color: #425773;
  line-height: 1.65;
}

.games-hub .game__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 26px;
  border: 0;
}

.games-hub .game__facts li {
  padding: 0 0 0 12px;
  border: 0;
  font-size: 10px;
  line-height: 1.5;
}

.games-hub .game__facts li::before {
  width: 5px;
  height: 5px;
  background: var(--blue);
}

.games-hub .play-button {
  position: relative;
  isolation: isolate;
  min-height: 50px;
  color: #fff;
  background: var(--blue);
  overflow: hidden;
  transform: none;
}

.games-hub .play-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -120% -20%;
  background: var(--navy);
  transform: translateY(72%) rotate(-4deg);
  transition: transform .28s ease;
}

.games-hub .play-button:hover,
.games-hub .play-button:focus-visible {
  background: var(--blue);
  outline: 3px solid #9ec8ef;
  outline-offset: 3px;
  transform: none;
}

.games-hub .play-button:hover::before,
.games-hub .play-button:focus-visible::before {
  transform: translateY(24%) rotate(-4deg);
}

.games-hub .play-note {
  margin: 46px auto 86px;
  grid-template-columns: 1fr .8fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding: 34px 0 0;
  color: var(--navy);
  background: #fff;
  border-top: 4px solid var(--blue);
  box-shadow: none;
}

.games-hub .play-note h2 {
  max-width: 650px;
  color: var(--blue);
  font-size: clamp(27px, 2.8vw, 38px);
  line-height: 1.05;
}

.games-hub .play-note > p {
  max-width: 480px;
  margin: 3px 0 0;
  color: #425773;
  line-height: 1.65;
}

.games-hub .site-footer {
  padding: 34px max(20px, calc((100vw - 1240px) / 2));
  background: var(--blue);
}

.games-hub .site-footer img {
  width: 70px;
  height: 70px;
  padding: 0;
  background: transparent;
}

@media (max-width: 800px) {
  .games-hub .portal-header,
  .games-hub .portal-header__inner {
    min-height: 74px;
  }

  .games-hub .portal-header__brand img {
    width: 64px;
    height: 64px;
  }

  .games-hub .portal-header__nav a:first-child {
    display: inline-flex;
  }

  .games-hub .hero__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0 34px;
  }

  .games-hub .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .games-hub .hero__manifest {
    padding: 18px 0 0;
    border-top: 3px solid var(--blue);
    border-left: 0;
  }

  .games-hub .game {
    grid-template-columns: 1fr;
    padding: 30px 0 36px;
  }

  .games-hub .game__visual,
  .games-hub .game--reverse .game__visual {
    min-height: 250px;
    grid-row: 1;
    grid-column: 1;
  }

  .games-hub .game__content,
  .games-hub .game--reverse .game__content {
    grid-row: 2;
    grid-column: 1;
    padding: 24px 0 0;
  }

  .games-hub .game h3 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .games-hub .play-note {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .games-hub .play-button::before {
    transition: none;
  }
}

/* Follow-up: closer to the portal topbar, quieter type and no game counters. */
.games-hub .portal-header,
.games-hub .portal-header__inner {
  min-height: 88px;
}

.games-hub .portal-header__inner {
  padding-block: 8px;
}

.games-hub .portal-header__brand img {
  width: 76px;
  height: 76px;
}

.games-hub .portal-header__nav {
  align-self: auto;
  gap: 10px;
}

.games-hub .portal-header__nav a {
  min-width: 86px;
  min-height: 44px;
  padding-inline: 18px;
  border: 1px solid var(--line);
  font-size: 11px;
}

.games-hub .portal-header__nav a[aria-current="page"] {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.games-hub .hero__inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: clamp(38px, 5vw, 64px) 0 clamp(32px, 4vw, 52px);
}

.games-hub .hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 3.4vw, 46px);
}

.games-hub .hero__lead {
  max-width: 900px;
  margin-top: 18px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
}

.games-hub .games {
  padding-top: clamp(48px, 6vw, 72px);
}

.games-hub .games__header h2 {
  font-size: clamp(29px, 2.6vw, 36px);
}

.games-hub .game h3 {
  font-size: clamp(29px, 2.7vw, 38px);
  line-height: 1.04;
}

.games-hub .game__description {
  max-width: 560px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.72;
}

.games-hub .play-note h2 {
  font-size: clamp(24px, 2.3vw, 32px);
}

@media (max-width: 800px) {
  .games-hub .portal-header,
  .games-hub .portal-header__inner {
    min-height: 76px;
  }

  .games-hub .portal-header__inner {
    padding: 6px 10px 6px 14px;
  }

  .games-hub .portal-header__brand img {
    width: 64px;
    height: 64px;
  }

  .games-hub .portal-header__nav {
    gap: 6px;
  }

  .games-hub .portal-header__nav a {
    min-width: 66px;
    min-height: 42px;
    padding-inline: 12px;
    font-size: 10px;
  }

  .games-hub .hero h1 {
    font-size: clamp(31px, 9vw, 37px);
  }

  .games-hub .hero__lead {
    font-size: 15px;
  }

  .games-hub .games__header h2 {
    font-size: 29px;
  }

  .games-hub .game h3 {
    font-size: clamp(27px, 7.8vw, 32px);
  }
}
