/**
 * Design tokens. Fantasy cyan / gold / navy.
 * Colour literals live only here.
 */
:root {
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  /* --- Surfaces (deep navy) --- */
  --color-bg: #07111f;
  --color-surface: #0c1a2e;
  --color-surface-muted: #12253f;
  --color-surface-subtle: #18314f;
  --color-skeleton: #1e3a5c;
  --color-skeleton-strong: #2a4d73;

  /* --- Text --- */
  --color-text: #eef6ff;
  --color-text-secondary: #c5d7ec;
  --color-text-muted: #9bb0c9;
  --color-text-subtle: #7e95b0;
  --color-text-faint: #667d99;
  --color-text-faintest: #536780;

  /* --- Lines --- */
  --color-border: #2a4666;
  --color-border-strong: #3dd6f5;
  --color-border-soft: #1a3050;
  --color-border-softer: #142640;
  --color-border-input: #3a5a7a;
  --color-border-muted: #35506e;

  /* --- Accents --- */
  --color-accent: #3dd6f5;
  --color-accent-hot: #f0c75e;
  --color-accent-cool: #2a9fd4;
  --color-accent-glow: rgba(61, 214, 245, 0.4);
  --color-accent-soft: rgba(61, 214, 245, 0.16);
  --color-rank-gold: #f0c75e;
  --color-rank-silver: #b8c9dc;
  --color-rank-bronze: #d4a06a;

  /* --- Gradients --- */
  --gradient-card: linear-gradient(
    155deg,
    #12253f 0%,
    #0c1a2e 50%,
    #07111f 100%
  );
  --gradient-card-top1: linear-gradient(
    155deg,
    #1a3a55 0%,
    #0f2844 40%,
    #0a1c32 100%
  );
  --gradient-card-top23: linear-gradient(
    155deg,
    #16324c 0%,
    #0e2238 50%,
    #091828 100%
  );
  --gradient-logo: linear-gradient(135deg, #1a3a55, #0c1a2e 55%, #14304a);
  --gradient-cta: linear-gradient(90deg, #2a9fd4, #3dd6f5 45%, #f0c75e);
  --gradient-cta-hover: linear-gradient(90deg, #3dd6f5, #7ae4f8 45%, #f5d57a);
  --gradient-cta-top1: linear-gradient(90deg, #f0c75e, #f5d57a 50%, #3dd6f5);
  --gradient-text: linear-gradient(90deg, #f0c75e, #3dd6f5 55%, #a8ecf8);
  --gradient-divider: linear-gradient(
    90deg,
    transparent,
    #3dd6f5,
    #f0c75e,
    #3dd6f5,
    transparent
  );
  --gradient-accent-line: linear-gradient(
    90deg,
    transparent,
    #3dd6f5,
    #f0c75e,
    transparent
  );

  /* --- Inverted --- */
  --color-inverted-bg: #3dd6f5;
  --color-inverted-bg-hover: #7ae4f8;
  --color-inverted-text: #07111f;
  --color-contrast-bg: #f0c75e;
  --color-contrast-text: #07111f;

  /* --- Overlay --- */
  --color-overlay: rgba(4, 10, 20, 0.88);
  --color-overlay-soft: rgba(4, 10, 20, 0.58);

  /* --- Spinner --- */
  --color-spinner-track: #1e3a5c;
  --color-spinner-head: #3dd6f5;

  /* --- Layout --- */
  --layout-max-width: 1200px;
  --layout-padding-x: 1.25rem;
  --content-max-width: 900px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;

  --shadow-glow: 0 0 28px var(--color-accent-glow);
  --shadow-card: 0 10px 36px rgba(0, 0, 0, 0.4);

  /* --- Atmosphere veil --- */
  --color-veil-top: rgba(7, 17, 31, 0.35);
  --color-veil-mid: rgba(7, 17, 31, 0.55);
  --color-veil-bottom: rgba(7, 17, 31, 0.82);
  --color-mask-mid: rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

ul,
ol {
  padding: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

#igre,
#odmah-u-pregledniku,
#zasto-ovdje,
#igraj-s-mjerom,
#kako-poceti,
#za-koga,
#sto-slijedi {
  scroll-margin-top: 5.5rem;
}

.jj-foyer {
  position: relative;
  z-index: 1;
  flex: 1;
}

.jj-foyer__notice {
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
  font-size: 0.75rem;
  color: var(--color-text-faintest);
  margin: 0 auto 0.5rem;
  line-height: 1.45;
  text-align: center;
  max-width: 32.5rem;
}

.jj-foyer__notice-link {
  color: var(--color-text-faintest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jj-foyer__notice-link:hover {
  color: var(--color-accent);
}

.jj-topline {
  position: relative;
  z-index: 2;
  width: 100%;
  background: var(--color-overlay-soft);
  backdrop-filter: blur(8px);
}

.jj-topline__inner {
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
  padding-block: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jj-topline__home {
  display: inline-flex;
  align-items: center;
}

.jj-topline__logo {
  width: 8.75rem;
  height: auto;
}

.jj-topline__accent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gradient-accent-line);
  pointer-events: none;
}

.jj-endcap {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--color-text);
}

.jj-endcap--sticky {
  padding-bottom: 4.5rem;
}

.jj-endcap__divider {
  height: 2px;
  background: var(--gradient-divider);
  margin-bottom: 0.5rem;
}

.jj-endcap__inner {
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
  padding-block: 1.75rem 2rem;
}

.jj-endcap__grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 769px) {
  .jj-endcap__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
  }
}

.jj-endcap__logo {
  width: 8.75rem;
  height: auto;
  margin-bottom: 0.75rem;
}

.jj-endcap__blurb {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 0.625rem;
}

.jj-endcap__email {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jj-endcap__col-title {
  margin: 0 0 0.625rem;
  font-family: var(--font-display), serif;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--color-accent-hot);
}

.jj-endcap__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jj-endcap__link {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-text-secondary);
}

.jj-endcap__link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.jj-endcap__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-soft);
}
@media (min-width: 769px) {
  .jj-endcap__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.jj-endcap__note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.jj-endcap__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

@media (max-width: 500px) {
  .jj-endcap--sticky {
    padding-bottom: 3.75rem;
  }
}

.jj-vista {
  position: relative;
  z-index: 1;
  min-height: 0;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.75rem var(--layout-padding-x) 1.25rem;
}

.jj-vista__inner {
  width: 100%;
  max-width: 45rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
}

.jj-vista__badge {
  font-family: var(--font-display), serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.jj-vista__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  font-family: var(--font-display), serif;
  font-size: clamp(2.125rem, 8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-align: center;
  text-wrap: balance;
}

.jj-vista__lead {
  font-size: 0.58em;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.jj-vista__accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px var(--color-accent-glow));
}

.jj-vista__tail {
  margin-top: 0.375rem;
  font-size: clamp(0.75rem, 2.4vw, 0.9375rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.jj-vista__desc {
  font-family: var(--font-body), sans-serif;
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 28rem;
  text-align: center;
  margin-inline: auto;
}

.jj-vista__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
  margin-inline: auto;
  padding: 0.625rem 1.625rem;
  border-radius: var(--radius-md);
  background: var(--gradient-cta);
  color: var(--color-inverted-text);
  font-family: var(--font-display), serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: jj-vista-cta-pulse 2.4s ease-in-out infinite;
}

.jj-vista__cta:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

@keyframes jj-vista-cta-pulse {
  from {
    box-shadow: 0 0 12px var(--color-accent-glow);
  }
  to {
    box-shadow: 0 0 28px var(--color-accent-glow);
  }
}
@media (prefers-reduced-motion: reduce) {
  .jj-vista__cta {
    animation: none;
  }
}

.jj-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.jj-atmosphere__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.jj-atmosphere__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.jj-atmosphere__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 18% 8%, var(--color-accent-soft), transparent 70%), radial-gradient(ellipse 48% 36% at 88% 72%, var(--color-accent-glow), transparent 68%), linear-gradient(180deg, var(--color-veil-top) 0%, var(--color-veil-mid) 55%, var(--color-veil-bottom) 100%);
}

.jj-atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: linear-gradient(var(--color-accent-soft) 1px, transparent 1px), linear-gradient(90deg, var(--color-accent-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, var(--color-mask-mid), transparent 80%);
}

.jj-shelf {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0;
}

.jj-shelf__container {
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
}

.jj-shelf__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.jj-shelf__end {
  width: 100%;
  height: 1px;
}

.jj-slate {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  box-shadow: var(--shadow-card);
}

.jj-slate--top-1 {
  border: 2px solid var(--color-rank-gold);
  background: var(--gradient-card-top1);
  animation: jj-slate-top1-glow 2.8s ease-in-out infinite;
}

.jj-slate--top-2,
.jj-slate--top-3 {
  border: 2px solid var(--color-border-strong);
  background: var(--gradient-card-top23);
}

.jj-slate--compact {
  overflow: visible;
}

.jj-slate__badge {
  position: absolute;
  top: -0.625rem;
  left: 1rem;
  z-index: 3;
  background: var(--color-inverted-bg);
  color: var(--color-inverted-text);
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.1875rem 0.625rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.jj-slate--compact .jj-slate__badge {
  top: 0.625rem;
  left: 0.625rem;
  box-shadow: 0 4px 14px rgba(4, 10, 20, 0.45);
}

.jj-slate--top-1 .jj-slate__badge {
  background: var(--gradient-cta-top1);
  color: var(--color-bg);
  animation: jj-slate-badge-pulse 1.8s ease-in-out infinite;
}

.jj-slate__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.jj-slate__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "logo bonus" "rating rating" "features features" "payments cta" "terms terms";
  gap: 0.75rem;
  padding: 1.125rem 1rem 0.875rem;
  position: relative;
  pointer-events: none;
}

.jj-slate--compact .jj-slate__inner {
  grid-template-columns: 1fr;
  grid-template-areas: "logo" "copy" "cta";
  gap: 0.875rem;
  padding: 0.875rem;
}

.jj-slate__logo-area {
  grid-area: logo;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  background: var(--gradient-logo);
  border: 1px solid var(--color-border-soft);
}

.jj-slate--compact .jj-slate__logo-area {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: none;
  background: var(--color-surface-muted);
}

.jj-slate__logo {
  width: auto;
  height: 3.5rem;
  max-width: 9.75rem;
  object-fit: contain;
}

.jj-slate--compact .jj-slate__logo {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}

.jj-slate__copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 0;
}

.jj-slate__bonus-area {
  grid-area: bonus;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.jj-slate__name {
  margin: 0;
  font-family: var(--font-display), serif;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-text);
}

.jj-slate--compact .jj-slate__name {
  font-size: 1.375rem;
  line-height: 1.15;
}

.jj-slate--compact .jj-slate__bonus-area {
  gap: 0.375rem;
}

.jj-slate__rating {
  grid-area: rating;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-rank-gold);
  font-weight: 700;
  font-size: 0.8125rem;
}

.jj-slate--compact .jj-slate__rating {
  grid-area: unset;
}

.jj-slate__stars {
  display: inline-flex;
  gap: 0.125rem;
  color: var(--color-rank-gold);
}

.jj-slate__star-empty {
  color: var(--color-text-faint);
}

.jj-slate__features {
  grid-area: features;
  display: flex;
  align-items: flex-start;
}

.jj-slate--compact .jj-slate__features {
  grid-area: unset;
}

.jj-slate__feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jj-slate--compact .jj-slate__feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.375rem;
}

.jj-slate__feature-item {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  display: flex;
  gap: 0.375rem;
}

.jj-slate__feature-mark {
  color: var(--color-accent);
  font-weight: 700;
}

.jj-slate__payments {
  grid-area: payments;
  display: flex;
  align-items: center;
}

.jj-slate__cta {
  grid-area: cta;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0.6875rem 0.875rem;
  border-radius: var(--radius-md);
  background: var(--gradient-cta);
  color: var(--color-bg);
  font-weight: 800;
  font-size: 0.875rem;
  text-align: center;
  box-shadow: 0 0 16px var(--color-accent-glow);
  transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.jj-slate--compact .jj-slate__cta {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}

.jj-slate--top-1 .jj-slate__cta {
  background: var(--gradient-cta-top1);
  box-shadow: var(--shadow-glow);
  animation: jj-slate-cta-glow 2s ease-in-out infinite;
}

.jj-slate:hover .jj-slate__cta {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.jj-slate__cta-text {
  color: var(--color-bg);
  font-weight: 800;
}

.jj-slate--top-1 .jj-slate__cta-text {
  color: var(--color-bg);
}

.jj-slate__terms-area {
  grid-area: terms;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jj-slate__terms {
  font-size: 0.6875rem;
  color: var(--color-text-subtle);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}

.jj-slate__terms-link {
  cursor: pointer;
  pointer-events: auto;
  z-index: 2;
  position: relative;
}

.jj-slate__terms-link:hover {
  text-decoration: underline;
}

.jj-slate__feature-list-block {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.jj-slate__feature-row {
  font-size: 0.8125rem;
  margin: 0;
  color: var(--color-text-secondary);
}

.jj-slate__feature-details {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.jj-slate__feature-extra {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.jj-slate__feature-toggle {
  order: 2;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  cursor: pointer;
  text-decoration: underline;
  align-self: flex-start;
  pointer-events: auto;
  z-index: 2;
  position: relative;
  list-style: none;
}

.jj-slate__feature-toggle::-webkit-details-marker {
  display: none;
}

.jj-slate__less-label,
.jj-slate__feature-details[open] .jj-slate__more-label {
  display: none;
}

.jj-slate__feature-details[open] .jj-slate__less-label {
  display: inline;
}

.jj-slate__payment-row {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.jj-slate__payment-logo {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-soft);
  object-fit: contain;
}

.jj-slate__payment-extra {
  display: none;
}

.jj-slate__payment-checkbox:checked ~ .jj-slate__payment-extra {
  display: block;
}

.jj-slate__payment-checkbox:checked ~ .jj-slate__payment-toggle {
  display: none;
}

.jj-slate__payment-toggle {
  background: none;
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-sm);
  padding: 0.125rem 0.375rem;
  font-size: 0.6875rem;
  color: var(--color-text-subtle);
  cursor: pointer;
  pointer-events: auto;
  z-index: 2;
  position: relative;
}

.jj-slate__payment-checkbox:focus-visible ~ .jj-slate__payment-toggle {
  outline: 2px solid var(--color-border-strong);
  outline-offset: 2px;
}

@keyframes jj-slate-top1-glow {
  from {
    box-shadow: 0 0 12px var(--color-accent-glow);
  }
  to {
    box-shadow: 0 0 28px var(--color-accent-glow);
  }
}
@keyframes jj-slate-badge-pulse {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-2px);
  }
}
@keyframes jj-slate-cta-glow {
  from {
    box-shadow: 0 0 12px var(--color-accent-glow);
  }
  to {
    box-shadow: 0 0 26px var(--color-accent-glow);
  }
}
@media (prefers-reduced-motion: reduce) {
  .jj-slate--top-1,
  .jj-slate--top-1 .jj-slate__badge,
  .jj-slate--top-1 .jj-slate__cta {
    animation: none;
  }
}
@media (min-width: 769px) {
  .jj-slate__logo-area {
    min-height: 4rem;
    padding: 0.625rem;
  }
  .jj-slate__logo {
    height: 2.75rem;
    max-width: 8rem;
  }
  .jj-slate__inner {
    grid-template-columns: 140px 1fr auto 1fr auto;
    grid-template-areas: "logo bonus rating features cta" "logo bonus payments features cta" "terms terms terms terms terms";
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }
  .jj-slate--compact .jj-slate__inner {
    grid-template-columns: minmax(13.75rem, 32%) minmax(0, 1fr) auto;
    grid-template-areas: "logo copy cta";
    align-items: stretch;
    gap: 1.125rem;
    padding: 1rem;
  }
  .jj-slate--compact .jj-slate__logo-area {
    aspect-ratio: 16/10;
    min-height: 100%;
  }
  .jj-slate--compact .jj-slate__copy {
    justify-content: center;
    gap: 0.75rem;
    padding-block: 0.25rem;
  }
  .jj-slate--compact .jj-slate__feature-list {
    grid-template-columns: 1fr;
  }
  .jj-slate--compact .jj-slate__cta {
    width: auto;
    min-width: 10.5rem;
    align-self: center;
    padding-inline: 1.375rem;
  }
}

.jj-perk {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.jj-perk__percent {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.jj-perk__amount {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
}

.jj-perk__secondary {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

@media (min-width: 769px) {
  .jj-perk__percent {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-faint);
  }
  .jj-perk__amount {
    font-size: 1.375rem;
    line-height: 1.15;
  }
  .jj-perk__secondary {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
  }
}
.jj-perk__amount--compact {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-secondary);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.jj-perk--compact .jj-perk__amount {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-secondary);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.jj-leisure {
  position: relative;
  z-index: 1;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
  padding-block: 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.jj-leisure__block {
  padding: 1.375rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  background: var(--gradient-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.jj-leisure__block--band {
  background: var(--color-surface-muted);
  border-color: var(--color-border);
  border-left: 3px solid var(--color-accent);
}

.jj-leisure__block--split {
  background: var(--gradient-card-top23);
  border-color: var(--color-border-muted);
}

.jj-leisure__block--quiet {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.jj-leisure__block--glow {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}

.jj-leisure__eyebrow {
  font-family: var(--font-display), serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.375rem;
}

.jj-leisure__title {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.jj-leisure__lead {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin-bottom: 0.875rem;
  max-width: 40rem;
  margin-inline: auto;
}

.jj-leisure__grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 769px) {
  .jj-leisure__grid--two {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) {
  .jj-leisure__grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.jj-leisure__card {
  padding: 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-softer);
  background: var(--color-surface-muted);
}

.jj-leisure__card-title {
  font-family: var(--font-display), serif;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: var(--color-accent-hot);
}

.jj-leisure__card-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.jj-leisure__steps {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 769px) {
  .jj-leisure__steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.jj-leisure__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-softer);
  background: var(--color-surface-muted);
  counter-increment: step;
  text-align: center;
}

.jj-leisure__step::before {
  content: counter(step);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-cta);
  color: var(--color-inverted-text);
  font-size: 0.8125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jj-leisure__step-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.jj-leisure__step-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.jj-leisure__rail {
  display: grid;
  gap: 0.625rem;
}

.jj-leisure__rail-item {
  display: grid;
  gap: 0.25rem;
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--color-border-soft);
}
.jj-leisure__rail-item:last-child {
  border-bottom: 0;
}

.jj-leisure__rail-title {
  font-weight: 700;
  color: var(--color-accent);
}

.jj-leisure__rail-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.jj-leisure__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jj-leisure__chip {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
}

.jj-leisure__catalog {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jj-leisure__catalog:hover {
  color: var(--color-accent-hot);
}

.banner {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 950;
  width: min(22.5rem, 100vw - 2rem);
  padding: 1rem 1.125rem;
  display: grid;
  gap: 0.875rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 12px 32px rgba(4, 10, 20, 0.55), 0 0 0 1px var(--color-accent-soft), 0 0 24px var(--color-accent-glow);
  backdrop-filter: blur(10px);
}

.text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.button,
.secondaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5625rem 0.875rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button {
  border: 1px solid transparent;
  background: var(--gradient-cta);
  color: var(--color-bg);
  box-shadow: 0 0 14px var(--color-accent-glow);
}

.button:hover {
  filter: brightness(1.08);
}

.secondaryButton {
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
}

.secondaryButton:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
  background: var(--color-accent-soft);
}

@media (min-width: 769px) {
  .banner {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}
@media (max-width: 520px) {
  .banner {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }
  .actions {
    width: 100%;
  }
  .button,
  .secondaryButton {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }
}

.jj-armory {
  position: relative;
  z-index: 1;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
  padding-block: 1.75rem 3.5rem;
}

.jj-armory__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.jj-armory__lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 46rem;
  margin-bottom: 1.375rem;
}

.jj-armory__link {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jj-armory__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.875rem;
  margin-bottom: 1.75rem;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface-muted);
}

.jj-armory__toc-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jj-armory__section {
  margin-bottom: 2.25rem;
  scroll-margin-top: 5.5rem;
}

.jj-armory__heading {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 0.625rem;
  color: var(--color-text);
}

.jj-armory__desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.jj-armory__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.jj-armory__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 40rem;
}

.jj-armory__th,
.jj-armory__td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-soft);
  font-size: 0.875rem;
  white-space: nowrap;
}

.jj-armory__th {
  color: var(--color-accent);
  font-weight: 700;
  background: var(--color-surface-muted);
}

.jj-armory__td {
  color: var(--color-text-secondary);
  white-space: normal;
}

.jj-armory__grid {
  display: grid;
  gap: 0.875rem;
}
@media (min-width: 769px) {
  .jj-armory__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.jj-armory__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  background: var(--gradient-card);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.jj-armory__card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.jj-armory__cover {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 16/9;
  object-fit: cover;
}

.jj-armory__card-title {
  font-family: var(--font-display), serif;
  font-weight: 700;
  color: var(--color-text);
}

.jj-armory__card-text {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.jj-annals {
  position: relative;
  z-index: 1;
  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding-x);
  max-width: var(--content-max-width);
  padding-block: 1.75rem 3.5rem;
}

.jj-annals__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.jj-annals__crumb-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jj-annals__genre {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-hot);
}

.jj-annals__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.jj-annals__tagline {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: 0.875rem;
}

.jj-annals__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--color-rank-gold);
  font-weight: 700;
}

.jj-annals__stars {
  display: inline-flex;
  gap: 0.125rem;
  color: var(--color-rank-gold);
}

.jj-annals__star-empty {
  color: var(--color-text-faint);
}

.jj-annals__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius-md);
  background: var(--gradient-cta);
  color: var(--color-bg);
  font-weight: 800;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-glow);
  margin-bottom: 0.5rem;
}

.jj-annals__play {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.jj-annals__cta:hover {
  background: var(--gradient-cta-hover);
}

.jj-annals__note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}

.jj-annals__cover {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-card);
}

.jj-annals__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.875rem;
  margin-bottom: 1.75rem;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface-muted);
}

.jj-annals__toc-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jj-annals__section {
  margin-bottom: 1.75rem;
  scroll-margin-top: 5.5rem;
}

.jj-annals__heading {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.jj-annals__text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.jj-annals__list {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.jj-annals__list li + li {
  margin-top: 0.375rem;
}

.jj-annals__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.jj-annals__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 30rem;
}

.jj-annals__th,
.jj-annals__td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-soft);
  font-size: 0.875rem;
}

.jj-annals__th {
  color: var(--color-accent);
  font-weight: 700;
  background: var(--color-surface-muted);
}

.jj-annals__td {
  color: var(--color-text-secondary);
}

.jj-annals__faq {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.75rem;
}

.jj-annals__faq-summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.625rem 0;
  color: var(--color-text);
  list-style: none;
}

.jj-annals__faq-summary::-webkit-details-marker {
  display: none;
}

.jj-annals__similar {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 769px) {
  .jj-annals__similar {
    grid-template-columns: repeat(3, 1fr);
  }
}

.jj-annals__similar-card {
  padding: 0.875rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  background: var(--gradient-card);
}

.jj-annals__similar-link {
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 2rem var(--layout-padding-x) 3.5rem;
  color: var(--color-text);
}

.panel {
  padding: 1.375rem 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.page h1 {
  margin: 0 0 0.875rem;
  font-family: var(--font-display), serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.15;
}

.page h2 {
  margin: 1.75rem 0 0.625rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
}

.page h3 {
  margin: 1.125rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent-hot);
}

.page p,
.page li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.page p {
  margin: 0 0 0.75rem;
}

.page ul,
.page ol {
  margin: 0 0 0.875rem;
  padding-left: 1.375rem;
}

.page li + li {
  margin-top: 0.375rem;
}

.page a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page a:hover {
  color: var(--color-accent-hot);
}

.lead {
  font-size: 1.0625rem;
  color: var(--color-text);
  margin-bottom: 1.125rem;
}

.meta {
  margin: 0 0 1.125rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Full-screen states rendered without the site chrome: the click hop's
   redirect page, /access-restricted and /error, the 404 and the 500. */
.wrapper {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  max-width: 640px;
  text-align: center;
  border: 1px solid var(--color-border-softer);
  border-radius: 12px;
  padding: 24px;
  background: var(--color-surface);
}

.title {
  margin: 0 0 12px;
}

.subtitle {
  margin: 0 0 10px;
}

.description {
  margin: 0 0 16px;
  color: var(--color-text-secondary);
}

.backLink {
  display: inline-block;
  text-decoration: underline;
}

/* The click hop's redirect page, while its script sends the visitor on. */
.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border: 4px solid var(--color-spinner-track);
  border-top-color: var(--color-spinner-head);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2.4s;
  }
}
.code {
  display: block;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-text-faintest);
}
