:root {
  --header-h: clamp(40px, 5.2vh, 52px);
  --timeline-card-w: 160px;
  --timeline-image-w: 128px;
  --timeline-gap: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: Inter, sans-serif;
  background: #080706;
  color: #f2f2f2;
  overflow-x: hidden;
}

.app-header {
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(10px, 1.2vw, 18px);
  background: linear-gradient(180deg, #87918b 0%, #6f7975 48%, #545d5b 100%);
  border-bottom: 2px solid #2a211b;
  box-shadow:
    inset 0 -1px 0 rgba(255,255,255,0.10),
    0 1px 10px rgba(0,0,0,0.38);
  position: sticky;
  top: 0;
}

.app-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 70%, rgba(127,63,32,0.24) 0 3%, transparent 9%),
    radial-gradient(circle at 92% 28%, rgba(94,49,27,0.22) 0 4%, transparent 11%);
  opacity: 0.7;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.app-header-title {
  font-size: clamp(18px, 1vw + 0.8vh, 26px);
  color: rgba(14, 18, 23, 0.94);
  font-weight: 900; 
  letter-spacing: 0.7px;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.18),
    0 -1px 0 rgba(0,0,0,0.20);
}

.app-header-right {
  display: flex;
  align-items: center;
  z-index: 1;
}

.header-play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(24px, 3.8vh, 32px);
  padding: 0 clamp(8px, 1.2vw, 12px);
  border: 1px solid rgba(0, 112, 23, 0.62);
  border-radius: 6px;
  background: linear-gradient(180deg, #35b85d 0%, #218a43 54%, #16652f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 3px 8px rgba(0,0,0,0.38);
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: clamp(13px, 0.65vw + 0.45vh, 17px);
  font-weight: 700;
  letter-spacing: 0.45px;
  text-shadow:
	0 1px 0 rgba(255,255,255,0.18),
    0 -1px 0 rgba(0,0,0,0.60);
  transition:
    transform 100ms ease,
    filter 100ms linear,
    box-shadow 100ms linear;
}

.header-play-button:hover,
.header-play-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    0 4px 10px rgba(0,0,0,0.44);

  outline: none;
}

.header-play-button:active {
  transform: translateY(0) scale(0.98);
}

.main-content {
  min-height: calc(100vh - var(--header-h));
  padding: clamp(78px, 11vh, 118px) 24px 120px;
  background:
    radial-gradient(circle at 50% 16%, rgba(107,66,34,0.20), transparent 38%),
    linear-gradient(180deg, #15100b, #080706 58%);
}

.timeline-section {
  width: min(1040px, calc(100vw - 48px));
  margin: 0 auto;
}

.timeline-panel {
  width: 100%;
  padding: 12px 10px 4px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.045),
      rgba(255,255,255,0.018)
    ),
    rgba(18,14,11,0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 5px 16px rgba(0,0,0,0.18);
}

.timeline-title {
  width: 100%;
  margin: 0 0 14px;
  padding-left: 96px;
  color: rgba(248,248,248,0.94);
  font-size: clamp(20px, 1.2vw + 0.5rem, 28px);
  font-weight: 750;
  line-height: 1.2;
  text-shadow:
    0 1px 4px rgba(0,0,0,0.90);
}

.timeline {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 14px;
}

.timeline-viewport {
  position: relative;
  height: 220px;
  padding-top: 8px;
  margin-top: -8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.timeline-viewport::-webkit-scrollbar {
  display: none;
}

.timeline-track {
  position: relative;
  min-width: 100%;
  width: max-content;
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: var(--timeline-gap);
  padding: 0;
}

.timeline-item {
  position: relative;
  flex: 0 0 var(--timeline-card-w);
  width: var(--timeline-card-w);
  height: 100%;
  text-align: center;
}

.timeline-image-wrap {
  display: block;
  width: min(var(--timeline-image-w), calc(var(--timeline-card-w) - 8px));
  aspect-ratio: 4 / 3;
  margin: 0 auto 14px;
  padding: 0;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 3px;
  overflow: hidden;
  opacity: 1;
  transition: opacity 120ms linear, transform 100ms ease, border-color 100ms linear;
  appearance: none;
  font: inherit;
  color: inherit;
}

.timeline-image-wrap.is-clickable {
  cursor: pointer;
}

.timeline-image-wrap.is-clickable:hover,
.timeline-image-wrap.is-clickable:focus-visible {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(255,255,255,0.98);
  box-shadow:
    0 0 5px rgba(255,255,255,0.2);
  outline: none;
}

.timeline-image-wrap.is-clickable:active {
  transform: translateY(0) scale(1.03);
}

.timeline-item.is-right-edge .timeline-image-wrap {
  opacity: 0.37;
}

.timeline-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 120ms linear;
  pointer-events: none;
}

.timeline-image.is-loaded {
  opacity: 1;
}

.timeline-description {
  height: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 auto 3px;
  color: rgba(248,248,248,0.88);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.timeline-date {
  position: relative;
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 400;
  white-space: nowrap;
}

.timeline-date::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 15px);
  width: 3px;
  height: 12px;
  background: #f5f5f5;
  transform: translateX(-50%);
}

.timeline-item:not(:last-child) .timeline-date::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 24px);
  width: calc(100% + var(--timeline-gap));
  height: 3px;
  background: rgba(245,245,245,0.88);
  box-shadow: 0 0 4px rgba(255,255,255,0.12);
}

.timeline-arrow {
  width: 50px;
  height: 64px;
  border: 0;
  padding: 0;

  position: relative;
  top: -10px;

  background: transparent;
  cursor: pointer;

  opacity: 0.95;
  transition:
    opacity 100ms linear,
    transform 100ms ease;

  user-select: none;
}

.timeline-arrow::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: auto;
  border-left: 3px solid rgba(245,245,245,0.88);
  border-bottom: 3px solid rgba(245,245,245,0.88);
}

.timeline-arrow-left::before {
  transform: rotate(45deg);
}

.timeline-arrow-right::before {
  transform: rotate(225deg);
}

.timeline-arrow:hover:not(:disabled) {
  opacity: 1;
  transform: scale(1.08);
}

.timeline-arrow:active:not(:disabled) {
  transform: scale(0.96);
}

.timeline-arrow:disabled {
  opacity: 0;
  cursor: default;
}

.game-description {
  width: min(800px, 80vw);
  margin: 60px auto 0;
  color: rgba(244,244,244,0.88);
  font-size: clamp(14px, 0.45vw + 11px, 17px);
  line-height: 1.65;
}

.game-description p {
  margin: 0 0 20px;
}

.game-description strong {
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.25px;
}

.play-online-button {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 48px auto 0;
  padding: 0 26px;
  border: 1px solid rgba(192,255,205,0.62);
  border-radius: 6px;
  background: linear-gradient(180deg, #35b85d 0%, #218a43 54%, #16652f 100%);
  box-shadow:
    0 0 18px rgba(40,205,86,0.34),
    0 0 38px rgba(40,205,86,0.16),
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 4px 10px rgba(0,0,0,0.44);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-shadow:
	0 1px 0 rgba(255,255,255,0.18),
    0 -1px 0 rgba(0,0,0,0.60);
  transition: transform 100ms ease, filter 100ms linear, box-shadow 100ms linear;
}

.play-online-button:hover,
.play-online-button:focus-visible {
  transform: translateY(-2px) scale(1.025);
  filter: brightness(1.2);
  box-shadow:
    0 0 22px rgba(40,205,86,0.45),
    0 0 48px rgba(40,205,86,0.22),
    inset 0 1px 0 rgba(255,255,255,0.24),
    0 5px 12px rgba(0,0,0,0.46);
  outline: none;
}

.play-online-button:active {
  transform: translateY(0) scale(0.99);
}


.product-info-section {
  width: min(800px, 80vw);
  margin: 86px auto 0;
}

.info-block + .info-block {
  margin-top: 100px;
}

.info-section-title {
  margin: 0 0 24px;
  color: rgba(248,248,248,0.96);
  font-size: clamp(22px, 1.25vw + 0.65rem, 30px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 42px 14px 0;
  cursor: pointer;
  list-style: none;
  color: rgba(248,248,248,0.94);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  transition: color 120ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(244,244,244,0.62);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform 120ms ease, color 120ms ease;
}

.faq-item[open] summary::after {
  content: "−";
  color: rgba(248,248,248,0.90);
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
  color: #fff;
}

.faq-item summary:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq-answer {
  padding: 0 42px 18px 0;
}

.faq-answer p {
  margin: 0;
  color: rgba(244,244,244,0.68);
  font-size: 14px;
  line-height: 1.6;
}

.nettiore-data-title {
  margin: 60px 0 24px;
}

.board-game-grid,
.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-card,
.data-card,
.playtest-card {
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(18,14,11,0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 5px 16px rgba(0,0,0,0.18);
}

.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 16px 18px;
}

.info-card-wide,
.playtest-card {
  grid-column: 1 / -1;
}

.info-card-icon {
  flex: 0 0 auto;
  width: 36px;
  text-align: center;
  font-size: 23px;
  line-height: 1;
}

.info-card-content {
  min-width: 0;
}

.info-card dt {
  margin: 0 0 4px;
  color: rgba(244,244,244,0.58);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.info-card dd {
  margin: 0;
  color: rgba(250,250,250,0.95);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

.mechanics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mechanics-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: rgba(246,246,246,0.88);
  font-size: 13px;
  font-weight: 500;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid rgba(230,190,129,0.26);
  border-radius: 5px;
  background: rgba(146,91,42,0.17);
  color: rgba(247,219,177,0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.55px;
}

.designer-card {
  min-height: 94px;
}

.designer-photo {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: #16120f;
}

.contact-block {
  margin-top: 110px;
}

.contact-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.contact-name {
  color: rgba(250,250,250,0.96);
  font-size: 22px;
  font-weight: 750;
  line-height: 1.25;
}

.contact-email {
  margin-top: 8px;
  color: rgba(244,244,244,0.82);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: #fff;
}

.contact-role {
  margin-top: 6px;
  color: rgba(244,244,244,0.56);
  font-size: 14px;
  line-height: 1.4;
}

.contact-photo {
  flex: 0 0 auto;
  display: block;
  width: 256px;
  height: 256px;
  object-fit: cover;
  border-radius: 8px;
}

.data-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 104px;
  padding: 18px 20px;
}

.data-label {
  color: rgba(244,244,244,0.60);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.data-value {
  display: block;
  margin-top: 7px;
  color: rgba(252,252,252,0.96);
  font-size: clamp(22px, 1.5vw + 0.6rem, 30px);
  font-weight: 800;
  line-height: 1;
}

.playtest-card {
  padding: 22px;
}

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

.playtest-metric {
  min-width: 0;
  padding: 4px 16px;
  text-align: center;
}

.playtest-metric + .playtest-metric {
  border-left: 1px solid rgba(255,255,255,0.09);
}

.playtest-metric strong {
  display: block;
  margin-bottom: 8px;
  color: rgba(252,252,252,0.98);
  font-size: clamp(28px, 2vw + 0.7rem, 40px);
  font-weight: 850;
  line-height: 1;
}

.playtest-metric span {
  display: block;
  color: rgba(244,244,244,0.76);
  font-size: 13px;
  line-height: 1.35;
}

.playtest-source {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(244,244,244,0.43);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 56px 20px 32px;
  background: rgba(0,0,0,0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms linear, visibility 140ms linear;
}

.image-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-modal-dialog {
  position: relative;
  width: min(800px, 80vw, 106.666vh);
  max-height: 80vh;
}

.image-modal-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 80vh;
  background: #000;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 16px 55px rgba(0,0,0,0.65);
}

.image-modal-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-modal-close {
  position: absolute;
  right: -2px;
  bottom: calc(100% + 8px);
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 38px;
  font-weight: 900;
  line-height: 30px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.9);
  cursor: pointer;
  transition: transform 100ms ease, opacity 100ms linear;
}

.image-modal-close:hover,
.image-modal-close:focus-visible {
  opacity: 1;
  transform: scale(1.1);
  outline: none;
}

.image-modal-close:active {
  transform: scale(0.96);
}

.site-footer {
  padding: 22px 24px 30px;
  background: #080706;
  text-align: center;
  font-size: 13px;
}

.site-footer a,
.privacy-content a {
  color: rgba(235, 235, 235, 0.72);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.privacy-content a:hover,
.privacy-content a:focus-visible {
  color: #fff;
}

.app-header-title-link {
  color: inherit;
  text-decoration: none;
}

.privacy-main {
  padding-top: clamp(60px, 8vh, 90px);
}

.privacy-content {
  width: min(760px, calc(100vw - 48px));
  margin: 0 auto;
  color: rgba(244, 244, 244, 0.88);
  font-size: 15px;
  line-height: 1.7;
}

.privacy-content h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(26px, 3vw, 36px);
}

.privacy-content h2 {
  margin: 42px 0 12px;
  color: #fff;
  font-size: 19px;
}

.privacy-content p {
  margin: 0 0 18px;
}

.privacy-content ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

.privacy-content li {
  margin: 5px 0;
}

.privacy-updated {
  color: rgba(244, 244, 244, 0.55);
  font-size: 13px;
}

.privacy-back-link {
  margin-top: 52px !important;
}

@media (max-width: 760px) {
  :root {
    --timeline-card-w: 100px; /* JS laskee lopullisen leveyden */
    --timeline-image-w: calc(var(--timeline-card-w) - 10px);
    --timeline-gap: 12px;
  }

  .header-play-button {
    min-height: 30px;
    padding: 0 11px;
    font-size: 12px;
    letter-spacing: 0.25px;
  }

  .main-content {
    padding: 62px 18px 88px;
  }
  
  .timeline-title {
    width: 100%;
    margin: 0 0 14px;
    padding-left: 24px;
    font-size: 24px;
  }
  
  .timeline {
    width: 100%;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 4px;
  }

  .timeline-viewport {
    height: 220px;
  }
  
  .timeline-arrow {
    width: 30px;
    height: 54px;
    padding: 0;
  }
  
  .timeline-arrow::before {
    width: 14px;
    height: 14px;
  }

  .timeline-description {
    height: 36px;
    font-size: 10px;
  }

  .timeline-date {
    font-size: 14px;
  }

  .timeline-section {
    width: calc(100vw - 36px);
  }
  
  .timeline-panel {
    padding: 10px 6px 2px;
  }

  .game-description {
    width: min(800px, 80vw);
    margin-top: 36px;
    font-size: 14px;
  }

  .play-online-button {
    width: fit-content;
    min-height: 44px;
    padding: 0 18px;
    font-size: 13px;
    margin-top: 40px;
  }

  .product-info-section {
    width: min(800px, 80vw);
    margin-top: 68px;
  }

  .info-block + .info-block {
    margin-top: 64px;
  }

  .info-section-title {
    margin-bottom: 18px;
    font-size: 23px;
  }

  .faq-item summary {
    min-height: 54px;
    padding: 13px 34px 13px 0;
    font-size: 15px;
  }

  .faq-item summary::after {
    right: 2px;
    font-size: 22px;
  }

  .faq-answer {
    padding: 0 34px 16px 0;
  }

  .faq-answer p {
    font-size: 13px;
    line-height: 1.55;
  }

  .board-game-grid,
  .data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .info-card-wide,
  .playtest-card {
    grid-column: 1 / -1;
  }

  .info-card {
    min-height: 92px;
    padding: 12px;
    gap: 8px;
  }

  .board-game-grid > .info-card:not(.info-card-wide) {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .info-card-icon {
    width: auto;
    font-size: 20px;
  }

  .info-card dt {
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  .info-card dd {
    font-size: 14px;
  }

  .mechanics-list {
    gap: 6px;
  }

  .mechanics-list span {
    min-height: 26px;
    padding: 3px 8px;
    font-size: 12px;
  }

  .designer-photo {
    width: 58px;
    height: 58px;
  }

  .contact-content {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
  }

  .contact-block {
    margin-top: 90px;
  }

  .contact-details {
    flex: 1 1 auto;
    min-width: 0;
    align-items: flex-end;
    text-align: right;
  }

  .contact-photo {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    object-fit: cover;
  }

  .contact-name {
    font-size: 18px;
  }

  .contact-email {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .contact-role {
    font-size: 13px;
  }

  .playtest-card {
    padding: 18px;
  }

  .playtest-metrics {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .playtest-metric {
    padding: 14px 4px;
  }

  .playtest-metric + .playtest-metric {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.09);
  }

  .playtest-metric strong {
    margin-bottom: 5px;
    font-size: 31px;
  }

  .data-card {
    min-height: 92px;
    padding: 14px 12px;
  }

  .data-label {
    font-size: 11px;
  }

  .data-value {
    font-size: clamp(19px, 5.5vw, 26px);
  }

  .nettiore-data-title {
    margin-top: 40px;
  }

  .image-modal {
    padding-inline: 12px;
  }

  .privacy-content {
    width: calc(100vw - 36px);
  }
  
}

/* ============================================================
   STRATAORE MAIL LIST
   ============================================================ */

.mail-list-block {
  text-align: left;
}

.mail-list-panel {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.045),
      rgba(255,255,255,0.018)
    ),
    rgba(18,14,11,0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 5px 16px rgba(0,0,0,0.18);
}

.mail-list-intro {
  margin: 0 0 20px;
  color: rgba(244,244,244,0.72);
  font-size: 14px;
  line-height: 1.6;
}

.mail-list-form {
  margin: 0;
}

.mail-list-form-row {
  display: flex;
  gap: 10px;
}

.mail-list-form-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  background: rgba(8,7,6,0.72);
  color: rgba(252,252,252,0.96);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.mail-list-form-row input::placeholder {
  color: rgba(244,244,244,0.36);
}

.mail-list-form-row input:hover {
  border-color: rgba(255,255,255,0.22);
}

.mail-list-form-row input:focus {
  border-color: rgba(230,190,129,0.48);
  background: rgba(8,7,6,0.88);
  box-shadow:
    0 0 0 3px rgba(146,91,42,0.13);
}

.mail-list-form-row button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(230,190,129,0.28);
  border-radius: 6px;
  background:
    linear-gradient(
      180deg,
      #93613a 0%,
      #704524 55%,
      #4d2e1a 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 3px 8px rgba(0,0,0,0.28);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 100ms ease,
    filter 100ms linear,
    box-shadow 100ms linear;
}

.mail-list-form-row button:hover,
.mail-list-form-row button:focus-visible {
  filter: brightness(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 4px 10px rgba(0,0,0,0.34);
  outline: none;
}

.mail-list-form-row button:active {
  transform: scale(0.98);
}

.mail-list-form-row button:disabled {
  opacity: 0.55;
  cursor: default;
  filter: none;
  transform: none;
}


/* Piilossa ennen sähköpostikentän aktivointia */

.mail-list-extra {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    grid-template-rows 180ms ease,
    margin-top 180ms ease,
    opacity 140ms linear;
}

.mail-list-extra-inner {
  min-height: 0;
  overflow: hidden;
}


/* Näytetään sähköpostikentän aktivoinnin jälkeen */

.mail-list-form.is-expanded .mail-list-extra {
  grid-template-rows: 1fr;
  margin-top: 16px;
  opacity: 1;
  pointer-events: auto;
}

.mail-list-turnstile {
  width: 100%;
  max-width: 420px;
}

.mail-list-privacy {
  max-width: 620px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(244,244,244,0.52);
  font-size: 12px;
  line-height: 1.5;
}

.mail-list-message {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.mail-list-message:empty {
  display: none;
}

.mail-list-message.success {
  color: rgba(178,235,193,0.94);
}

.mail-list-message.error {
  color: rgba(255,190,190,0.94);
}


@media (max-width: 760px) {

  .mail-list-panel {
    padding: 18px;
  }

  .mail-list-form-row {
    flex-direction: column;
  }

  .mail-list-form-row button {
    width: 100%;
  }

  .mail-list-turnstile {
    max-width: 100%;
  }

}