@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Baloo2-600.woff2") format("woff2");
}

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Baloo2-700.woff2") format("woff2");
}

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/Baloo2-800.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Nunito-400.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Nunito-600.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Nunito-700.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/Nunito-800.woff2") format("woff2");
}

:root {
  --fjord: #116a8d;
  --fjord-deep: #123b53;
  --ocean: var(--fjord);
  --sky: #dff4f5;
  --foam: var(--sky);
  --seafoam: #bfe4d3;
  --leaf: #4f7d59;
  --sun: #f6c453;
  --coral: #e56f5d;
  --berry: #bd4263;
  --plum: #68385b;
  --cream: #fff8e8;
  --paper: #fffdf7;
  --ink: #183443;
  --muted: #526977;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(18, 59, 83, 0.12);
  --shadow-md: 0 18px 48px rgba(18, 59, 83, 0.18);
  --radius-sm: 16px;
  --radius-md: 26px;
  --radius-lg: 38px;
  --content: 1180px;
  --tap: 48px;
  --image-saturation: 1.14;
  --image-contrast: 1.04;
  --image-brightness: 1.015;
  --font-title: "Baloo 2", "Avenir Next", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-display: var(--font-title);
  --font-text: "Nunito", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  padding-top: 76px;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 6% 13%, rgba(246, 196, 83, 0.22) 0 7%, transparent 7.4%),
    radial-gradient(circle at 96% 45%, rgba(191, 228, 211, 0.34) 0 11%, transparent 11.4%),
    var(--cream);
}

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

img {
  background: #d9e8e4;
}

/* A shared Maram colour grade keeps every locked character and location intact,
   while giving sea, sky, gardens and clothing a little more life. */
main img:not([src$=".svg"]) {
  filter:
    saturate(var(--image-saturation))
    contrast(var(--image-contrast))
    brightness(var(--image-brightness));
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
}

button {
  font-family: var(--font-title);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1,
h2 {
  font-weight: 800;
}

h3 {
  font-weight: 700;
}

.button,
.card__link,
.season-tab,
.wardrobe__button,
.profile-secret__button,
.place-jump a,
.place-jump button,
.map-hotspot,
.map-legend,
.footer-brand {
  font-family: var(--font-title);
  font-weight: 800;
}

h1 {
  font-size: clamp(2.65rem, 7vw, 5.65rem);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.55rem);
}

h3 {
  font-size: clamp(1.28rem, 2.2vw, 1.75rem);
}

p {
  max-width: 68ch;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  color: var(--white);
  background: var(--fjord-deep);
  border-radius: 12px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

:focus-visible {
  outline: 4px solid var(--sun);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 36px), var(--content));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 36px), 820px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(70px, 9vw, 124px) 0;
}

.section--paper {
  background: var(--paper);
}

.section--blue {
  color: var(--white);
  background: var(--fjord-deep);
}

.section--foam {
  background: var(--sky);
}

.section--berry {
  color: var(--white);
  background: var(--plum);
}

.section-heading {
  margin-bottom: clamp(28px, 5vw, 52px);
}

.section-heading p {
  color: var(--muted);
  font-size: 1.12rem;
}

.section--blue .section-heading p,
.section--berry .section-heading p {
  color: rgba(255, 255, 255, 0.8);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 15px;
  padding: 5px 13px;
  color: var(--fjord-deep);
  background: var(--sun);
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  min-height: 76px;
  background: rgba(255, 253, 247, 0.94);
  border-bottom: 1px solid rgba(18, 59, 83, 0.1);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  object-fit: cover;
  background: #dff3f4;
  border: 2px solid rgba(18, 59, 83, 0.12);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(18, 59, 83, 0.18);
}

.brand span {
  display: flex;
  flex-direction: column;
  max-width: 150px;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a,
.calm-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 10px 14px;
  color: var(--fjord-deep);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.main-nav a[aria-current="true"],
.calm-toggle:hover,
.calm-toggle[aria-pressed="true"] {
  background: var(--sky);
}

.nav-toggle {
  display: none;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  color: var(--fjord-deep);
  background: var(--sky);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 3px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: min(800px, calc(100svh - 76px));
  display: grid;
  align-items: start;
  color: var(--white);
  background: linear-gradient(180deg, var(--sky), var(--fjord));
  isolation: isolate;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(18, 59, 83, 0.43) 0%, rgba(18, 59, 83, 0.08) 42%, rgba(18, 59, 83, 0.13) 68%, rgba(18, 59, 83, 0.36) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 83% 11%, rgba(246, 196, 83, 0.24), transparent 22%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 4;
}

.hero__content {
  width: min(860px, 94vw);
  margin-inline: auto;
  padding: clamp(56px, 8vh, 88px) 0 180px;
  text-align: center;
}

.hero .eyebrow {
  color: var(--fjord-deep);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.02em;
  text-transform: none;
  transform: rotate(-1.5deg);
}

.hero h1 {
  margin-bottom: 14px;
  text-wrap: balance;
  text-shadow: 0 3px 22px rgba(18, 59, 83, 0.76), 0 1px 5px rgba(18, 59, 83, 0.72);
}

.hero p {
  margin: 0 auto 30px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 750;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(18, 59, 83, 0.82);
}

.hero__cloud {
  position: absolute;
  left: -250px;
  z-index: 1;
  opacity: 0.82;
  filter: drop-shadow(0 6px 12px rgba(18, 59, 83, 0.08));
  animation: hero-cloud-drift 70s linear infinite;
  pointer-events: none;
}

.hero__cloud--one {
  top: 9%;
}

.hero__cloud--two {
  top: 21%;
  opacity: 0.68;
  animation-duration: 96s;
  animation-delay: -42s;
}

.hero__cloud--three {
  top: 4%;
  opacity: 0.58;
  animation-duration: 122s;
  animation-delay: -74s;
}

.hero__gull {
  position: absolute;
  z-index: 2;
  color: var(--fjord-deep);
  filter: drop-shadow(0 2px 3px rgba(255, 255, 255, 0.7));
  animation: hero-gull-float 9s ease-in-out infinite;
  pointer-events: none;
}

.hero__gull--one {
  top: 17%;
  left: 14%;
}

.hero__gull--two {
  top: 10%;
  right: 17%;
  animation-delay: -4s;
}

.hero__boat {
  position: absolute;
  bottom: 90px;
  left: -140px;
  z-index: 5;
  width: clamp(70px, 9vw, 108px);
  animation: hero-boat-sail 46s linear infinite, hero-boat-rock 5s ease-in-out infinite;
  filter: drop-shadow(0 7px 8px rgba(18, 59, 83, 0.22));
  pointer-events: none;
}

.hero-waves {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  z-index: 6;
  height: 142px;
  overflow: hidden;
  pointer-events: none;
}

.hero-waves__layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(100% + 1200px);
  height: 100%;
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 1200px 100%;
}

.hero-waves__layer--back {
  bottom: 22px;
  opacity: 0.64;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'%3E%3Cpath d='M0,75 C200,20 400,20 600,75 C800,130 1000,130 1200,75 L1200,150 L0,150 Z' fill='%237FB4DC'/%3E%3C/svg%3E");
  animation: hero-wave-roll 26s linear infinite;
}

.hero-waves__layer--front {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'%3E%3Cpath d='M0,75 C200,20 400,20 600,75 C800,130 1000,130 1200,75 L1200,150 L0,150 Z' fill='%23FFF8E8'/%3E%3C/svg%3E");
  animation: hero-wave-roll 16s linear infinite reverse;
}

@keyframes hero-cloud-drift {
  from { transform: translateX(-260px); }
  to { transform: translateX(calc(100vw + 520px)); }
}

@keyframes hero-gull-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}

@keyframes hero-boat-sail {
  from { left: -140px; }
  to { left: calc(100vw + 140px); }
}

@keyframes hero-boat-rock {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-6px); }
}

@keyframes hero-wave-roll {
  from { transform: translateX(0); }
  to { transform: translateX(-1200px); }
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 12px 21px;
  color: var(--white);
  background: var(--fjord);
  border: 2px solid transparent;
  border-radius: 999px;
  box-shadow: 0 7px 0 rgba(18, 59, 83, 0.18);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 0 rgba(18, 59, 83, 0.18);
}

.button:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(18, 59, 83, 0.18);
}

.button--sun {
  color: var(--fjord-deep);
  background: var(--sun);
}

.button--cream {
  color: var(--fjord-deep);
  background: var(--cream);
}

.button--outline {
  color: inherit;
  background: transparent;
  border-color: currentColor;
  box-shadow: none;
}

.button--small {
  min-height: 46px;
  padding: 9px 17px;
  font-size: 0.94rem;
}

.wave-divider {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 54px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.wave-divider--paper {
  background: var(--paper);
}

.wave-divider--foam {
  background: var(--sky);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: clamp(30px, 7vw, 86px);
}

.split--reverse .split__image {
  order: 2;
}

.split__image {
  position: relative;
}

.split__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 8px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.split__image--portrait-focus img {
  object-position: center 10%;
}

.split__image::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  z-index: -1;
  width: 72%;
  height: 42%;
  background: var(--sun);
  border-radius: 45% 55% 40% 60%;
  transform: rotate(-3deg);
}

.split__copy p {
  font-size: 1.08rem;
}

.mini-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 750;
}

.mini-list li::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 5px;
  background: var(--coral);
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 45% 55% 50% 50%;
  box-shadow: 0 0 0 2px var(--coral);
}

.episode-byline {
  width: min(100%, 980px);
  margin: 28px auto 0;
  padding: 16px 20px;
  color: var(--muted);
  text-align: center;
  background: var(--cream);
  border: 2px solid rgba(17, 106, 141, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
}

.episode-byline a {
  color: var(--fjord);
  font-weight: 850;
}

.production-credits {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  padding: clamp(28px, 5vw, 56px);
  background: var(--paper);
  border: 3px solid rgba(17, 106, 141, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.production-credits__intro h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  overflow-wrap: break-word;
}

.credit-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.credit-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 14px 18px;
  background: var(--sky);
  border-radius: var(--radius-sm);
}

.credit-list dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.credit-list dd {
  margin: 0;
  color: var(--fjord-deep);
  font-weight: 900;
}

.credit-list a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.footer-developer,
.footer-producer {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.5;
}

.footer-developer + .footer-producer {
  margin-top: 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  min-width: 0;
  background: var(--white);
  border: 1px solid rgba(18, 59, 83, 0.09);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: 24px;
}

.card__body p:last-child {
  margin-bottom: 0;
}

.card__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fjord);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.is-clickable {
  cursor: pointer;
  transition: box-shadow 180ms ease, filter 180ms ease;
}

.card-hit-area {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
}

.card-hit-area:focus-visible {
  outline: 5px solid var(--sun);
  outline-offset: -7px;
}

.is-clickable:hover,
.is-clickable:focus-within {
  box-shadow: 0 18px 44px rgba(18, 59, 83, 0.24);
}

.is-clickable img {
  transition: transform 220ms ease, filter 220ms ease;
}

.is-clickable:hover img,
.is-clickable:focus-within img {
  transform: scale(1.025);
  filter:
    saturate(1.19)
    contrast(var(--image-contrast))
    brightness(var(--image-brightness));
}

.activity-card:nth-child(2) {
  transform: translateY(22px);
}

.activity-card:nth-child(3) {
  transform: translateY(-8px);
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.character-card {
  position: relative;
  min-height: 430px;
  color: var(--white);
  background: var(--fjord-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  isolation: isolate;
}

.character-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.character-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(18, 59, 83, 0.93) 88%);
}

.character-card__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px;
}

.character-card__body h3 {
  margin-bottom: 5px;
  font-size: 2rem;
}

.character-card__body p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
}

.character-card__hint {
  display: inline-block;
  margin-top: 13px;
  color: var(--sun-soft);
  font-weight: 900;
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.season-card {
  position: relative;
  min-height: 370px;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.season-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.season-card span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 12px 14px;
  color: var(--fjord-deep);
  background: rgba(255, 248, 232, 0.92);
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(8px);
}

.season-explorer {
  max-width: 1060px;
  margin-inline: auto;
}

.season-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.season-tab {
  min-height: 52px;
  padding: 10px 20px;
  color: var(--fjord-deep);
  background: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.14);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.season-tab:hover {
  transform: translateY(-2px);
}

.season-tab[aria-selected="true"] {
  color: var(--fjord-deep);
  background: var(--sun);
  border-color: var(--sun);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
}

.season-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  min-height: 490px;
  color: var(--ink);
  background: var(--paper);
  border: 6px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: season-in 260ms ease both;
}

.season-panel[hidden] {
  display: none;
}

.season-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.season-panel__copy {
  align-self: center;
  padding: clamp(26px, 5vw, 54px);
}

.season-panel__copy h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
}

.season-question {
  margin: 24px 0 0;
  padding: 14px 16px;
  color: var(--fjord-deep);
  background: var(--sky);
  border-radius: var(--radius-sm);
  font-weight: 900;
}

@keyframes season-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-hero {
  position: relative;
  padding: clamp(74px, 9vw, 120px) 0 clamp(94px, 12vw, 150px);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 12%, rgba(246, 196, 83, 0.4) 0 8%, transparent 8.4%),
    radial-gradient(circle at 74% 82%, rgba(191, 228, 211, 0.22) 0 16%, transparent 16.4%),
    var(--fjord-deep);
  overflow: hidden;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
}

.page-hero p {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.page-hero--image {
  min-height: clamp(540px, 52vw, 660px);
  display: grid;
  align-items: center;
  padding: 58px 0 104px;
  background: var(--fjord-deep);
  isolation: isolate;
}

.page-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(18, 59, 83, 0.16), rgba(18, 59, 83, 0.04) 50%, rgba(18, 59, 83, 0.28));
  pointer-events: none;
}

.page-hero--align-left::before {
  background:
    linear-gradient(90deg, rgba(18, 59, 83, 0.78) 0%, rgba(18, 59, 83, 0.48) 31%, rgba(18, 59, 83, 0.08) 64%),
    linear-gradient(180deg, rgba(18, 59, 83, 0.12), transparent 55%, rgba(18, 59, 83, 0.3));
}

.page-hero--align-right::before {
  background:
    linear-gradient(270deg, rgba(18, 59, 83, 0.78) 0%, rgba(18, 59, 83, 0.48) 31%, rgba(18, 59, 83, 0.08) 64%),
    linear-gradient(180deg, rgba(18, 59, 83, 0.12), transparent 55%, rgba(18, 59, 83, 0.3));
}

.page-hero__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero--image > .container {
  position: relative;
  z-index: 1;
  display: flex;
}

.page-hero--align-right > .container {
  justify-content: flex-end;
}

.page-hero--align-left > .container {
  justify-content: flex-start;
}

.page-hero__content {
  width: min(620px, 55%);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.page-hero--family .page-hero__content {
  width: min(560px, 46%);
}

.page-hero--episodes .page-hero__content {
  width: min(460px, 36%);
}

.page-hero--episodes .page-hero__content h1 {
  font-size: clamp(2.45rem, 4vw, 4rem);
}

.page-hero--explore .page-hero__content {
  width: min(650px, 56%);
}

.page-hero--image h1 {
  margin-bottom: 15px;
  font-size: clamp(2.45rem, 4.6vw, 4.65rem);
  text-shadow: 0 4px 24px rgba(8, 30, 42, 0.92), 0 1px 5px rgba(8, 30, 42, 0.86);
}

.page-hero--image p {
  margin-bottom: 0;
  font-weight: 750;
  text-shadow: 0 3px 16px rgba(8, 30, 42, 0.92), 0 1px 4px rgba(8, 30, 42, 0.86);
}

.page-hero--image .eyebrow {
  color: var(--fjord-deep);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.02em;
  text-transform: none;
  transform: rotate(-1.5deg);
}

.page-hero--image .page-hero__trail {
  margin-top: 22px;
}

.page-hero--image .button-row {
  margin-top: 24px;
}

.page-hero--image .wave-divider {
  z-index: 2;
}

.page-hero__trail {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.page-hero__trail span,
.page-hero__trail a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 13px;
  color: var(--fjord-deep);
  background: var(--sun);
  border-radius: 999px;
  font-weight: 850;
}

.page-hero__trail a {
  min-height: var(--tap);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.page-hero__trail a:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

.page-hero__trail a[aria-current="true"] {
  background: var(--cream);
  box-shadow: 0 0 0 3px var(--sun);
  transform: translateY(-2px);
}

#episoder {
  scroll-margin-top: 76px;
}

.episode-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  background: var(--fjord-deep);
  border: 7px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
  background:
    linear-gradient(rgba(18, 59, 83, 0.58), rgba(18, 59, 83, 0.72)),
    url("../images/canonical/familien-kveldsbonn-sm.jpg") center / cover;
  background-image:
    linear-gradient(rgba(18, 59, 83, 0.58), rgba(18, 59, 83, 0.72)),
    image-set(
      url("../images/canonical/familien-kveldsbonn-sm.webp") type("image/webp"),
      url("../images/canonical/familien-kveldsbonn-sm.jpg") type("image/jpeg")
    );
  background-position: center;
  background-size: cover;
}

.player-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-placeholder {
  display: grid;
  justify-items: center;
  max-width: 500px;
  color: var(--white);
}

.play-orb {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  padding: 0;
  border: 4px solid var(--white);
  color: var(--fjord-deep);
  background: var(--sun);
  border-radius: 50%;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  font-size: 2rem;
}

.play-orb:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 0 rgba(0, 0, 0, 0.18); }
.play-orb:focus-visible { outline: 4px solid var(--white); outline-offset: 4px; }

.player-caption {
  padding: 20px 22px;
  color: var(--white);
}

.player-caption p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.safe-note {
  padding: 25px;
  background: var(--sky);
  border: 2px solid rgba(17, 106, 141, 0.16);
  border-radius: var(--radius-md);
}

.safe-note h2,
.safe-note h3 {
  margin-bottom: 10px;
}

.safe-note p:last-child {
  margin-bottom: 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.episode-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}

.episode-search {
  display: grid;
  gap: 7px;
  color: var(--fjord-deep);
  font-weight: 900;
}

.episode-search input {
  width: 100%;
  min-height: 54px;
  padding: 12px 17px;
  color: var(--ink);
  background: var(--white);
  border: 3px solid rgba(17, 106, 141, 0.2);
  border-radius: 16px;
  font: inherit;
}

.episode-search input:focus {
  border-color: var(--fjord);
}

.episode-results {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 850;
}

.episode-empty {
  padding: 28px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.player-fallback {
  max-width: 520px;
  color: var(--white);
}

.player-fallback a {
  margin-top: 10px;
}

.filter-button {
  min-height: 46px;
  padding: 8px 17px;
  color: var(--fjord-deep);
  background: var(--white);
  border: 2px solid rgba(17, 106, 141, 0.22);
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
}

.filter-button[aria-pressed="true"],
.filter-button:hover {
  color: var(--white);
  background: var(--fjord);
  border-color: var(--fjord);
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.episode-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.episode-card:hover {
  transform: translateY(-4px);
  border-color: var(--sun);
}

.episode-card[aria-pressed="true"] {
  border-color: var(--fjord);
  box-shadow: 0 0 0 4px rgba(17, 106, 141, 0.16), var(--shadow-sm);
}

.episode-card[hidden] {
  display: none;
}

.episode-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.episode-card picture {
  display: block;
  width: 100%;
}

.page-hero--image > picture,
.hero > picture {
  display: contents;
}

.episode-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px;
}

.episode-card .episode-title {
  display: block;
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.22;
}

.episode-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.episode-meta strong {
  color: var(--fjord);
}

.wardrobe {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(360px, 1.25fr);
  gap: 18px 30px;
  align-items: center;
  margin-bottom: 34px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 94% 14%, rgba(246, 196, 83, 0.34) 0 12%, transparent 12.5%),
    linear-gradient(135deg, var(--sky), #eef9f3);
  border: 2px solid rgba(17, 106, 141, 0.13);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.wardrobe__intro {
  display: flex;
  gap: 15px;
  align-items: center;
}

.wardrobe--individual {
  grid-template-columns: 1fr;
}

.wardrobe--individual .wardrobe__intro {
  max-width: 720px;
}

.wardrobe__icon {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(18, 59, 83, 0.1);
  font-size: 1.8rem;
}

.wardrobe__intro h3 {
  margin-bottom: 3px;
  color: var(--fjord-deep);
}

.wardrobe__intro p,
.wardrobe__status {
  margin-bottom: 0;
  color: var(--muted);
}

.wardrobe__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.wardrobe__button {
  min-height: var(--tap);
  padding: 10px 16px;
  color: var(--fjord-deep);
  background: var(--white);
  border: 2px solid rgba(18, 59, 83, 0.16);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(18, 59, 83, 0.08);
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.wardrobe__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 18px rgba(18, 59, 83, 0.13);
}

.wardrobe__button[aria-pressed="true"] {
  color: var(--white);
  background: var(--fjord);
  border-color: var(--fjord);
  box-shadow: 0 8px 20px rgba(17, 106, 141, 0.24);
}

.wardrobe__button[data-person-outfit="church"][aria-pressed="true"],
.wardrobe__button[data-wardrobe-choice="church"][aria-pressed="true"] {
  background: var(--plum);
  border-color: var(--plum);
}

.wardrobe__button[data-person-outfit="modern"][aria-pressed="true"],
.wardrobe__button[data-wardrobe-choice="modern"][aria-pressed="true"] {
  color: var(--fjord-deep);
  background: var(--sun);
  border-color: #d9a62d;
}

.wardrobe__status {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.93rem;
  font-weight: 800;
}

.person-wardrobe {
  margin: 24px 0;
  padding: 17px;
  background: linear-gradient(135deg, var(--sky), #eef9f3);
  border: 2px solid rgba(17, 106, 141, 0.12);
  border-radius: var(--radius-sm);
}

.person-wardrobe > strong {
  display: block;
  margin-bottom: 11px;
  color: var(--fjord-deep);
  font-size: 1rem;
}

.person-wardrobe__choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.person-wardrobe .wardrobe__button {
  min-height: 44px;
  padding: 8px 10px;
  font-size: 0.88rem;
}

.person-wardrobe__status {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.profile-secret {
  margin: 22px 0 8px;
}

.profile-secret__button {
  min-height: 46px;
  padding: 9px 16px;
  color: var(--fjord-deep);
  cursor: pointer;
  background: var(--cream);
  border: 2px dashed rgba(17, 106, 141, 0.24);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(18, 59, 83, 0.08);
  font-weight: 900;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.profile-secret__button:hover {
  background: #fff1c9;
  border-color: var(--sun);
  transform: translateY(-2px);
}

.profile-secret__button[aria-expanded="true"] {
  background: var(--sun);
  border-color: #d9a62d;
}

.profile-secret__reveal {
  margin-top: 10px;
  padding: 14px 16px;
  background: #fff4dc;
  border-left: 6px solid var(--sun);
  border-radius: 8px var(--radius-sm) var(--radius-sm) 8px;
}

.profile-secret__reveal[hidden] {
  display: none;
}

.profile-secret__reveal.is-revealing {
  animation: profile-secret-in 320ms ease both;
}

.profile-secret__reveal p {
  margin: 0;
}

.profile-secret__reveal span {
  display: block;
  margin-top: 6px;
  color: var(--fjord);
  font-size: 0.8rem;
  font-weight: 900;
}

@keyframes profile-secret-in {
  from { opacity: 0; transform: translateY(7px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-list {
  display: grid;
  gap: 26px;
}

.profile {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 390px;
  scroll-margin-top: 102px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.profile:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) 310px;
}

.profile:nth-child(even) .profile__image {
  order: 2;
}

.profile__image {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center 18%;
  transition: opacity 180ms ease;
}

.profile__image.is-changing {
  opacity: 0.36;
}

.profile__copy {
  align-self: center;
  padding: clamp(28px, 5vw, 58px);
}

.profile__copy p:last-child {
  margin-bottom: 0;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.fact {
  padding: 7px 12px;
  color: var(--fjord-deep);
  background: var(--sky);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 850;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.place-jump {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: clamp(24px, 4vw, 36px) 0 0;
  padding-top: clamp(18px, 3vw, 26px);
  border-top: 2px dashed rgba(17, 106, 141, 0.18);
}

.place-jump + .place-explorer {
  margin-top: 28px;
}

.place-jump a,
.place-jump button {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--fjord-deep);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  background: var(--white);
  border: 2px solid rgba(17, 106, 141, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font: inherit;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease;
}

.place-jump a:hover,
.place-jump button:hover {
  transform: translateY(-3px);
  border-color: var(--sun);
}

.place-jump span {
  font-size: 1.5rem;
}

.place-card {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--fjord-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: 102px;
}

.place-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.place-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 25%, rgba(18, 59, 83, 0.94) 92%);
}

.place-card__copy {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 40px);
  pointer-events: none;
}

.place-card__copy p {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.place-card__hint {
  display: inline-flex;
  padding: 6px 11px;
  color: var(--fjord-deep);
  background: var(--sun);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
}

.place-card__trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: inherit;
}

.place-card__trigger:focus-visible {
  outline-offset: -8px;
}

.place-card:hover img,
.place-card:focus-within img {
  transform: scale(1.025);
}

.place-explorer {
  scroll-margin-top: 110px;
  margin-top: clamp(28px, 5vw, 54px);
  padding: clamp(20px, 4vw, 46px);
  background: var(--paper);
  border: 3px solid rgba(17, 106, 141, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.place-explorer[hidden],
.place-detail[hidden] {
  display: none;
}

.place-explorer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(22px, 4vw, 38px);
  padding-bottom: 18px;
  border-bottom: 2px dashed rgba(17, 106, 141, 0.18);
}

.place-explorer__header h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
}

.place-explorer__close {
  min-height: var(--tap);
  flex: 0 0 auto;
  padding: 10px 16px;
  color: var(--fjord-deep);
  cursor: pointer;
  background: var(--sky);
  border: 2px solid rgba(17, 106, 141, 0.15);
  border-radius: 999px;
  font-weight: 900;
}

.place-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
}

.place-detail__hero > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 6px solid var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.place-detail__hero h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.place-detail__hero .button {
  width: auto;
  margin-top: 6px;
}

.room-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.room-choice {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 144px;
  padding: 12px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  background: var(--white);
  border: 3px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease;
}

.room-choice:hover {
  transform: translateY(-3px);
  border-color: var(--sun);
}

.room-choice img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.room-choice span,
.room-choice strong,
.room-choice small {
  display: block;
}

.room-choice strong {
  margin-bottom: 7px;
  color: var(--fjord-deep);
  font-size: 1.08rem;
}

.room-choice small {
  color: var(--muted);
  line-height: 1.45;
}

.place-detail > .mini-list {
  margin-top: 28px;
}

.place-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: clamp(24px, 5vw, 46px);
  align-items: center;
  margin-top: 34px;
  padding: clamp(18px, 3vw, 30px);
  background: var(--sky);
  border-radius: var(--radius-md);
}

.place-story-grid figure,
.place-detail__wide {
  margin: 0;
}

.place-story-grid img,
.place-detail__wide img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.place-story-grid figcaption,
.place-detail__wide figcaption {
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.place-detail__wide {
  margin-top: 32px;
}

.church-object-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.church-object {
  overflow: hidden;
  background: var(--white);
  border: 3px solid rgba(17, 106, 141, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.church-object[open] {
  border-color: var(--sun);
}

.church-object summary {
  position: relative;
  cursor: pointer;
  list-style: none;
}

.church-object summary::after {
  content: "⌄ Les mer";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 7px 10px;
  color: var(--fjord-deep);
  pointer-events: none;
  background: rgba(255, 253, 247, 0.94);
  border: 2px solid var(--sun);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.76rem;
  font-weight: 900;
}

.church-object summary::-webkit-details-marker {
  display: none;
}

.church-object summary img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.church-object summary span {
  display: block;
  padding: 15px 16px;
  color: var(--fjord-deep);
  font-weight: 900;
}

.church-object summary strong {
  display: block;
  margin-top: 3px;
  color: var(--berry);
  font-size: 0.78rem;
}

.church-object[open] summary strong::before {
  content: "✓ ";
}

.church-object__body {
  display: grid;
  gap: 14px;
  padding: 0 16px 18px;
}

.church-object__body > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.church-object__zoom {
  min-height: var(--tap);
  justify-self: start;
  padding: 9px 15px;
  color: var(--fjord-deep);
  cursor: zoom-in;
  background: var(--cream);
  border: 2px solid var(--sun);
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 800;
}

.church-object__zoom:hover,
.church-object__zoom:focus-visible {
  background: var(--sun);
}

.image-lightbox {
  width: min(calc(100% - 32px), 1200px);
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  color: var(--fjord-deep);
  background: var(--paper);
  border: 7px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 90px rgba(8, 30, 42, 0.48);
  overflow: hidden;
}

.image-lightbox[open] {
  display: grid;
  place-items: center;
}

.image-lightbox::backdrop {
  background: rgba(8, 30, 42, 0.82);
  backdrop-filter: blur(8px);
}

.image-lightbox__panel {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 46px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.image-lightbox__panel img {
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  background: var(--fjord-deep);
}

.image-lightbox__panel p {
  max-width: none;
  margin: 0;
  padding: 14px 74px 14px 18px;
  font-weight: 850;
}

.image-lightbox__close {
  position: absolute;
  right: 14px;
  bottom: 9px;
  z-index: 2;
  width: var(--tap);
  height: var(--tap);
  color: var(--white);
  cursor: pointer;
  background: var(--berry);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.island-intro {
  position: relative;
  min-height: 600px;
  display: grid;
  align-items: flex-end;
  color: var(--white);
  background: var(--fjord-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  isolation: isolate;
}

.island-intro img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.island-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 59, 83, 0.02) 25%, rgba(18, 59, 83, 0.92) 100%);
}

.section--map {
  padding-top: 0;
  background: var(--cream);
}

.map-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(24px, 6vw, 74px);
  align-items: end;
}

.map-heading h2,
.map-heading p {
  margin-bottom: 0;
}

.maram-map {
  margin: 0;
}

.maram-map__canvas {
  position: relative;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  background: var(--fjord-deep);
  border: 8px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  isolation: isolate;
}

.maram-map__canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: calc(var(--radius-lg) - 8px);
  box-shadow: inset 0 -80px 100px rgba(18, 59, 83, 0.1);
}

.maram-map__canvas > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-coast-labels {
  position: absolute;
  top: 18px;
  right: 20px;
  left: 20px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.map-coast-labels span,
.map-travel-note {
  padding: 7px 12px;
  color: var(--white);
  background: rgba(18, 59, 83, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  box-shadow: 0 5px 18px rgba(18, 59, 83, 0.22);
  backdrop-filter: blur(6px);
  font-size: 0.82rem;
  font-weight: 900;
}

.map-hotspot {
  --target-x: 0px;
  --target-y: 0px;
  --leader-length: 0px;
  --leader-angle: 0deg;
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: var(--tap);
  padding: 4px 11px 4px 4px;
  color: var(--fjord-deep);
  cursor: pointer;
  background: rgba(255, 253, 247, 0.96);
  border: 3px solid var(--sun);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(18, 59, 83, 0.3);
  font-size: 0.84rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, box-shadow 160ms ease;
  isolation: isolate;
}

.map-hotspot__leader {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: var(--leader-length);
  height: 4px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(18, 59, 83, 0.28), 0 3px 9px rgba(18, 59, 83, 0.22);
  transform: translateY(-50%) rotate(var(--leader-angle));
  transform-origin: left center;
  pointer-events: none;
}

.map-hotspot__target {
  position: absolute;
  top: calc(50% + var(--target-y));
  left: calc(50% + var(--target-x));
  z-index: 1;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.44);
  border: 4px solid var(--sun);
  border-radius: 50%;
  box-shadow: 0 3px 11px rgba(18, 59, 83, 0.42);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
}

.map-hotspot__target::before {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: 50%;
}

.map-hotspot__target::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  animation: map-pulse 2.4s ease-out infinite;
}

.map-hotspot:hover,
.map-hotspot[aria-expanded="true"] {
  box-shadow: 0 11px 28px rgba(18, 59, 83, 0.38);
  transform: translate(-50%, -50%) scale(1.05);
}

.map-hotspot[aria-expanded="true"] {
  color: var(--white);
  background: var(--fjord-deep);
}

.map-hotspot__pin {
  position: relative;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 38px;
  background: var(--sun);
  border-radius: 50%;
  font-size: 1.15rem;
}

.map-hotspot__label {
  position: relative;
  z-index: 2;
}

.map-hotspot--house {
  --target-x: 140px;
  --target-x: 14cqw;
  --target-y: 73px;
  --target-y: 7.31cqw;
  --leader-length: 158px;
  --leader-length: 15.79cqw;
  --leader-angle: 28deg;
  top: 35%;
  left: 28%;
}

.map-hotspot--school {
  --target-x: 150px;
  --target-x: 15cqw;
  --target-y: -34px;
  --target-y: -3.38cqw;
  --leader-length: 154px;
  --leader-length: 15.38cqw;
  --leader-angle: 347deg;
  top: 67%;
  left: 34%;
}

.map-hotspot--kindergarten {
  --target-x: 65px;
  --target-x: 7cqw;
  --target-y: 70px;
  --target-y: 7.5cqw;
  --leader-length: 96px;
  --leader-length: 10.25cqw;
  --leader-angle: 47deg;
  top: 42%;
  left: 55%;
}

.map-hotspot--harbor {
  --target-x: -100px;
  --target-x: -10cqw;
  --target-y: -23px;
  --target-y: -2.25cqw;
  --leader-length: 103px;
  --leader-length: 10.25cqw;
  --leader-angle: 193deg;
  top: 60%;
  left: 85%;
}

.map-hotspot--bridge {
  --target-x: 100px;
  --target-x: 10cqw;
  --target-y: 73px;
  --target-y: 7.31cqw;
  --leader-length: 124px;
  --leader-length: 12.39cqw;
  --leader-angle: 36deg;
  top: 32%;
  left: 69%;
}

.map-hotspot--shore {
  --target-x: -130px;
  --target-x: -13cqw;
  --target-y: -11px;
  --target-y: -1.13cqw;
  --leader-length: 131px;
  --leader-length: 13.05cqw;
  --leader-angle: 185deg;
  top: 78%;
  left: 83%;
}

.map-hotspot--church {
  --target-x: 60px;
  --target-x: 6cqw;
  --target-y: 96px;
  --target-y: 9.56cqw;
  --leader-length: 113px;
  --leader-length: 11.28cqw;
  --leader-angle: 58deg;
  top: 14%;
  left: 87%;
}

.map-mode-toggle {
  display: none;
}

.map-travel-note {
  position: absolute;
  top: 42%;
  right: 4%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.map-quest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin: 16px auto 0;
  padding: 13px 18px;
  color: var(--fjord-deep);
  background: var(--sky);
  border: 2px solid rgba(17, 106, 141, 0.16);
  border-radius: 18px;
  font-weight: 800;
}

.map-quest strong {
  font-size: 1.05rem;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  margin: 14px auto 0;
}

.map-legend span {
  padding: 6px 11px;
  color: var(--fjord-deep);
  background: var(--sky);
  border: 1px solid rgba(17, 106, 141, 0.18);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 850;
}

.map-place-key {
  display: none;
}

.map-treasure {
  top: var(--treasure-top);
  left: var(--treasure-left);
  position: absolute;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  cursor: pointer;
  background: rgba(18, 59, 83, 0.74);
  border: 3px dashed rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(18, 59, 83, 0.28);
  font-size: 1.1rem;
  font-weight: 950;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, background 160ms ease;
}

.map-treasure-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.map-treasure-layer .map-treasure {
  pointer-events: auto;
}

.map-treasure:hover,
.map-treasure:focus-visible {
  transform: translate(-50%, -50%) scale(1.1);
}

.map-treasure[aria-pressed="true"] {
  background: var(--leaf);
  border-style: solid;
}

.maram-map figcaption {
  max-width: 82ch;
  margin: 9px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.94rem;
  font-weight: 720;
}

@keyframes map-pulse {
  0% {
    opacity: 0.85;
    transform: scale(0.9);
  }
  72%,
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

.island-intro__copy {
  max-width: 720px;
  padding: clamp(30px, 6vw, 70px);
}

.adult-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.adult-card {
  padding: clamp(28px, 4vw, 44px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.adult-card p:last-child {
  margin-bottom: 0;
}

.adult-grid--games {
  align-items: stretch;
}

.adult-card--game {
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(17, 106, 141, 0.13);
  background: linear-gradient(145deg, #fff 0 72%, rgba(219, 244, 245, 0.72) 72% 100%);
}

.adult-card--game:nth-child(2n) {
  background: linear-gradient(145deg, #fff 0 72%, rgba(255, 226, 139, 0.62) 72% 100%);
}

.adult-card--game h3 {
  margin-top: 16px;
}

.adult-card--game .button-row {
  margin-top: 22px;
}

.adult-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid rgba(18, 59, 83, 0.12);
  border-radius: 19px;
  background: var(--sun);
  box-shadow: 0 6px 0 rgba(18, 59, 83, 0.12);
  font-size: 1.75rem;
}

.adult-card--principles {
  color: var(--white);
  border-color: var(--fjord-deep);
  background: linear-gradient(145deg, var(--fjord-deep), #176f88);
}

.adult-card--principles .adult-card__icon {
  background: var(--foam);
}

.adult-card--principles .mini-list li {
  color: var(--white);
}

.section--support {
  background: linear-gradient(135deg, #dff4f5 0%, #fff8e8 58%, #fce7bd 100%);
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(30px, 6vw, 70px);
  background: var(--white);
  border: 3px solid rgba(17, 106, 141, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.support-panel__copy p:last-child {
  margin-bottom: 0;
}

.support-panel__action {
  display: grid;
  justify-items: stretch;
  gap: 16px;
  text-align: center;
}

.vipps-number {
  display: grid;
  justify-items: center;
  padding: 20px;
  color: var(--white);
  background: #5c2d91;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 0 rgba(92, 45, 145, 0.22);
}

.vipps-number span {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vipps-number strong {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

.support-more {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--fjord);
  font-weight: 850;
}

.site-footer {
  padding: 60px 0 34px;
  color: var(--white);
  background: var(--fjord-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 42px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.35rem;
  font-weight: 900;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  box-sizing: border-box;
  object-fit: cover;
  background: #dff3f4;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: var(--sun);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  font-weight: 750;
}

.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-calm="true"] *,
[data-calm="true"] *::before,
[data-calm="true"] *::after {
  scroll-behavior: auto !important;
  transition: none !important;
  animation: none !important;
}

[data-calm="true"] .activity-card {
  transform: none;
}

[data-calm="true"] body::before,
[data-calm="true"] .hero::after {
  display: none;
}

.page-hero--saints .page-hero__image {
  object-position: 64% 18%;
}

.page-hero--saints .page-hero__content {
  width: min(620px, 51%);
}

.saint-intro__note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
  margin-top: 26px;
  padding: 18px 20px;
  color: var(--fjord-deep);
  background: var(--cream);
  border: 2px solid rgba(18, 59, 83, 0.1);
  border-radius: var(--radius-sm);
}

.saint-intro__note > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--fjord-deep);
  background: var(--sun);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 900;
}

.saint-intro__note p {
  margin: 0;
}

.saint-library {
  display: grid;
  gap: clamp(28px, 5vw, 52px);
}

.saint-story {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  min-width: 0;
  background: var(--white);
  border: 3px solid rgba(18, 59, 83, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  scroll-margin-top: 106px;
}

.saint-story--reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.saint-story--reverse .saint-story__image {
  order: 2;
}

.saint-story__image {
  min-width: 0;
  background: var(--sky);
}

.saint-story__image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.saint-story__copy {
  min-width: 0;
  align-self: center;
  padding: clamp(30px, 5vw, 58px);
}

.saint-story__copy h2 {
  margin: 18px 0 22px;
  font-size: clamp(2rem, 3.7vw, 3.15rem);
}

.saint-story__copy > p {
  font-size: 1.05rem;
}

.saint-story__ask {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 16px 18px;
  color: var(--fjord-deep);
  background: var(--cream);
  border-left: 7px solid var(--sun);
  border-radius: 8px var(--radius-sm) var(--radius-sm) 8px;
}

.saint-story__ask strong {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.saint-story__ask span {
  font-size: 1.06rem;
  font-weight: 850;
}

.saint-story__family-link {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  margin-top: 17px;
  color: var(--fjord);
  font-weight: 900;
}

.saints-grow {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  gap: clamp(34px, 7vw, 82px);
  align-items: center;
}

.saints-grow__copy .button-row {
  margin-top: 28px;
}

.saints-grow__next {
  display: grid;
  min-height: 330px;
  place-items: center;
  align-content: center;
  padding: 34px;
  text-align: center;
  background: var(--sky);
  border: 4px dashed rgba(17, 106, 141, 0.28);
  border-radius: var(--radius-lg);
}

.saints-grow__next > span {
  display: grid;
  width: 82px;
  height: 82px;
  margin-bottom: 20px;
  place-items: center;
  color: var(--fjord-deep);
  background: var(--sun);
  border-radius: 50%;
  font-size: 3.4rem;
  line-height: 1;
}

.saints-grow__next strong {
  font-size: 1.35rem;
}

.saints-grow__next p {
  margin: 8px 0 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: var(--paper);
    border: 1px solid rgba(18, 59, 83, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  .main-nav[data-open="true"] {
    display: flex;
  }

  .main-nav a,
  .calm-toggle {
    justify-content: flex-start;
    width: 100%;
  }

  .hero {
    min-height: 740px;
    align-items: start;
  }

  .hero__image {
    object-position: center 60%;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(18, 59, 83, 0.52) 0%, rgba(18, 59, 83, 0.12) 48%, rgba(18, 59, 83, 0.32) 100%);
  }

  .hero__content {
    width: min(760px, 100%);
    padding: 58px 0 170px;
  }

  .page-hero--image {
    min-height: 760px;
    align-items: end;
    padding: 310px 0 96px;
  }

  .page-hero--image::before {
    background: linear-gradient(
      180deg,
      rgba(18, 59, 83, 0.04) 20%,
      rgba(18, 59, 83, 0.44) 55%,
      rgba(18, 59, 83, 0.92) 100%
    );
  }

  .page-hero--image > .container {
    display: block;
  }

  .page-hero__content,
  .page-hero--episodes .page-hero__content,
  .page-hero--family .page-hero__content,
  .page-hero--explore .page-hero__content {
    width: min(760px, 100%);
    padding: 0;
    background: transparent;
  }

  .page-hero--episodes .page-hero__image {
    object-position: 36% center;
  }

  .page-hero--family .page-hero__image {
    position: relative;
    inset: auto;
    z-index: 0;
    height: auto;
    aspect-ratio: 1672 / 941;
    object-fit: cover;
    object-position: center;
  }

  .page-hero--family {
    display: block;
    min-height: 0;
    padding: 0 0 104px;
    background: var(--fjord-deep);
  }

  .page-hero--family::before {
    display: none;
  }

  .page-hero--family > .container {
    padding-top: 32px;
  }

  .page-hero--explore .page-hero__image {
    object-position: 42% center;
  }

  .page-hero--adults .page-hero__image {
    object-position: 50% center;
  }

  .page-hero--saints .page-hero__image {
    object-position: 64% 18%;
  }

  .page-hero--saints .page-hero__content {
    width: min(760px, 100%);
  }

  .split,
  .episode-layout,
  .season-panel,
  .support-panel,
  .production-credits {
    grid-template-columns: 1fr;
  }

  .saint-story,
  .saint-story--reverse,
  .saints-grow {
    grid-template-columns: 1fr;
  }

  .saint-story--reverse .saint-story__image {
    order: 0;
  }

  .saint-story__image img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

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

  .map-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .map-hotspot__label {
    display: none;
  }

  .map-place-key {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 0;
  }

  .map-place-key button {
    min-height: 46px;
    padding: 8px 10px;
    color: var(--fjord-deep);
    cursor: pointer;
    background: var(--white);
    border: 2px solid rgba(17, 106, 141, 0.18);
    border-radius: 14px;
    font-family: var(--font-title);
    font-weight: 750;
  }

  .map-place-key button:hover,
  .map-place-key button:focus-visible,
  .map-place-key button[aria-expanded="true"] {
    background: var(--sun);
    border-color: var(--sun);
  }

  .map-hotspot {
    min-width: 52px;
    min-height: 52px;
    justify-content: center;
    padding: 4px;
  }

  .map-hotspot--house { top: 25%; left: 18%; }
  .map-hotspot--school { top: 66%; left: 18%; }
  .map-hotspot--kindergarten { top: 66%; left: 39%; }
  .map-hotspot--harbor { top: 66%; left: 61%; }
  .map-hotspot--bridge { top: 25%; left: 60%; }
  .map-hotspot--shore { top: 66%; left: 85%; }
  .map-hotspot--church { top: 25%; left: 85%; }

  .place-detail__hero,
  .place-story-grid {
    grid-template-columns: 1fr;
  }

  .room-choice-grid {
    grid-template-columns: 1fr;
  }

  .church-object-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .season-panel img {
    max-height: 500px;
  }

  .split--reverse .split__image {
    order: 0;
  }

  .card-grid,
  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .season-grid,
  .episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-card:nth-child(n) {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .wardrobe {
    grid-template-columns: 1fr;
  }

  .wardrobe__choices {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .wardrobe__button {
    width: 100%;
  }

  .wardrobe__status {
    grid-column: auto;
  }

  .person-wardrobe__choices {
    grid-template-columns: 1fr;
  }

  .person-wardrobe .wardrobe__button {
    width: 100%;
    padding-inline: 7px;
  }

  .profile-secret__button {
    width: 100%;
  }

  body {
    font-size: 16px;
  }

  .container,
  .narrow {
    width: min(calc(100% - 24px), var(--content));
  }

  .brand span {
    max-width: 128px;
    font-size: 0.94rem;
  }

  .brand small {
    font-size: 0.58rem;
  }

  .hero {
    min-height: 700px;
  }

  .hero__image {
    object-position: 52% center;
  }

  .hero__content {
    padding: 44px 0 150px;
  }

  .page-hero--image {
    min-height: 0;
    padding: 300px 0 82px;
  }

  .page-hero--family {
    padding: 0 0 82px;
  }

  .page-hero__content,
  .page-hero--episodes .page-hero__content,
  .page-hero--family .page-hero__content,
  .page-hero--explore .page-hero__content {
    padding: 0;
    border-radius: 0;
  }

  .page-hero--image h1 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  .page-hero--image .page-hero__trail {
    gap: 7px;
    margin-top: 18px;
  }

  .page-hero--image .page-hero__trail span,
  .page-hero--image .page-hero__trail a {
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .hero .eyebrow {
    font-size: 0.76rem;
  }

  .hero__cloud--one {
    width: 132px;
  }

  .hero__gull--one {
    left: 6%;
  }

  .hero__gull--two {
    right: 7%;
  }

  .hero__boat {
    bottom: 72px;
  }

  .hero-waves {
    height: 122px;
  }

  .hero-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .episode-tools {
    grid-template-columns: 1fr;
  }

  .split__image img {
    border-width: 5px;
    border-radius: var(--radius-md);
  }

  .card-grid,
  .character-grid,
  .season-grid,
  .episode-grid,
  .place-grid,
  .adult-grid {
    grid-template-columns: 1fr;
  }

  .character-card {
    min-height: 480px;
  }

  .place-jump {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .place-jump a,
  .place-jump button {
    min-height: 68px;
  }

  .maram-map__canvas {
    border-width: 5px;
    border-radius: var(--radius-md);
  }

  .map-coast-labels {
    top: 8px;
    right: 8px;
    left: 8px;
  }

  .map-coast-labels span,
  .map-travel-note {
    padding: 4px 8px;
    font-size: 0.66rem;
  }

  .map-travel-note {
    right: 2%;
  }

  .map-hotspot {
    transform: translate(-50%, -50%);
  }

  .map-hotspot__leader,
  .map-hotspot__target {
    display: none;
  }

  .map-hotspot:hover,
  .map-hotspot[aria-expanded="true"] {
    transform: translate(-50%, -50%) scale(1.04);
  }

  .map-hotspot__pin {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .map-treasure {
    width: 48px;
    height: 48px;
    font-size: 0.95rem;
  }

  .map-mode-toggle {
    display: inline-flex;
  }

  .maram-map__canvas:not(.is-hunt-mode) .map-treasure {
    display: none;
  }

  .maram-map__canvas.is-hunt-mode .map-hotspot {
    opacity: 0;
    pointer-events: none;
  }

  .map-place-key {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-legend {
    gap: 6px;
  }

  .map-legend span {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .place-explorer {
    padding: 18px;
    border-radius: var(--radius-md);
  }

  .place-explorer__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .place-explorer__close {
    width: 100%;
  }

  .room-choice {
    grid-template-columns: 106px minmax(0, 1fr);
    min-height: 118px;
  }

  .room-choice img {
    height: 96px;
  }

  .church-object-grid {
    grid-template-columns: 1fr;
  }

  .season-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .season-tab {
    width: 100%;
    padding-inline: 10px;
  }

  .season-panel {
    min-height: 0;
  }

  .season-panel img {
    height: 310px;
  }

  .season-card {
    min-height: 310px;
  }

  .profile,
  .profile:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .profile:nth-child(even) .profile__image {
    order: 0;
  }

  .profile__image {
    height: 430px;
    min-height: 0;
  }

  .place-card,
  .island-intro {
    min-height: 520px;
  }

  .credit-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }
}

.hero-actions {
  justify-content: center;
}

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

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

@media (prefers-contrast: more) {
  :root {
    --muted: #334e5d;
  }

  .card,
  .profile,
  .episode-card,
  .adult-card {
    border: 2px solid var(--fjord-deep);
  }
}

/* Jesus og vennene hans */

.page-hero--friends .page-hero__image {
  object-position: center 48%;
}

.page-hero--friends .page-hero__content {
  width: min(620px, 52%);
}

.faith-center .split__image {
  justify-self: center;
  width: min(100%, 440px);
  background: linear-gradient(145deg, var(--sky), var(--cream));
}

.faith-center .split__image img {
  aspect-ratio: 3 / 5;
  object-fit: cover;
  object-position: center;
}

.faith-center__note,
.friend-learning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 22px;
  padding: 16px 18px;
  color: var(--fjord-deep);
  background: var(--cream);
  border-left: 7px solid var(--sun);
  border-radius: 8px var(--radius-sm) var(--radius-sm) 8px;
}

.faith-center__note > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--berry);
  border-radius: 50%;
}

.faith-center__note p,
.friend-learning span {
  margin: 0;
}

.biblical-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 42px);
  max-width: 1120px;
  margin-inline: auto;
}

.biblical-feature {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
  min-width: 0;
  background: var(--white);
  border: 3px solid rgba(18, 59, 83, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.biblical-feature > img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center 14%;
  background: #fff2df;
}

.biblical-feature:nth-child(even) > img {
  order: 2;
}

.biblical-feature__copy {
  position: relative;
  align-self: center;
  min-width: 0;
  padding: clamp(26px, 3vw, 42px);
}

.biblical-feature__copy h3 {
  margin: 18px 0 16px;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
}

.friend-symbol {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--fjord-deep);
  background: var(--sun);
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.bible-place {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.friend-learning {
  grid-template-columns: 1fr;
  gap: 3px;
  margin-top: 18px;
  padding: 14px 16px;
  border-left-width: 5px;
}

.friend-learning strong {
  font-family: var(--font-title);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-heading--apostles {
  max-width: 820px;
}

.apostles-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  max-width: 920px;
  margin: 0 0 clamp(28px, 5vw, 48px);
  padding: 18px 22px;
  color: var(--fjord-deep);
  background: var(--sky);
  border: 2px solid rgba(17, 106, 141, 0.16);
  border-radius: var(--radius-md);
}

.apostles-note > span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  background: var(--sun);
  border-radius: 50%;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
}

.apostles-note p {
  margin: 0;
}

.apostle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 30px);
  align-items: start;
}

.apostle-card {
  min-width: 0;
  background: var(--white);
  border: 3px solid rgba(18, 59, 83, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  scroll-margin-top: 100px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.apostle-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.apostle-card[open] {
  border-color: rgba(17, 106, 141, 0.28);
}

.apostle-card summary {
  position: relative;
  display: grid;
  grid-template-columns: 112px auto minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  min-height: 136px;
  padding: 12px 16px 12px 12px;
  cursor: pointer;
  list-style: none;
}

.apostle-card summary::-webkit-details-marker {
  display: none;
}

.apostle-card summary > img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  object-position: center;
  background: #fff2df;
  border-radius: 20px;
}

.apostle-card summary > img.apostle-card__matthias {
  object-position: center 14%;
}

.apostle-card summary .friend-symbol {
  width: 42px;
  height: 42px;
  border-width: 2px;
  box-shadow: none;
}

.apostle-card__heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.apostle-card__heading strong {
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2vw, 1.48rem);
  line-height: 1.12;
}

.apostle-card__heading small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.apostle-card__action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 11px;
  color: var(--fjord-deep);
  background: var(--sky);
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.apostle-card[open] .apostle-card__action {
  font-size: 0;
}

.apostle-card[open] .apostle-card__action::after {
  content: "Lukk";
  font-size: 0.82rem;
}

.apostle-card__body {
  padding: 4px clamp(22px, 4vw, 34px) clamp(24px, 4vw, 34px);
  border-top: 2px dashed rgba(18, 59, 83, 0.12);
}

.apostle-card__body > p:first-child {
  margin-top: 22px;
}

.friends-next {
  text-align: center;
}

.friends-next p {
  margin-inline: auto;
  font-size: 1.12rem;
}

.friends-next .button-row {
  justify-content: center;
}

.faith-gateway {
  text-align: center;
}

.faith-gateway .section-heading {
  max-width: 760px;
  margin-inline: auto;
}

.faith-gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 42px);
  text-align: left;
}

.faith-gateway-card {
  position: relative;
  min-width: 0;
  color: var(--white);
  background: var(--fjord-deep);
  border: 4px solid rgba(18, 59, 83, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.faith-gateway-card img {
  width: 100%;
  height: 285px;
  object-fit: cover;
}

.faith-gateway-card__copy {
  padding: clamp(24px, 4vw, 38px);
}

.faith-gateway-card__copy h3 {
  color: var(--white);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.faith-gateway-card__copy p {
  color: rgba(255, 255, 255, 0.84);
}

@media (max-width: 1180px) {
  .biblical-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .page-hero--friends .page-hero__image {
    object-position: 49% center;
  }

  .page-hero--friends .page-hero__content {
    width: min(760px, 100%);
  }

  .faith-gateway-grid,
  .apostle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page-hero--friends {
    padding-top: 300px;
  }

  .biblical-feature {
    grid-template-columns: 1fr;
  }

  .biblical-feature > img {
    height: 520px;
    min-height: 0;
  }

  .biblical-feature:nth-child(even) > img {
    order: 0;
  }

  .apostles-note {
    grid-template-columns: 1fr;
  }

  .apostle-card summary {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 11px;
    min-height: 112px;
    padding: 11px;
  }

  .apostle-card summary > img {
    width: 88px;
    height: 88px;
    border-radius: 16px;
  }

  .apostle-card summary .friend-symbol {
    position: absolute;
    top: 7px;
    left: 77px;
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
  }

  .apostle-card__heading {
    grid-column: 2;
  }

  .apostle-card__action {
    grid-column: 3;
    padding-inline: 9px;
  }

  .faith-gateway-card img {
    height: 240px;
  }
}

/* The seven sacraments */
.page-hero--sacraments .page-hero__image {
  object-position: center 46%;
}

.page-hero--sacraments::before {
  background: linear-gradient(90deg, rgba(8, 30, 42, 0.9) 0%, rgba(8, 30, 42, 0.64) 43%, rgba(8, 30, 42, 0.12) 76%);
}

.page-hero--sacraments .page-hero__content {
  width: min(690px, 58%);
}

.sacrament-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}

.sacrament-intro__copy > p {
  font-size: 1.08rem;
}

.sacrament-intro__note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  margin-top: 25px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--sun) 16%, transparent);
  border-left: 5px solid var(--sun);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.sacrament-intro__note span {
  color: var(--berry);
  font-size: 1.55rem;
}

.sacrament-intro__note p {
  margin: 0;
}

.sacrament-seven {
  position: relative;
  min-height: 470px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  align-content: center;
  padding: clamp(25px, 4vw, 48px);
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 196, 83, 0.26), transparent 38%),
    linear-gradient(145deg, rgba(216, 242, 244, 0.9), rgba(255, 249, 237, 0.92));
  border: 3px solid rgba(18, 59, 83, 0.1);
  border-radius: 50% 42% 48% 44% / 44% 50% 42% 48%;
  box-shadow: var(--shadow-md);
}

.sacrament-seven::before {
  position: absolute;
  inset: 12%;
  content: "";
  border: 2px dashed rgba(18, 59, 83, 0.2);
  border-radius: 50%;
}

.sacrament-seven > a {
  position: relative;
  z-index: 1;
  min-height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 12px 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.76);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  cursor: pointer;
  font-size: 2rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.sacrament-seven > a:hover,
.sacrament-seven > a:focus-visible {
  background: var(--white);
  border-color: var(--sun);
  box-shadow: 0 12px 24px rgba(18, 59, 83, 0.18);
  transform: translateY(-4px) rotate(-1deg);
}

.sacrament-seven > a:focus-visible {
  outline: 4px solid rgba(246, 196, 83, 0.45);
  outline-offset: 3px;
}

.sacrament-seven > a:nth-child(4) {
  grid-column: 1;
}

.sacrament-seven > a:nth-child(7) {
  grid-column: 2;
}

.sacrament-seven strong {
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-size: 0.95rem;
  line-height: 1.08;
}

.sacrament-journey {
  overflow: clip;
}

.sacrament-journey__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 35px;
  align-items: end;
  text-align: left;
}

.sacrament-progress {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 2px solid rgba(18, 59, 83, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.sacrament-progress__top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.sacrament-progress__top strong {
  color: var(--fjord-deep);
  font-family: var(--font-title);
}

.sacrament-progress__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.sacrament-progress button,
.sacrament-panel__footer button,
.sacrament-zoom {
  min-height: var(--tap);
  padding: 9px 15px;
  color: var(--fjord-deep);
  cursor: pointer;
  background: var(--sun);
  border: 0;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 800;
}

.sacrament-progress button:hover,
.sacrament-progress button:focus-visible,
.sacrament-panel__footer button:hover,
.sacrament-panel__footer button:focus-visible,
.sacrament-zoom:hover,
.sacrament-zoom:focus-visible {
  color: var(--white);
  background: var(--berry);
}

.sacrament-progress__track {
  height: 12px;
  margin-top: 13px;
  background: rgba(18, 59, 83, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.sacrament-progress__track span {
  width: 0;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--berry), var(--sun));
  border-radius: inherit;
  transition: width 420ms ease;
}

.sacrament-progress .sacrament-progress__reset {
  color: var(--fjord-deep);
  background: var(--white);
  border: 2px solid rgba(18, 59, 83, 0.18);
  box-shadow: 0 4px 0 rgba(18, 59, 83, 0.1);
}

.sacrament-progress .sacrament-progress__reset:hover,
.sacrament-progress .sacrament-progress__reset:focus-visible {
  color: var(--white);
  background: var(--berry);
  border-color: var(--berry);
}

.sacrament-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  gap: 9px;
  margin-top: 34px;
  padding: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.sacrament-tabs::before {
  position: absolute;
  top: 50%;
  right: 4%;
  left: 4%;
  z-index: -1;
  height: 5px;
  content: "";
  background: rgba(18, 59, 83, 0.14);
  border-radius: 999px;
}

.sacrament-tabs button {
  position: relative;
  min-width: 112px;
  min-height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 10px 8px;
  color: var(--fjord-deep);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.83);
  border: 3px solid var(--white);
  border-radius: 25px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-title);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.sacrament-tabs button > span {
  font-size: 1.8rem;
}

.sacrament-tabs button strong {
  font-size: 0.89rem;
  line-height: 1.05;
}

.sacrament-tabs button small {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  background: var(--foam);
  border-radius: 50%;
  font-weight: 900;
}

.sacrament-tabs button:hover,
.sacrament-tabs button:focus-visible {
  transform: translateY(-5px);
}

.sacrament-tabs button[aria-selected="true"] {
  color: var(--white);
  background: var(--fjord);
  border-color: var(--sun);
  box-shadow: 0 12px 30px rgba(18, 59, 83, 0.24);
  transform: translateY(-7px);
}

.sacrament-tabs button.is-complete::after {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  content: "✓";
  color: var(--white);
  background: var(--berry);
  border: 3px solid var(--white);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
}

.sacrament-stage {
  position: relative;
  margin-top: 24px;
  padding: clamp(18px, 3vw, 34px);
  background:
    radial-gradient(circle at 90% 10%, rgba(246, 196, 83, 0.2), transparent 28%),
    rgba(255, 249, 237, 0.9);
  border: 4px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.sacrament-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.sacrament-panel[hidden] {
  display: none;
}

.sacrament-visual {
  position: relative;
  overflow: hidden;
  background: var(--fjord-deep);
  border: 5px solid var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.sacrament-visual > img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sacrament-hotspot {
  position: absolute;
  top: var(--spot-y);
  left: var(--spot-x);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--fjord-deep);
  cursor: pointer;
  background: var(--sun);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 5px 18px rgba(8, 30, 42, 0.36);
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 900;
  animation: sacrament-pulse 2.2s ease-in-out infinite;
}

.sacrament-hotspot:nth-of-type(2) {
  animation-delay: 260ms;
}

.sacrament-hotspot:nth-of-type(3) {
  animation-delay: 520ms;
}

.sacrament-hotspot::after {
  position: absolute;
  inset: -10px;
  content: "";
  border: 2px solid rgba(246, 196, 83, 0.72);
  border-radius: 50%;
}

.sacrament-hotspot:hover,
.sacrament-hotspot:focus-visible {
  color: var(--white);
  background: var(--berry);
  animation: none;
}

.sacrament-hotspot[aria-pressed="true"] {
  color: var(--white);
  background: var(--berry);
  animation: none;
}

.sacrament-hotspot[aria-pressed="true"]::after {
  display: none;
}

.sacrament-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 48px;
  padding-inline: 14px;
  background: rgba(255, 249, 237, 0.94);
  border: 2px solid var(--sun);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

.sacrament-panel__copy h3 {
  margin-bottom: 17px;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.sacrament-panel__copy > p {
  font-size: 1.04rem;
}

.sacrament-clues {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.sacrament-clues:has(p:not([hidden])) {
  padding-top: 3px;
}

.sacrament-clues p {
  margin: 0;
  padding: 12px 14px;
  color: var(--fjord-deep);
  background: rgba(216, 242, 244, 0.72);
  border-left: 4px solid var(--sun);
  border-radius: 0 14px 14px 0;
  animation: sacrament-clue-in 260ms ease both;
}

.sacrament-panel__maram {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(246, 196, 83, 0.14);
  border: 2px dashed rgba(194, 85, 50, 0.36);
  border-radius: var(--radius-sm);
}

.sacrament-panel__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}

.sacrament-panel__footer span {
  color: var(--muted);
  font-weight: 800;
}

.sacrament-panel__footer button {
  background: var(--foam);
  border: 2px solid rgba(18, 59, 83, 0.12);
}

.sacrament-complete {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 18px 22px;
  color: var(--white);
  background: var(--berry);
  border: 4px solid var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.sacrament-complete[hidden] {
  display: none;
}

.sacrament-complete > span {
  color: var(--sun);
  font-size: 2rem;
}

.sacrament-complete strong {
  font-family: var(--font-title);
  font-size: 1.25rem;
}

.sacrament-complete p {
  margin: 3px 0 0;
}

.sacrament-complete__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.sacrament-complete__actions .button {
  border: 0;
  cursor: pointer;
}

.sacrament-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sacrament-groups article {
  position: relative;
  padding: 28px;
  background: rgba(216, 242, 244, 0.56);
  border: 3px solid var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.sacrament-groups article:nth-child(2) {
  background: rgba(246, 196, 83, 0.16);
}

.sacrament-groups article:nth-child(3) {
  background: rgba(194, 85, 50, 0.1);
}

.sacrament-groups article > span {
  font-size: 2rem;
}

.sacrament-groups h3 {
  margin: 11px 0 9px;
  font-size: 1.55rem;
}

.sacrament-groups p {
  margin-bottom: 15px;
}

.sacrament-groups a {
  font-family: var(--font-title);
  font-weight: 850;
}

.sacrament-home-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  min-height: 520px;
  overflow: hidden;
  color: var(--white);
  background: var(--fjord-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.sacrament-home-teaser__image {
  position: relative;
  min-height: 460px;
}

.sacrament-home-teaser__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent 58%, var(--fjord-deep));
}

.sacrament-home-teaser__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sacrament-home-teaser__copy {
  display: grid;
  align-content: center;
  padding: clamp(30px, 5vw, 70px);
}

.sacrament-home-teaser__copy h2 {
  color: var(--white);
}

.sacrament-home-teaser__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0 23px;
}

.sacrament-home-teaser__icons span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.13);
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

@keyframes sacrament-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes sacrament-clue-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-calm="true"] .sacrament-hotspot,
[data-calm="true"] .sacrament-clues p,
[data-calm="true"] .sacrament-seven > a,
[data-calm="true"] .sacrament-progress__track span {
  animation: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .sacrament-hotspot,
  .sacrament-clues p,
  .sacrament-seven > a,
  .sacrament-progress__track span {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1100px) {
  .sacrament-panel {
    grid-template-columns: 1fr;
  }

  .sacrament-panel__copy {
    padding-inline: 8px;
  }

  .sacrament-tabs {
    grid-template-columns: repeat(7, 124px);
  }
}

@media (max-width: 980px) {
  .page-hero--sacraments .page-hero__image {
    object-position: 54% center;
  }

  .page-hero--sacraments .page-hero__content {
    width: min(760px, 100%);
  }

  .sacrament-intro,
  .sacrament-journey__heading,
  .sacrament-home-teaser {
    grid-template-columns: 1fr;
  }

  .sacrament-seven {
    min-height: 0;
    border-radius: var(--radius-lg);
  }

  .sacrament-groups {
    grid-template-columns: 1fr;
  }

  .sacrament-home-teaser__image {
    min-height: 400px;
  }

  .sacrament-home-teaser__image::after {
    background: linear-gradient(180deg, transparent 60%, var(--fjord-deep));
  }
}

@media (max-width: 680px) {
  .page-hero--sacraments {
    padding-top: 310px;
  }

  .sacrament-seven {
    grid-template-columns: repeat(2, 1fr);
    padding: 18px;
  }

  .sacrament-seven > a:nth-child(4),
  .sacrament-seven > a:nth-child(7) {
    grid-column: auto;
  }

  .sacrament-seven > a:last-child {
    grid-column: 1 / -1;
  }

  .sacrament-journey__heading {
    gap: 20px;
  }

  .sacrament-tabs {
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .sacrament-stage {
    margin-inline: -10px;
    padding: 10px;
    border-width: 3px;
  }

  .sacrament-hotspot {
    width: 46px;
    height: 46px;
  }

  .sacrament-zoom {
    right: 8px;
    bottom: 8px;
    padding-inline: 12px;
    font-size: 0.83rem;
  }

  .sacrament-panel__copy {
    padding: 10px 8px 16px;
  }

  .sacrament-panel__footer {
    align-items: stretch;
  }

  .sacrament-panel__footer button {
    flex: 1 1 44%;
  }

  .sacrament-panel__footer span {
    flex: 1 0 100%;
    order: -1;
  }

  .sacrament-complete {
    grid-template-columns: auto 1fr;
  }

  .sacrament-complete .button {
    width: 100%;
    text-align: center;
  }

  .sacrament-complete__actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .sacrament-home-teaser__image {
    min-height: 300px;
  }
}

/* Kirkens tjenere */
.minister-hero {
  position: relative;
  padding: clamp(58px, 7vw, 94px) 0 clamp(74px, 9vw, 118px);
  overflow: hidden;
  color: var(--fjord-deep);
  background:
    radial-gradient(circle at 90% 14%, rgba(246, 196, 83, 0.42) 0 7%, transparent 7.4%),
    radial-gradient(circle at 78% 86%, rgba(191, 228, 211, 0.72) 0 15%, transparent 15.4%),
    linear-gradient(145deg, var(--cream), #dff4f5 68%, #bfe4d3);
}

.minister-hero::after {
  position: absolute;
  right: -110px;
  bottom: -170px;
  width: 420px;
  height: 420px;
  content: "";
  border: 4px dashed rgba(18, 59, 83, 0.1);
  border-radius: 50%;
}

.minister-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: center;
}

.minister-hero__copy h1 {
  max-width: 680px;
  margin: 15px 0 18px;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.minister-hero__copy > p {
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  font-weight: 700;
}

.minister-hero__copy .button-row {
  margin-top: 26px;
}

.minister-hero__people {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: 20px;
  background: rgba(255, 255, 255, 0.42);
  border: 3px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(9px);
}

.minister-hero__people a {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--fjord-deep);
  border: 3px solid var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.minister-hero__people a:nth-child(2),
.minister-hero__people a:nth-child(4) {
  transform: translateY(18px);
}

.minister-hero__people a:hover,
.minister-hero__people a:focus-visible {
  z-index: 2;
  box-shadow: 0 18px 36px rgba(18, 59, 83, 0.25);
  transform: translateY(-8px) rotate(-1deg);
}

.minister-hero__people img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center top;
}

.minister-hero__people span {
  position: absolute;
  right: 5px;
  bottom: 7px;
  left: 5px;
  padding: 7px 4px;
  text-align: center;
  background: rgba(18, 59, 83, 0.9);
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 850;
}

.ministry-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}

.ministry-intro__promise {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  background: linear-gradient(145deg, rgba(216, 242, 244, 0.8), rgba(246, 196, 83, 0.15));
  border: 3px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.ministry-intro__promise > span {
  font-size: 3rem;
}

.ministry-intro__promise strong {
  font-family: var(--font-title);
  font-size: 1.45rem;
}

.ministry-intro__promise p {
  margin: 3px 0 0;
}

.ministry-explorer {
  overflow: clip;
}

.ministry-explorer__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 32px;
  align-items: end;
}

.ministry-progress {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 2px solid rgba(18, 59, 83, 0.11);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.ministry-progress > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.ministry-progress strong {
  flex: 1 1 170px;
  font-family: var(--font-title);
}

.ministry-progress button,
.ministry-panel__footer button,
.ministry-zoom {
  min-height: var(--tap);
  padding: 9px 14px;
  color: var(--fjord-deep);
  cursor: pointer;
  background: var(--sun);
  border: 0;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 850;
}

.ministry-progress button:hover,
.ministry-progress button:focus-visible,
.ministry-panel__footer button:hover,
.ministry-panel__footer button:focus-visible,
.ministry-zoom:hover,
.ministry-zoom:focus-visible {
  color: var(--white);
  background: var(--berry);
}

.ministry-progress .ministry-progress__reset {
  background: var(--white);
  border: 2px solid rgba(18, 59, 83, 0.16);
}

.ministry-progress > span {
  height: 12px;
  display: block;
  margin-top: 13px;
  overflow: hidden;
  background: rgba(18, 59, 83, 0.12);
  border-radius: 999px;
}

.ministry-progress i {
  width: 0;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--berry), var(--sun));
  border-radius: inherit;
  transition: width 380ms ease;
}

.ministry-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 34px;
  padding: 9px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ministry-tabs button {
  position: relative;
  min-width: 150px;
  min-height: 152px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 11px;
  align-items: center;
  padding: 11px;
  color: var(--fjord-deep);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.82);
  border: 3px solid var(--white);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, background 180ms ease;
}

.ministry-tabs img {
  width: 70px;
  height: 118px;
  object-fit: cover;
  object-position: center top;
  border-radius: 17px;
}

.ministry-tabs strong {
  font-size: 1.12rem;
}

.ministry-tabs small {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--sky);
  border-radius: 50%;
  font-weight: 900;
}

.ministry-tabs button:hover,
.ministry-tabs button:focus-visible {
  transform: translateY(-5px);
}

.ministry-tabs button[aria-selected="true"] {
  color: var(--white);
  background: var(--fjord);
  border-color: var(--sun);
  transform: translateY(-6px);
}

.ministry-tabs button.is-complete::after {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  content: "✓";
  color: var(--white);
  background: var(--berry);
  border: 3px solid var(--white);
  border-radius: 50%;
  font-weight: 900;
}

.ministry-stage {
  margin-top: 24px;
  padding: clamp(15px, 3vw, 34px);
  background: rgba(255, 249, 237, 0.92);
  border: 4px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.ministry-panel {
  display: grid;
  grid-template-columns: minmax(350px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.ministry-panel[hidden] {
  display: none;
}

.ministry-visual {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border: 5px solid var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.ministry-visual > img {
  width: 100%;
  max-height: 720px;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.ministry-hotspot {
  position: absolute;
  top: var(--spot-y);
  left: var(--spot-x);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--fjord-deep);
  cursor: pointer;
  background: var(--sun);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(18, 59, 83, 0.32);
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-weight: 900;
  animation: ministry-pulse 2.2s ease-in-out infinite;
}

.ministry-hotspot:nth-of-type(2) { animation-delay: 220ms; }
.ministry-hotspot:nth-of-type(3) { animation-delay: 440ms; }

.ministry-hotspot::after {
  position: absolute;
  inset: -10px;
  content: "";
  border: 2px solid rgba(246, 196, 83, 0.78);
  border-radius: 50%;
}

.ministry-hotspot:hover,
.ministry-hotspot:focus-visible,
.ministry-hotspot[aria-pressed="true"] {
  color: var(--white);
  background: var(--berry);
  animation: none;
}

.ministry-hotspot[aria-pressed="true"]::after {
  display: none;
}

.ministry-zoom {
  position: absolute;
  right: 11px;
  bottom: 11px;
  background: rgba(255, 249, 237, 0.95);
  border: 2px solid var(--sun);
  cursor: zoom-in;
}

.ministry-panel__copy h3 {
  margin-bottom: 17px;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
}

.ministry-panel__copy > p {
  font-size: 1.05rem;
}

.ministry-clues {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.ministry-clues p {
  margin: 0;
  padding: 12px 14px;
  background: rgba(216, 242, 244, 0.72);
  border-left: 4px solid var(--sun);
  border-radius: 0 14px 14px 0;
  animation: ministry-clue-in 240ms ease both;
}

.ministry-panel__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.ministry-panel__footer span {
  color: var(--muted);
  font-weight: 850;
}

.ministry-panel__footer button {
  background: var(--sky);
  border: 2px solid rgba(18, 59, 83, 0.12);
}

.ministry-complete {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 20px 22px;
  color: var(--white);
  background: var(--berry);
  border: 4px solid var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.ministry-complete[hidden] { display: none; }
.ministry-complete > span { font-size: 2.4rem; }
.ministry-complete strong { font-family: var(--font-title); font-size: 1.25rem; }
.ministry-complete p { margin: 3px 0 0; }
.ministry-complete > div:last-child { display: flex; flex-wrap: wrap; gap: 9px; }
.ministry-complete button { border: 0; cursor: pointer; }

.ministry-order {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
}

.ministry-order article {
  padding: clamp(24px, 4vw, 38px);
  background: linear-gradient(145deg, rgba(216, 242, 244, 0.7), rgba(255, 255, 255, 0.8));
  border: 3px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.ministry-order article:nth-child(2) {
  background: linear-gradient(145deg, rgba(246, 196, 83, 0.2), rgba(255, 255, 255, 0.82));
}

.ministry-order__label {
  display: inline-flex;
  padding: 7px 12px;
  background: var(--sun);
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 850;
}

.ministry-order article > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.ministry-order article:nth-child(2) > div {
  grid-template-columns: repeat(2, 1fr);
}

.ministry-order a {
  overflow: hidden;
  color: var(--fjord-deep);
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease;
}

.ministry-order a:hover,
.ministry-order a:focus-visible {
  transform: translateY(-4px);
}

.ministry-order img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center top;
}

.ministry-order strong {
  display: block;
  padding: 10px 6px 12px;
  font-family: var(--font-title);
}

.ministry-order p { margin-bottom: 0; }

.ministry-quiz {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(440px, 1.28fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.ministry-quiz > div:first-child h2,
.ministry-quiz > div:first-child p {
  color: var(--white);
}

.ministry-quiz__card {
  padding: clamp(25px, 4vw, 44px);
  color: var(--fjord-deep);
  background: var(--paper);
  border: 4px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.ministry-quiz__top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-title);
  font-weight: 850;
}

.ministry-quiz__card h3 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.ministry-quiz__answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ministry-quiz__answers button {
  min-height: 58px;
  padding: 10px 14px;
  color: var(--fjord-deep);
  cursor: pointer;
  background: var(--sky);
  border: 3px solid transparent;
  border-radius: 18px;
  font-family: var(--font-title);
  font-weight: 850;
}

.ministry-quiz__answers button:hover,
.ministry-quiz__answers button:focus-visible {
  border-color: var(--sun);
  transform: translateY(-2px);
}

.ministry-quiz__answers button.is-correct {
  color: var(--white);
  background: var(--leaf);
  border-color: var(--leaf);
}

.ministry-quiz__answers button.is-wrong {
  color: var(--white);
  background: var(--coral);
  border-color: var(--coral);
}

.ministry-quiz__feedback {
  min-height: 58px;
  margin: 18px 0;
  padding: 13px 15px;
  background: rgba(246, 196, 83, 0.17);
  border-left: 4px solid var(--sun);
  border-radius: 0 14px 14px 0;
  font-weight: 750;
}

.ministry-episode {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.ministry-episode > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 5px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.ministry-source {
  padding-block: 34px;
  background: rgba(216, 242, 244, 0.44);
}

.ministry-source details {
  padding: 16px 19px;
  background: rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-sm);
}

.ministry-source summary {
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 850;
}

.ministry-source p { margin: 13px 0 0; font-size: 0.94rem; }

@keyframes ministry-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes ministry-clue-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-calm="true"] .minister-hero__people a,
[data-calm="true"] .ministry-progress i,
[data-calm="true"] .ministry-hotspot,
[data-calm="true"] .ministry-clues p {
  animation: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .minister-hero__people a,
  .ministry-progress i,
  .ministry-hotspot,
  .ministry-clues p {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1080px) {
  .minister-hero__grid {
    grid-template-columns: 1fr;
  }

  .minister-hero__people img { height: 320px; }

  .ministry-panel {
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  }
}

@media (max-width: 860px) {
  .ministry-intro,
  .ministry-explorer__heading,
  .ministry-panel,
  .ministry-order,
  .ministry-quiz,
  .ministry-episode {
    grid-template-columns: 1fr;
  }

  .ministry-tabs {
    grid-template-columns: repeat(5, 170px);
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .ministry-visual {
    width: min(580px, 100%);
    margin-inline: auto;
  }

  .ministry-complete {
    grid-template-columns: auto 1fr;
  }

  .ministry-complete > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .minister-hero {
    padding-top: 38px;
  }

  .minister-hero__people {
    grid-template-columns: repeat(5, 128px);
    overflow-x: auto;
    align-items: stretch;
    padding: 15px;
  }

  .minister-hero__people a:nth-child(2),
  .minister-hero__people a:nth-child(4) {
    transform: none;
  }

  .minister-hero__people img { height: 300px; }

  .ministry-progress > div {
    align-items: stretch;
  }

  .ministry-progress button {
    flex: 1 1 45%;
  }

  .ministry-stage {
    margin-inline: -10px;
    padding: 9px;
    border-width: 3px;
  }

  .ministry-panel__copy {
    padding: 12px 8px 17px;
  }

  .ministry-hotspot {
    width: 48px;
    height: 48px;
  }

  .ministry-panel__footer {
    align-items: stretch;
  }

  .ministry-panel__footer span {
    flex: 1 0 100%;
    order: -1;
  }

  .ministry-panel__footer button {
    flex: 1 1 44%;
  }

  .ministry-order article > div,
  .ministry-order article:nth-child(2) > div {
    grid-template-columns: repeat(2, 1fr);
  }

  .ministry-order img { height: 190px; }

  .ministry-quiz__answers {
    grid-template-columns: 1fr;
  }

  .ministry-episode > img {
    min-width: 0;
  }
}

/* De ti bud */
.page-hero--commandments .page-hero__image {
  object-position: center center;
}

@media (min-width: 981px) {
  .page-hero--commandments .page-hero__image {
    transform: translateX(17%);
  }
}

.page-hero--commandments::before {
  background: linear-gradient(90deg, rgba(11, 50, 71, 0.88) 0%, rgba(11, 50, 71, 0.66) 38%, rgba(11, 50, 71, 0.12) 68%, rgba(11, 50, 71, 0.06) 100%);
}

.page-hero--commandments .page-hero__content {
  max-width: 530px;
  background: rgba(13, 58, 80, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.23);
  backdrop-filter: blur(10px);
}

.commandment-hero__zoom {
  margin-top: 16px;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 43, 61, 0.48);
  font: 800 0.86rem/1 var(--font-display);
  cursor: pointer;
}

.commandment-hero__zoom:hover,
.commandment-hero__zoom:focus-visible {
  background: #fff;
  color: var(--ink);
}

.commandment-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
}

.commandment-intro__copy p {
  max-width: 64ch;
}

.commandment-intro__note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 24px;
  padding: 17px 19px;
  border-left: 4px solid var(--sun);
  border-radius: 0 16px 16px 0;
  background: var(--cream);
}

.commandment-intro__note span {
  color: var(--berry);
  font-size: 1.25rem;
}

.commandment-intro__note p { margin: 0; }

.commandment-tablets {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 15px;
  align-items: start;
}

.commandment-tablet {
  position: relative;
  min-height: 410px;
  padding: 56px 22px 27px;
  overflow: hidden;
  border: 4px solid rgba(22, 65, 84, 0.16);
  border-radius: 48% 48% 28px 28px / 15% 15% 28px 28px;
  color: var(--ink);
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.75) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 55%, rgba(29, 78, 93, 0.08) 0 4px, transparent 5px),
    linear-gradient(145deg, #eef3ed, #d7e4de 55%, #c9d9d4);
  box-shadow: 0 20px 45px rgba(18, 59, 83, 0.13), inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

.commandment-tablet--neighbor {
  margin-top: 28px;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.75) 0 3px, transparent 4px),
    radial-gradient(circle at 22% 72%, rgba(29, 78, 93, 0.08) 0 4px, transparent 5px),
    linear-gradient(145deg, #f3eee3, #e8ddc8 55%, #d8ccb4);
}

.commandment-tablet__heart {
  position: absolute;
  top: 17px;
  left: 50%;
  color: var(--coral);
  font-size: 1.25rem;
  transform: translateX(-50%);
}

.commandment-tablet h3,
.commandment-tablet > p {
  margin: 0;
  text-align: center;
}

.commandment-tablet > p {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.commandment-tablet > div {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.commandment-tablet a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  font: 800 0.9rem/1.2 var(--font-display);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(18, 59, 83, 0.07);
}

.commandment-tablet a:hover,
.commandment-tablet a:focus-visible {
  color: #fff;
  background: var(--ocean);
  transform: translateY(-2px);
}

.commandment-tablet a span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--sun);
}

.commandment-journey__heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1.25fr);
  gap: 36px;
  align-items: end;
}

.commandment-progress {
  padding: 17px 19px;
  border: 2px solid rgba(18, 59, 83, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
}

.commandment-progress__top {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.commandment-progress__top > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.commandment-progress button {
  min-height: 48px;
  padding: 9px 13px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--sun);
  font: 800 0.82rem/1 var(--font-display);
  cursor: pointer;
}

.commandment-progress button:last-child { background: var(--cream); }

.commandment-progress__track,
.commandment-quiz__bar {
  height: 10px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 59, 83, 0.13);
}

.commandment-progress__track span,
.commandment-quiz__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--sun));
  transition: width 0.35s ease;
}

.commandment-tabs {
  display: grid;
  grid-template-columns: repeat(10, minmax(105px, 1fr));
  gap: 10px;
  margin-top: 34px;
  padding: 4px 3px 13px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.commandment-tabs button {
  position: relative;
  display: grid;
  min-height: 132px;
  padding: 16px 8px 12px;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 2px solid transparent;
  border-radius: 19px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 9px 20px rgba(18, 59, 83, 0.09);
  font-family: var(--font-display);
  cursor: pointer;
}

.commandment-tabs button:nth-child(-n+3) { background: #fff9dd; }
.commandment-tabs button:nth-child(n+4) { background: #fff; }

.commandment-tabs button[aria-selected="true"] {
  border-color: var(--sun);
  background: var(--ocean);
  color: #fff;
  transform: translateY(-4px);
}

.commandment-tabs button.is-seen::after {
  content: "✓";
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--sun);
  font-weight: 900;
}

.commandment-tabs button > span { font-size: 1.55rem; }
.commandment-tabs button > strong { font-size: 0.8rem; line-height: 1.12; }
.commandment-tabs button > small { color: inherit; font-weight: 900; }

.commandment-stage {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 34px);
  border: 4px solid #fff;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 241, 225, 0.82));
  box-shadow: 0 22px 46px rgba(18, 59, 83, 0.12);
}

.commandment-panel {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.commandment-panel[hidden] { display: none; }

.commandment-panel__mark {
  position: relative;
  display: grid;
  min-height: 320px;
  padding: 46px 18px 30px;
  place-items: center;
  align-content: center;
  border: 4px solid rgba(18, 59, 83, 0.14);
  border-radius: 48% 48% 25px 25px / 15% 15% 25px 25px;
  background: linear-gradient(145deg, #e9efea, #d3dfd8);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.85), 0 12px 24px rgba(18, 59, 83, 0.1);
}

.commandment-panel__mark > span { font-size: 3.3rem; }
.commandment-panel__mark > strong { color: var(--ocean); font: 900 clamp(4.8rem, 8vw, 7.5rem)/0.9 var(--font-display); }
.commandment-panel__mark > small { font: 900 0.82rem/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; }

.commandment-panel__copy h3 {
  margin-top: 8px;
  max-width: 24ch;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

.commandment-panel__copy > p { max-width: 66ch; }

.commandment-panel__maram {
  margin-top: 21px;
  padding: 17px 19px;
  border-left: 5px solid var(--coral);
  border-radius: 0 16px 16px 0;
  background: var(--cream);
}

.commandment-panel__footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.commandment-panel__footer button {
  min-height: 44px;
  padding: 10px 15px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ocean);
  font: 800 0.85rem/1 var(--font-display);
  cursor: pointer;
}

.commandment-complete {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 19px 22px;
  border-radius: 21px;
  color: var(--ink);
  background: var(--sun);
  box-shadow: 0 15px 30px rgba(18, 59, 83, 0.12);
}

.commandment-complete[hidden] { display: none; }
.commandment-complete > span { font-size: 2rem; color: var(--berry); }
.commandment-complete p { margin: 3px 0 0; }
.commandment-complete > div:last-child { display: flex; gap: 9px; flex-wrap: wrap; }

.commandment-quiz {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.commandment-quiz__family {
  position: relative;
  margin-top: 22px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 22px;
  box-shadow: 0 15px 30px rgba(18, 59, 83, 0.12);
}

.commandment-quiz__family img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.commandment-quiz__family button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 48px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(11, 50, 71, 0.86);
  font: 800 0.78rem/1 var(--font-display);
  cursor: pointer;
}

.commandment-quiz__card {
  min-height: 480px;
  padding: clamp(22px, 4vw, 42px);
  border: 4px solid var(--foam);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 46px rgba(18, 59, 83, 0.12);
}

.commandment-quiz__top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font: 800 0.9rem/1.2 var(--font-display);
}

.commandment-quiz__question {
  min-height: 94px;
  margin: 28px 0 19px;
  color: var(--ink);
  font: 900 clamp(1.3rem, 2.4vw, 2rem)/1.2 var(--font-display);
}

.commandment-quiz__answers {
  display: grid;
  gap: 10px;
}

.commandment-quiz__answers button {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 15px;
  border: 2px solid rgba(18, 59, 83, 0.12);
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
  font: 800 0.93rem/1.25 var(--font-display);
  text-align: left;
  cursor: pointer;
}

.commandment-quiz__answers button span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--sun);
}

.commandment-quiz__answers button:hover:not(:disabled),
.commandment-quiz__answers button:focus-visible {
  border-color: var(--ocean);
  transform: translateX(4px);
}

.commandment-quiz__answers button.is-correct { border-color: #27846f; background: #e0f6ec; }
.commandment-quiz__answers button.is-try { border-color: var(--coral); background: #fff0ea; }
.commandment-quiz__answers button:disabled { cursor: default; opacity: 1; }

.commandment-quiz__feedback {
  min-height: 55px;
  margin: 16px 0 0;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--cream);
}

.commandment-quiz__actions {
  display: flex;
  gap: 9px;
  margin-top: 17px;
  flex-wrap: wrap;
}

.commandment-love {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
}

.commandment-love blockquote {
  margin: 26px 0 7px;
  padding: 18px 22px;
  border-left: 5px solid var(--sun);
  border-radius: 0 17px 17px 0;
  color: var(--ink);
  background: #fff;
  font: 900 clamp(1.25rem, 2.4vw, 1.8rem)/1.35 var(--font-display);
}

.commandment-love__source { color: var(--muted); font-weight: 800; }

.commandment-love__links {
  display: grid;
  gap: 9px;
  padding: 28px;
  border-radius: 26px;
  background: var(--ocean);
  color: #fff;
  box-shadow: 0 19px 38px rgba(18, 59, 83, 0.2);
}

.commandment-love__links > span { color: var(--sun); font-size: 2.1rem; }
.commandment-love__links a { padding: 12px 14px; border-radius: 13px; color: var(--ink); background: #fff; font-weight: 900; text-decoration: none; }
.commandment-love__links a:hover { background: var(--sun); }

.sacrament-home-teaser--reverse .sacrament-home-teaser__image { order: 2; }

.commandment-home-numbers {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
  color: var(--muted);
  font: 900 0.9rem/1.1 var(--font-display);
}

.commandment-home-numbers > span:not([aria-hidden]) {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 7px 15px rgba(18, 59, 83, 0.09);
}

.commandment-home-numbers strong {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--sun);
  font-size: 1.15rem;
}

[data-calm="true"] .commandment-progress__track span,
[data-calm="true"] .commandment-quiz__bar span,
[data-calm="true"] .commandment-tabs button,
[data-calm="true"] .commandment-tablet a,
[data-calm="true"] .commandment-quiz__answers button {
  transition: none;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .commandment-progress__track span,
  .commandment-quiz__bar span,
  .commandment-tabs button,
  .commandment-tablet a,
  .commandment-quiz__answers button {
    transition: none;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .commandment-intro,
  .commandment-journey__heading,
  .commandment-quiz,
  .commandment-love {
    grid-template-columns: 1fr;
  }

  .commandment-tablets { max-width: 720px; }
  .commandment-tabs { grid-template-columns: repeat(10, 125px); }
  .commandment-quiz__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr); gap: 25px; align-items: center; }
  .commandment-quiz__family { margin-top: 0; }
}

@media (max-width: 680px) {
  .page-hero--commandments {
    display: block;
    min-height: 0;
    padding: 245px 0 82px;
    background: var(--fjord-deep);
  }

  .page-hero--commandments .page-hero__image {
    bottom: auto;
    height: 245px;
    object-position: center center;
  }

  .page-hero--commandments::before {
    bottom: auto;
    height: 245px;
    background: linear-gradient(180deg, rgba(11, 50, 71, 0.04), rgba(11, 50, 71, 0.12) 70%, var(--fjord-deep));
  }

  .page-hero--commandments .page-hero__content {
    width: 100%;
    max-width: none;
    padding: 28px 0 30px;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }
  .commandment-tablets { grid-template-columns: 1fr; gap: 15px; }
  .commandment-tablet { min-height: 0; padding: 53px 18px 24px; }
  .commandment-tablet--neighbor { margin-top: 0; }
  .commandment-progress__top { align-items: stretch; }
  .commandment-progress__top > div { width: 100%; }
  .commandment-progress button { flex: 1 1 45%; }
  .commandment-tabs { margin-inline: -18px; padding-inline: 18px; }
  .commandment-stage { margin-inline: -10px; padding: 15px; border-radius: 22px; }
  .commandment-panel { grid-template-columns: 1fr; gap: 24px; }
  .commandment-panel__mark { min-height: 210px; width: min(250px, 100%); margin-inline: auto; }
  .commandment-panel__mark > strong { font-size: 5.5rem; }
  .commandment-panel__footer { align-items: stretch; }
  .commandment-panel__footer button { flex: 1 1 43%; }
  .commandment-complete { grid-template-columns: auto 1fr; }
  .commandment-complete > div:last-child { grid-column: 1 / -1; }
  .commandment-quiz__intro { display: block; }
  .commandment-quiz__family { margin-top: 20px; }
  .commandment-quiz__card { min-height: 0; padding: 20px 16px; }
  .commandment-quiz__top { align-items: flex-start; }
  .commandment-quiz__question { min-height: 0; }
  .commandment-love__links { padding: 22px 18px; }
  .sacrament-home-teaser--reverse .sacrament-home-teaser__image { order: initial; }
}

/* Interactive shore discovery in Familiefjæra */
.shore-game {
  position: relative;
  margin-top: 32px;
  padding: clamp(20px, 3vw, 34px);
  overflow: hidden;
  border: 3px solid rgba(17, 106, 141, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 94% 6%, rgba(246, 196, 83, 0.82) 0 92px, transparent 94px),
    radial-gradient(circle at 2% 92%, rgba(229, 111, 93, 0.2) 0 120px, transparent 122px),
    linear-gradient(145deg, #c8f0ef 0%, #e2f7f3 48%, #fff0c4 100%);
  box-shadow: var(--shadow-md);
}

.shore-game::before {
  content: "";
  position: absolute;
  right: 5%;
  bottom: -70px;
  width: 230px;
  height: 130px;
  border: 20px solid rgba(17, 106, 141, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.shore-game__head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.shore-game__head h3 {
  margin: 10px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.shore-game__head p {
  max-width: 760px;
  margin-bottom: 0;
}

.shore-game__score {
  min-width: 210px;
  padding: 14px 16px;
  border: 3px solid var(--white);
  border-radius: 22px;
  background: var(--fjord-deep);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(18, 59, 83, 0.24);
  text-align: center;
}

.shore-game__score > span:first-child,
.shore-game__score em {
  display: block;
  color: #ffe38c;
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 700;
}

.shore-game__score strong {
  display: block;
  margin: 2px 0;
  font-family: var(--font-title);
  font-size: 1.2rem;
}

.shore-game__progress {
  display: block;
  height: 10px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.shore-game__progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff816c, #ffe16f);
  transition: width 260ms ease;
}

.shore-game__toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 12px 14px 12px 18px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 22px rgba(18, 59, 83, 0.12);
  backdrop-filter: blur(8px);
}

.shore-game__targets-wrap,
.shore-game__targets {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.shore-game__targets-wrap > strong {
  font-family: var(--font-title);
  white-space: nowrap;
}

.shore-game__target {
  display: inline-flex;
  gap: 7px;
  min-height: 42px;
  padding: 6px 12px 6px 8px;
  align-items: center;
  border: 2px solid rgba(17, 106, 141, 0.22);
  border-radius: 999px;
  background: var(--white);
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(18, 59, 83, 0.12);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.shore-game__target b {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: #fff2bd;
  font-size: 1.15rem;
}

.shore-game__target b img,
.shore-stone__discovery img {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(18, 59, 83, 0.3)) saturate(1.1);
}

.shore-art-fallback[hidden],
.shore-game__discovery[hidden],
.shore-game__finish[hidden] {
  display: none !important;
}

.shore-game__target b.has-image {
  padding: 2px;
  background: radial-gradient(circle, #fff7d3 0 43%, rgba(246, 196, 83, 0.35) 62%, transparent 72%);
}

.shore-game__target.is-found {
  background: var(--leaf);
  color: var(--white);
  transform: translateY(-2px);
}

.shore-game__target.is-found::after {
  content: "✓";
  font-weight: 900;
}

.shore-game__sound {
  min-width: 104px;
  min-height: var(--tap);
  padding: 8px 14px;
  border: 2px solid var(--fjord);
  border-radius: 999px;
  background: var(--white);
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.shore-game__sound[aria-pressed="true"] {
  background: var(--fjord);
  color: var(--white);
}

.shore-game__sound:focus-visible {
  outline: 4px solid var(--sun);
  outline-offset: 3px;
}

.shore-game__stage {
  position: relative;
  z-index: 2;
  min-height: 440px;
  overflow: hidden;
  border: 6px solid var(--white);
  border-radius: 30px;
  background: #237f9a;
  box-shadow: 0 18px 40px rgba(18, 59, 83, 0.18);
  isolation: isolate;
}

.shore-game__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 15% 24%, rgba(255, 255, 255, 0.72) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 32%, rgba(255, 255, 255, 0.55) 0 5px, transparent 6px),
    radial-gradient(circle at 52% 73%, rgba(255, 255, 255, 0.45) 0 4px, transparent 5px);
  background-size: 145px 125px, 190px 160px, 170px 145px;
  pointer-events: none;
}

.shore-game__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 111, 143, 0.08), rgba(7, 66, 91, 0.42));
}

.shore-game__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.3) contrast(1.07) brightness(0.92);
}

.shore-game__stage-badge {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 50%;
  min-width: 180px;
  padding: 9px 18px;
  border: 3px solid var(--white);
  border-radius: 999px;
  background: var(--plum);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(18, 59, 83, 0.28);
  font-family: var(--font-title);
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
}

.shore-stone {
  position: absolute;
  top: var(--shore-top);
  left: var(--shore-left);
  z-index: 2;
  width: 96px;
  height: 82px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.shore-stone:disabled {
  opacity: 1;
  cursor: default;
}

.shore-stone::before {
  content: "";
  position: absolute;
  inset: 8px 3px;
  z-index: 2;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 58% 42% 52% 48% / 49% 58% 42% 51%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.5), transparent 24%),
    linear-gradient(145deg, #c0aa8b, #685a53 75%);
  box-shadow: 0 11px 0 rgba(18, 59, 83, 0.18), 0 16px 22px rgba(18, 59, 83, 0.34);
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms ease;
  pointer-events: none;
}

.shore-stone--2::before,
.shore-stone--6::before {
  background:
    radial-gradient(circle at 66% 30%, rgba(255, 239, 174, 0.36), transparent 20%),
    linear-gradient(145deg, #c7b27c, #6f664f 78%);
}

.shore-stone--3::before,
.shore-stone--7::before {
  background:
    radial-gradient(circle at 34% 35%, rgba(207, 244, 221, 0.32), transparent 18%),
    linear-gradient(145deg, #91aaa0, #425d5c 78%);
}

.shore-stone::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: 0;
  border: 3px dashed rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.shore-stone:hover::after,
.shore-stone:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.shore-stone:focus-visible {
  outline: 5px solid var(--sun);
  outline-offset: 4px;
}

.shore-stone__discovery {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: rgba(255, 248, 232, 0.96);
  box-shadow: 0 8px 18px rgba(18, 59, 83, 0.26);
  font-size: 2rem;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35);
  transition: opacity 180ms ease 100ms, transform 260ms cubic-bezier(.2, .8, .2, 1) 90ms;
  pointer-events: none;
}

.shore-stone__discovery.has-image {
  width: 78px;
  height: 78px;
  padding: 3px;
  border: 0;
  background: radial-gradient(circle, rgba(255, 249, 214, 0.98) 0 40%, rgba(246, 196, 83, 0.5) 60%, transparent 73%);
  box-shadow: none;
  filter: none;
}

.shore-game__discovery {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(88%, 440px);
  padding: clamp(14px, 2.5vw, 22px);
  grid-template-columns: clamp(118px, 28vw, 168px) 1fr;
  gap: 18px;
  align-items: center;
  color: var(--fjord-deep);
  border: 6px solid rgba(255, 255, 255, 0.98);
  border-radius: 30px;
  background: linear-gradient(145deg, #fff8d8, #ffe287 54%, #d6f4ec);
  box-shadow: 0 24px 54px rgba(6, 45, 62, 0.46), 0 0 0 7px rgba(246, 196, 83, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.82) rotate(-1deg);
  transition: opacity 180ms ease, transform 280ms cubic-bezier(.18, .84, .28, 1.18);
}

.shore-game__discovery.is-showing {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0);
}

.shore-game__discovery-art {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  place-items: center;
  border-radius: 28px;
  background: radial-gradient(circle, #fffef1, #ffd66b 58%, #e96f5d 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.74), 0 12px 24px rgba(18, 59, 83, 0.18);
}

.shore-game__discovery-art img {
  width: 100%;
  height: 100%;
  background: transparent;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(18, 59, 83, 0.32)) saturate(1.08);
}

.shore-game__discovery-art > span { font-size: 4.5rem; }
.shore-game__discovery > div:last-child { display: grid; gap: 6px; }
.shore-game__discovery > div:last-child > span { color: #8b3155; font-family: var(--font-title); font-size: 0.82rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.shore-game__discovery strong { font-family: var(--font-title); font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1; }
.shore-game__discovery p { margin: 0; font-weight: 780; line-height: 1.42; }

.shore-game__heart-line {
  display: block;
  margin-top: 8px;
  padding: 9px 12px;
  border-left: 4px solid var(--sun);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 246, 207, 0.84);
}

.shore-game__heart-line a { color: var(--fjord); font-weight: 900; }

.shore-game__round-result {
  display: block;
  margin-top: 8px;
  color: var(--fjord-deep);
  font-family: var(--font-title);
}

.shore-game__finish {
  margin-top: 24px;
  background: linear-gradient(145deg, #fff1a8, #f8d56e 48%, #bfeee5);
}

.shore-game__finish .game-finish-card__actions { margin-top: 14px; }
.shore-game__finish .game-finish-card__actions .button { max-width: 720px; white-space: normal; text-align: center; }

.shore-stone.is-open::before {
  transform: translate(-31px, -35px) rotate(-17deg);
  box-shadow: 0 16px 20px rgba(18, 59, 83, 0.26);
}

.shore-stone.is-open .shore-stone__discovery {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.shore-stone.is-treasure .shore-stone__discovery {
  animation: shore-found 520ms ease both;
}

.shore-stone.is-preview::after {
  border-color: var(--sun);
  opacity: 1;
  transform: scale(1);
  animation: shore-preview 850ms ease-in-out infinite alternate;
}

.shore-stone.is-preview::before {
  box-shadow: 0 0 0 5px rgba(246, 196, 83, 0.72), 0 17px 24px rgba(18, 59, 83, 0.32);
}

.shore-stone.is-missed .shore-stone__discovery {
  opacity: 1;
  box-shadow: 0 0 0 6px var(--coral), 0 8px 18px rgba(18, 59, 83, 0.26);
  transform: translate(-50%, -50%) scale(1);
}

.shore-game__stage.is-complete {
  box-shadow: 0 0 0 5px var(--sun), 0 18px 40px rgba(18, 59, 83, 0.2);
}

.shore-game__stage.is-right {
  box-shadow: 0 0 0 7px #74c77c, 0 18px 40px rgba(18, 59, 83, 0.2);
}

.shore-game__stage.is-wrong {
  animation: shore-wrong 300ms ease;
  box-shadow: 0 0 0 7px var(--coral), 0 18px 40px rgba(18, 59, 83, 0.2);
}

.shore-game__footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.shore-game__footer p {
  max-width: 700px;
  margin: 0;
  font-weight: 700;
}

.shore-game__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@keyframes shore-found {
  0% { transform: translate(-50%, -50%) scale(0.35) rotate(-12deg); }
  65% { transform: translate(-50%, -50%) scale(1.18) rotate(5deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0); }
}

@keyframes shore-preview {
  from { transform: scale(0.92); opacity: 0.72; }
  to { transform: scale(1.07); opacity: 1; }
}

@keyframes shore-wrong {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-7px); }
  70% { transform: translateX(7px); }
}

[data-calm="true"] .shore-stone,
[data-calm="true"] .shore-stone::before,
[data-calm="true"] .shore-stone::after,
[data-calm="true"] .shore-stone__discovery,
[data-calm="true"] .shore-game__discovery,
[data-calm="true"] .shore-game__target,
[data-calm="true"] .shore-game__stage,
[data-calm="true"] .shore-game__progress i {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .shore-stone,
  .shore-stone::before,
  .shore-stone::after,
  .shore-stone__discovery,
  .shore-game__discovery,
  .shore-game__target,
  .shore-game__stage,
  .shore-game__progress i {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 680px) {
  .shore-game {
    padding: 18px 14px;
    border-radius: 28px;
  }

  .shore-game__head {
    grid-template-columns: 1fr;
  }

  .shore-game__score {
    width: 100%;
  }

  .shore-game__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .shore-game__targets-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .shore-game__targets {
    width: 100%;
  }

  .shore-game__target {
    flex: 1 1 120px;
    justify-content: center;
  }

  .shore-game__sound {
    align-self: flex-start;
  }

  .shore-game__stage {
    min-height: 370px;
    border-width: 4px;
    border-radius: 24px;
  }

  .shore-stone {
    width: 66px;
    height: 58px;
  }

  .shore-stone__discovery {
    width: 46px;
    height: 46px;
    font-size: 1.65rem;
  }

  .shore-stone__discovery.has-image { width: 58px; height: 58px; }

  .shore-game__discovery {
    width: min(92%, 350px);
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 12px;
    border-width: 4px;
    border-radius: 22px;
  }

  .shore-game__discovery-art { padding: 5px; border-radius: 19px; }
  .shore-game__discovery strong { font-size: 1.35rem; }
  .shore-game__discovery p { font-size: 0.82rem; }

  .shore-stone.is-open::before {
    transform: translate(-22px, -28px) rotate(-17deg);
  }

  .shore-game__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .shore-game__footer .button {
    width: 100%;
  }

  .shore-game__actions {
    width: 100%;
  }

  .shore-game__actions .button {
    flex: 1 1 160px;
  }
}

/* Graphic tide-pool collection game in Familiefjæra */
.crab-game {
  position: relative;
  margin-top: 38px;
  padding: clamp(22px, 3vw, 36px);
  overflow: hidden;
  border: 2px solid rgba(18, 59, 83, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 91% 3%, rgba(246, 196, 83, 0.65) 0 84px, transparent 86px),
    linear-gradient(135deg, #e6f8f3 0%, #cbeef2 58%, #bce3ee 100%);
  box-shadow: var(--shadow-md);
}

.crab-game::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 280px;
  height: 220px;
  border: 26px solid rgba(17, 106, 141, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.crab-game__head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.crab-game__head h3 {
  margin: 10px 0 8px;
  color: var(--fjord-deep);
  font-size: clamp(2rem, 4.4vw, 3.15rem);
}

.crab-game__head p {
  max-width: 720px;
  margin: 0;
}

.crab-game__mission {
  display: grid;
  min-width: 220px;
  overflow: hidden;
  border: 3px solid var(--white);
  border-radius: 22px;
  background: var(--fjord-deep);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(18, 59, 83, 0.2);
}

.crab-game__mission span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 15px;
  font-family: var(--font-title);
  font-weight: 700;
}

.crab-game__mission span + span {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.crab-game__mission strong {
  color: #ffe38c;
}

.crab-game__play {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 278px;
  gap: 22px;
  align-items: stretch;
}

.crab-game__sea {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  isolation: isolate;
  border: 6px solid var(--white);
  border-radius: 30px;
  background: #147c9e url("../images/generated/games/krabbejakten-dam-v01-sm.jpg") center / cover no-repeat;
  box-shadow: 0 18px 36px rgba(18, 59, 83, 0.24);
}

.crab-game__sea::before,
.crab-game__sea::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.crab-game__sea::before {
  inset: 0;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.76) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 35%, rgba(255, 255, 255, 0.62) 0 5px, transparent 6px),
    radial-gradient(circle at 56% 74%, rgba(255, 255, 255, 0.48) 0 4px, transparent 5px),
    linear-gradient(180deg, rgba(13, 89, 125, 0.1), rgba(4, 73, 105, 0.34));
  background-size: 120px 110px, 170px 140px, 150px 130px, auto;
}

.crab-game__sea::after {
  inset: auto -8% -20px;
  height: 76px;
  border-radius: 52% 48% 0 0;
  background: linear-gradient(180deg, rgba(212, 248, 244, 0.06), rgba(18, 112, 143, 0.18));
  box-shadow: 0 -12px 22px rgba(255, 255, 255, 0.08);
  mix-blend-mode: soft-light;
}

.crab-game__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.28) contrast(1.06) brightness(0.9);
}

.crab-game__sunbeam {
  position: absolute;
  z-index: 2;
  top: -130px;
  left: 30%;
  width: 180px;
  height: 700px;
  opacity: 0.5;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 245, 175, 0.56), transparent);
  pointer-events: none;
}

.tide-creature {
  position: absolute;
  z-index: 4;
  top: var(--creature-top);
  left: var(--creature-left);
  display: grid;
  width: clamp(64px, 7vw, 82px);
  height: clamp(64px, 7vw, 82px);
  padding: 5px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 0 rgba(18, 59, 83, 0.22), 0 10px 22px rgba(18, 59, 83, 0.3);
  transform: translate(-50%, -50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tide-creature::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 3px solid rgba(246, 196, 83, 0);
  border-radius: inherit;
  transition: border-color 160ms ease, transform 160ms ease;
}

.tide-creature:hover::after,
.tide-creature:focus-visible::after {
  border-color: var(--sun);
  transform: scale(1.06);
}

.tide-creature:focus-visible {
  outline: 4px solid var(--white);
  outline-offset: 5px;
}

.tide-creature__sprite {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 2px rgba(18, 59, 83, 0.24));
  animation: tide-drift 1.5s ease-in-out var(--creature-delay) infinite alternate;
}

.tide-creature__sprite svg,
.crab-game__catch svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tide-creature:hover .tide-creature__sprite {
  animation-duration: 0.6s;
}

.tide-creature.is-caught {
  pointer-events: none;
  animation: tide-caught 420ms ease forwards;
}

.tide-creature:disabled:not(.is-caught) {
  opacity: 0.46;
  cursor: default;
}

.crab-game__sea.is-complete {
  box-shadow: 0 0 0 6px var(--sun), 0 18px 40px rgba(18, 59, 83, 0.28);
}

.crab-game__bucket {
  display: flex;
  min-height: 500px;
  padding: 22px 18px 18px;
  align-items: center;
  flex-direction: column;
  border: 5px solid var(--white);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(180deg, #fff9dc 0%, #ffe9a6 100%);
  box-shadow: 0 18px 36px rgba(18, 59, 83, 0.18);
}

.crab-game__bucket-label {
  position: relative;
  z-index: 3;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
}

.crab-game__pail {
  position: relative;
  width: 220px;
  height: 235px;
  margin: 42px auto 28px;
  padding: 48px 24px 40px;
  clip-path: polygon(5% 10%, 95% 10%, 82% 100%, 18% 100%);
  background: linear-gradient(135deg, #ffdd57 0%, #f5a83c 58%, #e77938 100%);
  box-shadow: inset 18px 0 22px rgba(255, 255, 255, 0.22), inset -18px 0 22px rgba(136, 54, 45, 0.12);
}

.crab-game__pail::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 22px;
  border: 5px solid #b85b3e;
  border-radius: 50%;
  background: #fff0a4;
}

.crab-game__handle {
  position: absolute;
  z-index: -1;
  top: -62px;
  left: 32px;
  width: 156px;
  height: 150px;
  border: 10px solid #196c89;
  border-bottom: 0;
  border-radius: 90px 90px 0 0;
}

.crab-game__collection {
  position: relative;
  z-index: 3;
  display: flex;
  height: 118px;
  align-content: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.crab-game__catch {
  display: block;
  width: 48px;
  height: 48px;
  animation: bucket-drop 360ms cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
  filter: drop-shadow(0 3px 2px rgba(18, 59, 83, 0.24));
}

.crab-game__pail > strong {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  left: 0;
  width: 100%;
  color: #81384b;
  font-family: var(--font-title);
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  text-align: center;
}

.crab-game__bucket p {
  min-height: 84px;
  margin: auto 0 0;
  color: var(--fjord-deep);
  font-weight: 700;
  text-align: center;
}

.crab-game__footer {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}

.crab-game__footer p {
  max-width: 740px;
  margin: 0;
  font-weight: 700;
}

.crab-game__finish {
  margin-top: 28px;
}

.crab-game__finish-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  margin-top: 20px;
}

.crab-game__finish-bucket {
  display: grid;
  padding: 18px;
  place-items: center;
  border: 3px solid rgba(18, 61, 84, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.36);
}

.crab-game__pail--finish {
  width: min(292px, 92%);
  height: 278px;
  margin: 34px auto 6px;
  padding: 48px 22px 28px;
}

.crab-game__pail--finish .crab-game__collection {
  top: 13%;
  width: 76%;
  height: 57%;
  padding: 8px;
  align-content: center;
  overflow: hidden;
  border: 3px solid rgba(18, 61, 84, 0.2);
  border-radius: 28px;
  background: rgba(255, 249, 218, 0.88);
  box-shadow: inset 0 0 14px rgba(246, 196, 83, 0.3);
}

.crab-game__pail--finish .crab-game__catch {
  width: 38px;
  height: 38px;
}

.crab-game__finish-copy {
  display: grid;
  gap: 14px;
}

.crab-game__finish-copy .game-finish-card__fact {
  margin: 0;
  padding: 16px 18px;
  border-left: 5px solid var(--sun);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.7);
  font-size: 1.08rem;
  line-height: 1.55;
}

.crab-game__finish-copy .game-finish-card__actions {
  margin-top: 0;
}

.crab-game__finish-copy .button {
  white-space: normal;
  text-align: center;
}

@media (max-width: 820px) {
  .crab-game__finish-body {
    grid-template-columns: 1fr;
  }
}

@keyframes tide-drift {
  from { transform: translate3d(calc(var(--creature-drift) * -0.45), -3px, 0) rotate(-4deg); }
  to { transform: translate3d(var(--creature-drift), 4px, 0) rotate(5deg); }
}

@keyframes tide-caught {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  60% { opacity: 1; transform: translate(-50%, -72%) scale(1.18) rotate(10deg); }
  100% { opacity: 0; transform: translate(-50%, -30%) scale(0.2) rotate(24deg); }
}

@keyframes bucket-drop {
  from { opacity: 0; transform: translateY(-42px) scale(1.3) rotate(-12deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

[data-calm="true"] .tide-creature__sprite,
[data-calm="true"] .tide-creature.is-caught,
[data-calm="true"] .crab-game__catch {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .tide-creature__sprite,
  .tide-creature.is-caught,
  .crab-game__catch {
    animation: none !important;
  }
}

@media (max-width: 820px) {
  .crab-game__head {
    grid-template-columns: 1fr;
  }

  .crab-game__mission {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crab-game__mission span + span {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }

  .crab-game__play {
    grid-template-columns: 1fr;
  }

  .crab-game__sea {
    min-height: 470px;
  }

  .crab-game__bucket {
    min-height: 0;
  }

  .crab-game__bucket p {
    min-height: 58px;
  }
}

@media (max-width: 520px) {
  .crab-game {
    padding: 18px 13px;
    border-radius: 28px;
  }

  .crab-game__mission {
    grid-template-columns: 1fr;
  }

  .crab-game__mission span + span {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 0;
  }

  .crab-game__sea {
    min-height: 440px;
    border-width: 4px;
    border-radius: 24px;
  }

  .tide-creature {
    width: 58px;
    height: 58px;
    padding: 3px;
  }

  .crab-game__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .crab-game__footer .button {
    width: 100%;
  }
}

/* Maram picture lotto */
.memory-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(246, 196, 83, 0.34) 0 150px, transparent 152px),
    radial-gradient(circle at 92% 82%, rgba(229, 111, 93, 0.24) 0 190px, transparent 192px),
    linear-gradient(145deg, #0e5878 0%, var(--fjord-deep) 54%, #402b50 100%);
}

.memory-section::before,
.memory-section::after {
  content: "";
  position: absolute;
  border: 24px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.memory-section::before {
  top: -110px;
  right: 12%;
  width: 270px;
  height: 190px;
}

.memory-section::after {
  bottom: -140px;
  left: 18%;
  width: 340px;
  height: 250px;
}

.memory-section--school {
  scroll-margin-top: 118px;
  margin-top: clamp(34px, 6vw, 64px);
  padding: clamp(26px, 5vw, 56px) 0;
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(8, 73, 104, 0.9), rgba(18, 59, 83, 0.94) 56%, rgba(64, 43, 80, 0.9)),
    url("../images/generated/places/skoleveien-rita-sunniva-sm.jpg") center 38% / cover;
  box-shadow: 0 20px 46px rgba(18, 59, 83, 0.23);
}

.memory-section--school > .container {
  width: min(calc(100% - 30px), 1120px);
}

.memory-game {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 4vw, 44px);
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 38px;
  background:
    radial-gradient(circle at 93% 8%, rgba(246, 196, 83, 0.72) 0 82px, transparent 84px),
    linear-gradient(145deg, #e8f8f5, #fff5d8 78%);
  box-shadow: 0 24px 65px rgba(6, 34, 51, 0.34);
}

.memory-game__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.memory-game__head h2 {
  margin: 10px 0 6px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.memory-game__head p {
  max-width: 760px;
  margin: 0;
}

.memory-game__score {
  display: grid;
  min-width: 188px;
  overflow: hidden;
  border: 3px solid var(--white);
  border-radius: 22px;
  background: var(--fjord-deep);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(18, 59, 83, 0.23);
  text-align: center;
}

.memory-game__score strong,
.memory-game__score span {
  padding: 10px 15px;
  font-family: var(--font-title);
}

.memory-game__score strong {
  color: #ffe17a;
  font-size: 1.15rem;
}

.memory-game__score span {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.memory-game__toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 12px;
  border: 3px solid rgba(17, 106, 141, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 20px rgba(18, 59, 83, 0.1);
}

.memory-game__sizes {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.memory-game__sizes > span {
  padding: 0 5px;
  font-family: var(--font-title);
  font-weight: 800;
}

.memory-game__sizes button {
  min-height: var(--tap);
  padding: 8px 15px;
  border: 2px solid rgba(17, 106, 141, 0.24);
  border-radius: 999px;
  background: var(--white);
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-weight: 800;
  cursor: pointer;
}

.memory-game__sizes button[aria-pressed="true"] {
  border-color: var(--fjord);
  background: var(--fjord);
  color: var(--white);
  box-shadow: 0 6px 0 rgba(18, 59, 83, 0.18);
}

.memory-game__sizes button:focus-visible,
.memory-card:focus-visible {
  outline: 4px solid var(--sun);
  outline-offset: 4px;
}

.memory-board {
  display: grid;
  gap: clamp(9px, 1.5vw, 16px);
  padding: clamp(12px, 2vw, 20px);
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.28) 0 4px, transparent 5px),
    radial-gradient(circle at 78% 66%, rgba(255, 255, 255, 0.2) 0 6px, transparent 7px),
    linear-gradient(145deg, #2c91aa, #176887 58%, #15536e);
  background-size: 120px 100px, 170px 150px, auto;
  box-shadow: inset 0 0 40px rgba(18, 59, 83, 0.28), 0 16px 35px rgba(18, 59, 83, 0.18);
  transition: box-shadow 220ms ease;
}

.memory-board[data-memory-count="8"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.memory-board[data-memory-count="12"],
.memory-board[data-memory-count="24"] {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.memory-card {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 19px;
  background: transparent;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  perspective: 900px;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.memory-card__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  pointer-events: none;
  transition: transform 420ms cubic-bezier(0.2, 0.72, 0.24, 1);
}

.memory-card.is-flipped .memory-card__inner,
.memory-card.is-matched .memory-card__inner {
  transform: rotateY(180deg);
}

.memory-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  border: 4px solid var(--white);
  border-radius: 19px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 9px 0 rgba(18, 59, 83, 0.18), 0 14px 22px rgba(18, 59, 83, 0.28);
}

.memory-card__front {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.08) 75%),
    linear-gradient(135deg, var(--plum), #395376 58%, var(--fjord));
  background-size: 26px 26px, auto;
}

.memory-card__front img {
  width: 58%;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(18, 59, 83, 0.32));
}

.memory-card__front span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-top: 8px;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--sun);
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 900;
}

.memory-card__back {
  align-items: stretch;
  flex-direction: column;
  background: var(--white);
  transform: rotateY(180deg);
}

.memory-card__back img {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  object-fit: cover;
  object-position: var(--memory-position, center);
  filter: saturate(1.18) contrast(1.04);
}

.memory-card__back strong {
  display: grid;
  min-height: 46px;
  padding: 6px 8px;
  place-items: center;
  background: var(--white);
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-size: clamp(0.78rem, 1.5vw, 1rem);
  line-height: 1.05;
  text-align: center;
}

.memory-card:hover .memory-card__inner {
  transform: translateY(-5px) rotate(-1deg);
}

.memory-card.is-flipped:hover .memory-card__inner,
.memory-card.is-matched:hover .memory-card__inner {
  transform: translateY(-3px) rotateY(180deg);
}

.memory-card.is-matched .memory-card__face {
  border-color: #ffe06a;
  box-shadow: 0 0 0 5px #65b878, 0 12px 24px rgba(18, 59, 83, 0.28);
}

.memory-card:disabled {
  opacity: 1;
  cursor: default;
}

.memory-game.is-complete .memory-board {
  box-shadow: 0 0 0 7px var(--sun), inset 0 0 40px rgba(18, 59, 83, 0.22), 0 20px 45px rgba(18, 59, 83, 0.3);
}

.memory-game__finish { margin-top: 28px; }
.memory-game__finish .game-finish-card__lead h3 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.35rem); }
.memory-game__daily {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  margin-top: 20px;
  padding: clamp(13px, 2vw, 20px);
  border: 3px solid rgba(18, 61, 84, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 0 rgba(18, 61, 84, 0.12);
}
.memory-game__daily img {
  display: block;
  width: 100%;
  height: clamp(180px, 24vw, 240px);
  object-fit: cover;
  object-position: var(--memory-daily-position, center);
  border: 5px solid var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 22px rgba(18, 61, 84, 0.22);
  filter: saturate(1.15) contrast(1.03);
}
.memory-game__daily h4 { margin: 7px 0 8px; font-size: clamp(1.65rem, 4vw, 2.8rem); }
.memory-game__daily p { margin: 0; color: #365c6d; font-size: 1.02rem; font-weight: 760; line-height: 1.55; }

.memory-game__footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.memory-game__footer p {
  margin: 0;
  font-weight: 800;
}

.memory-game__footer > span {
  color: var(--muted);
  font-weight: 700;
}

[data-calm="true"] .memory-card__inner,
[data-calm="true"] .memory-board {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .memory-card__inner,
  .memory-board {
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .memory-game__head {
    grid-template-columns: 1fr;
  }

  .memory-game__score {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memory-game__score span {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  .memory-board[data-memory-count="12"],
  .memory-board[data-memory-count="24"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .memory-section--school {
    scroll-margin-top: 96px;
    margin-inline: -8px;
    padding-block: 22px;
    border-radius: 28px;
  }

  .memory-section--school > .container {
    width: calc(100% - 16px);
  }

  .memory-game {
    padding: 18px 12px;
    border-width: 3px;
    border-radius: 28px;
  }

  .memory-game__toolbar,
  .memory-game__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .memory-game__daily { grid-template-columns: 1fr; }
  .memory-game__daily img { height: min(68vw, 300px); }

  .memory-game__toolbar .button {
    width: 100%;
  }

  .memory-game__sizes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .memory-game__sizes > span {
    grid-column: 1 / -1;
  }

  .memory-game__sizes button {
    min-width: 0;
    padding-inline: 7px;
  }

  .memory-board {
    gap: 8px;
    padding: 9px;
    border-width: 3px;
    border-radius: 22px;
  }

  .memory-board[data-memory-count="12"],
  .memory-board[data-memory-count="24"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .memory-card,
  .memory-card__face {
    border-radius: 14px;
  }

  .memory-card__face {
    border-width: 3px;
  }

  .memory-card__front span {
    width: 28px;
    height: 28px;
    margin-top: 4px;
    font-size: 1rem;
  }

  .memory-card__back strong {
    min-height: 38px;
    padding: 4px;
    font-size: 0.72rem;
  }
}

/* Fiskelykke på brygga */
.fishing-game {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(28px, 5vw, 58px);
  padding: clamp(20px, 4vw, 42px);
  border: 4px solid #fff;
  border-radius: 38px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 9%, rgba(255, 211, 70, 0.42) 0 8%, transparent 8.5%),
    radial-gradient(circle at 7% 86%, rgba(52, 203, 197, 0.35) 0 11%, transparent 11.5%),
    linear-gradient(135deg, #0d7897 0%, #07526f 48%, #07374f 100%);
  box-shadow: 0 24px 60px rgba(10, 63, 83, 0.28);
}

.fishing-game::before,
.fishing-game::after {
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.fishing-game::before { top: 28%; right: -75px; }
.fishing-game::after { bottom: -85px; left: 28%; width: 210px; height: 210px; }

.fishing-game .eyebrow {
  color: #123d54;
  background: #ffd34e;
}

.fishing-game__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.fishing-game__head h3 {
  max-width: 720px;
  margin: 10px 0 4px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.98;
}

.fishing-game__head p { max-width: 660px; margin: 10px 0 0; font-size: 1.06rem; }

.fishing-game__score {
  display: grid;
  min-width: 220px;
  padding: 15px 18px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 20px;
  color: #143d53;
  text-align: center;
  background: #fff4bf;
  box-shadow: 0 10px 24px rgba(3, 40, 57, 0.18);
}

.fishing-game__score strong { font-size: 1.16rem; }
.fishing-game__score span { font-size: 0.82rem; font-weight: 850; }

.fishing-game__lesson {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(430px, 1.28fr);
  gap: 14px;
  padding: 14px;
  border-radius: 28px;
  color: #123d54;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px rgba(3, 40, 57, 0.16);
}

.fishing-game__clue {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 104px;
  padding: 14px 16px;
  border: 2px solid #ffd34e;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff9dc, #fff2aa);
}

.fishing-game__clue-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 2rem;
  background: #49c8cf;
  box-shadow: inset 0 -6px rgba(8, 78, 103, 0.17);
}

.fishing-game__clue small { display: block; color: #557382; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.fishing-game__clue strong { display: block; margin: 2px 0 3px; font-size: 1.28rem; }
.fishing-game__clue p { margin: 0; font-size: 0.9rem; line-height: 1.35; }

.fishing-game__depths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fishing-game__depths button {
  min-height: 104px;
  padding: 11px 8px;
  border: 3px solid #cbe8ec;
  border-radius: 20px;
  color: #123d54;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  background: #f3fbfc;
  box-shadow: 0 5px 0 #b9dce1;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.fishing-game__depths button span { display: block; margin-bottom: 4px; font-size: 1.7rem; }
.fishing-game__depths button:hover:not(:disabled) { transform: translateY(-3px); border-color: #ffd34e; }
.fishing-game__depths button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #b9dce1; }
.fishing-game__depths button[aria-pressed="true"] { border-color: #f8a63a; background: #fff1b7; box-shadow: 0 5px 0 #e1842b; }
.fishing-game__depths button.is-right { border-color: #2da66b; color: #0d603e; background: #d8f6df; box-shadow: 0 5px 0 #23915b; }
.fishing-game__depths button.is-wrong { border-color: #f06f5e; background: #ffe2dc; animation: fishing-wrong 260ms ease; }

.fishing-game__play {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.65fr);
  gap: 16px;
  margin-top: 16px;
}

.fishing-game__stage {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 4px solid #fff;
  border-radius: 30px;
  background: #0a6a89;
  box-shadow: 0 14px 32px rgba(2, 34, 49, 0.28);
}

.fishing-game__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.28) contrast(1.06) brightness(0.9);
}

.fishing-game__water {
  position: absolute;
  inset: 48% 0 0;
  background:
    repeating-radial-gradient(ellipse at 50% 0%, transparent 0 24px, rgba(255, 255, 255, 0.14) 25px 27px, transparent 28px 48px),
    linear-gradient(rgba(5, 123, 153, 0.14), rgba(1, 67, 100, 0.4));
  mix-blend-mode: screen;
  pointer-events: none;
}

.fishing-game__rod {
  position: absolute;
  right: 5%;
  bottom: 4%;
  width: 10px;
  height: 78%;
  border: 2px solid rgba(74, 35, 19, 0.65);
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(90deg, #6e351d, #df9b45 45%, #542613);
  box-shadow: 2px 3px 4px rgba(0, 0, 0, 0.28);
  transform: rotate(47deg);
  transform-origin: bottom center;
}

.fishing-game__rod::after {
  position: absolute;
  right: -12px;
  bottom: 6%;
  width: 28px;
  height: 28px;
  border: 5px solid #ffd34e;
  border-radius: 50%;
  background: #143d54;
  content: "";
}

.fishing-game__line {
  position: absolute;
  top: 18%;
  right: 37%;
  width: 2px;
  height: 48%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 2px rgba(17, 47, 61, 0.5);
  opacity: 0;
  transform: rotate(-39deg);
  transform-origin: top center;
  transition: opacity 180ms ease;
}

.fishing-bobber {
  position: absolute;
  z-index: 4;
  left: 48%;
  top: 61%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  cursor: pointer;
  transition: opacity 180ms ease, transform 260ms cubic-bezier(.18,.86,.34,1.35);
}

.fishing-bobber span {
  position: relative;
  width: 30px;
  height: 40px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50% 50% 47% 47%;
  background: linear-gradient(#ef5549 0 48%, #fff 49% 100%);
  box-shadow: 0 5px 8px rgba(3, 47, 67, 0.32);
}

.fishing-bobber span::before {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 6px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 5px;
  background: #ef5549;
  content: "";
  transform: translateX(-50%);
}

.fishing-game__stage.is-cast .fishing-game__line,
.fishing-game__stage.is-waiting .fishing-game__line,
.fishing-game__stage.is-biting .fishing-game__line,
.fishing-game__stage.is-caught .fishing-game__line { opacity: 1; }

.fishing-game__stage.is-cast .fishing-bobber,
.fishing-game__stage.is-waiting .fishing-bobber,
.fishing-game__stage.is-biting .fishing-bobber,
.fishing-game__stage.is-caught .fishing-bobber { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.fishing-game__stage.is-waiting .fishing-bobber { animation: fishing-float 1.6s ease-in-out infinite; }
.fishing-game__stage.is-biting .fishing-bobber { background: rgba(255, 211, 78, 0.54); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.2), 0 0 0 22px rgba(255, 211, 78, 0.18); animation: fishing-bite 430ms ease-in-out infinite; }
.fishing-game__stage.is-biting .fishing-bobber:focus-visible { outline: 5px solid #ffd34e; outline-offset: 5px; }

.fishing-game__fish {
  position: absolute;
  z-index: 3;
  left: 33%;
  top: 70%;
  width: 142px;
  max-width: 28%;
  opacity: 0;
  filter: drop-shadow(0 8px 7px rgba(0, 34, 50, 0.32));
  transform: translate(-50%, 60px) rotate(-8deg) scale(0.6);
  transition: opacity 220ms ease, transform 500ms cubic-bezier(.2,.9,.25,1.35);
}

.fishing-game__fish svg { display: block; width: 100%; height: auto; }
.fishing-game__stage[data-depth="surface"] .fishing-game__fish { top: 57%; }
.fishing-game__stage[data-depth="middle"] .fishing-game__fish { top: 70%; }
.fishing-game__stage[data-depth="bottom"] .fishing-game__fish { top: 82%; }
.fishing-game__stage.is-caught .fishing-game__fish { opacity: 1; transform: translate(-50%, -56px) rotate(8deg) scale(1); }

.fishing-game__callout {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 18px;
  max-width: calc(100% - 36px);
  padding: 10px 15px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: #123d54;
  font-size: 0.86rem;
  font-weight: 900;
  background: rgba(255, 248, 213, 0.94);
  box-shadow: 0 7px 18px rgba(1, 39, 57, 0.18);
}

.fishing-game__stage.is-biting .fishing-game__callout { color: #fff; background: #e94e43; animation: fishing-pulse 700ms ease-in-out infinite; }
.fishing-game__stage.is-caught .fishing-game__callout { color: #123d54; background: #ffd34e; }

.fishing-game__panel {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 22px;
  border: 3px solid #fff;
  border-radius: 30px;
  color: #123d54;
  background: linear-gradient(180deg, #fff9d7, #e7fbfa);
  box-shadow: 0 14px 32px rgba(2, 34, 49, 0.23);
}

.fishing-game__action { width: 100%; min-height: 58px; font-size: 1rem; }
.fishing-game__action:disabled { opacity: 0.58; cursor: not-allowed; }

.fishing-game__feedback {
  min-height: 95px;
  margin: 0;
  padding: 14px;
  border-left: 5px solid #f3a534;
  border-radius: 8px 16px 16px 8px;
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.45;
  background: #fff;
}

.fishing-game__catch-wrap { margin-top: auto; }
.fishing-game__catch-wrap > strong { display: block; margin-bottom: 8px; font-size: 0.8rem; }

.fishing-game__catch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.fishing-game__catch > span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border: 2px dashed #83bdc5;
  border-radius: 16px;
  color: #77949e;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.72);
}

.fishing-game__catch > span.is-filled {
  overflow: hidden;
  border-style: solid;
  border-color: #ffd34e;
  background: #fff;
  animation: fishing-catch-in 440ms cubic-bezier(.2,.9,.3,1.35);
}

.fishing-game__catch svg { width: 86%; height: auto; filter: drop-shadow(0 3px 2px rgba(0, 57, 74, 0.18)); }

.fishing-game__controls { display: flex; flex-wrap: wrap; gap: 8px; }
.fishing-game__controls button {
  flex: 1 1 110px;
  min-height: 42px;
  padding: 8px 10px;
  border: 2px solid #a9d4d8;
  border-radius: 14px;
  color: #123d54;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  background: #fff;
  cursor: pointer;
}

.fishing-game__controls button:hover { border-color: #f3a534; background: #fff6ce; }

.fishing-game__safety {
  margin: 16px 0 0;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 760;
  text-align: center;
  background: rgba(3, 45, 64, 0.46);
}

.fishing-game.is-complete .fishing-game__score { background: #ffd34e; animation: fishing-pulse 900ms ease-in-out 2; }

@keyframes fishing-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); }
  50% { transform: translate(-50%, calc(-50% + 5px)) rotate(3deg); }
}

@keyframes fishing-bite {
  0%, 100% { transform: translate(-50%, -50%) rotate(-8deg); }
  50% { transform: translate(-50%, calc(-50% + 18px)) rotate(8deg) scale(0.92); }
}

@keyframes fishing-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes fishing-wrong {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-5px); }
  70% { transform: translateX(5px); }
}

@keyframes fishing-catch-in {
  from { opacity: 0; transform: translateY(14px) rotate(-10deg) scale(0.65); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@media (max-width: 980px) {
  .fishing-game__head,
  .fishing-game__lesson,
  .fishing-game__play { grid-template-columns: 1fr; }

  .fishing-game__score { min-width: 0; }
  .fishing-game__lesson { gap: 10px; }
  .fishing-game__stage { min-height: 400px; }
  .fishing-game__panel { display: grid; grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr); align-items: start; }
  .fishing-game__catch-wrap,
  .fishing-game__controls { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .fishing-game { margin-inline: -6px; padding: 18px 12px; border-width: 3px; border-radius: 28px; }
  .fishing-game__head { gap: 14px; }
  .fishing-game__head h3 { font-size: clamp(2rem, 11vw, 2.75rem); }
  .fishing-game__depths { grid-template-columns: 1fr; }
  .fishing-game__depths button { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; min-height: 62px; padding: 8px 14px; text-align: left; }
  .fishing-game__depths button span { margin: 0; font-size: 1.55rem; text-align: center; }
  .fishing-game__stage { min-height: 350px; border-width: 3px; border-radius: 24px; }
  .fishing-game__backdrop { object-position: 60% center; }
  .fishing-game__rod { right: -1%; height: 70%; }
  .fishing-game__line { right: 34%; }
  .fishing-bobber { left: 43%; width: 76px; height: 76px; }
  .fishing-game__fish { left: 27%; width: 112px; }
  .fishing-game__panel { display: flex; padding: 16px; border-radius: 24px; }
  .fishing-game__feedback { min-height: 0; }
  .fishing-game__catch-wrap,
  .fishing-game__controls { width: 100%; }
}

html[data-calm="true"] .fishing-game *,
html[data-calm="true"] .fishing-game *::before,
html[data-calm="true"] .fishing-game *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

@media (prefers-reduced-motion: reduce) {
  .fishing-game *,
  .fishing-game *::before,
  .fishing-game *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Bryggefiskeren v2: illustrert, spillbar havn */
.fishing-game--v2 {
  padding: clamp(18px, 3.4vw, 38px);
  border: 5px solid #ffda4f;
  color: #123d54;
  background:
    radial-gradient(circle at 94% 6%, #ffec88 0 7%, transparent 7.5%),
    linear-gradient(145deg, #fff6bc 0%, #ffc85a 38%, #ff8b62 100%);
  box-shadow: 0 25px 0 #0d6481, 0 36px 65px rgba(4, 59, 79, 0.25);
}

.fishing-game--v2::before,
.fishing-game--v2::after { display: none; }

.fishing-game--v2 .fishing-game__head { margin-bottom: 15px; }
.fishing-game--v2 .fishing-game__head h3 { color: #123d54; text-shadow: 0 3px 0 rgba(255, 255, 255, 0.55); }
.fishing-game--v2 .fishing-game__head p { color: #234e5f; font-weight: 760; }
.fishing-game--v2 .fishing-game__score { border-color: #123d54; background: #fff; box-shadow: 6px 6px 0 #123d54; }

.fishing-game__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.fishing-game__steps span {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 10px;
  border: 2px solid rgba(18, 61, 84, 0.2);
  border-radius: 999px;
  color: #4d6e7a;
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.64);
}

.fishing-game__steps b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: #87abb4;
}

.fishing-game__steps span.is-active { color: #123d54; border-color: #123d54; background: #fff; box-shadow: 0 4px 0 #123d54; }
.fishing-game__steps span.is-active b { color: #123d54; background: #ffda4f; }
.fishing-game__steps span.is-done { color: #fff; border-color: #128265; background: #159772; }
.fishing-game__steps span.is-done b { color: #14644f; background: #c4f8c9; }

.fishing-game--v2 .fishing-game__lesson {
  grid-template-columns: minmax(245px, 0.68fr) minmax(450px, 1.32fr);
  margin-bottom: 12px;
  border: 3px solid #123d54;
  background: #fff;
  box-shadow: 6px 7px 0 #123d54;
}

.fishing-game--v2 .fishing-game__clue { min-height: 96px; border: 0; background: #fff2ad; }
.fishing-game--v2 .fishing-game__clue-icon { color: #fff; background: #f15f52; box-shadow: inset 0 -7px rgba(133, 30, 40, 0.18); }

.fishing-game--v2 .fishing-game__depths button {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  border-color: #123d54;
  color: #123d54;
  box-shadow: 0 5px 0 #123d54;
}

.fishing-game--v2 .fishing-game__depths button:nth-child(1) { background: linear-gradient(#fff8bc, #ffe167); }
.fishing-game--v2 .fishing-game__depths button:nth-child(2) { background: linear-gradient(#c8f8f4, #72d8e3); }
.fishing-game--v2 .fishing-game__depths button:nth-child(3) { background: linear-gradient(#b7d1e6, #6c9bc2); }
.fishing-game--v2 .fishing-game__depths button:hover:not(:disabled) { border-color: #f15f52; box-shadow: 0 5px 0 #f15f52; }
.fishing-game--v2 .fishing-game__depths button.is-right { color: #0b4d39; border-color: #0e7857; background: #bdf2c2; box-shadow: 0 5px 0 #0e7857; }

.fishing-game--v2 .fishing-game__play { display: block; margin-top: 0; }

.fishing-game--v2 .fishing-game__stage {
  min-height: 0;
  aspect-ratio: 1200 / 680;
  border: 5px solid #123d54;
  border-radius: 30px;
  background: #087da7;
  box-shadow: 8px 9px 0 #123d54;
  /* Keep all fishing action inside the open-water area of the locked scene. */
  --hook-top: 49%;
  --line-height: 37%;
  --fish-top: 43%;
}

.fishing-game--v2 .fishing-game__stage[data-depth="middle"] { --hook-top: 56%; --line-height: 44%; --fish-top: 49%; }
.fishing-game--v2 .fishing-game__stage[data-depth="bottom"] { --hook-top: 63%; --line-height: 51%; --fish-top: 55%; }

.fishing-game__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.fishing-scene__mobile-only { display: none; }
.fishing-game--v2 .fishing-game__water { display: none; }

.fishing-game--v2 .fishing-game__rod {
  z-index: 5;
  top: 5%;
  right: 8%;
  bottom: auto;
  width: 9px;
  height: 43%;
  transform: rotate(58deg);
  transform-origin: top center;
}

.fishing-game--v2 .fishing-game__rod::after { right: -11px; bottom: -4px; }

.fishing-game--v2 .fishing-game__line {
  z-index: 4;
  top: 12%;
  right: 21.5%;
  width: 3px;
  height: var(--line-height);
  background: #fffdf0;
  opacity: 0;
  transform: none;
  transition: height 620ms cubic-bezier(.2,.7,.3,1), opacity 180ms ease;
}

.fishing-game__hook {
  position: absolute;
  z-index: 5;
  top: var(--hook-top);
  right: calc(21.5% - 8px);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 900;
  opacity: 0;
  text-shadow: 0 2px 2px rgba(1, 50, 74, 0.5);
  transform: rotate(12deg) translateY(-15px);
  transition: top 620ms cubic-bezier(.2,.7,.3,1), opacity 180ms ease, transform 300ms ease;
}

.fishing-game--v2 .fishing-game__stage.is-cast .fishing-game__hook,
.fishing-game--v2 .fishing-game__stage.is-waiting .fishing-game__hook,
.fishing-game--v2 .fishing-game__stage.is-biting .fishing-game__hook,
.fishing-game--v2 .fishing-game__stage.is-reeling .fishing-game__hook,
.fishing-game--v2 .fishing-game__stage.is-caught .fishing-game__hook { opacity: 1; transform: rotate(12deg) translateY(0); }

.fishing-game--v2 .fishing-bobber {
  z-index: 7;
  top: 42%;
  right: calc(21.5% - 34px);
  left: auto;
  width: 78px;
  height: 78px;
  transform: scale(0.5);
}

.fishing-game--v2 .fishing-game__stage.is-cast .fishing-bobber,
.fishing-game--v2 .fishing-game__stage.is-waiting .fishing-bobber,
.fishing-game--v2 .fishing-game__stage.is-biting .fishing-bobber,
.fishing-game--v2 .fishing-game__stage.is-reeling .fishing-bobber,
.fishing-game--v2 .fishing-game__stage.is-caught .fishing-bobber { transform: scale(1); }

.fishing-game--v2 .fishing-game__stage.is-waiting .fishing-bobber { animation: fishing-v2-float 1.4s ease-in-out infinite; }
.fishing-game--v2 .fishing-game__stage.is-biting .fishing-bobber { animation: fishing-v2-bite 320ms ease-in-out infinite; }

.fishing-game--v2 .fishing-game__fish {
  z-index: 6;
  top: var(--fish-top);
  left: 35%;
  width: clamp(105px, 18%, 205px);
  max-width: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: left 750ms cubic-bezier(.2,.7,.3,1), top 650ms ease, opacity 220ms ease, transform 420ms ease;
}

/* Override the older depth selectors above so every v2 fish stays in the
   open-water band of the canonical harbour image. */
.fishing-game--v2 .fishing-game__stage[data-depth] .fishing-game__fish { top: var(--fish-top); }

.fishing-game--v2 .fishing-game__stage.is-waiting .fishing-game__fish { opacity: 0.64; animation: fishing-v2-swim 2.8s ease-in-out infinite; }
.fishing-game--v2 .fishing-game__stage.is-biting .fishing-game__fish { left: 48%; opacity: 1; transform: translate(-50%, -50%) scale(0.82) rotate(-4deg); }
.fishing-game--v2 .fishing-game__stage.is-reeling .fishing-game__fish { left: 45%; opacity: 1; transform: translate(-50%, -50%) scale(0.92); }
.fishing-game--v2 .fishing-game__stage.is-reeling.reel-1 .fishing-game__fish { left: 40%; top: calc(var(--fish-top) - 2%); }
.fishing-game--v2 .fishing-game__stage.is-reeling.reel-2 .fishing-game__fish { left: 35%; top: calc(var(--fish-top) - 5%); }
.fishing-game--v2 .fishing-game__stage.is-caught .fishing-game__fish { left: 32%; top: 44%; opacity: 1; transform: translate(-50%, -50%) rotate(13deg) scale(1.12); }

.fishing-game--v2 .fishing-game__callout {
  top: 16px;
  left: 50%;
  padding: 11px 18px;
  border: 3px solid #123d54;
  color: #123d54;
  background: #fff;
  box-shadow: 4px 5px 0 #123d54;
  transform: translateX(-50%);
}

.fishing-game--v2 .fishing-game__stage.is-biting .fishing-game__callout { color: #fff; border-color: #fff; background: #ed4f4d; box-shadow: 4px 5px 0 #123d54; }
.fishing-game--v2 .fishing-game__stage.is-caught .fishing-game__callout { color: #123d54; background: #ffda4f; }

.fishing-game--v2 .fishing-game__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 12px 18px;
  margin-top: 17px;
  padding: 18px;
  border: 4px solid #123d54;
  color: #123d54;
  background: #fff;
  box-shadow: 6px 7px 0 #123d54;
}

.fishing-game--v2 .fishing-game__action,
.fishing-game--v2 .fishing-game__feedback,
.fishing-game--v2 .fishing-game__reel { grid-column: 1; }
.fishing-game--v2 .fishing-game__action[hidden],
.fishing-game--v2 .fishing-game__reel[hidden] { display: none; }

.fishing-game--v2 .fishing-game__feedback {
  min-height: 78px;
  border: 0;
  border-radius: 20px;
  color: #123d54;
  background: #e8f9f8;
  box-shadow: inset 5px 0 #19a8af;
}

.fishing-game--v2 .fishing-game__catch-wrap { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 12px; border-radius: 20px; background: #fff2ad; }
.fishing-game--v2 .fishing-game__controls { grid-column: 2; align-self: end; }

.fishing-game__reel {
  padding: 14px;
  border: 3px solid #123d54;
  border-radius: 20px;
  background: #e6f9dc;
}

.fishing-game__reel > strong { display: block; margin-bottom: 10px; text-align: center; }
.fishing-game__reel-progress { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.fishing-game__reel-progress i { width: 34px; height: 34px; border: 3px solid #123d54; border-radius: 50%; background: #fff; }
.fishing-game__reel-progress i.is-filled { background: #ffda4f; box-shadow: inset 0 0 0 6px #fff; animation: fishing-catch-in 360ms cubic-bezier(.2,.9,.3,1.35); }

.fishing-game__timing {
  position: relative;
  overflow: hidden;
  height: 20px;
  margin: 0 0 10px;
  border: 3px solid #123d54;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef6660 0 30%, #55c67a 30% 70%, #ef6660 70% 100%);
}

.fishing-game__timing b { position: absolute; inset: 0 auto 0 50%; width: 4px; background: #fff; opacity: 0.8; }
.fishing-game__timing span { position: absolute; top: 50%; left: var(--timing-position, 10%); width: 17px; height: 17px; border: 3px solid #fff; border-radius: 50%; background: #123d54; transform: translate(-50%, -50%); transition: left 650ms ease; }
.fishing-game__reel-button { width: 100%; }
.fishing-game__reel.is-ready { background: #c9f5c5; animation: fishing-reel-glow 750ms ease-in-out infinite; }

/* Keep the timing control visually attached to the harbour scene. This makes
   the reel action reachable without an extra scroll on touch devices. */
.fishing-game--v2 .fishing-game__reel--stage-control {
  margin: clamp(10px, 1.8vw, 15px) 0 0;
  padding: clamp(13px, 2vw, 18px);
  border-color: rgba(18, 61, 84, 0.48);
  background: linear-gradient(135deg, #effcf7, #d9f3ee);
  box-shadow: 0 9px 22px rgba(18, 61, 84, 0.13);
}

.fishing-game--v2 .fishing-game__reel--stage-control + .fishing-game__panel {
  margin-top: 12px;
}

.fishing-game--v2 .fishing-game__safety { color: #fff; border: 3px solid #123d54; background: #123d54; }
.fishing-game--v2.is-complete .fishing-game__score { color: #123d54; background: #bdf2c2; }

@keyframes fishing-v2-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(7px) rotate(3deg); } }
@keyframes fishing-v2-bite { 0%,100% { box-shadow: 0 0 0 8px rgba(255,255,255,.22), 0 0 0 18px rgba(255,218,79,.18); } 50% { box-shadow: 0 0 0 15px rgba(255,255,255,.34), 0 0 0 31px rgba(255,218,79,.28); } }
@keyframes fishing-v2-swim { 0%,100% { transform: translate(-50%, -50%) rotate(-3deg); } 50% { transform: translate(-50%, calc(-50% - 8px)) rotate(4deg); } }
@keyframes fishing-reel-glow { 0%,100% { box-shadow: 0 0 0 3px rgba(66, 191, 104, 0.2); } 50% { box-shadow: 0 0 0 9px rgba(66, 191, 104, 0.38); } }

@media (max-width: 980px) {
  .fishing-game--v2 .fishing-game__lesson { grid-template-columns: 1fr; }
  .fishing-game--v2 .fishing-game__panel { grid-template-columns: 1fr; }
  .fishing-game--v2 .fishing-game__action,
  .fishing-game--v2 .fishing-game__feedback,
  .fishing-game--v2 .fishing-game__reel,
  .fishing-game--v2 .fishing-game__catch-wrap,
  .fishing-game--v2 .fishing-game__controls { grid-column: 1; grid-row: auto; }
}

@media (max-width: 650px) {
  .fishing-game--v2 { border-width: 4px; box-shadow: 0 12px 0 #0d6481, 0 22px 38px rgba(4, 59, 79, 0.22); }
  .fishing-game__steps { gap: 4px; }
  .fishing-game__steps span { gap: 3px; min-height: 54px; padding: 6px 4px; border-radius: 16px; font-size: 0.7rem; text-align: center; }
  .fishing-game__steps b { flex: 0 0 auto; width: 22px; height: 22px; }
  .fishing-game--v2 .fishing-game__lesson { box-shadow: 4px 5px 0 #123d54; }
  .fishing-game--v2 .fishing-game__stage { aspect-ratio: 4 / 5; box-shadow: 5px 6px 0 #123d54; }
  .fishing-game__scene { inset: 0; width: 100%; height: 100%; transform: none; }
  .fishing-scene__desktop-only { display: none; }
  .fishing-scene__mobile-only { display: inline; }
  .fishing-game--v2 .fishing-game__rod { right: 1%; height: 36%; }
  .fishing-game--v2 .fishing-game__line { right: 18%; }
  .fishing-game--v2 .fishing-game__hook { right: calc(18% - 8px); }
  .fishing-game--v2 .fishing-bobber { right: calc(18% - 34px); }
  .fishing-game--v2 .fishing-game__fish { width: 118px; }
  .fishing-game--v2 .fishing-game__callout { top: 12px; max-width: calc(100% - 28px); white-space: nowrap; }
  .fishing-game--v2 .fishing-game__panel { padding: 12px; box-shadow: 4px 5px 0 #123d54; }
  .fishing-game--v2 .fishing-game__reel--stage-control { padding: 12px; border-radius: 18px; }
  .fishing-game--v2 .fishing-game__reel--stage-control .fishing-game__timing { height: 24px; }
  .fishing-game--v2 .fishing-game__reel--stage-control .fishing-game__reel-button { min-height: 62px; }
}

/* Maram game art direction v3: canonical scenery, tactile materials and quieter UI */
.fishing-game--v2,
.shore-game,
.crab-game,
.memory-game {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 55px rgba(10, 54, 73, 0.2);
}

.fishing-game--v2 {
  border-width: 3px;
  background:
    radial-gradient(circle at 92% 6%, rgba(246, 196, 83, 0.42) 0 82px, transparent 84px),
    linear-gradient(145deg, #eef8f4 0%, #d9eef0 54%, #f8e8ba 100%);
  box-shadow: 0 8px 0 #0d6481, 0 28px 58px rgba(4, 59, 79, 0.22);
}

.fishing-game--v2 .fishing-game__score,
.fishing-game--v2 .fishing-game__lesson,
.fishing-game--v2 .fishing-game__panel {
  border-color: rgba(18, 61, 84, 0.32);
  box-shadow: 0 12px 28px rgba(18, 61, 84, 0.14);
}

.fishing-game--v2 .fishing-game__lesson {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
}

.fishing-game--v2 .fishing-game__clue {
  background: linear-gradient(135deg, #fff7d5, #f6e7ae);
}

.fishing-game--v2 .fishing-game__depths button {
  border-width: 2px;
  border-color: rgba(18, 61, 84, 0.28);
  box-shadow: 0 5px 12px rgba(18, 61, 84, 0.13), inset 0 1px rgba(255, 255, 255, 0.88);
}

.fishing-game--v2 .fishing-game__depths button:nth-child(1) { background: linear-gradient(180deg, #fffced, #f6d971); }
.fishing-game--v2 .fishing-game__depths button:nth-child(2) { background: linear-gradient(180deg, #ecfbf8, #8bd8d8); }
.fishing-game--v2 .fishing-game__depths button:nth-child(3) { background: linear-gradient(180deg, #d8e7ea, #5f91a7); }

.fishing-game--v2 .fishing-game__stage {
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 2px rgba(18, 61, 84, 0.34), 0 19px 38px rgba(10, 54, 73, 0.25);
  isolation: isolate;
}

.fishing-game--v2 .fishing-game__stage::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 0 47%, rgba(2, 77, 104, 0.04) 58%, rgba(2, 54, 82, 0.25) 100%),
    radial-gradient(ellipse at 58% 54%, rgba(255, 255, 255, 0.15), transparent 42%);
  box-shadow: inset 0 0 42px rgba(7, 49, 67, 0.16);
  content: "";
  pointer-events: none;
}

.fishing-game__scene--legacy { display: none; }

.fishing-game__scene--maram {
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.02) brightness(1.01);
}

.fishing-game--v2 .fishing-game__rod {
  border-color: rgba(63, 37, 23, 0.7);
  background: linear-gradient(90deg, #4d2b1c, #c8823e 43%, #3b2118);
  box-shadow: 2px 4px 7px rgba(0, 0, 0, 0.34);
}

.fishing-game--v2 .fishing-game__callout {
  border-color: rgba(18, 61, 84, 0.54);
  background: rgba(255, 253, 244, 0.93);
  box-shadow: 0 8px 20px rgba(18, 61, 84, 0.2);
  backdrop-filter: blur(7px);
}

.fishing-game--v2 .fishing-game__panel {
  background: rgba(255, 253, 246, 0.94);
}

.shore-game {
  background:
    radial-gradient(circle at 92% 6%, rgba(246, 196, 83, 0.3) 0 74px, transparent 76px),
    linear-gradient(145deg, #f4f6ec 0%, #d9eeeb 58%, #c4e3e6 100%);
}

.shore-game__stage {
  border-width: 4px;
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 2px rgba(18, 59, 83, 0.2), 0 20px 42px rgba(18, 59, 83, 0.22);
}

.shore-game__stage::before {
  background:
    radial-gradient(circle at 15% 24%, rgba(255, 255, 255, 0.52) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 32%, rgba(255, 255, 255, 0.38) 0 3px, transparent 4px),
    radial-gradient(circle at 52% 73%, rgba(255, 255, 255, 0.32) 0 3px, transparent 4px);
  background-size: 160px 135px, 210px 175px, 190px 155px;
}

.shore-game__stage::after {
  background: linear-gradient(180deg, rgba(6, 78, 102, 0.02), rgba(5, 58, 78, 0.12));
}

.shore-game__backdrop {
  object-position: center;
  filter: saturate(1.04) contrast(1.02) brightness(1.01);
}

.shore-stone {
  width: 108px;
  height: 92px;
}

.shore-stone::before,
.shore-stone--2::before,
.shore-stone--3::before,
.shore-stone--6::before,
.shore-stone--7::before {
  inset: 6px 2px 10px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(33, 44, 40, 0.2)),
    url("../images/generated/games/fjaerastein-tekstur-v01.jpg") center 48% / 150% auto no-repeat;
  box-shadow: inset 9px 10px 16px rgba(255, 255, 255, 0.18), inset -9px -12px 16px rgba(27, 40, 39, 0.2), 0 8px 0 rgba(19, 63, 70, 0.15), 0 14px 22px rgba(15, 49, 61, 0.27);
}

.shore-stone--2::before,
.shore-stone--5::before { filter: hue-rotate(-7deg) brightness(1.08); }
.shore-stone--3::before,
.shore-stone--7::before { filter: hue-rotate(13deg) brightness(0.92); }
.shore-stone--4::before { filter: saturate(0.72) brightness(1.14); }

.shore-stone--2,
.shore-stone--6 { width: 98px; height: 88px; }
.shore-stone--3 { width: 116px; height: 84px; }
.shore-stone--5 { width: 101px; height: 96px; }
.shore-stone--7 { width: 92px; height: 82px; }
.shore-stone--2::before,
.shore-stone--6::before { border-radius: 48% 52% 57% 43% / 58% 47% 53% 42%; }
.shore-stone--3::before,
.shore-stone--7::before { border-radius: 61% 39% 46% 54% / 44% 59% 41% 56%; }

.shore-stone__discovery {
  border-width: 2px;
  background: rgba(255, 251, 232, 0.94);
  box-shadow: 0 0 0 5px rgba(246, 196, 83, 0.35), 0 9px 22px rgba(18, 59, 83, 0.25);
  backdrop-filter: blur(6px);
}

.crab-game {
  background:
    radial-gradient(circle at 92% 4%, rgba(246, 196, 83, 0.38) 0 80px, transparent 82px),
    linear-gradient(145deg, #eef7ee, #d2ecea 58%, #bddfe4);
}

.crab-game__sea {
  border-width: 4px;
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 2px rgba(18, 59, 83, 0.2), 0 20px 42px rgba(18, 59, 83, 0.23);
}

.crab-game__sea::before {
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.44) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 35%, rgba(255, 255, 255, 0.34) 0 3px, transparent 4px),
    linear-gradient(180deg, rgba(7, 92, 112, 0.02), rgba(3, 61, 84, 0.12));
  background-size: 150px 130px, 190px 160px, auto;
}

.crab-game__sea::after {
  inset: 0;
  height: auto;
  border-radius: 0;
  background: radial-gradient(ellipse at 52% 38%, rgba(255, 244, 177, 0.16), transparent 48%);
  box-shadow: inset 0 0 38px rgba(5, 59, 76, 0.16);
}

.crab-game__backdrop {
  filter: saturate(1.2) contrast(1.06) brightness(1.02);
}

.crab-game__sunbeam {
  opacity: 0.25;
}

.tide-creature {
  width: clamp(70px, 7.5vw, 90px);
  height: clamp(70px, 7.5vw, 90px);
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.78), rgba(236, 250, 242, 0.52));
  box-shadow: 0 9px 20px rgba(12, 67, 80, 0.24), inset 0 0 18px rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(3px);
}

.tide-creature__sprite {
  filter: drop-shadow(0 6px 4px rgba(18, 59, 83, 0.28)) saturate(1.08);
}

.crab-game__bucket {
  border-width: 3px;
  border-color: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.82), transparent 42%),
    linear-gradient(180deg, #f8f2dc, #e9dfc2);
  box-shadow: 0 16px 34px rgba(18, 59, 83, 0.15);
}

.crab-game__pail {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.42), transparent 24% 68%, rgba(20, 63, 76, 0.18)),
    linear-gradient(180deg, #d7e2df 0%, #aebfbd 55%, #7d999d 100%);
  box-shadow: inset 18px 0 22px rgba(255, 255, 255, 0.28), inset -18px 0 22px rgba(20, 61, 75, 0.16), 0 13px 22px rgba(18, 59, 83, 0.2);
}

.crab-game__pail::before {
  border-color: #617e84;
  background: linear-gradient(180deg, #f4f7ef, #b8cbc8);
}

.crab-game__handle {
  border-color: #466e78;
}

.crab-game__pail > strong {
  color: #315d69;
}

/* Running crab mastery game */
.crab-game__mission {
  min-width: 250px;
}

.crab-game__stage-top {
  position: absolute;
  z-index: 9;
  top: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.crab-game__stage-top strong,
.crab-game__stage-top span {
  padding: 8px 13px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: var(--white);
  background: rgba(12, 59, 82, 0.8);
  box-shadow: 0 6px 16px rgba(6, 34, 51, 0.22);
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.crab-game__stage-top strong {
  color: #fff2a8;
}

.crab-game__stage-top span.is-hard {
  border-color: rgba(255, 255, 255, 0.96);
  color: #173e56;
  background: linear-gradient(145deg, #ffe76f, #f4a94d);
  box-shadow: 0 0 0 5px rgba(255, 222, 91, 0.22), 0 8px 20px rgba(6, 34, 51, 0.3);
}

.crab-game__race-meter {
  position: absolute;
  z-index: 9;
  top: 64px;
  right: 18px;
  left: 18px;
  height: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(12, 59, 82, 0.5);
  box-shadow: 0 4px 12px rgba(6, 34, 51, 0.2);
  pointer-events: none;
}

.crab-game__race-meter span {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.48;
  background:
    radial-gradient(12px 7px at 12px 100%, transparent 60%, rgba(215, 248, 255, 0.92) 63% 75%, transparent 78%) 0 0 / 36px 10px repeat-x,
    linear-gradient(90deg, #62bdd8, #1d7ea5, #56b9d2);
  background-position: 0 0, 0 0;
}

.crab-game__race-meter span.is-running {
  opacity: 1;
  animation: crab-wave-strip 780ms linear infinite;
}

.crab-game__overlay {
  position: absolute;
  z-index: 14;
  top: 50%;
  left: 50%;
  width: min(calc(100% - 44px), 430px);
  padding: 26px;
  border: 4px solid var(--white);
  border-radius: 30px;
  color: var(--fjord-deep);
  background:
    radial-gradient(circle at 92% 8%, rgba(246, 196, 83, 0.66) 0 56px, transparent 58px),
    linear-gradient(145deg, rgba(249, 255, 247, 0.96), rgba(224, 249, 244, 0.94));
  box-shadow: 0 22px 55px rgba(6, 34, 51, 0.38);
  transform: translate(-50%, -50%);
  text-align: center;
  backdrop-filter: blur(12px);
}

.crab-game__overlay[hidden] {
  display: none;
}

.crab-game__overlay-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin: -56px auto 12px;
  place-items: center;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffde66, #f08a4d);
  box-shadow: 0 9px 24px rgba(18, 59, 83, 0.24);
  font-size: 2.1rem;
  animation: crab-overlay-bob 1.8s ease-in-out infinite alternate;
}

.crab-game__overlay strong {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.05;
}

.crab-game__overlay p {
  margin: 12px 0 18px;
  font-weight: 700;
}

.crab-game__overlay .button {
  width: auto;
  min-width: 180px;
}

.crab-runner {
  position: absolute;
  z-index: 8;
  top: var(--runner-y);
  display: block;
  width: clamp(122px, 15vw, 168px);
  height: clamp(94px, 11vw, 126px);
  min-width: 64px;
  min-height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 10px 7px rgba(4, 46, 58, 0.36));
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.crab-runner.is-running[data-direction="right"] {
  left: -170px;
  animation: crab-run-right var(--runner-duration, 8s) linear forwards;
}

.crab-runner.is-running[data-direction="left"] {
  left: calc(100% + 170px);
  animation: crab-run-left var(--runner-duration, 8s) linear forwards;
}

.crab-runner__sprite {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  animation: crab-scuttle 240ms ease-in-out infinite alternate;
}

.crab-runner.is-hard .crab-runner__sprite {
  animation-duration: 130ms;
}

.crab-runner.is-hard .crab-runner__wake {
  animation-duration: 260ms;
}

.crab-runner[data-direction="left"] .crab-runner__sprite {
  transform: scaleX(-1);
}

.crab-runner__sprite img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  pointer-events: none;
  user-select: none;
}

.crab-runner__wake {
  position: absolute;
  z-index: 1;
  top: 56%;
  left: -42px;
  width: 72px;
  height: 32px;
  opacity: 0.72;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.88) 0 4px, transparent 5px),
    radial-gradient(circle at 45% 30%, rgba(173, 244, 237, 0.84) 0 7px, transparent 8px),
    radial-gradient(circle at 82% 65%, rgba(255, 255, 255, 0.72) 0 5px, transparent 6px);
  animation: crab-wake 460ms ease-out infinite;
}

.crab-runner[data-direction="left"] .crab-runner__wake {
  right: -42px;
  left: auto;
  transform: translateY(-50%) scaleX(-1);
}

.crab-runner::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: -8px;
  border: 5px solid transparent;
  border-radius: 50%;
  transform: scale(0.8);
  transition: border-color 140ms ease, transform 140ms ease;
}

.crab-runner:hover::after,
.crab-runner:focus-visible::after {
  border-color: #ffe36f;
  transform: scale(1);
}

.crab-runner:focus-visible {
  outline: 4px solid var(--white);
  outline-offset: 3px;
  animation-play-state: paused;
}

.crab-runner.is-running:hover {
  animation-play-state: paused;
}

.crab-runner.is-caught {
  z-index: 12;
  pointer-events: none;
  animation: crab-runner-caught 480ms cubic-bezier(0.18, 0.78, 0.25, 1) forwards;
}

.tide-creature--bonus {
  z-index: 7;
  width: clamp(66px, 8vw, 86px);
  height: clamp(66px, 8vw, 86px);
  border: 3px solid #ffe375;
  background: rgba(255, 253, 223, 0.9);
  animation: crab-bonus-glow 1.2s ease-in-out infinite alternate;
}

.crab-game__splash {
  position: absolute;
  z-index: 13;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.crab-game__splash i {
  position: absolute;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  color: var(--fjord-deep);
  background: #ffe371;
  box-shadow: 0 5px 12px rgba(18, 59, 83, 0.22);
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  animation: crab-splash 620ms ease-out forwards;
}

.crab-game__splash i:nth-child(2) { --splash-x: -48px; --splash-y: -34px; width: 15px; height: 15px; animation-delay: 40ms; }
.crab-game__splash i:nth-child(3) { --splash-x: 47px; --splash-y: -28px; width: 18px; height: 18px; animation-delay: 80ms; }
.crab-game__splash i:nth-child(4) { --splash-x: -34px; --splash-y: 38px; width: 12px; height: 12px; animation-delay: 120ms; }
.crab-game__splash i:nth-child(5) { --splash-x: 38px; --splash-y: 35px; width: 13px; height: 13px; animation-delay: 150ms; }

.crab-game__catch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.crab-game__catch--crab {
  width: 56px;
  height: 48px;
}

.crab-game__controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@keyframes crab-run-right {
  0% { left: -170px; transform: translate(-50%, -50%) translateY(0) rotate(-3deg); }
  22% { transform: translate(-50%, -50%) translateY(-8px) rotate(2deg); }
  48% { transform: translate(-50%, -50%) translateY(5px) rotate(-1deg); }
  76% { transform: translate(-50%, -50%) translateY(-6px) rotate(3deg); }
  100% { left: calc(100% + 170px); transform: translate(-50%, -50%) translateY(0) rotate(-2deg); }
}

@keyframes crab-run-left {
  0% { left: calc(100% + 170px); transform: translate(-50%, -50%) translateY(0) rotate(3deg); }
  22% { transform: translate(-50%, -50%) translateY(7px) rotate(-2deg); }
  48% { transform: translate(-50%, -50%) translateY(-6px) rotate(2deg); }
  76% { transform: translate(-50%, -50%) translateY(5px) rotate(-3deg); }
  100% { left: -170px; transform: translate(-50%, -50%) translateY(0) rotate(2deg); }
}

@keyframes crab-scuttle {
  from { margin-top: -3px; }
  to { margin-top: 3px; }
}

@keyframes crab-wake {
  from { opacity: 0.15; transform: translateY(-50%) scale(0.65); }
  to { opacity: 0.82; transform: translateY(-50%) scale(1.08); }
}

@keyframes crab-runner-caught {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  58% { opacity: 1; transform: translate(-50%, -78%) scale(1.14) rotate(9deg); }
  100% { opacity: 0; transform: translate(-50%, 28%) scale(0.18) rotate(24deg); }
}

@keyframes crab-race-meter {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes crab-wave-strip {
  from { background-position: 0 0, 0 0; }
  to { background-position: 36px 0, 72px 0; }
}

@keyframes crab-overlay-bob {
  from { transform: translateY(-3px) rotate(-3deg); }
  to { transform: translateY(4px) rotate(3deg); }
}

@keyframes crab-bonus-glow {
  from { box-shadow: 0 0 0 0 rgba(255, 224, 95, 0.18), 0 8px 20px rgba(12, 67, 80, 0.24); }
  to { box-shadow: 0 0 0 10px rgba(255, 224, 95, 0.25), 0 12px 24px rgba(12, 67, 80, 0.32); }
}

@keyframes crab-splash {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.45); }
  65% { opacity: 1; transform: translate(calc(-50% + var(--splash-x, 0px)), calc(-50% + var(--splash-y, -16px))) scale(1.08); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--splash-x, 0px)), calc(-50% + var(--splash-y, -22px))) scale(0.7); }
}

[data-calm="true"] .crab-runner__sprite,
[data-calm="true"] .crab-runner__wake,
[data-calm="true"] .crab-game__overlay-icon,
[data-calm="true"] .tide-creature--bonus,
[data-calm="true"] .crab-game__splash i {
  animation-iteration-count: 1 !important;
}

[data-calm="true"] .crab-game__race-meter span.is-running {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .crab-runner__sprite,
  .crab-runner__wake,
  .crab-game__overlay-icon,
  .tide-creature--bonus,
  .crab-game__splash i {
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 820px) {
  .crab-game__mission {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .crab-game__mission span + span {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }
}

@media (max-width: 520px) {
  .crab-game__mission {
    grid-template-columns: 1fr;
  }

  .crab-game__mission span + span {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 0;
  }

  .crab-game__stage-top {
    top: 11px;
    right: 10px;
    left: 10px;
  }

  .crab-game__stage-top strong,
  .crab-game__stage-top span {
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .crab-game__race-meter {
    top: 54px;
    right: 11px;
    left: 11px;
  }

  .crab-game__overlay {
    width: calc(100% - 24px);
    padding: 22px 16px 18px;
    border-width: 3px;
    border-radius: 24px;
  }

  .crab-game__overlay-icon {
    width: 58px;
    height: 58px;
    margin-top: -48px;
    font-size: 1.8rem;
  }

  .crab-runner {
    width: 116px;
    height: 92px;
  }

  .crab-game__controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .crab-game__controls .button {
    width: 100%;
  }
}

.memory-game {
  border-width: 3px;
  background:
    linear-gradient(145deg, rgba(238, 248, 244, 0.96), rgba(255, 247, 220, 0.94)),
    url("../images/canonical/oya-maram-sm.jpg") center / cover;
  box-shadow: 0 26px 62px rgba(6, 34, 51, 0.3);
}

.memory-board {
  border-width: 3px;
  background:
    linear-gradient(145deg, rgba(10, 91, 117, 0.86), rgba(12, 59, 82, 0.9)),
    url("../images/generated/games/krabbejakten-dam-v01-sm.jpg") center / cover;
  box-shadow: inset 0 0 44px rgba(4, 37, 53, 0.26), 0 16px 36px rgba(18, 59, 83, 0.19);
}

.memory-card__face {
  border-width: 3px;
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 0 rgba(18, 59, 83, 0.16), 0 13px 21px rgba(18, 59, 83, 0.25);
}

.memory-card__front {
  background:
    linear-gradient(145deg, rgba(57, 43, 80, 0.82), rgba(15, 89, 120, 0.84)),
    url("../images/canonical/oya-maram-sm.jpg") center / cover;
}

.memory-card__back img {
  filter: saturate(1.11) contrast(1.035) brightness(1.03);
}

@media (max-width: 650px) {
  .fishing-game--v2 {
    border-width: 3px;
    box-shadow: 0 6px 0 #0d6481, 0 22px 38px rgba(4, 59, 79, 0.2);
  }

  .fishing-game__scene--maram {
    object-position: 50% center;
  }

  .shore-game__backdrop {
    object-position: 51% center;
  }

  .shore-stone {
    width: 68px;
    height: 60px;
  }

  .shore-stone--1 { top: 44% !important; left: 16% !important; }
  .shore-stone--2 { top: 38% !important; left: 50% !important; }
  .shore-stone--3 { top: 45% !important; left: 83% !important; }
  .shore-stone--4 { top: 72% !important; left: 14% !important; }
  .shore-stone--5 { top: 72% !important; left: 39% !important; }
  .shore-stone--6 { top: 70% !important; left: 65% !important; }
  .shore-stone--7 { top: 73% !important; left: 88% !important; }

  .shore-stone--2,
  .shore-stone--6 { width: 64px; height: 58px; }
  .shore-stone--3 { width: 70px; height: 56px; }
  .shore-stone--5 { width: 66px; height: 62px; }
  .shore-stone--7 { width: 61px; height: 55px; }

  .tide-creature {
    width: 62px;
    height: 62px;
  }
}

/* Puslekroken i stuen */
.jigsaw-game {
  position: relative;
  scroll-margin-top: 112px;
  margin-top: clamp(34px, 6vw, 64px);
  padding: clamp(20px, 4vw, 42px);
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.96);
  border-radius: 38px;
  background:
    radial-gradient(circle at 94% 8%, rgba(246, 196, 83, 0.7) 0 84px, transparent 86px),
    radial-gradient(circle at 4% 96%, rgba(93, 182, 163, 0.3) 0 110px, transparent 112px),
    linear-gradient(145deg, #e3f7f4, #fff4d5 76%);
  box-shadow: 0 26px 64px rgba(18, 59, 83, 0.25);
}

.jigsaw-game::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.38;
  background-image:
    radial-gradient(circle, rgba(17, 106, 141, 0.25) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(246, 196, 83, 0.3) 0 4px, transparent 5px);
  background-position: 18px 20px, 76px 71px;
  background-size: 104px 104px, 138px 138px;
}

.jigsaw-game > * {
  position: relative;
  z-index: 1;
}

.jigsaw-game__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.jigsaw-game__head h3 {
  margin: 9px 0 6px;
  font-size: clamp(2rem, 4.6vw, 3.45rem);
}

.jigsaw-game__head p {
  max-width: 760px;
  margin: 0;
}

.jigsaw-game__score {
  display: grid;
  min-width: 190px;
  overflow: hidden;
  border: 3px solid var(--white);
  border-radius: 22px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(145deg, var(--fjord), var(--fjord-deep));
  box-shadow: 0 10px 24px rgba(18, 59, 83, 0.2);
}

.jigsaw-game__score strong,
.jigsaw-game__score span {
  padding: 9px 15px;
  font-family: var(--font-title);
}

.jigsaw-game__score strong {
  color: #ffe27a;
  font-size: 1.08rem;
}

.jigsaw-game__score span {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 800;
}

.jigsaw-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.jigsaw-gallery__choice {
  min-width: 0;
  padding: 6px;
  overflow: hidden;
  color: var(--fjord-deep);
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 7px 17px rgba(18, 59, 83, 0.13);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.jigsaw-gallery__choice img {
  width: 100%;
  height: clamp(72px, 8vw, 112px);
  object-fit: cover;
  object-position: center 30%;
  border-radius: 11px;
  filter: saturate(1.1) contrast(1.03);
}

.jigsaw-gallery__choice span {
  display: block;
  padding: 7px 3px 3px;
  overflow: hidden;
  font-family: var(--font-title);
  font-size: clamp(0.74rem, 1.15vw, 0.92rem);
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jigsaw-gallery__choice:hover {
  transform: translateY(-3px);
}

.jigsaw-gallery__choice[aria-pressed="true"] {
  border-color: var(--sun);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(246, 196, 83, 0.28), 0 10px 22px rgba(18, 59, 83, 0.18);
}

.jigsaw-game__toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
  padding: 12px;
  border: 3px solid rgba(17, 106, 141, 0.15);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.78);
}

.jigsaw-game__sizes,
.jigsaw-game__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.jigsaw-game__sizes > span {
  margin-right: 3px;
  font-family: var(--font-title);
  font-weight: 900;
}

.jigsaw-game__sizes button {
  min-width: 48px;
  min-height: var(--tap);
  padding: 8px 13px;
  color: var(--fjord-deep);
  cursor: pointer;
  border: 2px solid rgba(17, 106, 141, 0.24);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-title);
  font-weight: 900;
}

.jigsaw-game__sizes button[aria-pressed="true"] {
  color: var(--white);
  border-color: var(--plum);
  background: var(--plum);
  box-shadow: 0 5px 0 rgba(64, 43, 80, 0.22);
}

.jigsaw-game__actions .button {
  min-height: var(--tap);
  margin: 0;
  padding: 9px 14px;
  white-space: nowrap;
}

.jigsaw-game__play {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.jigsaw-game__play[aria-busy="true"] {
  opacity: 0.62;
}

.jigsaw-game__picture-label,
.jigsaw-tray__title {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 8px;
  color: var(--fjord-deep);
  font-family: var(--font-title);
}

.jigsaw-game__picture-label span,
.jigsaw-tray__title span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.jigsaw-board {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 7px solid var(--white);
  border-radius: 28px;
  background: var(--fjord-deep);
  box-shadow: 0 15px 34px rgba(18, 59, 83, 0.28), inset 0 0 32px rgba(4, 31, 46, 0.32);
}

.jigsaw-board__guide,
.jigsaw-board__slots {
  position: absolute;
  inset: 0;
}

.jigsaw-board__guide {
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  filter: saturate(0.82) contrast(0.9);
  transition: opacity 320ms ease, filter 320ms ease;
}

.jigsaw-board__slots {
  display: grid;
  grid-template-columns: repeat(var(--puzzle-columns), minmax(0, 1fr));
  grid-template-rows: repeat(var(--puzzle-rows), minmax(0, 1fr));
}

.jigsaw-slot {
  position: relative;
  min-width: 0;
  min-height: 0;
  cursor: pointer;
  border: 1px dashed rgba(255, 255, 255, 0.72);
  transition: background 140ms ease, box-shadow 140ms ease;
}

.jigsaw-slot::after {
  position: absolute;
  inset: 5px;
  pointer-events: none;
  content: "";
  border: 2px solid transparent;
  border-radius: 8px;
}

.jigsaw-slot.is-helped::after,
.jigsaw-slot.is-dragover::after {
  border-color: #ffe06a;
  background: rgba(255, 224, 106, 0.18);
  box-shadow: 0 0 0 3px rgba(18, 59, 83, 0.32), 0 0 20px rgba(255, 224, 106, 0.76);
}

.jigsaw-slot.is-soft-hint::after {
  border-color: rgba(255, 224, 106, 0.78);
  background: rgba(255, 224, 106, 0.1);
  box-shadow: 0 0 0 2px rgba(255, 224, 106, 0.2);
  animation: jigsaw-soft-hint 1050ms ease-in-out infinite alternate;
}

.jigsaw-slot.is-wrong {
  background: rgba(224, 74, 74, 0.32);
  animation: jigsaw-shake 380ms ease;
}

.jigsaw-slot.is-filled {
  cursor: default;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.34);
}

.jigsaw-tray-wrap {
  min-width: 0;
  padding: 12px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(16, 105, 136, 0.9), rgba(18, 59, 83, 0.94)),
    url("../images/canonical/stuen-sm.jpg") center / cover;
  box-shadow: 0 14px 30px rgba(18, 59, 83, 0.22);
}

.jigsaw-tray-wrap .jigsaw-tray__title {
  padding-inline: 4px;
  color: var(--white);
}

.jigsaw-tray-wrap .jigsaw-tray__title span {
  color: rgba(255, 255, 255, 0.8);
}

.jigsaw-tray {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-height: 180px;
  align-content: start;
}

.jigsaw-tray[data-jigsaw-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jigsaw-piece {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  border: 3px solid rgba(255, 255, 255, 0.98);
  border-radius: 10px 4px 10px 4px;
  background: var(--sky);
  box-shadow: 0 5px 0 rgba(4, 37, 53, 0.26), 0 8px 15px rgba(4, 37, 53, 0.24);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.jigsaw-piece svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: saturate(1.12) contrast(1.035);
}

.jigsaw-piece:hover {
  z-index: 2;
  transform: translateY(-3px) rotate(-1deg) scale(1.03);
}

.jigsaw-piece.is-selected {
  z-index: 3;
  border-color: #ffe06a;
  box-shadow: 0 0 0 4px var(--plum), 0 0 0 8px #ffe06a, 0 11px 22px rgba(4, 37, 53, 0.34);
  transform: translateY(-4px) scale(1.035);
}

.jigsaw-piece.is-grabbed {
  opacity: 0.28;
}

.jigsaw-piece.is-wrong {
  animation: jigsaw-shake 380ms ease;
}

.jigsaw-piece.is-placed {
  height: 100%;
  cursor: default;
  pointer-events: none;
  border-width: 1px;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.jigsaw-piece--floating {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.96;
  transform: translate(-50%, -58%) rotate(2deg) scale(1.08);
  box-shadow: 0 17px 30px rgba(4, 37, 53, 0.42);
}

.jigsaw-game__celebration {
  position: absolute;
  z-index: 12;
  inset: 0;
  pointer-events: none;
  color: var(--fjord-deep);
  text-align: left;
  animation: jigsaw-reveal 460ms ease-out;
}

.jigsaw-game__celebration[hidden] {
  display: none;
}

.jigsaw-game__celebration-copy {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 11px;
  align-items: center;
  width: min(calc(100% - 28px), 410px);
  padding: 10px 14px;
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  background: rgba(255, 239, 172, 0.94);
  box-shadow: 0 12px 30px rgba(4, 37, 53, 0.34);
  backdrop-filter: blur(7px);
}

.jigsaw-game__celebration-copy > span:last-child {
  display: grid;
}

.jigsaw-game__celebration-badge {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--sun);
  font-size: 2rem;
}

.jigsaw-game__celebration strong {
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
}

.jigsaw-game__celebration small {
  color: var(--fjord-deep);
  font-weight: 900;
}

.jigsaw-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.jigsaw-stars i {
  position: absolute;
  top: -14%;
  color: #ffe06a;
  font-style: normal;
  font-size: clamp(1rem, 3vw, 2rem);
  text-shadow: 0 3px 6px rgba(18, 59, 83, 0.42);
  animation: jigsaw-star-shower 1700ms ease-in forwards;
}

.jigsaw-stars i:nth-child(1) { left: 8%; animation-delay: 40ms; }
.jigsaw-stars i:nth-child(2) { left: 23%; animation-delay: 280ms; }
.jigsaw-stars i:nth-child(3) { left: 41%; animation-delay: 120ms; }
.jigsaw-stars i:nth-child(4) { left: 59%; animation-delay: 360ms; }
.jigsaw-stars i:nth-child(5) { left: 76%; animation-delay: 180ms; }
.jigsaw-stars i:nth-child(6) { left: 91%; animation-delay: 460ms; }

.jigsaw-game__feedback {
  min-height: 28px;
  margin: 18px 0 0;
  padding: 11px 16px;
  color: var(--fjord-deep);
  text-align: center;
  border: 2px solid rgba(17, 106, 141, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  font-weight: 850;
}

.jigsaw-complete-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: clamp(16px, 3vw, 24px);
  color: var(--fjord-deep);
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 195, 0.94));
  box-shadow: 0 14px 32px rgba(18, 59, 83, 0.17);
}

.jigsaw-complete-panel[hidden] {
  display: none;
}

.jigsaw-complete-panel__copy {
  display: flex;
  gap: 14px;
  align-items: center;
}

.jigsaw-complete-panel__copy > span {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--sun);
  font-size: 2rem;
}

.jigsaw-complete-panel__copy small,
.jigsaw-complete-panel__copy strong {
  display: block;
}

.jigsaw-complete-panel__copy small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jigsaw-complete-panel__copy strong {
  margin: 2px 0 4px;
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.jigsaw-complete-panel__copy p,
.jigsaw-complete-panel__episode {
  margin: 0;
}

.jigsaw-complete-panel__episode {
  padding: 10px 13px;
  border-radius: 14px;
  background: rgba(215, 242, 241, 0.86);
}

.jigsaw-complete-panel__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.jigsaw-complete-panel__actions .button {
  min-height: var(--tap);
  margin: 0;
}

.jigsaw-story-player {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 20px;
  background: var(--fjord-deep);
}

.jigsaw-story-player[hidden] {
  display: none;
}

.jigsaw-story-player__frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #081f2b;
}

.jigsaw-story-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.jigsaw-story-player > a {
  justify-self: center;
  color: var(--white);
  font-weight: 900;
}

.jigsaw-game.is-complete .jigsaw-board {
  box-shadow: 0 0 0 7px var(--sun), 0 18px 42px rgba(18, 59, 83, 0.32);
}

.jigsaw-game.is-complete .jigsaw-board__guide {
  opacity: 1;
  filter: saturate(1.14) contrast(1.03);
}

.jigsaw-game.is-complete .jigsaw-board__slots {
  opacity: 0;
  pointer-events: none;
}

.jigsaw-game.is-complete .jigsaw-game__play {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.jigsaw-game.is-complete .jigsaw-tray-wrap {
  display: none;
}

.jigsaw-gallery__choice:focus-visible,
.jigsaw-game__sizes button:focus-visible,
.jigsaw-game__actions button:focus-visible,
.jigsaw-complete-panel button:focus-visible,
.jigsaw-piece:focus-visible,
.jigsaw-slot:focus-visible {
  z-index: 4;
  outline: 4px solid var(--sun);
  outline-offset: 4px;
}

@keyframes jigsaw-shake {
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

@keyframes jigsaw-pop {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.62) rotate(4deg); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-1deg); }
}

@keyframes jigsaw-soft-hint {
  from { opacity: 0.48; box-shadow: 0 0 0 1px rgba(255, 224, 106, 0.2); }
  to { opacity: 1; box-shadow: 0 0 0 5px rgba(255, 224, 106, 0.42), 0 0 22px rgba(255, 224, 106, 0.52); }
}

@keyframes jigsaw-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes jigsaw-star-shower {
  0% { opacity: 0; transform: translateY(-12px) rotate(0deg) scale(0.55); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateY(390px) rotate(250deg) scale(1.1); }
}

[data-calm="true"] .jigsaw-piece,
[data-calm="true"] .jigsaw-board__guide,
[data-calm="true"] .jigsaw-slot {
  transition: none !important;
}

[data-calm="true"] .jigsaw-piece,
[data-calm="true"] .jigsaw-slot,
[data-calm="true"] .jigsaw-game__celebration {
  animation: none !important;
}

[data-calm="true"] .jigsaw-stars {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .jigsaw-piece,
  .jigsaw-board__guide,
  .jigsaw-slot {
    transition: none !important;
  }

  .jigsaw-piece,
  .jigsaw-slot,
  .jigsaw-game__celebration {
    animation: none !important;
  }

  .jigsaw-stars {
    display: none;
  }
}

@media (max-width: 980px) {
  .jigsaw-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jigsaw-game__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .jigsaw-game__play {
    grid-template-columns: 1fr;
  }

  .jigsaw-tray {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .jigsaw-tray[data-jigsaw-count="6"],
  .jigsaw-tray[data-jigsaw-count="12"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .jigsaw-game {
    margin-inline: -8px;
    padding: 19px 11px;
    border-width: 3px;
    border-radius: 28px;
  }

  .jigsaw-game__head {
    grid-template-columns: 1fr;
  }

  .jigsaw-game__score {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jigsaw-game__score span {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }

  .jigsaw-gallery {
    display: flex;
    margin-inline: -2px;
    padding: 3px 2px 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .jigsaw-gallery__choice {
    min-width: 118px;
    scroll-snap-align: start;
  }

  .jigsaw-gallery__choice img {
    height: 82px;
  }

  .jigsaw-game__sizes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .jigsaw-game__sizes > span {
    grid-column: 1 / -1;
  }

  .jigsaw-game__sizes button {
    min-width: 0;
    padding-inline: 6px;
  }

  .jigsaw-game__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jigsaw-game__actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.82rem;
    white-space: normal;
  }

  .jigsaw-game__actions [data-jigsaw-reset] {
    grid-column: 1 / -1;
  }

  .jigsaw-board {
    border-width: 4px;
    border-radius: 20px;
  }

  .jigsaw-tray {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .jigsaw-tray[data-jigsaw-count="6"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jigsaw-tray[data-jigsaw-count="12"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .jigsaw-piece {
    border-width: 2px;
    border-radius: 8px 3px 8px 3px;
  }

  .jigsaw-complete-panel__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .jigsaw-complete-panel__actions .button {
    width: 100%;
  }
}

/* Maram-bakeriet på kjøkkenet */
.baking-game {
  position: relative;
  scroll-margin-top: 118px;
  margin-top: clamp(34px, 6vw, 64px);
  padding: clamp(20px, 4vw, 42px);
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.96);
  border-radius: 38px;
  background:
    radial-gradient(circle at 92% 8%, rgba(230, 91, 91, 0.2) 0 96px, transparent 98px),
    radial-gradient(circle at 3% 97%, rgba(93, 182, 163, 0.33) 0 120px, transparent 122px),
    linear-gradient(145deg, #fff1c9, #e3f7f4 74%);
  box-shadow: 0 26px 64px rgba(18, 59, 83, 0.26);
}

.baking-game::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.3;
  background-image:
    radial-gradient(circle, rgba(17, 106, 141, 0.25) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(230, 91, 91, 0.2) 0 4px, transparent 5px);
  background-position: 24px 27px, 84px 76px;
  background-size: 118px 118px, 154px 154px;
}

.baking-game > * {
  position: relative;
  z-index: 1;
}

.baking-game__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.baking-game__head h3 {
  margin: 9px 0 6px;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
}

.baking-game__head p {
  max-width: 770px;
  margin: 0;
}

.baking-game__score {
  display: grid;
  min-width: 208px;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  border: 3px solid var(--white);
  border-radius: 22px;
  background: linear-gradient(145deg, #a94352, var(--plum));
  box-shadow: 0 10px 24px rgba(64, 43, 80, 0.24);
}

.baking-game__score strong,
.baking-game__score span {
  padding: 9px 14px;
  font-family: var(--font-title);
}

.baking-game__score strong {
  color: #ffe27a;
  font-size: 1.06rem;
}

.baking-game__score span {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

.baking-recipes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.baking-recipes button {
  position: relative;
  min-width: 0;
  min-height: 126px;
  padding: 13px 9px 11px;
  color: var(--fjord-deep);
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.98);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(18, 59, 83, 0.13);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.baking-recipes button > span,
.baking-recipes button strong,
.baking-recipes button small {
  display: block;
}

.baking-recipes button > span {
  margin-bottom: 5px;
  font-size: 2rem;
  filter: drop-shadow(0 4px 5px rgba(18, 59, 83, 0.17));
}

.baking-recipes button strong {
  font-family: var(--font-title);
  font-size: clamp(0.92rem, 1.55vw, 1.12rem);
}

.baking-recipes button small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.2;
}

.baking-recipes button:hover {
  transform: translateY(-3px) rotate(-0.5deg);
}

.baking-recipes button[aria-pressed="true"] {
  color: var(--white);
  border-color: var(--sun);
  background: linear-gradient(145deg, #bd4e58, var(--plum));
  box-shadow: 0 0 0 4px rgba(246, 196, 83, 0.32), 0 11px 22px rgba(64, 43, 80, 0.25);
}

.baking-recipes button[aria-pressed="true"] small {
  color: rgba(255, 255, 255, 0.82);
}

.baking-recipes button.is-completed::after {
  position: absolute;
  top: -7px;
  right: -5px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--white);
  content: "✓";
  border: 3px solid var(--white);
  border-radius: 50%;
  background: #4eaa72;
  font-weight: 950;
  box-shadow: 0 5px 10px rgba(18, 59, 83, 0.2);
}

.baking-game__toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 12px 14px;
  border: 3px solid rgba(17, 106, 141, 0.15);
  border-radius: 22px 22px 10px 10px;
  background: rgba(255, 255, 255, 0.82);
}

.baking-game__toolbar > div:first-child {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.baking-game__toolbar strong {
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-size: 1.16rem;
}

.baking-game__toolbar span {
  color: var(--muted);
  font-weight: 800;
}

.baking-game__toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.baking-game__toolbar-actions .button {
  min-height: var(--tap);
  margin: 0;
  padding: 8px 13px;
  white-space: nowrap;
}

.baking-progress {
  height: 14px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 0 0 14px 14px;
  background: rgba(18, 59, 83, 0.15);
  box-shadow: inset 0 2px 5px rgba(18, 59, 83, 0.12);
}

.baking-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e45c5b, var(--sun), #63b89d);
  transition: width 420ms ease;
}

.baking-game__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
  margin-top: 22px;
}

.baking-game__stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 6px solid var(--white);
  border-radius: 30px;
  background: var(--fjord-deep);
  box-shadow: 0 16px 38px rgba(18, 59, 83, 0.29);
}

.baking-game__stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
  filter: saturate(1.14) contrast(1.03) brightness(1.02);
}

.baking-game__stage::after {
  position: absolute;
  inset: 42% 0 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(to bottom, transparent, rgba(18, 59, 83, 0.24) 30%, rgba(18, 59, 83, 0.78));
}

.baking-game__task {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  display: grid;
  max-width: calc(100% - 36px);
  padding: 12px 17px;
  color: var(--fjord-deep);
  border: 4px solid var(--white);
  border-radius: 20px 20px 20px 6px;
  background: #ffe27a;
  box-shadow: 0 10px 24px rgba(18, 59, 83, 0.26);
}

.baking-game__task span {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.baking-game__task strong {
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
}

.baking-counter {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  min-height: 146px;
  align-items: flex-end;
  justify-content: center;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    repeating-linear-gradient(90deg, #8d5838 0 56px, #79482d 57px 59px);
  box-shadow: inset 0 8px 14px rgba(255, 255, 255, 0.12), 0 12px 25px rgba(18, 59, 83, 0.32);
}

.baking-counter__whisk {
  position: absolute;
  z-index: 4;
  top: 5px;
  left: calc(50% + 48px);
  font-size: 3.7rem;
  transform: rotate(24deg);
  filter: drop-shadow(0 5px 5px rgba(18, 59, 83, 0.25));
  transform-origin: 28% 82%;
}

.baking-mix {
  position: absolute;
  z-index: 6;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.baking-mix[hidden] {
  display: none;
}

.baking-mix strong {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 5px 10px;
  color: var(--fjord-deep);
  border: 2px solid var(--white);
  border-radius: 999px;
  background: #ffe27a;
  font-family: var(--font-title);
  font-size: 0.82rem;
  box-shadow: 0 5px 12px rgba(18, 59, 83, 0.22);
}

.baking-mix__spark {
  position: absolute;
  color: #ffe27a;
  font-size: 1.35rem;
  text-shadow: 0 2px 0 rgba(64, 43, 80, 0.26);
  animation: baking-sparkle 620ms ease-in-out infinite alternate;
}

.baking-mix__spark--one { bottom: 72px; left: calc(50% - 92px); }
.baking-mix__spark--two { bottom: 104px; left: calc(50% - 50px); animation-delay: 120ms; }
.baking-mix__spark--three { bottom: 91px; left: calc(50% + 63px); color: #f16b62; animation-delay: 240ms; }
.baking-mix__spark--four { bottom: 60px; left: calc(50% + 96px); animation-delay: 360ms; }

.baking-bowl {
  position: relative;
  z-index: 3;
  width: 180px;
  height: 92px;
  margin-bottom: 13px;
  overflow: hidden;
  border: 6px solid var(--white);
  border-top: 10px solid #d2f0ee;
  border-radius: 12px 12px 92px 92px;
  background: linear-gradient(145deg, #8ed4cd, #3ca0a2);
  box-shadow: 0 10px 0 rgba(64, 43, 80, 0.16), 0 15px 28px rgba(18, 59, 83, 0.3);
}

.baking-bowl::after {
  position: absolute;
  inset: 10px 18px auto;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.baking-bowl__inside {
  position: absolute;
  right: 6px;
  bottom: 0;
  left: 6px;
  height: 8%;
  border-radius: 8px 8px 72px 72px;
  background: linear-gradient(#ffe5a5, #e8b66a);
  transition: height 420ms ease;
}

.baking-bowl__inside::before {
  position: absolute;
  top: 6px;
  right: 12px;
  left: 12px;
  height: 18px;
  content: "";
  opacity: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, rgba(255, 255, 255, 0.75) 0 4px, rgba(217, 145, 68, 0.8) 5px 9px, transparent 10px 15px);
}

.baking-game.is-mixing .baking-counter__whisk {
  animation: baking-stir 520ms ease-in-out infinite;
}

.baking-game.is-mixing .baking-bowl {
  animation: baking-bowl-wobble 420ms ease-in-out infinite alternate;
}

.baking-game.is-mixing .baking-bowl__inside::before {
  opacity: 0.92;
  animation: baking-batter-swirl 680ms linear infinite;
}

.baking-game.is-final-mixing .baking-counter {
  box-shadow: inset 0 8px 14px rgba(255, 255, 255, 0.18), 0 0 0 6px rgba(246, 196, 83, 0.66), 0 16px 34px rgba(18, 59, 83, 0.4);
}

.baking-counter__steps {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.baking-counter__steps span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 3px 7px rgba(18, 59, 83, 0.2);
}

.baking-drop {
  position: absolute;
  z-index: 8;
  top: 105px;
  left: 50%;
  font-size: 3.8rem;
  pointer-events: none;
  filter: drop-shadow(0 8px 8px rgba(18, 59, 83, 0.3));
  animation: baking-drop 720ms cubic-bezier(0.28, 0.64, 0.45, 1) forwards;
}

.baking-game__finished {
  position: absolute;
  z-index: 12;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(calc(100% - 26px), 620px);
  padding: 10px;
  color: var(--fjord-deep);
  text-align: left;
  border: 6px solid var(--white);
  border-radius: 30px;
  background: linear-gradient(145deg, #fffdf4, #fff0ba);
  box-shadow: 0 20px 48px rgba(18, 59, 83, 0.42);
  transform: translate(-50%, -50%) rotate(-1deg);
  animation: baking-pop 520ms cubic-bezier(0.18, 0.84, 0.28, 1.2);
}

.baking-game__finished[hidden] {
  display: none;
}

.baking-game__finished > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  box-shadow: 0 9px 22px rgba(18, 59, 83, 0.23);
}

.baking-game__finished-copy {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 8px 10px 5px;
}

.baking-game__finished-copy > span:first-child {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--sun);
  font-size: 2.1rem;
  filter: drop-shadow(0 6px 6px rgba(18, 59, 83, 0.18));
}

.baking-game__finished-copy > span:last-child {
  display: grid;
}

.baking-game__finished strong {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.baking-game__finished small {
  color: var(--muted);
  font-weight: 900;
}

.baking-game__choices {
  display: grid;
  gap: 14px;
  align-content: start;
}

.baking-game__choices > section {
  padding: 15px;
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 11px 24px rgba(18, 59, 83, 0.14);
}

.baking-game__choice-head {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 12px;
}

.baking-game__choice-head > span {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--plum);
  font-family: var(--font-title);
  font-weight: 950;
}

.baking-game__choice-head h4,
.baking-game__choice-head p {
  margin: 0;
}

.baking-game__choice-head h4 {
  font-size: 1.16rem;
}

.baking-game__choice-head p {
  color: var(--muted);
  font-size: 0.85rem;
}

.baking-ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.baking-ingredient-grid button,
.baking-amount-grid button {
  min-width: 0;
  min-height: var(--tap);
  color: var(--fjord-deep);
  cursor: pointer;
  border: 3px solid rgba(17, 106, 141, 0.14);
  background: var(--white);
  box-shadow: 0 5px 0 rgba(18, 59, 83, 0.1);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.baking-ingredient-grid button {
  min-height: 82px;
  padding: 8px 5px;
  border-radius: 16px;
}

.baking-ingredient-grid button span,
.baking-ingredient-grid button strong {
  display: block;
}

.baking-ingredient-grid button span {
  font-size: 1.7rem;
}

.baking-ingredient-grid button strong {
  margin-top: 3px;
  overflow: hidden;
  font-family: var(--font-title);
  font-size: clamp(0.7rem, 1.15vw, 0.88rem);
  line-height: 1.05;
  text-overflow: ellipsis;
}

.baking-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.baking-amount-grid button {
  padding: 9px 6px;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 900;
}

.baking-ingredient-grid button:hover,
.baking-amount-grid button:hover {
  transform: translateY(-2px);
}

.baking-ingredient-grid button[aria-pressed="true"],
.baking-amount-grid button[aria-pressed="true"] {
  color: var(--white);
  border-color: var(--plum);
  background: var(--plum);
  box-shadow: 0 0 0 4px #ffe06a, 0 8px 16px rgba(64, 43, 80, 0.25);
  transform: translateY(-2px);
}

.baking-ingredient-grid button.is-correct,
.baking-amount-grid button.is-correct {
  color: var(--white);
  border-color: #3b9e67;
  background: #4eaa72;
  box-shadow: 0 0 0 4px #b8f2c9, 0 8px 16px rgba(30, 110, 67, 0.22);
}

.baking-ingredient-grid button.is-wrong,
.baking-amount-grid button.is-wrong {
  border-color: #dc5056;
  background: #ffe5e5;
  animation: baking-shake 380ms ease;
}

.baking-game__add {
  width: 100%;
  min-height: 58px;
  margin: 0;
  font-size: 1.05rem;
}

.baking-game__add:disabled {
  color: rgba(18, 59, 83, 0.55);
  cursor: not-allowed;
  background: #d8e5e7;
  box-shadow: none;
  transform: none;
}

.baking-action[hidden],
.baking-action__stir[hidden],
.baking-action__cook[hidden],
.baking-action__next[hidden] {
  display: none !important;
}

.baking-action {
  grid-column: 1 / -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 7%, rgba(246, 196, 83, .45), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(218,244,239,.94)) !important;
}

.baking-action__stir {
  display: grid;
  gap: 11px;
  justify-items: stretch;
}

.baking-stir-pad {
  position: relative;
  display: grid;
  min-height: 225px;
  padding: 18px;
  place-items: center;
  overflow: hidden;
  color: var(--fjord-deep);
  border: 5px solid #fff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 233, 158, .9), rgba(246, 196, 83, .34) 29%, transparent 30%),
    linear-gradient(150deg, #8dd7d1, #d7f4ed 56%, #fff0bd);
  box-shadow: inset 0 0 0 3px rgba(17, 106, 141, .12), 0 12px 24px rgba(18, 59, 83, .16);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.baking-stir-pad:active { cursor: grabbing; }
.baking-stir-pad::before,
.baking-stir-pad::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: rgba(255,255,255,.38);
}
.baking-stir-pad::before { top: 18px; right: 28px; width: 58px; height: 58px; }
.baking-stir-pad::after { bottom: 30px; left: 24px; width: 34px; height: 34px; }

.baking-stir-pad__bowl {
  position: relative;
  display: block;
  width: 152px;
  height: 108px;
  margin-top: 2px;
  border: 7px solid #fff;
  border-top: 12px solid #d6f5f0;
  border-radius: 18px 18px 84px 84px;
  background: linear-gradient(145deg, #7bc9c4, #218e9a);
  box-shadow: 0 11px 0 rgba(64,43,80,.14), 0 18px 30px rgba(18,59,83,.25);
}
.baking-stir-pad__bowl b {
  position: absolute;
  top: 9px;
  right: 12px;
  left: 12px;
  height: 47px;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at center, #fff0bb 0 9px, #e8b46e 10px 16px, #fff6d7 17px 21px);
  box-shadow: inset 0 4px 9px rgba(146, 89, 40, .24);
}
.baking-stir-pad__bowl i {
  position: absolute;
  z-index: 2;
  top: -53px;
  left: 50%;
  font-size: 4.6rem;
  font-style: normal;
  filter: drop-shadow(0 6px 4px rgba(18,59,83,.26));
  transform: translateX(-12%) rotate(25deg);
  transform-origin: 30% 84%;
}
.baking-stir-pad > strong { position: relative; z-index: 2; margin-top: 4px; font-family: var(--font-title); font-size: 1.28rem; }
.baking-stir-pad > small { position: relative; z-index: 2; color: #446675; font-weight: 850; }

.baking-game.is-hand-stirring .baking-stir-pad__bowl i,
.baking-game.is-hand-stirring .baking-counter__whisk { animation: baking-manual-stir 240ms ease-in-out; }
.baking-game.is-hand-stirring .baking-stir-pad__bowl b { animation: baking-batter-swirl 420ms linear; }
.baking-game.is-hand-stirring .baking-bowl { animation: baking-bowl-wobble 240ms ease-in-out; }

.baking-action__progress {
  height: 18px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 999px;
  background: rgba(18, 59, 83, .15);
  box-shadow: inset 0 2px 5px rgba(18,59,83,.14);
}
.baking-action__progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e45c5b, #f6c453, #52b98a);
  transition: width 180ms ease;
}
.baking-action__count { color: var(--fjord-deep); text-align: center; font-family: var(--font-title); }
.baking-action__next { width: 100%; margin-top: 2px; }

.baking-action__cook { display: grid; gap: 12px; }
.baking-cook-visual {
  position: relative;
  display: grid;
  min-height: 218px;
  place-items: center;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255,255,255,.5) 0 30px, transparent 31px),
    linear-gradient(150deg, #a8ded9, #edf8e8 54%, #ffe7a2);
  box-shadow: 0 12px 25px rgba(18,59,83,.16);
}
.baking-cook-visual__oven {
  position: relative;
  width: 190px;
  height: 165px;
  border: 8px solid #f4f1e8;
  border-radius: 26px;
  background: linear-gradient(145deg, #567681, #183e52);
  box-shadow: 0 13px 0 #ba9168, 0 21px 30px rgba(18,59,83,.28);
}
.baking-cook-visual__oven::before {
  position: absolute;
  inset: 28px 17px 16px;
  content: "";
  border: 6px solid #e8f0ec;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 90%, rgba(255,124,55,.42), transparent 50%), #173543;
  box-shadow: inset 0 0 20px rgba(2,18,25,.58);
}
.baking-cook-visual__oven > span { position: absolute; z-index: 2; top: -1px; left: 19px; font-size: 1.35rem; opacity: .48; }
.baking-cook-visual__oven > i {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 27px;
  left: 28px;
  height: 9px;
  border-radius: 999px;
  background: #d7b17a;
  box-shadow: 0 5px 0 #6f5137;
}
.baking-cook-visual__oven > b {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 23px;
  font-size: 3.6rem;
  filter: drop-shadow(0 6px 5px rgba(0,0,0,.34));
  transform: translateX(66px);
  transition: transform 700ms cubic-bezier(.2,.82,.3,1);
}

.baking-cook-visual__pot {
  position: relative;
  width: 190px;
  height: 112px;
  margin-top: 30px;
  border: 7px solid #f6fbf8;
  border-top: 12px solid #dfe9e9;
  border-radius: 20px 20px 54px 54px;
  background: linear-gradient(145deg, #93b0b7, #365965);
  box-shadow: 0 13px 0 #79634e, 0 20px 30px rgba(18,59,83,.26);
}
.baking-cook-visual__pot::before,
.baking-cook-visual__pot::after { position: absolute; top: 22px; width: 48px; height: 18px; content: ""; border: 8px solid #365965; border-radius: 999px; }
.baking-cook-visual__pot::before { left: -58px; }
.baking-cook-visual__pot::after { right: -58px; }
.baking-cook-visual__pot > span { position: absolute; top: -62px; left: 50%; color: #fff; font-size: 3rem; opacity: .34; transform: translateX(-50%); }
.baking-cook-visual__pot > i { position: absolute; right: 15px; bottom: -28px; left: 15px; height: 18px; border-radius: 50%; background: #416d76; box-shadow: 0 0 0 8px #a77b54; }
.baking-cook-visual__pot > b { position: absolute; top: 10px; left: 50%; font-size: 2.8rem; transform: translateX(-50%); }
.baking-cook-visual:not([data-cook-kind="stove"]) .baking-cook-visual__pot { display: none; }
.baking-cook-visual[data-cook-kind="stove"] .baking-cook-visual__oven { display: none; }

.baking-action__instruction { margin: 0; color: var(--fjord-deep); font-weight: 900; text-align: center; }
.baking-cook-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.baking-cook-options button {
  display: grid;
  min-height: 70px;
  padding: 9px 7px;
  place-items: center;
  border: 3px solid rgba(17,106,141,.17);
  border-radius: 17px;
  color: var(--fjord-deep);
  background: #fff;
  box-shadow: 0 5px 0 rgba(18,59,83,.1);
  cursor: pointer;
}
.baking-cook-options button strong { font-family: var(--font-title); font-size: 1rem; }
.baking-cook-options button small { color: var(--muted); font-weight: 800; }
.baking-cook-options button[aria-pressed="true"] { border-color: var(--plum); box-shadow: 0 0 0 4px #ffe06a, 0 7px 14px rgba(64,43,80,.2); }
.baking-cook-options button.is-wrong { border-color: #dc5056; background: #ffe5e5; animation: baking-shake 380ms ease; }
.baking-cook-options button.is-correct { color: #fff; border-color: #278057; background: #4eaa72; }
.baking-cook-options button.is-correct small { color: rgba(255,255,255,.84); }
.baking-action__cook-button { width: 100%; min-height: 56px; }
.baking-action__cook-button:disabled { color: rgba(18,59,83,.55); background: #d8e5e7; box-shadow: none; }
.baking-action__feedback { min-height: 50px; margin: 2px 0 0; padding: 10px 12px; border-left: 5px solid var(--sun); border-radius: 0 14px 14px 0; background: #fff7d8; color: var(--fjord-deep); font-weight: 850; }

.baking-cook-visual.is-too-hot { background: linear-gradient(145deg, #ffd3a0, #ff8d70); animation: baking-heat-warning 420ms ease; }
.baking-cook-visual.is-too-hot .baking-cook-visual__pot > span { opacity: 1; animation: baking-steam 700ms ease-in-out infinite alternate; }
.baking-cook-visual.is-too-cold { filter: saturate(.7) brightness(.96); }
.baking-cook-visual.is-ready { box-shadow: 0 0 0 6px rgba(78,170,114,.45), 0 14px 28px rgba(18,59,83,.2); }
.baking-cook-visual.is-cooking .baking-cook-visual__oven > b { transform: translateX(-58px) scale(.82); }
.baking-cook-visual.is-cooking .baking-cook-visual__pot > span { opacity: .9; animation: baking-steam 650ms ease-in-out infinite alternate; }
.baking-cook-visual.is-cooking .baking-cook-visual__pot { animation: baking-pot-warm 520ms ease-in-out infinite alternate; }

.baking-game__feedback {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  margin-top: 18px;
  padding: 12px 16px;
  color: var(--fjord-deep);
  border: 3px solid rgba(17, 106, 141, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(18, 59, 83, 0.1);
}

.baking-game__feedback > span {
  font-size: 2rem;
}

.baking-game__feedback p {
  margin: 0;
  font-weight: 850;
}

.baking-game__adult-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.baking-game.is-complete .baking-game__stage {
  box-shadow: 0 0 0 7px var(--sun), 0 20px 44px rgba(18, 59, 83, 0.34);
}

.baking-game__finish-image {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  margin: 16px auto 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 4px solid var(--white);
  border-radius: 22px;
  background: var(--sky);
  box-shadow: 0 12px 28px rgba(18, 59, 83, 0.24);
}

.baking-game__finish-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.025);
}

.baking-recipes button:focus-visible,
.baking-game__toolbar button:focus-visible,
.baking-ingredient-grid button:focus-visible,
.baking-amount-grid button:focus-visible,
.baking-game__add:focus-visible,
.baking-stir-pad:focus-visible,
.baking-cook-options button:focus-visible,
.baking-action button:focus-visible {
  z-index: 3;
  outline: 4px solid var(--sun);
  outline-offset: 4px;
}

@keyframes baking-drop {
  0% { opacity: 0; transform: translate(-50%, -40px) rotate(-8deg) scale(0.7); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 345px) rotate(18deg) scale(0.45); }
}

@keyframes baking-pop {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.62) rotate(4deg); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-1deg); }
}

@keyframes baking-stir {
  0% { transform: translate(-12px, 3px) rotate(8deg); }
  50% { transform: translate(15px, 8px) rotate(42deg); }
  100% { transform: translate(-12px, 3px) rotate(8deg); }
}

@keyframes baking-bowl-wobble {
  from { transform: translateX(-2px) rotate(-1deg); }
  to { transform: translateX(2px) rotate(1deg); }
}

@keyframes baking-batter-swirl {
  to { transform: rotate(360deg) scale(1.08); }
}

@keyframes baking-sparkle {
  from { opacity: 0.35; transform: translateY(8px) scale(0.7) rotate(-12deg); }
  to { opacity: 1; transform: translateY(-8px) scale(1.18) rotate(14deg); }
}

@keyframes baking-shake {
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

@keyframes baking-manual-stir {
  0% { transform: translateX(-12%) rotate(12deg); }
  50% { transform: translateX(-42%) rotate(-36deg); }
  100% { transform: translateX(-12%) rotate(25deg); }
}

@keyframes baking-heat-warning {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-5px); }
  70% { transform: translateX(5px); }
}

@keyframes baking-steam {
  from { transform: translate(-50%, 10px) scale(.85); opacity: .35; }
  to { transform: translate(-50%, -8px) scale(1.12); opacity: 1; }
}

@keyframes baking-pot-warm {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

[data-calm="true"] .baking-game *,
[data-calm="true"] .baking-game *::before,
[data-calm="true"] .baking-game *::after {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .baking-game *,
  .baking-game *::before,
  .baking-game *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .baking-game__workspace {
    grid-template-columns: 1fr;
  }

  .baking-game__stage {
    min-height: 540px;
  }

  .baking-game__choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .baking-game__add {
    grid-column: 1 / -1;
  }

  .baking-action { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .baking-game__head {
    grid-template-columns: 1fr;
  }

  .baking-game__score {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .baking-game__score span {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  .baking-recipes {
    display: flex;
    padding: 4px 3px 11px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .baking-recipes button {
    min-width: 132px;
    min-height: 118px;
    scroll-snap-align: start;
  }

  .baking-game__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .baking-game__toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .baking-game__toolbar-actions .button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .baking-game {
    margin-inline: -8px;
    padding: 19px 11px;
    border-width: 3px;
    border-radius: 28px;
  }

  .baking-game__choices {
    grid-template-columns: 1fr;
  }

  .baking-game__stage {
    min-height: 470px;
    border-width: 4px;
    border-radius: 22px;
  }

  .baking-game__stage > img {
    object-position: 50% 40%;
  }

  .baking-counter {
    right: 10px;
    bottom: 10px;
    left: 10px;
    min-height: 132px;
    border-width: 4px;
  }

  .baking-bowl {
    width: 150px;
    height: 78px;
  }

  .baking-counter__whisk {
    left: calc(50% + 36px);
    font-size: 3.2rem;
  }

  .baking-counter__steps span {
    width: 27px;
    height: 27px;
    font-size: 0.86rem;
  }

  .baking-ingredient-grid button {
    min-height: 76px;
  }

  .baking-drop {
    top: 92px;
  }

  .baking-game__adult-note {
    padding-inline: 6px;
    text-align: left;
  }

  .baking-game__finished {
    width: calc(100% - 16px);
    padding: 7px;
    border-width: 4px;
  }

  .baking-game__finished-copy {
    padding-inline: 5px;
  }

  .baking-game__finished-copy > span:first-child {
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
  }

  .baking-stir-pad { min-height: 205px; }
  .baking-cook-visual { min-height: 200px; }
  .baking-cook-options button { min-height: 66px; }
  .baking-cook-options button small { font-size: .72rem; }
}

/* Rosenkransverkstedet i barnehagen */
.rosary-game {
  --rosary-small-light: #89f1ee;
  --rosary-small-mid: #1598b6;
  --rosary-small-dark: #07516e;
  --rosary-large-light: #ffe19a;
  --rosary-large-mid: #d48c24;
  --rosary-large-dark: #8b4e14;
  --rosary-cord: #0b7285;
  position: relative;
  scroll-margin-top: 118px;
  margin-top: clamp(34px, 6vw, 64px);
  padding: clamp(20px, 4vw, 42px);
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.96);
  border-radius: 38px;
  background:
    radial-gradient(circle at 94% 7%, rgba(246, 196, 83, 0.66) 0 88px, transparent 90px),
    radial-gradient(circle at 4% 98%, rgba(106, 59, 98, 0.18) 0 126px, transparent 128px),
    linear-gradient(145deg, #e3f7f4, #fff2c9 76%);
  box-shadow: 0 28px 68px rgba(18, 59, 83, 0.28);
}

.rosary-game::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.3;
  background-image:
    radial-gradient(circle, rgba(17, 106, 141, 0.25) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(106, 59, 98, 0.2) 0 4px, transparent 5px);
  background-position: 20px 24px, 82px 74px;
  background-size: 116px 116px, 152px 152px;
}

.rosary-game > * {
  position: relative;
  z-index: 1;
}

.rosary-game__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.rosary-game__head h3 {
  margin: 9px 0 6px;
  font-size: clamp(2.1rem, 4.8vw, 3.65rem);
}

.rosary-game__head p {
  max-width: 790px;
  margin: 0;
}

.rosary-game__score {
  display: grid;
  min-width: 208px;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  border: 3px solid var(--white);
  border-radius: 22px;
  background: linear-gradient(145deg, var(--fjord), var(--plum));
  box-shadow: 0 10px 25px rgba(18, 59, 83, 0.24);
}

.rosary-game__score strong,
.rosary-game__score span {
  padding: 9px 14px;
  font-family: var(--font-title);
}

.rosary-game__score strong {
  color: #ffe27a;
  font-size: 1.07rem;
}

.rosary-game__score span {
  border-top: 1px solid rgba(255, 255, 255, 0.21);
  font-weight: 800;
}

.rosary-customizer {
  margin-top: 24px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.77);
  box-shadow: 0 12px 27px rgba(18, 59, 83, 0.14);
}

.rosary-customizer > summary {
  display: flex;
  gap: 9px;
  min-height: var(--tap);
  align-items: center;
  padding: 13px 17px;
  color: var(--fjord-deep);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-title);
  font-size: 1.08rem;
  font-weight: 900;
  background: linear-gradient(90deg, rgba(216, 243, 242, 0.95), rgba(255, 240, 189, 0.92));
}

.rosary-customizer > summary::-webkit-details-marker {
  display: none;
}

.rosary-customizer > summary::after {
  margin-left: auto;
  content: "▾";
  font-size: 1.3rem;
  transition: transform 150ms ease;
}

.rosary-customizer:not([open]) > summary::after {
  transform: rotate(-90deg);
}

.rosary-customizer__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.rosary-customizer fieldset {
  min-width: 0;
  margin: 0;
  padding: 11px;
  border: 2px solid rgba(17, 106, 141, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.rosary-customizer fieldset:last-child {
  grid-column: 1 / -1;
}

.rosary-customizer legend {
  padding-inline: 5px;
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 900;
}

.rosary-style-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.rosary-style-row button {
  display: inline-flex;
  gap: 6px;
  min-height: var(--tap);
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  color: var(--fjord-deep);
  cursor: pointer;
  border: 2px solid rgba(17, 106, 141, 0.16);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 0 4px 0 rgba(18, 59, 83, 0.08);
}

.rosary-style-row button[aria-pressed="true"] {
  color: var(--white);
  border-color: var(--plum);
  background: var(--plum);
  box-shadow: 0 0 0 3px var(--sun), 0 6px 13px rgba(64, 43, 80, 0.2);
}

.rosary-style-cross {
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 2px 2px rgba(18, 59, 83, 0.2);
}

.rosary-style-cross--wood { color: #8b5128; }
.rosary-style-cross--silver { color: #9fadb2; }
.rosary-style-cross--blue { color: #176f9c; }

.rosary-style-bead {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: inset -3px -4px 5px rgba(18, 59, 83, 0.28), 0 2px 4px rgba(18, 59, 83, 0.2);
}

.rosary-style-bead--large { width: 19px; height: 19px; }
.rosary-style-bead--fjord { background: radial-gradient(circle at 30% 24%, #96f4ef 0 14%, #169cb8 38%, #07516e 82%); }
.rosary-style-bead--pearl { background: radial-gradient(circle at 30% 24%, #fff 0 20%, #e7e2d6 48%, #9ba7aa 88%); }
.rosary-style-bead--berry { background: radial-gradient(circle at 30% 24%, #f2939b 0 14%, #a74059 42%, #5d2037 86%); }
.rosary-style-bead--wood { background: radial-gradient(circle at 30% 24%, #e7ba78 0 14%, #a86b34 45%, #5d351e 88%); }
.rosary-style-bead--amber { background: radial-gradient(circle at 30% 24%, #ffe29a 0 14%, #d58b22 42%, #8b4e14 88%); }
.rosary-style-bead--plum { background: radial-gradient(circle at 30% 24%, #d89dcc 0 14%, #7e4776 42%, #482640 88%); }

.rosary-style-row--cord button > span {
  display: inline-block;
  width: 26px;
  height: 6px;
  border-radius: 999px;
  background: var(--cord-swatch);
  box-shadow: 0 2px 3px rgba(18, 59, 83, 0.25);
}

.rosary-style-medal {
  display: grid;
  width: 21px;
  height: 27px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  font-size: 0.8rem;
  box-shadow: inset -3px -4px 5px rgba(18, 59, 83, 0.2), 0 2px 4px rgba(18, 59, 83, 0.2);
}

.rosary-style-medal--blue { color: #f9e9b4; background: linear-gradient(145deg, #5ab7d0, #185d8c); }
.rosary-style-medal--gold { color: #fff7d1; background: linear-gradient(145deg, #f2ca62, #a86c17); }
.rosary-style-medal--wood { color: #f4dbad; background: linear-gradient(145deg, #c4854b, #70401f); }

.rosary-game__toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 12px 14px;
  border: 3px solid rgba(17, 106, 141, 0.15);
  border-radius: 22px 22px 10px 10px;
  background: rgba(255, 255, 255, 0.84);
}

.rosary-game__toolbar > div {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}

.rosary-game__toolbar strong {
  color: var(--fjord-deep);
  font-family: var(--font-title);
  font-size: 1.1rem;
}

.rosary-game__toolbar span {
  color: var(--muted);
  font-weight: 800;
}

.rosary-game__toolbar .button {
  min-height: var(--tap);
  margin: 0;
  padding: 8px 13px;
  white-space: nowrap;
}

.rosary-progress {
  height: 14px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 0 0 14px 14px;
  background: rgba(18, 59, 83, 0.15);
}

.rosary-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--plum), var(--sun), #59b89c);
  transition: width 320ms ease;
}

.rosary-game__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  margin-top: 22px;
}

.rosary-game__stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  cursor: pointer;
  border: 7px solid var(--white);
  border-radius: 30px;
  background: var(--fjord-deep);
  box-shadow: 0 18px 42px rgba(18, 59, 83, 0.34);
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.rosary-game__stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.025);
}

.rosary-game__stage::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(to bottom, rgba(18, 59, 83, 0.03), rgba(18, 59, 83, 0.08));
}

.rosary-game__stage.is-dragover {
  box-shadow: 0 0 0 7px var(--sun), 0 22px 48px rgba(18, 59, 83, 0.38);
  transform: translateY(-2px);
}

.rosary-cord,
.rosary-board {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rosary-cord ellipse,
.rosary-cord path {
  fill: none;
  stroke: var(--rosary-cord);
  stroke-width: 0.72;
  stroke-linecap: round;
  stroke-dasharray: 1.4 0.7;
  opacity: 0.58;
  filter: drop-shadow(0 1px 1px rgba(18, 59, 83, 0.38));
}

.rosary-slot {
  position: absolute;
  display: block;
  box-sizing: border-box;
  pointer-events: auto;
  opacity: 0.31;
  transform: translate(-50%, -50%);
  transition: opacity 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.rosary-slot--small,
.rosary-slot--large {
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, #e5eef0 0 15%, #829298 44%, #41545a 88%);
  box-shadow: inset -3px -4px 5px rgba(18, 59, 83, 0.34), 0 3px 7px rgba(18, 59, 83, 0.31);
}

.rosary-slot--small {
  width: clamp(9px, 1.28vw, 15px);
  height: clamp(9px, 1.28vw, 15px);
}

.rosary-slot--large {
  width: clamp(15px, 2.05vw, 24px);
  height: clamp(15px, 2.05vw, 24px);
}

.rosary-slot--small.is-filled {
  background: radial-gradient(circle at 30% 24%, var(--rosary-small-light) 0 13%, var(--rosary-small-mid) 40%, var(--rosary-small-dark) 87%);
}

.rosary-slot--large.is-filled {
  background: radial-gradient(circle at 30% 24%, var(--rosary-large-light) 0 13%, var(--rosary-large-mid) 40%, var(--rosary-large-dark) 87%);
}

.rosary-slot--cross {
  width: clamp(34px, 5.2vw, 58px);
  height: clamp(50px, 7.4vw, 84px);
  border: 2px dashed rgba(255, 255, 255, 0.84);
  border-radius: 9px;
  background: rgba(18, 59, 83, 0.22);
}

.rosary-cross-shape {
  position: absolute;
  inset: 4px;
  display: block;
}

.rosary-cross-shape::before,
.rosary-cross-shape::after {
  position: absolute;
  left: 50%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  background: linear-gradient(145deg, #9a602f, #5c321c);
  box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.24), 0 3px 6px rgba(18, 59, 83, 0.3);
  transform: translateX(-50%);
}

.rosary-cross-shape::before {
  top: 0;
  width: 31%;
  height: 100%;
}

.rosary-cross-shape::after {
  top: 25%;
  width: 78%;
  height: 20%;
}

.rosary-cross-corpus {
  position: absolute;
  z-index: 2;
  top: 21%;
  left: 50%;
  width: 12%;
  height: 47%;
  border-radius: 999px 999px 6px 6px;
  background: #efd1a7;
  box-shadow: 0 2px 3px rgba(18, 59, 83, 0.28);
  transform: translateX(-50%);
}

.rosary-cross-corpus::before {
  position: absolute;
  top: -18%;
  left: 50%;
  width: 130%;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: #efd1a7;
  transform: translateX(-50%);
}

.rosary-cross-corpus::after {
  position: absolute;
  top: 13%;
  left: 50%;
  width: 460%;
  height: 17%;
  content: "";
  border-radius: 999px;
  background: #efd1a7;
  transform: translateX(-50%);
}

.rosary-game[data-rosary-cross="silver"] .rosary-cross-shape::before,
.rosary-game[data-rosary-cross="silver"] .rosary-cross-shape::after {
  background: linear-gradient(145deg, #edf3f4, #8c9ca1 58%, #586a70);
}

.rosary-game[data-rosary-cross="blue"] .rosary-cross-shape::before,
.rosary-game[data-rosary-cross="blue"] .rosary-cross-shape::after {
  border-color: #f0c85f;
  background: linear-gradient(145deg, #298eb6, #124e78 60%, #082f54);
}

.rosary-slot--medal {
  width: clamp(24px, 3.2vw, 38px);
  height: clamp(31px, 4.15vw, 49px);
  border: 2px dashed rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  background: rgba(18, 59, 83, 0.24);
}

.rosary-medal-shape {
  position: absolute;
  inset: 3px;
  display: grid;
  place-items: center;
  color: #f6e2a5;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background: linear-gradient(145deg, #5fbad0, #185c8a);
  box-shadow: inset -4px -5px 6px rgba(18, 59, 83, 0.25), 0 4px 7px rgba(18, 59, 83, 0.3);
}

.rosary-game[data-rosary-medal="gold"] .rosary-medal-shape {
  color: #fff8d5;
  background: linear-gradient(145deg, #f4d474, #ac701c);
}

.rosary-game[data-rosary-medal="wood"] .rosary-medal-shape {
  color: #f3d7a5;
  background: linear-gradient(145deg, #c88c51, #70401f);
}

.rosary-slot.is-filled {
  opacity: 1;
  border-style: solid;
  transform: translate(-50%, -50%) scale(1.02);
}

.rosary-slot.is-next {
  z-index: 4;
  opacity: 0.88;
  outline: 3px solid #ffe06a;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(64, 43, 80, 0.45), 0 0 22px 8px rgba(255, 224, 106, 0.8);
  animation: rosary-pulse 1.25s ease-in-out infinite;
}

.rosary-slot.is-wrong {
  opacity: 1;
  outline-color: #ff7c83;
  box-shadow: 0 0 0 5px rgba(118, 28, 43, 0.4), 0 0 22px 8px rgba(255, 124, 131, 0.76);
  animation: rosary-shake 380ms ease;
}

.rosary-game__complete {
  position: absolute;
  z-index: 12;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(78%, 360px);
  padding: 22px 18px;
  place-items: center;
  color: var(--fjord-deep);
  text-align: center;
  border: 6px solid var(--white);
  border-radius: 30px;
  background: linear-gradient(145deg, #ffe06a, #fff2c0);
  box-shadow: 0 22px 50px rgba(18, 59, 83, 0.43);
  transform: translate(-50%, -50%) rotate(-1deg);
  animation: rosary-pop 520ms cubic-bezier(0.18, 0.84, 0.28, 1.2);
}

.rosary-game__complete[hidden] {
  display: none;
}

.rosary-game__complete > span {
  font-size: 3.5rem;
}

.rosary-game__complete strong {
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.rosary-game__complete small {
  max-width: 270px;
  margin-top: 5px;
  font-weight: 900;
}

.rosary-game__complete .button {
  margin-top: 0.35rem;
  min-width: 10.5rem;
}

.rosary-toolbox {
  padding: 15px;
  color: var(--white);
  border: 5px solid rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(12, 106, 132, 0.94), rgba(18, 59, 83, 0.97)),
    url("../images/generated/places/barnehagen-teresa-v02-sm.jpg") center / cover;
  box-shadow: 0 16px 36px rgba(18, 59, 83, 0.28);
}

.rosary-toolbox__task {
  padding: 14px;
  color: var(--fjord-deep);
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff3c3, #e1f6f3);
  box-shadow: 0 9px 20px rgba(4, 37, 53, 0.22);
}

.rosary-toolbox__task span,
.rosary-toolbox__task strong,
.rosary-toolbox__task p {
  display: block;
}

.rosary-toolbox__task span {
  color: var(--plum);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rosary-toolbox__task strong {
  margin-top: 3px;
  font-family: var(--font-title);
  font-size: 1.28rem;
}

.rosary-toolbox__task p {
  margin: 7px 0 0;
  font-size: 0.88rem;
  line-height: 1.42;
}

.rosary-token-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.rosary-token-grid button {
  display: grid;
  min-width: 0;
  min-height: 94px;
  padding: 9px 6px;
  place-items: center;
  touch-action: none;
  color: var(--fjord-deep);
  cursor: grab;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 0 rgba(4, 37, 53, 0.2), 0 10px 17px rgba(4, 37, 53, 0.24);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.rosary-token-grid button:last-child {
  grid-column: 1 / -1;
}

.rosary-token-grid button strong {
  font-family: var(--font-title);
  font-size: 0.82rem;
  line-height: 1.05;
}

.rosary-token-grid button:hover {
  transform: translateY(-3px) rotate(-0.5deg);
}

.rosary-token-grid button.is-selected {
  color: var(--white);
  border-color: #ffe06a;
  background: var(--plum);
  box-shadow: 0 0 0 4px #ffe06a, 0 10px 22px rgba(4, 37, 53, 0.34);
  transform: translateY(-3px);
}

.rosary-token-grid button.is-wrong {
  color: var(--fjord-deep);
  border-color: #ff7c83;
  background: #ffe3e4;
  animation: rosary-shake 380ms ease;
}

.rosary-token-grid button.is-dragging {
  opacity: 0.32;
}

.rosary-token__cross {
  color: #875028;
  font-size: 2.8rem;
  font-weight: 950;
  line-height: 0.9;
  text-shadow: 0 3px 4px rgba(18, 59, 83, 0.25);
}

.rosary-token__small,
.rosary-token__large {
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: inset -5px -6px 8px rgba(18, 59, 83, 0.3), 0 5px 8px rgba(18, 59, 83, 0.27);
}

.rosary-token__small {
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 30% 24%, var(--rosary-small-light) 0 13%, var(--rosary-small-mid) 40%, var(--rosary-small-dark) 87%);
}

.rosary-token__large {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 30% 24%, var(--rosary-large-light) 0 13%, var(--rosary-large-mid) 40%, var(--rosary-large-dark) 87%);
}

.rosary-token__medal {
  display: grid;
  width: 36px;
  height: 46px;
  place-items: center;
  color: #f6e2a5;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: linear-gradient(145deg, #5fbad0, #185c8a);
  box-shadow: inset -5px -6px 8px rgba(18, 59, 83, 0.27), 0 5px 8px rgba(18, 59, 83, 0.27);
}

.rosary-game[data-rosary-medal="gold"] .rosary-token__medal { background: linear-gradient(145deg, #f4d474, #ac701c); }
.rosary-game[data-rosary-medal="wood"] .rosary-token__medal { background: linear-gradient(145deg, #c88c51, #70401f); }
.rosary-game[data-rosary-cross="silver"] .rosary-token__cross { color: #a3b0b4; }
.rosary-game[data-rosary-cross="blue"] .rosary-token__cross { color: #1c78a6; text-shadow: 0 0 2px #f0c85f, 0 3px 4px rgba(18, 59, 83, 0.25); }

.rosary-token__decade {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
}

.rosary-token__decade i {
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, var(--rosary-small-light) 0 13%, var(--rosary-small-mid) 40%, var(--rosary-small-dark) 87%);
  box-shadow: inset -2px -3px 4px rgba(18, 59, 83, 0.3), 0 2px 3px rgba(18, 59, 83, 0.22);
}

.rosary-toolbox__instruction {
  margin: 14px 2px 2px;
  color: rgba(255, 255, 255, 0.87);
  font-size: 0.84rem;
  font-weight: 780;
  line-height: 1.45;
}

.rosary-token--floating {
  position: fixed;
  z-index: 10000;
  width: 130px;
  pointer-events: none;
  opacity: 0.97;
  transform: translate(-50%, -58%) rotate(2deg) scale(1.05);
  box-shadow: 0 18px 34px rgba(4, 37, 53, 0.42);
}

.rosary-game__feedback {
  display: flex;
  gap: 12px;
  min-height: 70px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 16px;
  color: var(--fjord-deep);
  border: 3px solid rgba(17, 106, 141, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.83);
  box-shadow: 0 8px 18px rgba(18, 59, 83, 0.1);
}

.rosary-game__feedback > span {
  font-size: 2rem;
}

.rosary-game__feedback p {
  margin: 0;
  font-weight: 850;
}

.rosary-game__faith-note {
  margin: 14px 0 0;
  padding: 13px 16px;
  color: var(--fjord-deep);
  border-left: 5px solid var(--sun);
  border-radius: 10px;
  background: rgba(255, 248, 221, 0.78);
  font-size: 0.9rem;
}

.rosary-game.is-complete .rosary-game__stage {
  box-shadow: 0 0 0 8px var(--sun), 0 24px 52px rgba(18, 59, 83, 0.4);
}

.rosary-game.is-complete .rosary-cord ellipse,
.rosary-game.is-complete .rosary-cord path {
  stroke-width: 0.9;
  opacity: 0.94;
}

.rosary-customizer summary:focus-visible,
.rosary-style-row button:focus-visible,
.rosary-game__toolbar button:focus-visible,
.rosary-token-grid button:focus-visible,
.rosary-slot:focus-visible {
  z-index: 8;
  outline: 4px solid var(--sun);
  outline-offset: 4px;
}

@keyframes rosary-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.92); }
  50% { transform: translate(-50%, -50%) scale(1.14); }
}

@keyframes rosary-shake {
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

@keyframes rosary-pop {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.62) rotate(4deg); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-1deg); }
}

[data-calm="true"] .rosary-game *,
[data-calm="true"] .rosary-game *::before,
[data-calm="true"] .rosary-game *::after {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .rosary-game *,
  .rosary-game *::before,
  .rosary-game *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .rosary-game__workspace {
    grid-template-columns: 1fr;
  }

  .rosary-toolbox {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
    gap: 13px;
  }

  .rosary-token-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 0;
  }

  .rosary-token-grid button,
  .rosary-token-grid button:last-child {
    grid-column: auto;
  }

  .rosary-toolbox__instruction {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .rosary-game__head {
    grid-template-columns: 1fr;
  }

  .rosary-game__score {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rosary-game__score span {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.21);
  }

  .rosary-customizer__groups {
    grid-template-columns: 1fr;
  }

  .rosary-customizer fieldset:last-child {
    grid-column: auto;
  }

  .rosary-game__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .rosary-game__toolbar > div:last-child {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rosary-game__toolbar .button {
    width: 100%;
  }

  .rosary-toolbox {
    grid-template-columns: 1fr;
  }

  .rosary-token-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rosary-token-grid button:last-child {
    grid-column: span 2;
  }

  .rosary-toolbox__instruction {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .rosary-game {
    margin-inline: -8px;
    padding: 19px 10px;
    border-width: 3px;
    border-radius: 28px;
  }

  .rosary-customizer__groups {
    padding: 10px;
  }

  .rosary-style-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rosary-style-row button {
    min-width: 0;
    padding-inline: 6px;
  }

  .rosary-game__stage {
    border-width: 4px;
    border-radius: 21px;
  }

  .rosary-slot--small {
    width: clamp(7px, 2.45vw, 10px);
    height: clamp(7px, 2.45vw, 10px);
    border-width: 1px;
  }

  .rosary-slot--large {
    width: clamp(11px, 3.5vw, 15px);
    height: clamp(11px, 3.5vw, 15px);
    border-width: 1px;
  }

  .rosary-slot--cross {
    width: clamp(28px, 9vw, 40px);
    height: clamp(42px, 13vw, 58px);
  }

  .rosary-slot--medal {
    width: clamp(20px, 6vw, 27px);
    height: clamp(26px, 8vw, 35px);
  }

  .rosary-slot.is-next {
    outline-width: 2px;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(64, 43, 80, 0.4), 0 0 14px 5px rgba(255, 224, 106, 0.78);
  }

  .rosary-token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rosary-token-grid button {
    min-height: 88px;
  }

  .rosary-token-grid button:last-child {
    grid-column: 1 / -1;
  }

  .rosary-game__faith-note {
    text-align: left;
  }
}

/* Samlet spillpolering: taktil Maram-stil */
:is(.baking-game, .jigsaw-game, .fishing-game--v2, .shore-game, .crab-game, .rosary-game) {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 0 3px rgba(17, 106, 141, 0.12),
    0 24px 54px rgba(18, 59, 83, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

:is(.baking-game__score, .jigsaw-game__score, .fishing-game__score, .memory-game__score, .shore-game__score, .rosary-game__score, .crab-game__mission) {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(145deg, #176a8c 0%, #123d59 58%, #563552 120%);
  box-shadow: 0 8px 0 rgba(18, 59, 83, 0.14), 0 16px 28px rgba(18, 59, 83, 0.22);
}

:is(.baking-game, .jigsaw-game, .fishing-game--v2, .memory-game, .shore-game, .crab-game, .rosary-game) button {
  -webkit-tap-highlight-color: transparent;
}

:is(.baking-game, .jigsaw-game, .fishing-game--v2, .memory-game, .shore-game, .crab-game, .rosary-game) button:not(:disabled):active {
  transform: translateY(2px) scale(0.985);
}

:is(.baking-game__stage, .jigsaw-board, .fishing-game__stage, .shore-game__stage, .crab-game__sea, .rosary-game__stage) {
  box-shadow:
    0 0 0 2px rgba(18, 59, 83, 0.14),
    0 20px 42px rgba(18, 59, 83, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

:is(.baking-game__stage > img, .fishing-game__scene--maram, .shore-game__backdrop, .crab-game__backdrop, .rosary-game__stage > img) {
  filter: saturate(1.13) contrast(1.035) brightness(1.015);
}

/* Fotografiske sakramentkort */
.sacrament-tabs button {
  min-height: 148px;
  padding: 8px 7px 10px;
  align-content: start;
  overflow: hidden;
}

.sacrament-tabs button > img {
  width: 100%;
  height: 72px;
  display: block;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(18, 59, 83, 0.2);
  filter: saturate(1.08) contrast(1.02);
  transition: transform 180ms ease, filter 180ms ease;
}

.sacrament-tabs button:hover > img,
.sacrament-tabs button:focus-visible > img,
.sacrament-tabs button[aria-selected="true"] > img {
  filter: saturate(1.22) contrast(1.05) brightness(1.04);
  transform: scale(1.035);
}

.sacrament-tabs button strong {
  margin-top: 3px;
}

/* Karakterbilder gjør Kirkens tjenertest til en del av universet */
.ministry-quiz__answers button {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 78px;
  padding: 7px 13px 7px 7px;
  gap: 12px;
  align-items: center;
  text-align: left;
  box-shadow: 0 6px 0 rgba(18, 59, 83, 0.12), 0 10px 18px rgba(18, 59, 83, 0.12);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.ministry-quiz__answers button img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(18, 59, 83, 0.22);
}

.ministry-quiz__answers button span {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 900;
}

.ministry-quiz__answers button.is-correct img,
.ministry-quiz__answers button.is-wrong img {
  border-color: var(--white);
}

/* Bildelotto får samme lyd- og handlingsfelt som de andre spillene */
.memory-game__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.memory-game__actions [data-memory-sound][aria-pressed="true"] {
  color: var(--white);
  background: var(--fjord);
}

.memory-card__front {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.2), transparent 31%),
    linear-gradient(145deg, #285f80, #342d59 72%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.memory-card:hover .memory-card__face,
.memory-card:focus-visible .memory-card__face {
  filter: saturate(1.12) brightness(1.04);
}

/* Fjæreskatter med mer dybde og tydeligere belønning */
.shore-stone {
  perspective: 360px;
}

.shore-stone::before {
  transform-origin: 18% 82%;
}

.shore-stone.is-open::before {
  transform: translate(-34px, -38px) rotate(-19deg) rotateX(11deg) scale(1.03);
  box-shadow: inset 8px 9px 14px rgba(255, 255, 255, 0.18), 0 21px 26px rgba(18, 59, 83, 0.32);
}

.shore-stone__discovery {
  width: 62px;
  height: 62px;
  border: 3px solid rgba(255, 255, 255, 0.98);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.96), transparent 28%),
    linear-gradient(145deg, #fff4b3, #ffc95f 64%, #e88454);
  box-shadow: 0 0 0 5px rgba(246, 196, 83, 0.38), 0 11px 22px rgba(18, 59, 83, 0.3);
  font-size: 2.15rem;
  filter: saturate(1.14);
}

.shore-game__target b {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at 32% 24%, #fffdf0, transparent 30%),
    linear-gradient(145deg, #ffe99b, #f6b34c);
  box-shadow: 0 4px 9px rgba(18, 59, 83, 0.19);
  filter: saturate(1.12);
}

.shore-game__target.is-found b {
  background: rgba(255, 255, 255, 0.2);
}

/* Ny, generert 3D-oppdagelsesbøtte */
.crab-game__bucket {
  background:
    radial-gradient(circle at 50% 19%, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(180deg, #fff8dd, #ffefbd 62%, #f7d989);
}

.crab-game__pail {
  width: 244px;
  height: 244px;
  margin: 28px auto 18px;
  padding: 0;
  overflow: visible;
  clip-path: none;
  background: url("../images/generated/games/oppdagelsesbotte-v01-sm.jpg") center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 16px 18px rgba(18, 59, 83, 0.23)) saturate(1.08);
}

.crab-game__pail::before,
.crab-game__handle,
.crab-game__pail > strong {
  display: none;
}

.crab-game__collection {
  position: absolute;
  z-index: 4;
  top: 19%;
  left: 50%;
  width: 66%;
  height: 35%;
  align-content: center;
  transform: translateX(-50%);
}

.crab-game__catch {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 5px 3px rgba(18, 59, 83, 0.3)) saturate(1.12);
}

.crab-game__overlay-icon[data-crab-overlay-icon="crab"] {
  width: 122px;
  height: 82px;
  display: block;
  background: url("../images/generated/games/strandkrabbe-terrakotta-v01.png?v=2") center / contain no-repeat;
  filter: drop-shadow(0 10px 9px rgba(18, 59, 83, 0.28)) saturate(1.1);
}

.crab-game__overlay-icon[data-crab-overlay-icon="symbol"] {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe174, #f28a58);
  box-shadow: 0 10px 22px rgba(18, 59, 83, 0.25);
}

/* Kunnskapsspillene får mer kortdybde og tydelige valg */
.commandment-quiz__card,
.ministry-quiz__card {
  background:
    radial-gradient(circle at 92% 7%, rgba(246, 196, 83, 0.22), transparent 23%),
    linear-gradient(145deg, #fffdf5, #fff7e7);
  box-shadow: 0 0 0 3px rgba(17, 106, 141, 0.1), 0 22px 42px rgba(18, 59, 83, 0.18);
}

.commandment-quiz__answers button {
  box-shadow: 0 5px 0 rgba(18, 59, 83, 0.1), 0 9px 16px rgba(18, 59, 83, 0.08);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.commandment-quiz__answers button:not(:disabled):hover,
.commandment-quiz__answers button:not(:disabled):focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(18, 59, 83, 0.11), 0 13px 20px rgba(18, 59, 83, 0.11);
}

@media (max-width: 760px) {
  .sacrament-tabs button {
    min-height: 138px;
  }

  .sacrament-tabs button > img {
    height: 64px;
  }

  .memory-game__toolbar,
  .memory-game__actions {
    align-items: stretch;
  }

  .memory-game__actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memory-game__actions .button {
    width: 100%;
  }

  .ministry-quiz__answers button {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 68px;
  }

  .ministry-quiz__answers button img {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 560px) {
  .ministry-quiz__answers {
    grid-template-columns: 1fr;
  }

  .crab-game__pail {
    width: min(244px, 82vw);
    height: min(244px, 82vw);
  }

  .shore-stone__discovery {
    width: 54px;
    height: 54px;
    font-size: 1.8rem;
  }
}

/* Felles, varm avslutning for lekene */
.game-finish-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 18px;
  padding: clamp(20px, 3vw, 34px);
  border: 4px solid #123d54;
  border-radius: 30px;
  color: #123d54;
  background:
    radial-gradient(circle at 92% 10%, rgba(255,255,255,.72) 0 10%, transparent 10.5%),
    linear-gradient(135deg, #fff5b8 0%, #ffe06a 42%, #bdf1e8 100%);
  box-shadow: 0 10px 0 rgba(18,61,84,.16), 0 22px 38px rgba(18,61,84,.14);
}

.game-finish-card[hidden] { display: none !important; }
.game-finish-card__lead { position: relative; z-index: 2; display: flex; gap: 16px; align-items: flex-start; }
.game-finish-card__lead > span,
.jigsaw-complete-panel__copy > span { display: grid; flex: 0 0 auto; width: 54px; height: 54px; place-items: center; border: 3px solid #123d54; border-radius: 50%; background: #fff; font-size: 1.65rem; box-shadow: 0 5px 0 rgba(18,61,84,.18); }
.game-finish-card__lead small { display: block; margin-bottom: 2px; color: #557382; font-size: .74rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.game-finish-card__lead h4 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.35rem); }
.game-finish-card__lead p { max-width: 760px; margin: 7px 0 0; font-weight: 760; }
.game-finish-card__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.game-finish-card__stars { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.game-finish-card__stars i { position: absolute; top: -20%; color: #fff; font-size: clamp(1rem, 2vw, 1.55rem); font-style: normal; text-shadow: 0 2px 0 rgba(18,61,84,.2); animation: game-finish-star 1650ms ease-in forwards; }
.game-finish-card__stars i:nth-child(1) { left: 9%; animation-delay: 80ms; }
.game-finish-card__stars i:nth-child(2) { left: 29%; animation-delay: 320ms; }
.game-finish-card__stars i:nth-child(3) { left: 51%; animation-delay: 160ms; }
.game-finish-card__stars i:nth-child(4) { left: 73%; animation-delay: 440ms; }
.game-finish-card__stars i:nth-child(5) { left: 92%; animation-delay: 250ms; }

@keyframes game-finish-star {
  0% { opacity: 0; transform: translateY(-10px) rotate(0deg) scale(.7); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(260px) rotate(250deg) scale(1.15); }
}

html[data-calm="true"] .game-finish-card__stars { display: none; }

/* Bryggefiskeren v3 */
.fishing-game--v2 .fishing-game__line { display: none; }
.fishing-game__line-art { position: absolute; z-index: 8; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fishing-game__line-art line { opacity: 0; stroke: rgba(248,248,232,.98); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 2px 1px rgba(8,45,61,.62)); transition: opacity 180ms ease; }
.fishing-game__stage.is-cast .fishing-game__line-art line,
.fishing-game__stage.is-waiting .fishing-game__line-art line,
.fishing-game__stage.is-biting .fishing-game__line-art line,
.fishing-game__stage.is-reeling .fishing-game__line-art line,
.fishing-game__stage.is-caught .fishing-game__line-art line { opacity: 1; }
.fishing-game--v2 .fishing-game__rod { display: none; }
.fishing-game--v2 .fishing-game__hook {
  right: auto;
  left: calc(47.8% - 18px);
  width: 36px;
  height: 47px;
  color: transparent;
  font-size: 0;
  text-shadow: none;
  filter: drop-shadow(0 4px 3px rgba(3,55,75,.45));
}
.fishing-game--v2 .fishing-game__hook svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fishing-game--v2 .fishing-bobber {
  right: auto;
  left: calc(47.8% - 39px);
}
.fishing-bobber img { display: block; width: 68%; height: 68%; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(3,55,75,.34)); }
.fishing-game.has-bobber-art .fishing-bobber [data-fishing-bobber-fallback] { display: none; }

.fish-art { position: relative; display: grid; width: 100%; height: 100%; place-items: center; }
.fish-art img,
.fish-art svg { grid-area: 1 / 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.fish-art img { opacity: 0; filter: drop-shadow(0 8px 6px rgba(4,52,70,.3)); }
.fish-art.has-generated-art img { opacity: 1; }
.fish-art.has-generated-art svg { visibility: hidden; }
.fishing-game__stage .fishing-game__fish,
.fishing-game__stage .fish-art,
.fishing-game__stage .fish-art img {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.fishing-game--v2 .fishing-game__fish { width: clamp(112px, 15vw, 205px); height: clamp(74px, 10vw, 132px); }

.fishing-game__controls { align-items: center; }
.fishing-game__mode { display: inline-flex; gap: 5px; padding: 4px; border: 2px solid #b9dce1; border-radius: 16px; background: rgba(255,255,255,.88); }
.fishing-game__mode button { min-height: 40px; border: 0; border-radius: 11px; box-shadow: none; }
.fishing-game__mode button[aria-pressed="true"] { color: #fff; background: #123d54; box-shadow: 0 3px 0 #072f43; }
.fishing-game__mode button:hover { border-color: transparent; }

.fishing-game__jerk { position: absolute; z-index: 18; left: 50%; top: 50%; width: max-content; max-width: 80%; padding: 12px 18px; border: 4px solid #fff; border-radius: 18px; color: #fff; background: #ed4f4d; box-shadow: 5px 6px 0 #123d54; font-weight: 950; transform: translate(-50%, -50%) rotate(-2deg); animation: fishing-jerk-alert 420ms ease-in-out infinite alternate; }
.fishing-game__jerk[hidden] { display: none; }
.fishing-game__stage.is-jerking .fishing-game__fish { animation: fishing-fish-jerk 220ms ease-in-out infinite alternate; }

@keyframes fishing-jerk-alert { to { transform: translate(-50%, -50%) rotate(2deg) scale(1.04); } }
@keyframes fishing-fish-jerk { to { margin-left: 18px; transform: translate(-50%, -50%) rotate(-9deg) scale(.98); } }

.fishing-game__timing { overflow: hidden; }
.fishing-game__timing em { display: none; position: absolute; inset: 4px auto 4px var(--target-start, 40%); width: var(--target-width, 20%); border: 2px solid rgba(255,255,255,.95); border-radius: 999px; background: #ffd94e; box-shadow: 0 0 0 3px rgba(255,217,78,.24); }
.fishing-game__reel.is-big-mode { background: #edfaff; }
.fishing-game__reel.is-big-mode .fishing-game__timing em { display: block; }
.fishing-game__reel.is-big-mode .fishing-game__timing b { display: none; }
.fishing-game__reel.is-big-mode .fishing-game__timing span { z-index: 2; width: 21px; height: 21px; background: #ed4f4d; transition: none; }
.fishing-game__reel.is-big-mode .fishing-game__reel-button { color: #fff; background: #0d7894; }
.fishing-game__reel.is-big-mode .fishing-game__reel-button { min-height: 62px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.fishing-game__reel.is-big-mode .fishing-game__reel-button.is-holding { color: #123d54; background: #ffd94e; box-shadow: 0 0 0 5px rgba(255,217,78,.28), 0 6px 0 #b77619; transform: translateY(1px); }

.fishing-game__catch { grid-template-columns: repeat(5, minmax(58px, 1fr)); }
.fishing-game__catch article { display: grid; min-height: 78px; padding: 6px; place-items: center; border: 2px solid rgba(18,61,84,.14); border-radius: 14px; color: #6b8490; background: rgba(255,255,255,.7); font-size: 1.3rem; font-weight: 950; }
.fishing-game__catch article.is-filled { color: #123d54; border-color: #fff; background: #fff; box-shadow: 0 4px 0 rgba(18,61,84,.14); animation: fishing-catch-in 440ms cubic-bezier(.2,.9,.3,1.35); }
.fishing-game__catch article .fish-art { width: 74px; height: 44px; }
.fishing-game__catch article strong { display: block; margin-top: 2px; font-size: .7rem; }

.fishing-catch-card { display: grid; grid-template-columns: minmax(190px, 280px) minmax(0, 1fr); gap: clamp(18px, 3vw, 30px); align-items: center; margin-top: 18px; padding: clamp(18px, 3vw, 28px); border: 4px solid #123d54; border-radius: 28px; color: #123d54; background: linear-gradient(130deg, #fff 0 56%, #fff1ae 56% 100%); box-shadow: 0 9px 0 rgba(18,61,84,.15); }
.fishing-catch-card[hidden] { display: none; }
.fishing-catch-card__art { display: grid; min-height: 160px; padding: 14px; place-items: center; border-radius: 22px; background: radial-gradient(circle at 50% 45%, #d9fbf6, #7bdce0); box-shadow: inset 0 0 0 3px rgba(255,255,255,.74); }
.fishing-catch-card__art .fish-art { width: min(100%, 250px); height: 138px; }
.fishing-catch-card h4 { margin: 4px 0 8px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.fishing-catch-card p { margin: 0; font-size: 1.05rem; font-weight: 760; }

.fishing-game__summary { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.fishing-summary-card { display: grid; grid-template-columns: 86px 1fr; gap: 10px; align-items: center; min-width: 0; padding: 11px; border: 2px solid rgba(18,61,84,.16); border-radius: 18px; background: rgba(255,255,255,.83); }
.fishing-summary-card .fish-art { width: 82px; height: 54px; }
.fishing-summary-card strong { font-size: 1rem; }
.fishing-summary-card p { margin: 3px 0 0; color: #365c6d; font-size: .78rem; line-height: 1.35; }

.jigsaw-complete-panel.game-finish-card { display: block; border-width: 3px; }
.jigsaw-complete-panel.game-finish-card[hidden] { display: none; }
.jigsaw-complete-panel.game-finish-card .jigsaw-complete-panel__copy,
.jigsaw-complete-panel.game-finish-card .jigsaw-complete-panel__episode,
.jigsaw-complete-panel.game-finish-card .jigsaw-complete-panel__actions,
.jigsaw-complete-panel.game-finish-card .jigsaw-story-player { position: relative; z-index: 2; }

@media (max-width: 760px) {
  .game-finish-card__actions { display: grid; }
  .game-finish-card__actions .button { width: 100%; }
  .fishing-game__mode { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  .fishing-game__controls > button { flex: 1 1 45%; }
  .fishing-catch-card { grid-template-columns: 1fr; }
  .fishing-catch-card__art { min-height: 130px; }
  .fishing-game__catch { grid-template-columns: repeat(5, 1fr); }
  .fishing-game__catch article { min-height: 62px; padding: 3px; }
  .fishing-game__catch article .fish-art { width: 52px; height: 34px; }
  .fishing-game__catch article strong { font-size: .58rem; }
  .fishing-summary-card { grid-template-columns: 68px 1fr; }
  .fishing-summary-card .fish-art { width: 66px; height: 46px; }
  .fishing-game__rod-image { width: 42%; }
  .fishing-game__scene--maram { object-position: 72% center; }
}

@media (max-width: 560px) {
  .fishing-game__summary { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .game-finish-card__stars { display: none; }
  .fishing-game__jerk,
  .fishing-game__stage.is-jerking .fishing-game__fish { animation: none; }
}

/* Maram-bakeriet: faktakilder og ekte A4-oppskrift */
.baking-print-button { color: #123d54; border-color: #123d54; background: #fff; }
.baking-print-button:hover { color: #fff; background: #123d54; }
.baking-fact-sources { margin-top: 14px; padding: 12px 16px; border: 2px solid rgba(18,61,84,.16); border-radius: 16px; color: #365c6d; background: rgba(255,255,255,.7); font-size: .83rem; }
.baking-fact-sources summary { color: #123d54; font-weight: 900; cursor: pointer; }
.baking-fact-sources p { margin: 10px 0 0; max-width: 980px; }
.baking-fact-sources a { color: #0b6f8d; font-weight: 850; }
.baking-print-sheet { display: none; }

@media print {
  @page { size: A4 portrait; margin: 11mm; }

  html,
  body { width: 100%; min-height: 0; margin: 0; color: #123d54; background: #fff !important; }
  body.is-printing-baking-recipe > :not(.baking-print-sheet) { display: none !important; }
  body.is-printing-baking-recipe .baking-print-sheet {
    display: block !important;
    box-sizing: border-box;
    width: 100%;
    min-height: 274mm;
    padding: 10mm;
    border: 2.5mm solid #123d54;
    border-radius: 7mm;
    color: #123d54;
    background: linear-gradient(150deg, #fff 0 70%, #eef9f6 70% 100%) !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .baking-print-sheet * { box-sizing: border-box; }
  .baking-print-sheet__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 5mm; border-bottom: 1mm solid #f5c44f; }
  .baking-print-sheet__brand { display: flex; align-items: center; gap: 3mm; font-size: 17pt; font-weight: 950; }
  .baking-print-sheet__brand img { width: 17mm; height: 17mm; object-fit: cover; border-radius: 50%; }
  .baking-print-sheet__brand span { display: grid; line-height: 1.05; }
  .baking-print-sheet__brand small { margin-top: 1.5mm; color: #557382; font-size: 8pt; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
  .baking-print-sheet__mark { display: grid; width: 18mm; height: 18mm; place-items: center; border-radius: 50%; background: #f5c44f !important; font-size: 28pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .baking-print-sheet__title { padding: 8mm 0 6mm; }
  .baking-print-sheet__title > span { display: inline-block; padding: 2mm 4mm; border-radius: 99mm; background: #f5c44f !important; font-size: 8pt; font-weight: 950; letter-spacing: .07em; text-transform: uppercase; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .baking-print-sheet__title h2 { margin: 3mm 0 1.5mm; font-size: 30pt; line-height: 1.05; }
  .baking-print-sheet__title p { margin: 0; color: #557382; font-size: 11pt; font-weight: 750; }
  .baking-print-sheet__columns { display: grid; grid-template-columns: .85fr 1.25fr; gap: 8mm; }
  .baking-print-sheet__columns > section { padding: 6mm; border: .7mm solid #c9e3e5; border-radius: 5mm; background: rgba(255,255,255,.9) !important; break-inside: avoid; }
  .baking-print-sheet__columns h2 { margin: 0 0 4mm; font-size: 16pt; }
  .baking-print-sheet ul,
  .baking-print-sheet ol { margin: 0; padding-left: 6mm; font-size: 10.5pt; line-height: 1.38; }
  .baking-print-sheet li + li { margin-top: 2.5mm; }
  .baking-print-sheet__oven { display: grid; gap: 1mm; margin-top: 6mm; padding: 4mm; border-radius: 4mm; background: #fff3c7 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .baking-print-sheet__oven strong { font-size: 9pt; text-transform: uppercase; }
  .baking-print-sheet__oven span { font-size: 10pt; font-weight: 800; }
  .baking-print-sheet aside { display: flex; align-items: center; gap: 4mm; margin-top: 7mm; padding: 5mm 6mm; border-radius: 5mm; color: #fff; background: #0d7894 !important; font-size: 14pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .baking-print-sheet aside span { font-size: 25pt; }
  .baking-print-sheet footer { display: flex; justify-content: space-between; margin-top: 7mm; padding-top: 3mm; border-top: .5mm solid #c9e3e5; color: #557382; font-size: 8pt; font-weight: 800; }
}

/* Maram-spilleren følger historien mellom sidene */
.maram-player {
  position: fixed;
  z-index: 20000;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(760px, calc(100vw - 28px));
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 24px;
  color: #fff;
  background: #123d54;
  box-shadow: 0 10px 0 rgba(7, 47, 67, .18), 0 24px 54px rgba(7, 47, 67, .34);
}

.maram-player[hidden] { display: none !important; }
html.has-maram-player body { padding-bottom: 120px; }
html.has-maram-player.maram-player-expanded body { padding-bottom: 300px; }
.maram-player__top { display: flex; gap: 12px; align-items: center; min-height: 82px; padding: 11px 13px; }
.maram-player__mark { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: #123d54; background: #f6c453; box-shadow: inset 0 0 0 3px rgba(255,255,255,.7); font-size: 1.45rem; }
.maram-player__now { display: grid; min-width: 0; margin-right: auto; }
.maram-player__now small { color: #bdebf0; font-size: .68rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.maram-player__now strong { overflow: hidden; color: #fff; font-size: 1rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.maram-player__now span { color: #d7eef0; font-size: .74rem; font-weight: 720; }
.maram-player__actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.maram-player__actions button,
.maram-player__actions a { min-height: 38px; padding: 8px 11px; border: 2px solid rgba(255,255,255,.72); border-radius: 999px; color: #fff; background: rgba(255,255,255,.1); box-shadow: none; font: inherit; font-size: .72rem; font-weight: 900; line-height: 1; text-decoration: none; cursor: pointer; }
.maram-player__actions button:hover,
.maram-player__actions button:focus-visible,
.maram-player__actions a:hover,
.maram-player__actions a:focus-visible { color: #123d54; background: #f6c453; outline: 3px solid #fff; outline-offset: 2px; }
.maram-player__body { display: grid; grid-template-columns: minmax(230px, 360px) 1fr; gap: 14px; align-items: center; max-height: 260px; padding: 0 13px 13px; opacity: 1; transition: max-height 180ms ease, opacity 140ms ease, padding 180ms ease; }
.maram-player__frame { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: #071f2b; }
.maram-player__frame iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: auto; }
.maram-player__frame:focus-within { outline: 3px solid #f6c453; outline-offset: 3px; }
.maram-player__body p { margin: 0; color: #d7eef0; font-size: .85rem; font-weight: 760; }
.maram-player[data-expanded="false"] .maram-player__body { visibility: hidden; max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.maram-player--audio .maram-player__frame { aspect-ratio: auto; background: linear-gradient(135deg, #0a2634, #0e536d); }
.maram-player__audio-card { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 92px; padding: 8px; }
.maram-player__audio-card img { display: block; width: 106px; height: 76px; border: 2px solid rgba(255,255,255,.82); border-radius: 10px; object-fit: cover; }
.maram-player__audio { display: block; width: 100%; min-width: 0; height: 48px; color-scheme: dark; }

.player-persistent-note { display: grid; min-height: 100%; padding: clamp(24px, 5vw, 52px); place-items: center; align-content: center; text-align: center; background: linear-gradient(145deg, rgba(12,80,108,.94), rgba(18,61,84,.98)), url("../images/generated/mamma-leser-for-barna-v02-sm.jpg") center / cover; background-image: linear-gradient(145deg, rgba(12,80,108,.94), rgba(18,61,84,.98)), image-set(url("../images/generated/mamma-leser-for-barna-v02-sm.webp") type("image/webp"), url("../images/generated/mamma-leser-for-barna-v02-sm.jpg") type("image/jpeg")); background-position: center; background-size: cover; }
.player-persistent-note__icon { display: grid; width: 70px; height: 70px; margin: 0 auto 12px; place-items: center; border: 4px solid #fff; border-radius: 50%; color: #123d54; background: #f6c453; font-size: 2rem; }
.player-persistent-note h2 { margin: 0; color: #fff; font-size: clamp(1.55rem, 4vw, 2.45rem); }
.player-persistent-note p { max-width: 580px; margin: 10px auto 0; color: #e6f5f4; font-weight: 760; }
.player-persistent-note .button { margin-top: 18px; }

@media (max-width: 720px) {
  html.has-maram-player body { padding-bottom: 155px; }
  html.has-maram-player.maram-player-expanded body { padding-bottom: 390px; }
  .maram-player { right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100vw - 16px); border-radius: 19px; }
  .maram-player__top { display: grid; grid-template-columns: 42px minmax(0, 1fr); min-height: 72px; padding: 9px 10px; }
  .maram-player__mark { width: 42px; height: 42px; }
  .maram-player__actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .maram-player__actions button,
  .maram-player__actions a { display: grid; min-height: 42px; padding: 7px 5px; place-items: center; text-align: center; }
  .maram-player__body { grid-template-columns: 1fr; gap: 8px; max-height: 420px; }
  .maram-player__body p { display: none; }
  .maram-player__audio-card { grid-template-columns: 84px minmax(0, 1fr); min-height: 82px; }
  .maram-player__audio-card img { width: 84px; height: 64px; }
}

html[data-calm="true"] .maram-player__body { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .maram-player__body { transition: none; }
}

@media print {
  .maram-player { display: none !important; }
}

/* Rosenkransverkstedet: ekte deler, filtmassasje og felles avslutning */
.rosary-image-fallback[hidden] { display: none !important; }

.rosary-style-cross {
  position: relative;
  display: grid;
  width: 34px;
  height: 44px;
  flex: 0 0 34px;
  place-items: center;
  color: currentColor;
}

.rosary-style-cross img,
.rosary-style-medal img,
.rosary-token__cross img,
.rosary-token__medal img,
.rosary-cross-shape img,
.rosary-medal-shape img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 3px 3px rgba(9, 46, 64, 0.3));
}

.rosary-style-cross .rosary-image-fallback,
.rosary-token__cross .rosary-image-fallback,
.rosary-cross-shape .rosary-image-fallback {
  font-size: 2.4rem;
  font-weight: 950;
  line-height: 1;
}

.rosary-style-medal {
  display: grid;
  width: 31px;
  height: 38px;
  flex: 0 0 31px;
  padding: 0;
  place-items: center;
  color: currentColor;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rosary-style-medal .rosary-image-fallback,
.rosary-token__medal .rosary-image-fallback,
.rosary-medal-shape .rosary-image-fallback {
  font-size: 1.5rem;
  font-weight: 950;
}

[data-rosary-style-kind="medal"][data-rosary-style="gold"] img,
:is(.rosary-game, .rosary-print-sheet)[data-rosary-medal="gold"] :is(.rosary-token__medal, .rosary-medal-shape) img {
  filter: sepia(0.84) saturate(1.6) hue-rotate(350deg) brightness(1.04) drop-shadow(0 3px 3px rgba(82, 53, 15, 0.28));
}

[data-rosary-style-kind="medal"][data-rosary-style="wood"] img,
:is(.rosary-game, .rosary-print-sheet)[data-rosary-medal="wood"] :is(.rosary-token__medal, .rosary-medal-shape) img {
  filter: sepia(0.9) saturate(1.35) hue-rotate(335deg) brightness(0.77) drop-shadow(0 3px 3px rgba(69, 42, 20, 0.32));
}

.rosary-token__cross {
  position: relative;
  display: grid;
  width: 50px;
  height: 64px;
  place-items: center;
  color: #875028;
  font-size: 2.8rem;
  line-height: 1;
}

.rosary-token__medal {
  position: relative;
  display: grid;
  width: 48px;
  height: 58px;
  padding: 0;
  place-items: center;
  color: #f6e2a5;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

.rosary-cross-shape,
.rosary-medal-shape {
  position: absolute;
  inset: -4px;
  display: grid;
  padding: 0;
  place-items: center;
  color: #f6e2a5;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

.rosary-cross-shape::before,
.rosary-cross-shape::after,
.rosary-cross-corpus { display: none !important; }

.rosary-slot--small,
.rosary-slot--large {
  border: 0;
  background:
    radial-gradient(circle at 48% 46%, rgba(10, 54, 62, 0.12) 0 50%, rgba(4, 38, 48, 0.42) 62% 70%, rgba(255, 255, 255, 0.16) 73%, transparent 77%);
  box-shadow: inset 2px 2px 4px rgba(4, 38, 48, 0.46), inset -1px -1px 2px rgba(255, 255, 255, 0.2);
  opacity: 0.56;
}

.rosary-slot--small.is-filled,
.rosary-slot--large.is-filled {
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 3px 3px 5px rgba(255, 255, 255, 0.48),
    inset -4px -5px 7px rgba(9, 42, 57, 0.36),
    0 3px 6px rgba(7, 43, 58, 0.36),
    0 0 8px color-mix(in srgb, var(--rosary-small-light) 28%, transparent);
}

.rosary-slot--small.is-filled {
  background:
    radial-gradient(circle at 27% 22%, rgba(255, 255, 255, 0.96) 0 7%, rgba(255, 255, 255, 0.5) 8% 15%, transparent 17%),
    radial-gradient(circle at 34% 30%, var(--rosary-small-light) 0 10%, var(--rosary-small-mid) 43%, var(--rosary-small-dark) 88%);
}

.rosary-slot--large.is-filled {
  background:
    radial-gradient(circle at 27% 22%, rgba(255, 255, 255, 0.96) 0 8%, rgba(255, 255, 255, 0.48) 9% 17%, transparent 19%),
    radial-gradient(circle at 34% 30%, var(--rosary-large-light) 0 10%, var(--rosary-large-mid) 43%, var(--rosary-large-dark) 88%);
  box-shadow:
    inset 3px 3px 6px rgba(255, 255, 255, 0.5),
    inset -5px -6px 8px rgba(9, 42, 57, 0.36),
    0 4px 8px rgba(7, 43, 58, 0.4),
    0 0 10px color-mix(in srgb, var(--rosary-large-light) 30%, transparent);
}

.rosary-slot--cross,
.rosary-slot--medal {
  border: 0;
  background: radial-gradient(ellipse at center, rgba(5, 45, 54, 0.32), rgba(255, 255, 255, 0.08) 64%, transparent 70%);
  box-shadow: inset 3px 3px 7px rgba(4, 35, 44, 0.5), inset -2px -2px 3px rgba(255, 255, 255, 0.18);
  opacity: 0.54;
}

.rosary-slot--cross.is-filled,
.rosary-slot--medal.is-filled {
  background: transparent;
  box-shadow: none;
}

.rosary-slot--cross:not(.is-filled) .rosary-cross-shape,
.rosary-slot--medal:not(.is-filled) .rosary-medal-shape { opacity: 0; }

.rosary-finish-preview {
  position: relative;
  width: min(100%, 760px);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin: clamp(16px, 3vw, 26px) auto;
  border: 7px solid rgba(255, 255, 255, 0.96);
  border-radius: 30px;
  background:
    radial-gradient(circle at 22% 17%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(145deg, #2f8c8d, #0e5b6d 58%, #0a4155);
  box-shadow: inset 0 0 42px rgba(5, 39, 48, 0.33), 0 18px 38px rgba(18, 59, 83, 0.22);
}

.rosary-finish-preview::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.7px, transparent 0.7px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}

.rosary-finish-preview .rosary-cord,
.rosary-finish-preview .rosary-board { z-index: 2; }

/* Keep the finished crucifix fully inside the felt mat at every width. */
.rosary-finish-preview .rosary-slot--cross {
  width: clamp(30px, 4.4vw, 48px);
  height: clamp(44px, 6vw, 66px);
}

.rosary-finish-fact { width: min(100%, 760px); margin-inline: auto; }
.rosary-print-button { color: #123d54; border-color: #123d54; background: #fff; }
.rosary-print-button:hover { color: #fff; background: #123d54; }
.rosary-print-sheet { display: none; }

@media (max-width: 620px) {
  .rosary-style-cross { width: 31px; height: 40px; flex-basis: 31px; }
  .rosary-style-medal { width: 28px; height: 35px; flex-basis: 28px; }
  .rosary-finish-preview { border-width: 4px; border-radius: 20px; }
}

@media print {
  body.is-printing-rosary-guide > :not(.rosary-print-sheet) { display: none !important; }
  body.is-printing-rosary-guide .rosary-print-sheet {
    display: block !important;
    box-sizing: border-box;
    width: 100%;
    min-height: 274mm;
    padding: 9mm;
    border: 2.5mm solid #123d54;
    border-radius: 7mm;
    color: #123d54;
    background: linear-gradient(150deg, #fff 0 72%, #eef9f6 72% 100%) !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .rosary-print-sheet * { box-sizing: border-box; }
  .rosary-print-sheet__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 4mm; border-bottom: 1mm solid #f5c44f; }
  .rosary-print-sheet__brand { display: flex; align-items: center; gap: 3mm; font-size: 17pt; font-weight: 950; }
  .rosary-print-sheet__brand img { width: 16mm; height: 16mm; object-fit: cover; border-radius: 50%; }
  .rosary-print-sheet__brand span { display: grid; line-height: 1.05; }
  .rosary-print-sheet__brand small { margin-top: 1.5mm; color: #557382; font-size: 8pt; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
  .rosary-print-sheet__mark { display: grid; width: 17mm; height: 17mm; place-items: center; border-radius: 50%; background: #f5c44f !important; font-size: 25pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .rosary-print-sheet__title { padding: 6mm 0 4mm; }
  .rosary-print-sheet__title > span { display: inline-block; padding: 1.7mm 3.5mm; border-radius: 99mm; background: #f5c44f !important; font-size: 8pt; font-weight: 950; letter-spacing: .07em; text-transform: uppercase; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .rosary-print-sheet__title h2 { margin: 2.5mm 0 1mm; font-size: 27pt; line-height: 1.05; }
  .rosary-print-sheet__title p { margin: 0; color: #557382; font-size: 10pt; font-weight: 750; }
  .rosary-print-sheet__diagram { position: relative; width: 100%; height: 112mm; overflow: hidden; border: 1.2mm solid #fff; border-radius: 6mm; background: linear-gradient(145deg, #2f8c8d, #0d5b6c 58%, #0a4155) !important; box-shadow: inset 0 0 12mm rgba(4,35,44,.3); print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .rosary-print-sheet__diagram .rosary-cord,
  .rosary-print-sheet__diagram .rosary-board { position: absolute; inset: 0; width: 100%; height: 100%; }
  .rosary-print-sheet__diagram .rosary-cord ellipse,
  .rosary-print-sheet__diagram .rosary-cord path { stroke-width: .9; opacity: .95; }
  .rosary-print-sheet .rosary-slot--small { width: 3mm; height: 3mm; }
  .rosary-print-sheet .rosary-slot--large { width: 4.8mm; height: 4.8mm; }
  .rosary-print-sheet .rosary-slot--cross { width: 12mm; height: 18mm; }
  .rosary-print-sheet .rosary-slot--medal { width: 8mm; height: 10.5mm; }
  .rosary-print-sheet .rosary-slot { opacity: 1; }
  .rosary-print-callout { position: absolute; z-index: 6; display: grid; width: 41mm; padding: 2mm 2.6mm; border: .5mm solid rgba(255,255,255,.86); border-radius: 3mm; color: #123d54; background: rgba(255,255,255,.91) !important; box-shadow: 0 1.5mm 3mm rgba(4,35,44,.22); font-size: 6.8pt; line-height: 1.2; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .rosary-print-callout strong { margin-top: .6mm; font-size: 7.5pt; }
  .rosary-print-callout--cross { bottom: 3mm; left: 4mm; }
  .rosary-print-callout--first { right: 4mm; bottom: 3mm; }
  .rosary-print-callout--three { bottom: 34mm; left: 4mm; }
  .rosary-print-callout--decade { top: 4mm; right: 4mm; }
  .rosary-print-callout--large { top: 4mm; left: 4mm; }
  .rosary-print-sheet__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; margin-top: 4mm; }
  .rosary-print-sheet__steps section { display: grid; grid-template-columns: 10mm 1fr; gap: 3mm; align-items: start; padding: 3mm; border: .6mm solid #c9e3e5; border-radius: 4mm; background: #fff !important; break-inside: avoid; }
  .rosary-print-sheet__steps section > span { display: grid; width: 9mm; height: 9mm; place-items: center; border-radius: 50%; color: #123d54; background: #f5c44f !important; font-size: 11pt; font-weight: 950; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .rosary-print-sheet__steps strong { display: block; font-size: 9pt; }
  .rosary-print-sheet__steps p { margin: 1mm 0 0; font-size: 7.5pt; line-height: 1.28; }
  .rosary-print-sheet aside { display: flex; align-items: center; gap: 4mm; margin-top: 4mm; padding: 3.5mm 5mm; border-radius: 4mm; color: #fff; background: #0d7894 !important; font-size: 12pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .rosary-print-sheet aside span { font-size: 21pt; }
.rosary-print-sheet footer { display: flex; justify-content: space-between; margin-top: 4mm; padding-top: 2.5mm; border-top: .5mm solid #c9e3e5; color: #557382; font-size: 8pt; font-weight: 800; }
}

/* Maria medal: clear and readable while choosing, building and viewing the result. */
.rosary-style-medal {
  width: 42px;
  height: 50px;
  flex-basis: 42px;
  padding: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 249, 210, 0.96), rgba(245, 196, 79, 0.28) 62%, transparent 72%);
  filter: drop-shadow(0 3px 5px rgba(9, 46, 64, 0.28));
}

.rosary-token__medal {
  width: 66px;
  height: 78px;
  padding: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 249, 210, 0.98), rgba(245, 196, 79, 0.25) 62%, transparent 74%) !important;
  filter: drop-shadow(0 5px 8px rgba(9, 46, 64, 0.34));
}

.rosary-slot--medal {
  z-index: 6;
  width: clamp(38px, 4.6vw, 52px);
  height: clamp(46px, 5.6vw, 64px);
}

.rosary-slot--medal.is-filled::before {
  position: absolute;
  inset: -8px;
  z-index: -1;
  pointer-events: none;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 249, 210, 0.9), rgba(245, 196, 79, 0.34) 54%, transparent 73%);
  filter: drop-shadow(0 3px 7px rgba(7, 43, 58, 0.36));
}

.rosary-medal-shape {
  inset: -6px;
  filter: drop-shadow(0 4px 5px rgba(7, 43, 58, 0.36));
}

.rosary-finish-preview .rosary-slot--medal {
  width: clamp(46px, 6.2vw, 68px);
  height: clamp(56px, 7.5vw, 82px);
}

.rosary-slot--cross {
  width: clamp(30px, 4.4vw, 48px);
  height: clamp(43px, 5.7vw, 62px);
}

.rosary-finish-preview .rosary-slot--cross {
  width: clamp(28px, 4vw, 44px);
  height: clamp(41px, 5.3vw, 58px);
}

@media (max-width: 620px) {
  .rosary-style-medal { width: 38px; height: 46px; flex-basis: 38px; }
  .rosary-token__medal { width: 60px; height: 70px; }
  .rosary-slot--medal { width: clamp(32px, 9vw, 42px); height: clamp(39px, 11vw, 52px); }
  .rosary-finish-preview .rosary-slot--medal { width: clamp(39px, 11vw, 52px); height: clamp(48px, 13.5vw, 64px); }
  .rosary-slot--cross { width: clamp(26px, 7vw, 36px); height: clamp(38px, 10vw, 50px); }
}

@media print {
  .rosary-print-sheet .rosary-slot--medal { width: 12mm; height: 14.5mm; }
}

/* Brumesteren ------------------------------------------------------------ */
.bridge-game {
  --bridge-deep: #103f57;
  --bridge-blue: #087ca4;
  --bridge-sky: #51cbe1;
  --bridge-sun: #f8c84e;
  --bridge-coral: #ef735f;
  --bridge-green: #3fa57c;
  margin-top: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(12, 99, 133, 0.16);
  border-radius: clamp(24px, 4vw, 42px);
  color: var(--bridge-deep);
  background:
    radial-gradient(circle at 91% 2%, rgba(248, 200, 78, 0.32), transparent 24%),
    radial-gradient(circle at 4% 90%, rgba(81, 203, 225, 0.25), transparent 25%),
    linear-gradient(145deg, #f8ffff, #dff7f4 54%, #fff5cf);
  box-shadow: 0 24px 48px rgba(18, 61, 84, 0.16);
}

.bridge-game [hidden] { display: none !important; }
.bridge-game__header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; padding: clamp(26px, 5vw, 54px) clamp(22px, 5vw, 58px) 24px; }
.bridge-game__header h3 { margin: 8px 0 7px; font-size: clamp(2rem, 5vw, 4rem); }
.bridge-game__header p { max-width: 720px; margin: 0; font-size: clamp(1rem, 2vw, 1.2rem); }
.bridge-game__sound { white-space: nowrap; }

.bridge-game__route { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0 clamp(22px, 5vw, 58px) 26px; list-style: none; }
.bridge-game__route li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; min-height: 56px; padding: 9px 12px; overflow: hidden; border: 2px solid rgba(12, 99, 133, 0.14); border-radius: 18px; color: #4e7480; background: rgba(255,255,255,.68); transition: transform 220ms ease, color 220ms ease, background 220ms ease; }
.bridge-game__route li::after { position: absolute; right: -18px; bottom: -24px; width: 56px; height: 56px; border-radius: 50%; content: ""; background: rgba(81,203,225,.13); }
.bridge-game__route li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 950; background: #89aeb8; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.bridge-game__route li strong { font-size: .96rem; }
.bridge-game__route li.is-current { color: #fff; border-color: #fff; background: linear-gradient(145deg, var(--bridge-blue), #075676); box-shadow: 0 7px 0 #06445e; transform: translateY(-3px); }
.bridge-game__route li.is-current > span { color: var(--bridge-deep); background: var(--bridge-sun); }
.bridge-game__route li.is-done { color: #155c4a; border-color: rgba(63,165,124,.34); background: #dff6e8; }
.bridge-game__route li.is-done > span { background: var(--bridge-green); }
.bridge-game__route li.is-done > span::before { content: "✓"; }
.bridge-game__route li.is-done > span { font-size: 0; }
.bridge-game__route li.is-done > span::before { font-size: 1rem; }

.bridge-game__play { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: clamp(16px, 3vw, 30px); align-items: stretch; padding: 0 clamp(14px, 3vw, 34px) clamp(18px, 4vw, 42px); }
.bridge-game__stage { position: relative; min-height: 430px; overflow: hidden; border: clamp(5px, .6vw, 8px) solid #fff; border-radius: clamp(22px, 3vw, 34px); isolation: isolate; background: #80d5e7; box-shadow: 0 18px 35px rgba(18,61,84,.23), inset 0 0 0 2px rgba(12,99,133,.15); }
.bridge-game__stage picture { position: absolute; inset: 0; z-index: 0; }
.bridge-game__stage picture img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.015); transition: transform 1.1s cubic-bezier(.19,.8,.25,1), filter .5s ease; }
.bridge-game__stage.is-cleared picture img { transform: scale(1.055) translateY(-.7%); filter: saturate(1.1) brightness(1.04); }
.bridge-game__stage.is-trying picture img { filter: saturate(.86); }
.bridge-game__stage::after { position: absolute; inset: 0; z-index: 1; pointer-events: none; content: ""; background: linear-gradient(180deg, rgba(3,43,61,.08), transparent 44%, rgba(4,34,46,.18)); }
.bridge-game__road-glow { position: absolute; z-index: 2; left: 48%; bottom: 18%; width: 36%; height: 28%; border-radius: 50%; pointer-events: none; opacity: 0; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(255,222,91,.58), transparent 66%); transition: opacity .35s ease; }
.bridge-game__stage.is-cleared .bridge-game__road-glow { opacity: 1; animation: bridge-road-glow 1.5s ease-out; }

.bridge-game__scene-label { position: absolute; z-index: 6; top: clamp(12px, 2.2vw, 24px); left: clamp(12px, 2.2vw, 24px); display: grid; gap: 2px; max-width: min(72%, 470px); padding: 11px 16px; border: 2px solid rgba(255,255,255,.78); border-radius: 17px; color: #fff; background: rgba(11,61,82,.78); box-shadow: 0 10px 25px rgba(5,39,55,.22); backdrop-filter: blur(10px); }
.bridge-game__scene-label small { color: #cceff3; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.bridge-game__scene-label strong { font-size: clamp(1rem, 2vw, 1.28rem); }

.bridge-game__start { position: absolute; inset: 0; z-index: 10; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 28px; text-align: center; color: #fff; background: linear-gradient(145deg, rgba(7,58,81,.72), rgba(6,102,125,.5)); backdrop-filter: blur(5px); }
.bridge-game__start > span { display: grid; place-items: center; width: 82px; height: 82px; border: 5px solid #fff; border-radius: 50%; font-size: 2.7rem; background: var(--bridge-sun); box-shadow: 0 11px 0 rgba(8,63,83,.34); }
.bridge-game__start strong { max-width: 580px; font-size: clamp(1.7rem, 4vw, 3.2rem); line-height: 1.02; }
.bridge-game__start p { margin: 0 0 6px; font-weight: 800; }

.bridge-game__belt,
.bridge-game__speed-sign,
.bridge-game__cyclist,
.bridge-game__wind,
.bridge-game__rain { position: absolute; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .35s ease, transform .5s ease; }
.bridge-game__belt { right: 7%; bottom: 6%; width: 22%; height: 67%; transform: rotate(-12deg) scale(.86); }
.bridge-game__belt::before { position: absolute; inset: 0 43% 0 37%; border-radius: 12px; content: ""; background: linear-gradient(90deg, #111 0 18%, #3b4650 40% 60%, #111 82%); box-shadow: 0 4px 9px rgba(0,0,0,.42); }
.bridge-game__belt i { position: absolute; right: 29%; bottom: 10%; width: 52px; height: 44px; border: 7px solid #dbe5e5; border-radius: 9px; background: #6d7f85; box-shadow: 0 6px 12px rgba(0,0,0,.35); }
.bridge-game__belt i::after { position: absolute; inset: 10px; border-radius: 4px; content: ""; background: var(--bridge-coral); }
.bridge-game__stage[data-event="belt"] .bridge-game__belt { opacity: .94; transform: rotate(-12deg) scale(1); }

.bridge-game__speed-sign { top: 23%; right: 18%; display: grid; place-items: center; width: clamp(64px, 10vw, 112px); aspect-ratio: 1; border-width: clamp(7px, 1vw, 12px); border-style: solid; border-color: #e94343; border-radius: 50%; color: #121820; font-family: Nunito, sans-serif; font-size: clamp(1.5rem, 4vw, 3.2rem); font-weight: 950; line-height: 1; background: #fff; box-shadow: 0 12px 25px rgba(13,44,54,.28); transform: scale(.7) rotate(-8deg); }
.bridge-game__stage[data-event="speed"] .bridge-game__speed-sign { opacity: 1; transform: scale(1) rotate(0); }

.bridge-game__wind { inset: 15% 0 auto; height: 48%; }
.bridge-game__wind i { position: absolute; right: -15%; width: 70%; height: 12%; border-top: 7px solid rgba(222,252,255,.9); border-radius: 50%; filter: drop-shadow(0 4px 3px rgba(7,95,121,.25)); animation: bridge-wind 1.8s ease-in-out infinite; }
.bridge-game__wind i:nth-child(1) { top: 8%; animation-delay: -.5s; }
.bridge-game__wind i:nth-child(2) { top: 39%; right: -4%; width: 58%; animation-delay: -.9s; }
.bridge-game__wind i:nth-child(3) { top: 73%; width: 80%; animation-delay: -1.25s; }
.bridge-game__stage[data-event="wind"] .bridge-game__wind { opacity: 1; }

.bridge-game__cyclist { right: 27%; bottom: 28%; display: grid; place-items: center; width: clamp(74px, 12vw, 130px); aspect-ratio: 1; border: 5px solid rgba(255,255,255,.92); border-radius: 50%; background: rgba(248,200,78,.94); box-shadow: 0 12px 24px rgba(8,50,65,.3); transform: translateY(24px) scale(.72); }
.bridge-game__cyclist b { font-size: clamp(2.1rem, 5vw, 4.2rem); filter: drop-shadow(0 5px 2px rgba(0,0,0,.18)); }
.bridge-game__stage[data-event="cyclist"] .bridge-game__cyclist { opacity: 1; transform: translateY(0) scale(1); }

.bridge-game__rain { inset: 0; background: repeating-linear-gradient(104deg, transparent 0 29px, rgba(220,249,255,.72) 30px 33px, transparent 34px 57px); mix-blend-mode: screen; animation: bridge-rain .7s linear infinite; }
.bridge-game__rain::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(21,105,130,.2), transparent 60%); }
.bridge-game__stage[data-event="rain"] .bridge-game__rain { opacity: .82; }

.bridge-game__panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: clamp(22px, 3vw, 34px); border: 3px solid #fff; border-radius: clamp(22px, 3vw, 30px); background: rgba(255,255,255,.86); box-shadow: 0 15px 30px rgba(18,61,84,.15); backdrop-filter: blur(10px); }
.bridge-game__mission { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.bridge-game__mission-icon { display: grid; place-items: center; width: clamp(58px, 7vw, 78px); aspect-ratio: 1; border: 4px solid #fff; border-radius: 20px; color: var(--bridge-deep); font-size: clamp(1.45rem, 3vw, 2.25rem); font-weight: 950; background: var(--bridge-sun); box-shadow: 0 7px 0 #d6972e; }
.bridge-game__mission small { color: var(--bridge-blue); font-weight: 950; text-transform: uppercase; letter-spacing: .06em; }
.bridge-game__mission h4 { margin: 3px 0 0; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.08; }
.bridge-game__clue { margin: 0; padding: 13px 15px; border-left: 5px solid var(--bridge-sun); border-radius: 0 14px 14px 0; color: #456c78; font-weight: 750; background: #fff7db; }
.bridge-game__options { display: grid; gap: 11px; }
.bridge-game__options button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; min-height: 68px; padding: 10px 13px; border: 3px solid #cce7e8; border-radius: 18px; color: var(--bridge-deep); text-align: left; background: #fff; box-shadow: 0 6px 0 #b9dadd; cursor: pointer; touch-action: manipulation; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.bridge-game__options button:hover { border-color: var(--bridge-sky); transform: translateY(-2px); }
.bridge-game__options button:active { transform: translateY(4px); box-shadow: 0 2px 0 #b9dadd; }
.bridge-game__options button > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; font-size: 1.35rem; background: #e6f8f7; }
.bridge-game__options button strong { font-size: .98rem; line-height: 1.18; }
.bridge-game__options button small { color: #6f9097; font-weight: 850; }
.bridge-game__options button.is-correct { color: #125d48; border-color: #5dc89b; background: #e1f8ec; box-shadow: 0 6px 0 #68b899; }
.bridge-game__options button.is-trying { border-color: #ef9a8c; background: #fff0e8; animation: bridge-nudge .42s ease; }
.bridge-game__options button:disabled { cursor: default; opacity: .74; }
.bridge-game__options button.is-correct:disabled { opacity: 1; }
.bridge-game__feedback { min-height: 3.4em; margin: 0; color: #315d69; font-weight: 850; }
.bridge-game__next { align-self: stretch; margin-top: auto; min-height: 54px; }
.bridge-game__finish { margin: 0 clamp(14px, 3vw, 34px) clamp(18px, 4vw, 42px); }
.bridge-game__finish-body { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: center; margin-top: 20px; }
.bridge-game__finish-body > img { width: 100%; border: 5px solid #fff; border-radius: 22px; box-shadow: 0 12px 25px rgba(18,61,84,.18); }
.bridge-game.is-finished .bridge-game__play { opacity: .48; filter: saturate(.75); }

@keyframes bridge-road-glow { 0% { opacity: 0; transform: translateX(-50%) scale(.35); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) scale(1.5); } }
@keyframes bridge-wind { 0% { transform: translateX(18%) scaleX(.8); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(-100%) scaleX(1.1); opacity: 0; } }
@keyframes bridge-rain { to { background-position: -30px 50px; } }
@keyframes bridge-nudge { 0%,100% { transform: translateX(0); } 35% { transform: translateX(-7px); } 70% { transform: translateX(7px); } }

html[data-calm="true"] .bridge-game *,
html[data-calm="true"] .bridge-game *::before,
html[data-calm="true"] .bridge-game *::after { animation: none !important; transition: none !important; }

@media (max-width: 920px) {
  .bridge-game__play { grid-template-columns: 1fr; }
  .bridge-game__stage { min-height: auto; aspect-ratio: 16 / 9; }
  .bridge-game__panel { min-height: 0; }
  .bridge-game__finish-body { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .bridge-game__header { grid-template-columns: 1fr; gap: 14px; }
  .bridge-game__sound { justify-self: start; }
  .bridge-game__route { gap: 5px; padding-inline: 12px; }
  .bridge-game__route li { grid-template-columns: 1fr; justify-items: center; min-height: 48px; padding: 5px; }
  .bridge-game__route li strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bridge-game__route li > span { width: 31px; height: 31px; }
  .bridge-game__play { padding-inline: 8px; }
  .bridge-game__stage { border-width: 5px; border-radius: 20px; }
  .bridge-game__scene-label { max-width: 78%; padding: 8px 11px; }
  .bridge-game__scene-label small { display: none; }
  .bridge-game__start { padding: 18px; }
  .bridge-game__start > span { width: 58px; height: 58px; border-width: 4px; font-size: 1.9rem; }
  .bridge-game__start p { max-width: 290px; font-size: .9rem; }
  .bridge-game__panel { padding: 19px 15px 22px; }
  .bridge-game__options button { min-height: 64px; }
  .bridge-game__options button small { display: none; }
  .bridge-game__cyclist { right: 21%; bottom: 23%; }
  .bridge-game__speed-sign { top: 19%; right: 12%; }
}

/* Straffespark på Maram --------------------------------------------------- */
.penalty-game {
  --penalty-blue: #0c6385;
  --penalty-deep: #123d54;
  --penalty-sun: #f5c44f;
  --penalty-coral: #ef735f;
  margin-top: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border: 3px solid rgba(18, 61, 84, 0.14);
  border-radius: clamp(22px, 4vw, 38px);
  color: var(--penalty-deep);
  background:
    radial-gradient(circle at 8% 5%, rgba(245, 196, 79, 0.42), transparent 23%),
    radial-gradient(circle at 96% 18%, rgba(124, 209, 196, 0.42), transparent 25%),
    linear-gradient(145deg, #fffaf0, #e6f6f4 58%, #d2eef1);
  box-shadow: 0 24px 54px rgba(18, 61, 84, 0.14);
}

.penalty-game__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 48px) 22px;
}

.penalty-game__header h3 {
  max-width: 760px;
  margin: 8px 0 10px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

.penalty-game__header p { max-width: 720px; margin: 0; font-size: clamp(1rem, 2vw, 1.18rem); }
.penalty-game__sound { white-space: nowrap; }

.penalty-game__path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0 clamp(20px, 4vw, 48px) 22px;
  list-style: none;
}

.penalty-game__path li {
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border: 2px solid rgba(18, 61, 84, 0.12);
  border-radius: 18px;
  color: #527080;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.penalty-game__path li > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #83a3b0;
  font-weight: 950;
}

.penalty-game__path li.is-current {
  transform: translateY(-3px);
  border-color: var(--penalty-blue);
  color: var(--penalty-deep);
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 61, 84, 0.12);
}

.penalty-game__path li.is-current > span { color: var(--penalty-deep); background: var(--penalty-sun); }
.penalty-game__path li.is-done { color: var(--penalty-deep); border-color: rgba(12, 99, 133, 0.35); background: rgba(209, 242, 235, 0.86); }
.penalty-game__path li.is-done > span { background: var(--penalty-blue); }

.penalty-game__lesson {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
  gap: 26px;
  align-items: center;
  padding: 17px clamp(20px, 4vw, 48px);
  color: #fff;
  background: linear-gradient(100deg, var(--penalty-deep), #0c7290);
}

.penalty-game__lesson span { color: #f8d778; font-size: 0.78rem; font-weight: 950; letter-spacing: 0.08em; text-transform: uppercase; }
.penalty-game__lesson h4 { margin: 4px 0 0; color: #fff; font-size: clamp(1.35rem, 3vw, 2rem); }
.penalty-game__lesson p { margin: 0; color: rgba(255, 255, 255, 0.9); font-weight: 750; }

.penalty-game__stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  margin: clamp(18px, 3vw, 30px) clamp(14px, 3vw, 32px) 18px;
  overflow: hidden;
  border: 7px solid #fff;
  border-radius: clamp(19px, 3vw, 31px);
  background: #76a86d;
  box-shadow: 0 18px 32px rgba(13, 64, 83, 0.23), inset 0 0 0 2px rgba(18, 61, 84, 0.12);
  touch-action: manipulation;
}

.penalty-game__stage picture,
.penalty-game__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.penalty-game__scene { z-index: 0; object-fit: cover; }
.penalty-game__stage::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(16, 61, 61, 0.08));
}

.penalty-game__target {
  position: absolute;
  top: 34%;
  z-index: 3;
  width: 19%;
  height: 31%;
  min-width: 60px;
  min-height: 60px;
  padding: 0;
  border: 0;
  border-radius: 46% 46% 36% 36%;
  color: transparent;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.penalty-game__target--left { left: 24%; }
.penalty-game__target--middle { left: 40.5%; }
.penalty-game__target--right { right: 24%; }
.penalty-game__target span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.penalty-game__target::before,
.penalty-game__target::after {
  position: absolute;
  top: 46%;
  left: 50%;
  width: clamp(52px, 8.5vw, 112px);
  height: clamp(52px, 8.5vw, 112px);
  border-radius: 50%;
  pointer-events: none;
  content: "";
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
}

.penalty-game__target::before { border: clamp(5px, 0.7vw, 10px) solid #fff; background: rgba(245, 196, 79, 0.68); box-shadow: 0 0 0 7px var(--penalty-sun), 0 8px 18px rgba(18, 61, 84, 0.3); }
.penalty-game__target::after { width: 20px; height: 20px; background: var(--penalty-deep); box-shadow: 0 0 0 7px #fff; }
.penalty-game__target.is-active::before,
.penalty-game__target.is-active::after { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: penalty-target-pulse 1.6s ease-in-out infinite; }
.penalty-game__target.is-hint::before { opacity: 1; transform: translate(-50%, -50%) scale(1.1); animation: penalty-target-hint 0.8s ease-in-out infinite; }
.penalty-game__target.is-selected { outline: 5px solid rgba(255, 255, 255, 0.92); outline-offset: -7px; background: rgba(75, 188, 148, 0.18); }
.penalty-game__target:focus-visible { outline: 6px solid #fff; outline-offset: -8px; }

.penalty-game__keeper {
  position: absolute;
  bottom: 33%;
  left: 50%;
  z-index: 4;
  width: clamp(82px, 16%, 210px);
  height: 37%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  background: transparent !important;
  filter: drop-shadow(0 7px 6px rgba(7, 37, 43, 0.28));
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  transition: transform 380ms cubic-bezier(.2,.85,.28,1);
  will-change: transform;
}

.penalty-game__keeper-shadow {
  position: absolute;
  bottom: 31.8%;
  left: 50%;
  z-index: 2;
  width: 15%;
  height: 3.6%;
  border-radius: 50%;
  background: rgba(9, 41, 43, 0.32);
  filter: blur(5px);
  transform: translateX(-50%);
  transition: transform 380ms ease;
  will-change: transform, opacity;
}

.penalty-game__stage[data-keeper-lean="left"] .penalty-game__keeper { transform: translateX(-62%) rotate(-12deg); }
.penalty-game__stage[data-keeper-lean="right"] .penalty-game__keeper { transform: translateX(-38%) rotate(12deg); }
.penalty-game__stage[data-keeper-lean="left"] .penalty-game__keeper-shadow { transform: translateX(-66%); }
.penalty-game__stage[data-keeper-lean="right"] .penalty-game__keeper-shadow { transform: translateX(-34%); }

.penalty-game__ball {
  position: absolute;
  top: 80%;
  left: 50%;
  z-index: 7;
  width: clamp(48px, 9vw, 118px);
  aspect-ratio: 1;
  object-fit: contain;
  pointer-events: none;
  background: transparent !important;
  filter: drop-shadow(0 10px 7px rgba(9, 45, 43, 0.35));
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.penalty-game__stage[data-level="1"] .penalty-game__target::before {
  width: clamp(42px, 6.2vw, 78px);
  height: clamp(42px, 6.2vw, 78px);
}

.penalty-game__stage[data-level="1"] .penalty-game__target::after { width: 14px; height: 14px; }

.penalty-game__net-flash { position: absolute; inset: 30% 21% 31%; z-index: 2; pointer-events: none; border-radius: 18px; opacity: 0; background: radial-gradient(circle, rgba(255, 249, 211, 0.86), rgba(245, 196, 79, 0.34) 36%, transparent 68%); }
.penalty-game__net-flash.is-visible { animation: penalty-net 760ms ease-out; }
.penalty-game__celebration { position: absolute; inset: 0; z-index: 8; overflow: hidden; pointer-events: none; }
.penalty-game__celebration i { position: absolute; top: -12%; color: #ffe371; font-style: normal; font-size: clamp(15px, 3vw, 32px); text-shadow: 0 2px 0 #fff; animation: penalty-confetti 1.2s ease-out forwards; }

.penalty-game__controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(20px, 4vw, 48px);
}

.penalty-game__controls button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 12px 18px;
  border: 3px solid #fff;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--penalty-blue), #0a526e);
  box-shadow: 0 7px 0 #073f56, 0 12px 22px rgba(18, 61, 84, 0.18);
  cursor: pointer;
  touch-action: manipulation;
}

.penalty-game__controls button:hover { transform: translateY(-2px); }
.penalty-game__controls button:active { transform: translateY(4px); box-shadow: 0 3px 0 #073f56; }
.penalty-game__controls button:disabled { cursor: wait; opacity: 0.65; }
.penalty-game__controls button > span { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.penalty-game__controls strong { font-size: clamp(1rem, 2vw, 1.2rem); }
.penalty-game__controls small { color: #cdebf0; font-weight: 850; }
.penalty-game__controls button.is-selected {
  transform: translateY(-3px);
  border-color: var(--penalty-sun);
  color: var(--penalty-deep);
  background: linear-gradient(145deg, #fff7d9, var(--penalty-sun));
  box-shadow: 0 8px 0 #b98217, 0 15px 26px rgba(18, 61, 84, 0.24);
}
.penalty-game__controls button.is-selected small { color: #6f5717; }

.penalty-game__power {
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(300px, 1.22fr);
  gap: 15px 24px;
  align-items: center;
  margin: 22px clamp(20px, 4vw, 48px) 0;
  padding: clamp(17px, 3vw, 25px);
  border: 3px solid rgba(12, 99, 133, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(245, 196, 79, 0.38), transparent 34%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 13px 28px rgba(18, 61, 84, 0.13);
}
.penalty-game__power[hidden] { display: none !important; }
.penalty-game__power-copy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; align-items: start; }
.penalty-game__power-step {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--penalty-blue);
  box-shadow: 0 3px 0 #073f56;
  font-size: 1.15rem;
  font-weight: 950;
}
.penalty-game__power-copy small { display: block; color: var(--penalty-blue); font-weight: 950; letter-spacing: .045em; text-transform: uppercase; }
.penalty-game__power-copy strong { display: block; margin-top: 2px; font-size: clamp(1.08rem, 2vw, 1.36rem); }
.penalty-game__power-copy p { margin: 6px 0 0; color: #4b6978; font-size: .94rem; font-weight: 700; line-height: 1.45; }
.penalty-game__power-action { display: grid; grid-template-columns: minmax(190px, 1fr) auto; gap: 13px; align-items: center; }
.penalty-game__power-track {
  position: relative;
  height: 54px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0 9%, rgba(255, 255, 255, .16) 9% 10%),
    linear-gradient(180deg, #123d54, #0c6385);
  box-shadow: inset 0 4px 11px rgba(2, 33, 49, .34), 0 4px 0 rgba(18, 61, 84, .13);
}
.penalty-game__power-zone {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 50%;
  width: 52%;
  border: 3px solid #eaffdd;
  border-radius: 999px;
  background: linear-gradient(180deg, #83e36c, #35ad67);
  box-shadow: 0 0 18px rgba(87, 220, 119, .72), inset 0 2px 5px rgba(255, 255, 255, .45);
  transform: translateX(-50%);
  transition: width 260ms ease;
}
.penalty-game__power-marker {
  position: absolute;
  top: 50%;
  left: 5px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: url("../images/generated/games/fotball/fotball-v01-sm.png") center / contain no-repeat;
  filter: drop-shadow(0 4px 3px rgba(2, 28, 38, .38));
  font-size: 0;
  transform: translateY(-50%);
  animation: penalty-power-sweep 2.35s linear infinite alternate;
  will-change: left;
}
.penalty-game[data-penalty-level="1"] .penalty-game__power-zone { width: 36%; }
.penalty-game[data-penalty-level="1"] .penalty-game__power-marker { animation-duration: 1.75s; }
.penalty-game[data-penalty-level="2"] .penalty-game__power-zone { width: 24%; }
.penalty-game[data-penalty-level="2"] .penalty-game__power-marker { animation-duration: 1.35s; }
.penalty-game__power.is-help .penalty-game__power-zone { width: 68%; }
.penalty-game[data-penalty-level="1"] .penalty-game__power.is-help .penalty-game__power-zone { width: 52%; }
.penalty-game[data-penalty-level="2"] .penalty-game__power.is-help .penalty-game__power-zone { width: 40%; }
.penalty-game__power.is-help .penalty-game__power-marker { animation-duration: 2.45s; }
.penalty-game__kick { min-width: 132px; min-height: 54px; border: 3px solid #fff; font-size: 1.05rem; box-shadow: 0 6px 0 #b98217, 0 9px 18px rgba(18, 61, 84, .16); }
.penalty-game__kick.is-miss { animation: penalty-kick-nudge 380ms ease; }
.penalty-game__kick.is-hit { animation: penalty-kick-hit 380ms ease; }
.penalty-game__power-help { grid-column: 1 / -1; color: #4b6978; font-weight: 850; }
.penalty-game__power.is-help .penalty-game__power-help { color: #18714d; }

.penalty-game__status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px clamp(20px, 4vw, 48px) clamp(28px, 4vw, 44px);
}

.penalty-game__status p { margin: 0; font-weight: 850; }
.penalty-game__skills { display: flex; gap: 7px; }
.penalty-game__skills span { display: block; width: 24px; height: 24px; border: 3px solid #fff; border-radius: 50%; background: #b6ced5; box-shadow: 0 2px 0 rgba(18, 61, 84, 0.15); }
.penalty-game__skills span.is-done { background: var(--penalty-sun); box-shadow: inset 0 0 0 5px #fff, 0 2px 0 rgba(18, 61, 84, 0.15); }

.penalty-game__finish { margin: 0 clamp(14px, 3vw, 32px) clamp(18px, 3vw, 32px); }
.penalty-game__finish-body { display: grid; grid-template-columns: minmax(210px, 0.75fr) minmax(0, 1.25fr); gap: 24px; align-items: center; margin-top: 20px; }
.penalty-game__finish-body > img { width: 100%; border: 5px solid #fff; border-radius: 22px; box-shadow: 0 12px 25px rgba(18, 61, 84, 0.18); }

@keyframes penalty-target-pulse { 0%, 100% { transform: translate(-50%, -50%) scale(0.96); } 50% { transform: translate(-50%, -50%) scale(1.08); } }
@keyframes penalty-target-hint { 0%, 100% { box-shadow: 0 0 0 7px var(--penalty-sun), 0 0 0 10px rgba(255,255,255,.9), 0 8px 18px rgba(18,61,84,.3); } 50% { box-shadow: 0 0 0 12px var(--penalty-sun), 0 0 0 19px rgba(255,255,255,.42), 0 8px 18px rgba(18,61,84,.3); } }
@keyframes penalty-net { 0% { opacity: 0; transform: scale(.5); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes penalty-confetti { 0% { opacity: 0; transform: translateY(0) rotate(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(580px) rotate(390deg); } }
@keyframes penalty-power-sweep { from { left: 5px; } to { left: calc(100% - 47px); } }
@keyframes penalty-kick-nudge { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-5px); } 65% { transform: translateX(5px); } }
@keyframes penalty-kick-hit { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.08); } }

html[data-calm="true"] .penalty-game__target.is-active::before,
html[data-calm="true"] .penalty-game__target.is-active::after,
html[data-calm="true"] .penalty-game__target.is-hint::before,
html[data-calm="true"] .penalty-game__net-flash,
html[data-calm="true"] .penalty-game__celebration { animation: none !important; }
html[data-calm="true"] .penalty-game__power-marker {
  left: 50%;
  animation: none !important;
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
  .penalty-game__power-marker {
    left: 50%;
    animation: none !important;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 760px) {
  .penalty-game__header { grid-template-columns: 1fr; align-items: start; }
  .penalty-game__sound { justify-self: start; }
  .penalty-game__path { gap: 7px; }
  .penalty-game__path li { justify-content: center; min-height: 52px; padding: 7px; }
  .penalty-game__path li strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .penalty-game__lesson { grid-template-columns: 1fr; gap: 7px; }
  .penalty-game__stage { margin-inline: 8px; border-width: 5px; border-radius: 19px; }
  .penalty-game__controls { gap: 7px; padding-inline: 12px; }
  .penalty-game__controls button { grid-template-columns: 1fr; gap: 0; min-height: 70px; padding: 9px 5px; border-radius: 16px; }
  .penalty-game__controls button > span { line-height: 1; }
  .penalty-game__controls small { display: none; }
  .penalty-game__power { grid-template-columns: 1fr; margin-inline: 12px; }
  .penalty-game__power-action { grid-template-columns: minmax(0, 1fr) auto; }
  .penalty-game__status { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .penalty-game__finish-body { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .penalty-game__target { top: 31%; height: 37%; }
  .penalty-game__keeper { bottom: 30%; height: 41%; }
  .penalty-game__keeper-shadow { bottom: 29.2%; }
  .penalty-game__ball { top: 79%; width: clamp(44px, 12vw, 60px); }
  .penalty-game__power { padding: 15px 12px; }
  .penalty-game__power-copy p { font-size: .86rem; }
  .penalty-game__power-action { grid-template-columns: 1fr; }
  .penalty-game__power-track { height: 50px; }
  .penalty-game__kick { width: 100%; }
}

/* Lær med Maram */
.learn-hero .page-hero__image { object-position: center 48%; }
.learn-hub { overflow: hidden; }
.learn-hub__heading { align-items: end; }
.learn-random { flex: 0 0 auto; min-height: 52px; }
.learn-random__status {
  margin: -18px 0 24px;
  color: #476b7b;
  font-weight: 750;
}
.learn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
}
.learn-card {
  min-width: 0;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .92);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 15px 35px rgba(18, 59, 83, .14);
  transition: transform 180ms ease, box-shadow 180ms ease, outline-color 180ms ease;
}
.learn-card:hover,
.learn-card:focus-within { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(18, 59, 83, .2); }
.learn-card.is-suggested {
  outline: 7px solid #ffc84d;
  outline-offset: 5px;
  animation: learn-suggest 760ms ease both;
}
.learn-card__link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, .8fr) minmax(0, 1.2fr);
  min-height: 300px;
  color: #123b53;
  text-decoration: none;
}
.learn-card__link > img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
.learn-card__link > div { padding: clamp(24px, 4vw, 38px); align-self: center; }
.learn-card__link h3 { margin-bottom: 12px; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.learn-card__link p { margin-bottom: 20px; color: #365d70; }
.learn-card__icon {
  position: absolute;
  top: 18px;
  left: calc(44% - 28px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #ffc84d;
  box-shadow: 0 8px 18px rgba(18, 59, 83, .18);
  font-size: 1.45rem;
}
.learn-card__cta { font-family: var(--font-title); font-weight: 850; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.learn-card--water { background: linear-gradient(135deg, #e7fbff, #fff); }
.learn-card--sun { background: linear-gradient(135deg, #fff5c9, #fff); }
.learn-card--berry { background: linear-gradient(135deg, #f9e7f1, #fff); }
.learn-card--sky { background: linear-gradient(135deg, #e8f4ff, #fff); }
.learn-card--green { background: linear-gradient(135deg, #e8f7e4, #fff); }
.learn-card--plum { background: linear-gradient(135deg, #efe1ee, #fff); }
.learn-how { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(30px, 6vw, 80px); align-items: center; }
.learn-how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.learn-how__steps article { padding: 24px 20px; border: 3px solid #d9eef1; border-radius: 24px; background: #fff; box-shadow: 0 10px 24px rgba(18, 59, 83, .09); }
.learn-how__steps span { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%; background: #ffc84d; font-family: var(--font-title); font-size: 1.3rem; font-weight: 900; }
.learn-how__steps h3 { margin-bottom: 8px; }
.learn-how__steps p { margin: 0; color: #476b7b; font-size: .95rem; }

@keyframes learn-suggest { 0% { transform: scale(.97); } 55% { transform: scale(1.02); } 100% { transform: scale(1); } }

@media (max-width: 940px) {
  .learn-grid { grid-template-columns: 1fr; }
  .learn-how { grid-template-columns: 1fr; }
  .learn-card__icon { left: calc(38% - 28px); }
}

@media (max-width: 620px) {
  .learn-hub__heading { align-items: start; }
  .learn-random__status { margin-top: 0; }
  .learn-card__link { grid-template-columns: 1fr; }
  .learn-card__link > img { min-height: 220px; max-height: 260px; }
  .learn-card__icon { top: 192px; left: 24px; }
  .learn-how__steps { grid-template-columns: 1fr; }
}

html[data-calm="true"] .learn-card.is-suggested { animation: none; }

/* Jordet and Rundballehjelpen */
.map-hotspot--field {
  --target-x: 0px;
  --target-y: 0px;
  --leader-length: 0px;
  --leader-angle: 0deg;
  top: 29%;
  left: 57%;
}

.tractor-game {
  margin-top: clamp(26px, 5vw, 52px);
  padding: clamp(18px, 3.5vw, 38px);
  color: var(--fjord-deep);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 207, 73, 0.34), transparent 24%),
    linear-gradient(145deg, #eff8d6, #d5f1ef 55%, #fff3bd);
  border: 3px solid rgba(17, 106, 141, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tractor-game__header,
.tractor-game__dashboard,
.tractor-game__status,
.tractor-game__finish-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tractor-game__header h3 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.tractor-game__header p { max-width: 720px; margin: 0; }
.tractor-game__sound { flex: 0 0 auto; }

.tractor-game__header-actions { display: grid; flex: 0 0 auto; gap: 9px; justify-items: end; }
.tractor-game__mode { display: flex; gap: 7px; padding: 5px; background: rgba(255,253,247,.72); border: 2px solid rgba(17,106,141,.16); border-radius: 999px; }
.tractor-game__mode button { min-height: 42px; padding: 7px 12px; color: var(--fjord-deep); cursor: pointer; background: transparent; border: 0; border-radius: 999px; font-family: var(--font-title); font-weight: 900; touch-action: manipulation; }
.tractor-game__mode button[aria-pressed="true"] { color: var(--white); background: #178562; box-shadow: 0 4px 10px rgba(18,59,83,.2); }
.tractor-game__mode button:disabled { cursor: default; opacity: .65; }

.tractor-game__lesson {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  padding: 14px 18px;
  background: rgba(255, 253, 247, 0.84);
  border: 2px solid rgba(17, 106, 141, 0.14);
  border-radius: 18px;
}

.tractor-game__lesson > span { font-size: 2rem; }
.tractor-game__lesson p { margin: 0; }

.tractor-game__missions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.tractor-game__missions li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 9px 12px;
  background: rgba(255, 253, 247, 0.72);
  border: 2px solid rgba(17, 106, 141, 0.15);
  border-radius: 16px;
  opacity: 0.72;
}

.tractor-game__missions li span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: var(--white);
  border-radius: 50%;
  font-weight: 900;
}

.tractor-game__missions li > div { min-width: 0; }
.tractor-game__missions li strong { display: block; }
.tractor-game__missions li small {
  display: block;
  margin-top: 2px;
  color: #567080;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1.2;
}

.tractor-game__missions li.is-current,
.tractor-game__missions li.is-complete {
  opacity: 1;
  border-color: #178562;
}

.tractor-game__missions li.is-current { color: var(--white); background: #178562; }
.tractor-game__missions li.is-current span { color: #178562; }
.tractor-game__missions li.is-current small { color: rgba(255, 255, 255, .86); }
.tractor-game__missions li.is-complete { background: #d9f4d9; }

.tractor-game__dashboard {
  margin-bottom: 12px;
  padding: 13px 16px;
  background: rgba(18, 59, 83, 0.94);
  border-radius: 18px;
  color: var(--white);
}

.tractor-game__next { min-width: 180px; text-align: center; }
.tractor-game__next strong { max-width: 360px; font-size: .84rem; line-height: 1.25; }

.tractor-game__dashboard small,
.tractor-game__dashboard strong { display: block; }
.tractor-game__dashboard small { color: rgba(255, 255, 255, 0.72); }

.tractor-game__load { text-align: right; }
.tractor-game__load > span { font-weight: 900; }
.tractor-game__load > div { display: flex; justify-content: flex-end; gap: 4px; margin-top: 5px; }
.tractor-game__load img { width: 28px; height: 22px; object-fit: contain; background: transparent; filter: drop-shadow(0 2px 2px rgba(0,0,0,.22)); }

.tractor-game__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  background: #74a84e;
  border: 7px solid var(--white);
  border-radius: 26px;
  box-shadow: 0 16px 35px rgba(18, 59, 83, 0.24);
  overflow: hidden;
  isolation: isolate;
}

.tractor-game__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 54, 67, 0.02), transparent 54%, rgba(15, 54, 67, 0.12));
}

.tractor-game__scene,
.tractor-game__stage picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tractor-game__scene { object-fit: cover; }

.tractor-game__objects { position: absolute; inset: 0; z-index: 4; pointer-events: none; }

.tractor-game__object {
  position: absolute;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease, transform 220ms ease;
}

.tractor-game__object--bale {
  width: clamp(42px, 10%, 96px);
  filter: drop-shadow(0 8px 7px rgba(18, 59, 83, 0.28));
}

.tractor-game__object--bale img { display: block; width: 100%; height: auto; background: transparent; }
.tractor-game__object--bale.is-collected { opacity: 0; transform: translate(-50%, -50%) scale(.35) translateY(-80px); }

.tractor-game__object--obstacle {
  width: clamp(48px, 8%, 74px);
  aspect-ratio: 1;
  background: rgba(255, 253, 247, .9);
  border: 3px solid rgba(18, 59, 83, .72);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(18, 59, 83, .25);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.tractor-game__goal {
  position: absolute;
  top: 25%;
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: var(--fjord-deep);
  background: rgba(255, 253, 247, .9);
  border: 3px solid var(--sun);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(18, 59, 83, .23);
  transform: translate(-50%, -50%);
}

.tractor-game__goal.is-ready { animation: tractor-goal-pulse 1.4s ease-in-out infinite; }

.tractor-game__tractor {
  position: absolute;
  top: 76%;
  left: 50%;
  z-index: 6;
  width: clamp(132px, 27%, 300px);
  height: auto;
  pointer-events: none;
  background: transparent;
  filter: drop-shadow(0 12px 10px rgba(18, 59, 83, .36));
  transform: translate(-50%, -50%);
  transition: top 360ms cubic-bezier(.22,.72,.25,1), left 360ms cubic-bezier(.22,.72,.25,1), transform 220ms ease;
}

.tractor-game__tractor.is-bumping { transform: translate(-50%, -50%) scale(.96) rotate(-2deg); }
.tractor-game__tractor.is-loading { transform: translate(-50%, -50%) scale(1.07); }

.tractor-game__sparkles { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
.tractor-game__sparkles i { position: absolute; color: var(--sun); font-style: normal; animation: tractor-spark .9s ease-out forwards; }

.tractor-game__controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.tractor-game__controls button {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px;
  color: var(--fjord-deep);
  cursor: pointer;
  background: rgba(255, 253, 247, .94);
  border: 3px solid rgba(17, 106, 141, .22);
  border-radius: 17px;
  font-family: var(--font-title);
}

.tractor-game__controls button:hover,
.tractor-game__controls button:focus-visible { background: var(--sun); border-color: var(--sun); transform: translateY(-2px); }
.tractor-game__controls button span { font-size: 1.8rem; line-height: 1; }

.tractor-game__status {
  align-items: flex-start;
  margin-top: 12px;
  padding: 15px 17px;
  background: rgba(255, 253, 247, .82);
  border-radius: 18px;
}

.tractor-game__status p { margin: 0; font-weight: 800; }

.tractor-game__finish { margin-top: 18px; }
.tractor-game__finish-body { align-items: stretch; margin-top: 14px; }
.tractor-game__finish-body > img { width: min(42%, 460px); object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-sm); }
.tractor-game__finish-body > div { flex: 1; }

@keyframes tractor-goal-pulse {
  50% { transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 0 0 12px rgba(255, 207, 73, .22), 0 8px 18px rgba(18,59,83,.23); }
}

@keyframes tractor-spark {
  from { opacity: 1; transform: translate(0, 0) scale(.7); }
  to { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) scale(1.35); }
}

html[data-calm="true"] .tractor-game *,
html[data-calm="true"] .tractor-game *::before,
html[data-calm="true"] .tractor-game *::after { animation: none !important; transition: none !important; }

@media (max-width: 980px) {
  .map-hotspot--field { top: 25%; left: 39%; }
}

@media (max-width: 760px) {
  .map-hotspot--field { top: 25%; left: 39%; }
  .tractor-game__header,
  .tractor-game__dashboard,
  .tractor-game__status,
  .tractor-game__finish-body { align-items: stretch; flex-direction: column; }
  .tractor-game__sound { align-self: flex-start; }
  .tractor-game__load { text-align: left; }
  .tractor-game__load > div { justify-content: flex-start; }
  .tractor-game__stage { min-height: 0; border-width: 5px; }
  .tractor-game__controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tractor-game__finish-body > img { width: 100%; max-height: 300px; }
}

@media (max-width: 480px) {
  .tractor-game { padding: 15px; }
  .tractor-game__missions strong { font-size: .82rem; }
  .tractor-game__missions li { gap: 5px; padding: 7px 5px; }
  .tractor-game__missions li span { width: 25px; height: 25px; }
  .tractor-game__goal strong { display: none; }
  .tractor-game__goal { padding: 5px 8px; }
  .tractor-game__tractor { width: 31%; }
}

/* Rundballehjelpen v2: forward-driving, three-lane farm journey */
.tractor-runner {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  touch-action: pan-y;
  background-color: #6f9b44;
  background-image: url("../images/generated/games/jordet/jordet-spillflate-v01.jpg");
  background-position: 50% 54%;
  background-size: cover;
  border: 7px solid rgba(255, 255, 255, .94);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(18, 59, 83, .2);
  outline: 2px solid rgba(18, 59, 83, .16);
  outline-offset: -2px;
}

.tractor-runner:focus-visible { outline: 5px solid var(--sun); outline-offset: 3px; }
.tractor-runner picture { display: none; }

.tractor-runner__light {
  position: absolute;
  z-index: -3;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 247, 197, .08) 0 28%, transparent 52%),
    linear-gradient(90deg, rgba(10, 54, 48, .07), transparent 25% 75%, rgba(10, 54, 48, .07)),
    linear-gradient(0deg, rgba(13, 48, 32, .24), transparent 34%);
}

.tractor-runner__weather {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  color: var(--fjord-deep);
  background: rgba(255,253,247,.88);
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 999px;
  box-shadow: 0 5px 12px rgba(18,59,83,.2);
  font-family: var(--font-title);
  pointer-events: none;
}
.tractor-runner__weather small { font-weight: 900; }

.tractor-runner__road {
  position: absolute;
  z-index: -2;
  inset: 33% 1% -18%;
  overflow: hidden;
  pointer-events: none;
  clip-path: polygon(43% 0, 57% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.16) 0 3px, transparent 3px 54px);
  mix-blend-mode: soft-light;
  opacity: .72;
}

.tractor-runner__road::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(244, 228, 147, .04), rgba(244, 228, 147, .13) 34% 66%, rgba(244, 228, 147, .04));
}

.tractor-runner__road i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,243,186,.65));
  box-shadow: 0 0 8px rgba(255,255,255,.25);
  transform-origin: top center;
}

.tractor-runner__road i:first-child { left: 33.333%; transform: rotate(8deg); }
.tractor-runner__road i:last-child { right: 33.333%; transform: rotate(-8deg); }
.tractor-runner.is-running:not(.is-paused) .tractor-runner__road { animation: tractor-road-forward 1.15s linear infinite; }

.tractor-runner__vehicle {
  position: absolute;
  z-index: 7;
  bottom: -15%;
  left: 50%;
  width: clamp(145px, 21%, 235px);
  pointer-events: none;
  transform: translateX(-50%);
  transform-origin: 50% 85%;
  transition: left .38s cubic-bezier(.22,.85,.38,1), transform .25s ease;
  filter: drop-shadow(0 12px 11px rgba(13, 40, 28, .38));
}

.tractor-runner__vehicle[data-lane="0"] { left: 23%; }
.tractor-runner__vehicle[data-lane="1"] { left: 50%; }
.tractor-runner__vehicle[data-lane="2"] { left: 77%; }
.tractor-runner__vehicle > img { display: block; width: 100%; height: auto; background: transparent; }
.tractor-runner.is-running:not(.is-paused) .tractor-runner__vehicle { animation: tractor-engine 1.05s ease-in-out infinite; }
.tractor-runner.is-caring .tractor-runner__vehicle { transform: translateX(-50%) scale(.97); }
.tractor-runner.is-running:not(.is-paused) .tractor-runner__vehicle.is-loaded {
  animation: none;
  transform: translateX(-50%) scale(1.045);
}

.tractor-runner__cargo {
  position: absolute;
  right: 5%;
  bottom: 34%;
  left: 5%;
  height: 28%;
  pointer-events: none;
}

.tractor-runner__cargo img {
  position: absolute;
  bottom: 8%;
  left: 7%;
  width: 55%;
  height: auto;
  background: transparent;
  filter: drop-shadow(0 3px 3px rgba(44, 31, 16, .36));
}

.tractor-runner__cargo img:nth-child(1) { left: -2%; bottom: 0; }
.tractor-runner__cargo img:nth-child(2) { left: 47%; bottom: 0; }
.tractor-runner__cargo img:nth-child(3) { left: 22%; bottom: 22%; }
.tractor-runner__cargo img:nth-child(4) { left: -2%; bottom: 43%; }
.tractor-runner__cargo img:nth-child(5) { left: 47%; bottom: 43%; }

.tractor-runner__flying-bale {
  position: absolute;
  z-index: 9;
  height: auto;
  background: transparent;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 10px 8px rgba(44, 31, 16, .4));
  will-change: transform, opacity;
}

.tractor-runner__objects {
  position: absolute;
  z-index: 5;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.tractor-runner__object {
  position: absolute;
  z-index: 5;
  top: var(--runner-top, 22%);
  left: var(--runner-left, 50%);
  width: clamp(105px, 21%, 240px);
  opacity: var(--runner-opacity, 0);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(var(--runner-scale, .3));
  transform-origin: 50% 72%;
  filter: drop-shadow(0 10px 8px rgba(13, 40, 28, .33));
  will-change: top, left, transform, opacity;
}

.tractor-runner__object[hidden] { display: none; }
.tractor-runner__object.is-handled { opacity: 0 !important; transform: translate(-50%, -50%) scale(.2) translateY(-110px); transition: opacity .28s ease, transform .5s ease; }
.tractor-runner__object.is-cared { filter: drop-shadow(0 0 18px rgba(255,207,73,.95)); }
.tractor-runner__object img { display: block; width: 100%; height: auto; max-height: 185px; object-fit: contain; background: transparent; }
.tractor-runner__object--puddle,
.tractor-runner__object--flowers,
.tractor-runner__object--stones { width: clamp(140px, 30%, 340px); }
.tractor-runner__object--sheep { width: clamp(110px, 20%, 225px); }
.tractor-runner__object--bale { width: clamp(105px, 18%, 205px); }

.tractor-runner__objects.is-crowded .tractor-runner__object--puddle,
.tractor-runner__objects.is-crowded .tractor-runner__object--flowers,
.tractor-runner__objects.is-crowded .tractor-runner__object--stones { width: clamp(125px, 25%, 275px); }

.tractor-runner__object span {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 5px 10px;
  color: var(--fjord-deep);
  white-space: nowrap;
  background: rgba(255, 253, 247, .94);
  border: 2px solid rgba(255, 207, 73, .9);
  border-radius: 999px;
  box-shadow: 0 4px 9px rgba(18,59,83,.17);
  font-family: var(--font-title);
  font-size: clamp(.62rem, 1.25vw, .82rem);
  transform: translate(-50%, -112%);
}

.tractor-runner__start {
  position: absolute;
  z-index: 11;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(86%, 500px);
  padding: clamp(16px, 3vw, 28px);
  place-items: center;
  color: var(--fjord-deep);
  text-align: center;
  background: rgba(255, 253, 247, .94);
  border: 4px solid var(--sun);
  border-radius: 25px;
  box-shadow: 0 17px 35px rgba(18,59,83,.3);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(7px);
}

.tractor-runner__start[hidden] { display: none; }
.tractor-runner__start > span { font-size: 2.7rem; }
.tractor-runner__start > strong { margin-top: 2px; font-family: var(--font-title); font-size: clamp(1.18rem, 3vw, 1.7rem); }
.tractor-runner__start p { max-width: 390px; margin: 7px 0 15px; }

.tractor-runner__actionbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 12px;
  padding: 11px 13px;
  color: var(--fjord-deep);
  background: rgba(255,253,247,.9);
  border: 3px solid rgba(17,106,141,.2);
  border-radius: 19px;
  box-shadow: 0 7px 0 rgba(18,59,83,.1);
}
.tractor-runner__actionbar > div { display: flex; min-width: 0; align-items: center; gap: 10px; }
.tractor-runner__actionbar > div > span { display: grid; width: 45px; height: 45px; flex: 0 0 auto; place-items: center; background: #dff4f5; border-radius: 50%; font-size: 1.45rem; }
.tractor-runner__actionbar p { margin: 0; }
.tractor-runner__actionbar strong,
.tractor-runner__actionbar small { display: block; }
.tractor-runner__actionbar small { margin-top: 2px; color: #567080; }
.tractor-runner__actionbar button { min-width: min(42%, 300px); min-height: 54px; padding: 10px 15px; color: var(--fjord-deep); cursor: pointer; background: var(--sun); border: 3px solid #d89b19; border-radius: 16px; box-shadow: 0 5px 0 rgba(151,102,9,.2); font-family: var(--font-title); font-weight: 950; touch-action: manipulation; }
.tractor-runner__actionbar button:disabled { cursor: default; background: #e9f1ef; border-color: rgba(17,106,141,.16); box-shadow: none; opacity: .82; }
.tractor-runner.is-action-ready { box-shadow: 0 0 0 7px rgba(255,207,73,.42), 0 18px 40px rgba(18,59,83,.2); }
.tractor-runner.is-action-ready + .tractor-runner__actionbar { border-color: #178562; background: #e8f8dc; }
.tractor-runner.is-action-ready + .tractor-runner__actionbar button { color: var(--white); background: #178562; border-color: #0f664a; animation: tractor-action-ready 1s ease-in-out infinite; }

.tractor-runner__controls {
  display: grid;
  grid-template-columns: 1fr minmax(120px, .7fr) 1fr;
  gap: 10px;
  margin-top: 12px;
}

.tractor-runner__controls button {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--fjord-deep);
  cursor: pointer;
  background: rgba(255, 253, 247, .96);
  border: 3px solid rgba(17, 106, 141, .25);
  border-radius: 18px;
  box-shadow: 0 7px 0 rgba(18,59,83,.12);
  font-family: var(--font-title);
  touch-action: manipulation;
}

.tractor-runner__controls button:not(:disabled):hover,
.tractor-runner__controls button:not(:disabled):focus-visible { background: var(--sun); border-color: var(--sun); transform: translateY(-2px); }
.tractor-runner__controls button:active:not(:disabled) { box-shadow: 0 3px 0 rgba(18,59,83,.13); transform: translateY(3px); }
.tractor-runner__controls button:disabled { cursor: default; opacity: .52; }
.tractor-runner__controls button span { font-size: 1.8rem; line-height: 1; }

.tractor-game__skills { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.tractor-game__skills li { display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; color: #5d7280; background: rgba(255,253,247,.62); border: 2px solid rgba(17,106,141,.14); border-radius: 15px; font-size: .82rem; opacity: .75; }
.tractor-game__skills li.is-complete { color: #0d5c43; background: #d9f4d9; border-color: #178562; opacity: 1; }
.tractor-game__skills li.is-complete::after { content: "✓"; display: grid; width: 23px; height: 23px; place-items: center; color: var(--white); background: #178562; border-radius: 50%; font-weight: 950; }

@keyframes tractor-road-forward {
  from { background-position-y: 0; }
  to { background-position-y: 57px; }
}

@keyframes tractor-engine {
  0%, 100% { transform: translateX(-50%) rotate(-.25deg); }
  50% { transform: translateX(-50%) translateY(2px) rotate(.25deg); }
}

@keyframes tractor-action-ready {
  50% { transform: translateY(-2px) scale(1.025); box-shadow: 0 7px 0 rgba(15,102,74,.2), 0 0 0 7px rgba(23,133,98,.14); }
}

@media (max-width: 900px) {
  .tractor-runner { aspect-ratio: 4 / 3; }
  .tractor-runner__vehicle { bottom: -13%; width: clamp(145px, 29%, 220px); }
  .tractor-runner__object { width: clamp(105px, 26%, 210px); }
  .tractor-runner__object--puddle,
  .tractor-runner__object--flowers,
  .tractor-runner__object--stones { width: clamp(145px, 38%, 300px); }
}

@media (max-width: 760px) {
  .tractor-game__header-actions { justify-items: start; }
  .tractor-game__missions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tractor-game__next { text-align: left; }
  .tractor-runner__actionbar { align-items: stretch; flex-direction: column; }
  .tractor-runner__actionbar button { width: 100%; min-width: 0; }
}

@media (max-width: 620px) {
  .tractor-runner { aspect-ratio: 4 / 5; border-width: 5px; border-radius: 23px; }
  .tractor-runner { background-image: url("../images/generated/games/jordet/jordet-spillflate-v01-sm.jpg"); background-position: 50% 58%; }
  .tractor-runner__vehicle { bottom: -9%; width: 39%; }
  .tractor-runner__vehicle[data-lane="0"] { left: 21%; }
  .tractor-runner__vehicle[data-lane="2"] { left: 79%; }
  .tractor-runner__object { width: 34%; }
  .tractor-runner__object--puddle,
  .tractor-runner__object--flowers,
  .tractor-runner__object--stones { width: 48%; }
  .tractor-runner__object--sheep { width: 33%; }
  .tractor-runner__object--bale { width: 31%; }
  .tractor-runner__objects.is-crowded .tractor-runner__object--puddle,
  .tractor-runner__objects.is-crowded .tractor-runner__object--flowers,
  .tractor-runner__objects.is-crowded .tractor-runner__object--stones { width: 38%; }
  .tractor-runner__object span { font-size: .68rem; }
  .tractor-runner__controls { grid-template-columns: 1fr .78fr 1fr; gap: 7px; }
  .tractor-runner__controls button { min-height: 64px; padding: 8px 6px; border-radius: 16px; }
  .tractor-runner__controls button span { font-size: 1.45rem; }
  .tractor-runner__controls button strong { font-size: .82rem; }
  .tractor-runner__start { width: 88%; padding: 17px 14px; }
  .tractor-runner__weather { top: 8px; left: 8px; padding: 5px 8px; }
  .tractor-runner__weather small { display: none; }
  .tractor-game__skills { grid-template-columns: 1fr; }
  .tractor-game__skills li { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .tractor-runner__road,
  .tractor-runner__vehicle { animation: none !important; }
}

html[data-calm="true"] .tractor-runner__road { opacity: .32; }

/* Mat dyrene på Maram */
.feeding-game {
  margin-top: clamp(26px, 5vw, 52px);
  padding: clamp(18px, 3.5vw, 38px);
  color: var(--fjord-deep);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 207, 73, .43), transparent 23%),
    radial-gradient(circle at 94% 18%, rgba(241, 135, 101, .28), transparent 25%),
    linear-gradient(145deg, #e5f4ce, #cceeed 56%, #fff0b1);
  border: 3px solid rgba(17, 106, 141, .2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.feeding-game__header,
.feeding-game__dashboard,
.feeding-game__status,
.feeding-game__finish-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.feeding-game__header h3 { margin: 4px 0 8px; font-size: clamp(2rem, 4vw, 3.3rem); }
.feeding-game__header p { max-width: 740px; margin: 0; }
.feeding-game__sound { flex: 0 0 auto; }

.feeding-game__lesson {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  padding: 14px 18px;
  background: rgba(255, 253, 247, .86);
  border: 2px solid rgba(17, 106, 141, .14);
  border-radius: 18px;
}

.feeding-game__lesson > span { font-size: 2rem; }
.feeding-game__lesson p { margin: 0; }

.feeding-game__levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.feeding-game__levels li {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 12px;
  background: rgba(255, 253, 247, .74);
  border: 2px solid rgba(17, 106, 141, .15);
  border-radius: 16px;
  opacity: .72;
}

.feeding-game__levels li > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--white);
  border-radius: 50%;
  font-weight: 950;
}

.feeding-game__levels li strong,
.feeding-game__levels li small { display: block; }
.feeding-game__levels li small { margin-top: 2px; color: #567080; font-size: .72rem; font-weight: 850; line-height: 1.2; }
.feeding-game__levels li.is-current,
.feeding-game__levels li.is-complete { opacity: 1; border-color: #178562; }
.feeding-game__levels li.is-current { color: var(--white); background: #178562; }
.feeding-game__levels li.is-current small { color: rgba(255, 255, 255, .87); }
.feeding-game__levels li.is-complete { background: #d9f4d9; }

.feeding-game__dashboard {
  margin-bottom: 12px;
  padding: 13px 16px;
  color: var(--white);
  background: rgba(18, 59, 83, .95);
  border-radius: 18px;
}

.feeding-game__dashboard small,
.feeding-game__dashboard strong { display: block; }
.feeding-game__dashboard small { color: rgba(255, 255, 255, .72); }
.feeding-game__turn {
  min-width: 220px;
  padding: 8px 15px;
  text-align: center;
  background: rgba(255, 255, 255, .12);
  border: 2px solid rgba(255, 255, 255, .24);
  border-radius: 14px;
}
.feeding-game__turn strong { color: #ffe275; font-family: var(--font-title); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.feeding-game__progress { text-align: right; }
.feeding-game__progress > span { font-weight: 900; }
.feeding-game__progress > div { display: flex; justify-content: flex-end; gap: 7px; margin-top: 6px; }
.feeding-game__progress i { width: 18px; height: 18px; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.72); border-radius: 50%; }
.feeding-game__progress i.is-filled { background: var(--sun); border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255,207,73,.16); }

.feeding-game__stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  overflow: hidden;
  background: #65944f;
  border: 7px solid rgba(255,255,255,.96);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(18, 59, 83, .23);
  outline: 2px solid rgba(18, 59, 83, .15);
  outline-offset: -2px;
}

.feeding-game__stage::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(15,54,67,.02), transparent 54%, rgba(15,54,67,.14));
}

.feeding-game__stage picture,
.feeding-game__stage picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.feeding-game__stage picture img { object-fit: cover; }

.feeding-animal {
  position: absolute;
  z-index: 4;
  top: 4%;
  width: 31%;
  height: 82%;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  background: transparent;
  border: 4px solid transparent;
  border-radius: 28px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.feeding-animal--left { left: 1.5%; }
.feeding-animal--center { left: 34.5%; }
.feeding-animal--right { left: 67.5%; }

.feeding-animal > span {
  position: absolute;
  top: 10px;
  left: 50%;
  display: flex;
  min-width: 122px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  color: var(--fjord-deep);
  background: rgba(255,253,247,.93);
  border: 3px solid rgba(18,59,83,.23);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(18,59,83,.18);
  transform: translateX(-50%);
  white-space: nowrap;
}

.feeding-animal > span small { display: none; }
.feeding-animal > span b { font-size: 1.08em; line-height: 1; }
.feeding-animal:hover:not(:disabled),
.feeding-animal:focus-visible:not(:disabled) { border-color: var(--sun); background: rgba(255,207,73,.08); outline: none; }
.feeding-animal.is-target { border-color: var(--sun); background: rgba(255,207,73,.12); box-shadow: inset 0 0 0 7px rgba(255,255,255,.44); animation: feeding-target 1.5s ease-in-out infinite; }
.feeding-animal.is-suggested { border-color: #ffe26e; box-shadow: inset 0 0 0 7px rgba(255,226,110,.38); }
.feeding-animal.is-drop-target {
  border-color: #62e0ae;
  background: rgba(98, 224, 174, .2);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.52), 0 0 0 6px rgba(98,224,174,.28);
  transform: scale(1.015);
}
.feeding-animal.is-fed { border-color: #67ce83; background: rgba(103,206,131,.12); }
.feeding-animal.is-fed > span { color: #0b5c43; background: #e6f8df; border-color: #67ce83; }
.feeding-animal.is-fed > span small { display: inline; font-weight: 900; }
.feeding-animal.is-wrong { animation: feeding-gentle-shake 360ms ease; }
.feeding-animal:disabled { cursor: default; }

.feeding-game__served {
  position: absolute;
  z-index: 5;
  bottom: 2.5%;
  width: clamp(54px, 8vw, 92px);
  aspect-ratio: 1;
  overflow: hidden;
  pointer-events: none;
  background: var(--cream);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 9px 19px rgba(18,59,83,.28);
  opacity: 0;
  transform: translate(-50%, 18px) scale(.7);
  transition: opacity 230ms ease, transform 300ms cubic-bezier(.2,.9,.25,1.25);
}

.feeding-game__served.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.feeding-game__served img { width: 100%; height: 100%; object-fit: cover; }
.feeding-game__served--left { left: 17%; }
.feeding-game__served--center { left: 50%; }
.feeding-game__served--right { left: 83%; }

.feeding-game__start {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(86%, 520px);
  flex-direction: column;
  align-items: center;
  padding: 22px;
  text-align: center;
  background: rgba(255,253,247,.96);
  border: 4px solid var(--sun);
  border-radius: 25px;
  box-shadow: 0 20px 44px rgba(18,59,83,.32);
  transform: translate(-50%, -50%);
}

.feeding-game__start[hidden] { display: none; }
.feeding-game__start > span { font-size: clamp(2rem, 5vw, 3rem); }
.feeding-game__start > strong { margin-top: 4px; font-family: var(--font-title); font-size: clamp(1.25rem, 3vw, 1.85rem); }
.feeding-game__start p { max-width: 400px; margin: 7px 0 15px; }

.feeding-game__prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 13px 16px;
  background: rgba(255,253,247,.9);
  border-left: 6px solid var(--sun);
  border-radius: 16px;
}

.feeding-game__prompt > span { font-size: 1.65rem; }
.feeding-game__prompt p { margin: 0; font-weight: 900; }

.feeding-game__foods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feeding-game__foods[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.feeding-game__foods button {
  display: grid;
  grid-template-columns: minmax(84px, 42%) minmax(0, 1fr);
  min-height: 118px;
  align-items: center;
  gap: 12px;
  padding: 9px;
  color: var(--fjord-deep);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  background: rgba(255,253,247,.94);
  border: 4px solid rgba(17,106,141,.18);
  border-radius: 21px;
  box-shadow: 0 8px 0 rgba(18,59,83,.1);
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.feeding-game__food-image { position: relative; display: block; }
.feeding-game__food-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.feeding-game__food-image b {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  min-width: 34px;
  min-height: 34px;
  place-items: center;
  padding: 4px 7px;
  color: var(--fjord-deep);
  background: rgba(255,255,255,.94);
  border: 2px solid var(--sun);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(18,59,83,.18);
  font-size: .82rem;
}
.feeding-game__food-copy { min-width: 0; }
.feeding-game__foods button strong,
.feeding-game__foods button small { display: block; }
.feeding-game__foods button strong { font-family: var(--font-title); font-size: clamp(1.05rem, 2.2vw, 1.35rem); }
.feeding-game__foods button small { margin-top: 3px; color: #567080; font-weight: 800; line-height: 1.25; }
.feeding-game__food-copy em {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 7px;
  color: #075776;
  background: #d8f3f1;
  border-radius: 999px;
  font-size: .66rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .035em;
}
.feeding-game__food-shared {
  display: block;
  margin-top: 6px;
  color: #146848;
  font-size: .72rem;
  font-weight: 950;
}
.feeding-game__drag-grip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-top: 7px;
  padding: 5px 9px;
  color: var(--white);
  background: #14799b;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 950;
  touch-action: none;
}
.feeding-game__foods button:hover:not(:disabled),
.feeding-game__foods button:focus-visible:not(:disabled) { border-color: var(--sun); transform: translateY(-2px); outline: none; }
.feeding-game__foods button.is-selected { border-color: #14799b; box-shadow: 0 0 0 5px rgba(20,121,155,.15), 0 8px 0 rgba(18,59,83,.12); transform: translateY(-3px); }
.feeding-game__foods button.is-suggested { border-color: var(--sun); animation: feeding-food-hint 1.25s ease-in-out infinite; }
.feeding-game__foods button.is-wrong { animation: feeding-gentle-shake 360ms ease; }
.feeding-game__foods button.is-dragging { opacity: .48; }
.feeding-game__foods button:disabled { cursor: default; opacity: .72; }

.feeding-game__drag-ghost {
  position: fixed;
  z-index: 99999;
  display: grid;
  width: 112px;
  pointer-events: none;
  overflow: hidden;
  color: var(--fjord-deep);
  text-align: center;
  background: var(--white);
  border: 4px solid #62e0ae;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(18,59,83,.3);
  transform: translate(-50%, -58%);
}
.feeding-game__drag-ghost img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.feeding-game__drag-ghost strong { padding: 6px; font-size: .72rem; }

.feeding-game__status {
  align-items: flex-start;
  margin-top: 13px;
  padding: 15px 17px;
  background: rgba(255,253,247,.84);
  border-radius: 18px;
}

.feeding-game__status p { margin: 0; font-weight: 850; }
.feeding-game__finish { margin-top: 18px; }
.feeding-game__finish-body { align-items: stretch; margin-top: 14px; }
.feeding-game__finish-body > div { flex: 1; }
.feeding-game__finish-gallery {
  display: grid;
  width: min(48%, 520px);
  flex: 0 0 auto !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.feeding-game__finish-gallery img {
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.94);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}
.feeding-game__finish-gallery img:first-child { grid-column: 1 / -1; }

.feeding-game__sparkles { position: absolute; z-index: 9; inset: 0; overflow: hidden; pointer-events: none; }
.feeding-game__sparkles i { position: absolute; color: var(--sun); font-size: clamp(1rem, 2.5vw, 1.8rem); font-style: normal; text-shadow: 0 2px 0 rgba(18,59,83,.2); animation: feeding-spark .95s ease-out forwards; }

@keyframes feeding-target {
  50% { box-shadow: inset 0 0 0 10px rgba(255,255,255,.48), 0 0 0 6px rgba(255,207,73,.26); }
}

@keyframes feeding-food-hint {
  50% { box-shadow: 0 0 0 7px rgba(255,207,73,.25), 0 8px 0 rgba(18,59,83,.1); }
}

@keyframes feeding-gentle-shake {
  33% { transform: translateX(-4px); }
  66% { transform: translateX(4px); }
}

@keyframes feeding-spark {
  from { opacity: 1; transform: translate(-50%, -50%) scale(.7); }
  to { opacity: 0; transform: translate(calc(-50% + var(--feed-x)), calc(-50% + var(--feed-y))) scale(1.4); }
}

html[data-calm="true"] .feeding-game *,
html[data-calm="true"] .feeding-game *::before,
html[data-calm="true"] .feeding-game *::after { animation: none !important; transition: none !important; }

@media (max-width: 800px) {
  .feeding-game__header,
  .feeding-game__dashboard,
  .feeding-game__status,
  .feeding-game__finish-body { align-items: stretch; flex-direction: column; }
  .feeding-game__sound { align-self: flex-start; }
  .feeding-game__progress { text-align: left; }
  .feeding-game__progress > div { justify-content: flex-start; }
  .feeding-game__turn { min-width: 0; text-align: left; }
  .feeding-game__finish-gallery { width: 100%; }
  .feeding-game__foods button { grid-template-columns: 82px minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .feeding-game { padding: 15px; }
  .feeding-game__levels li { min-height: 50px; gap: 5px; padding: 7px 5px; }
  .feeding-game__levels li > span { width: 26px; height: 26px; }
  .feeding-game__levels strong { font-size: .8rem; }
  .feeding-game__levels small { display: none !important; }
  .feeding-game__stage { min-height: 238px; aspect-ratio: auto; border-width: 5px; border-radius: 22px; }
  .feeding-game__stage picture img { object-fit: contain; background: #5f914e; }
  .feeding-animal { top: 1%; height: 90%; border-width: 3px; border-radius: 17px; }
  .feeding-animal > span { top: 5px; min-width: 0; padding: 5px 7px; border-width: 2px; font-size: .73rem; }
  .feeding-animal.is-fed > span small { display: none; }
  .feeding-game__served { width: 48px; border-width: 3px; }
  .feeding-game__foods { grid-template-columns: 1fr; gap: 9px; }
  .feeding-game__foods[data-count="2"] { grid-template-columns: 1fr; }
  .feeding-game__foods button { grid-template-columns: 78px minmax(0, 1fr); min-height: 94px; }
  .feeding-game__food-image img { height: 76px; aspect-ratio: auto; }
  .feeding-game__start { width: 90%; padding: 9px 11px; border-width: 3px; border-radius: 18px; }
  .feeding-game__start > span { display: none; }
  .feeding-game__start > strong { font-size: 1.05rem; }
  .feeding-game__start p { margin: 3px 0 7px; font-size: .78rem; line-height: 1.3; }
  .feeding-game__start .button { min-height: 40px; padding: 6px 11px; font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .feeding-game *,
  .feeding-game *::before,
  .feeding-game *::after { animation: none !important; transition: none !important; }
}
