.ws-subnav .ws-enigma-nav {
  border-color: #70dff0;
  color: #defdff;
  background: linear-gradient(135deg, #234466, #392458);
  box-shadow: inset 0 0 18px #75deef14;
}
.ws-subnav .ws-enigma-nav:hover { background: #365b79; }
.ws-subnav nav { flex-wrap: wrap; }
.ws-enigma {
  scroll-margin-top: 110px;
  border-block: 1px solid #67ccea33;
  background: radial-gradient(ellipse at 90% 5%, #38317466, transparent 40%), radial-gradient(ellipse at 5% 70%, #173f5833, transparent 45%), #100f1d;
}
.ws-enigma h3 { margin: 0 0 18px; font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.ws-enigma h4 { margin: 7px 0 12px; font-size: 1.2rem; }
.ws-enigma p { color: #d1d7e8; line-height: 1.7; }
.ws-enigma .ws-kicker { color: #8ee9ff; }
.ws-enigma-heading { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 30px; align-items: center; margin: 0 0 64px; padding: clamp(24px, 4vw, 52px); border: 1px solid #b1b5eb38; border-radius: 20px; overflow: hidden; background: radial-gradient(ellipse at 85% 40%, #4d418b66, transparent 60%), linear-gradient(125deg, #1b2033, #1e1937); box-shadow: 0 24px 60px #06061150, inset 0 1px 0 #f6e6cc10; }
.ws-enigma-heading::before { content: ''; position: absolute; height: 1px; left: 7%; right: 7%; top: 0; background: linear-gradient(90deg, transparent, #bbe8fcaa, transparent); }
.ws-enigma-lead { position: relative; z-index: 1; }
.ws-page main .ws-enigma-heading h2 { margin: 12px 0 22px; max-width: 600px; font-size: clamp(2.8rem, 5vw, 4.7rem); line-height: 1.06; letter-spacing: -.025em; }
.ws-enigma-heading h2 span { display: block; color: #b1eafb; }
.ws-enigma-heading > div > p { max-width: 580px; }
.ws-enigma-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin: 26px 0; }
.ws-page .ws-enigma .ws-enigma-hero-actions a.ws-btn,
.ws-page .ws-enigma .ws-enigma-hero-actions a.ws-btn:visited { border-color: #9dcfdf99; background: #c7e8f4; color: #132637 !important; box-shadow: 0 5px 20px #73cde61a; }
.ws-enigma-hero-actions .ws-btn:hover { background: #e4f6ff; }
.ws-enigma-live { display: inline-flex; gap: 8px; align-items: center; color: #b8c4db; font-size: .8rem; }
.ws-enigma-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #9bdef2; box-shadow: 0 0 12px #8bd9fa66; }
.ws-enigma-portrait { position: relative; display: grid; place-items: center; align-self: stretch; min-height: 380px; }
.ws-enigma-orbit { position: absolute; width: 100%; max-width: 350px; aspect-ratio: 1; border: 1px solid #b9c9fa33; border-radius: 50%; background: radial-gradient(circle, #87aaf021, transparent 68%); }
.ws-enigma-orbit::before, .ws-enigma-orbit::after { content: ''; position: absolute; inset: 18px; border: 1px dashed #c6d5f422; border-radius: 50%; }
.ws-enigma-orbit::after { inset: -20px; border: 1px solid #99b3e812; }
.ws-enigma-star { position: absolute; top: 12%; right: 12%; color: #b2dbef; font-size: 1.7rem; }
.ws-enigma-shedar { position: relative; width: 100%; height: 450px; object-fit: contain; filter: drop-shadow(0 20px 30px #05091499); transform: rotate(-3deg); }
.ws-enigma-stats { display: flex; flex-wrap: wrap; gap: 18px 26px; margin: 28px 0 20px; padding-top: 22px; border-top: 1px solid #b0bded25; }
.ws-enigma-stats div { display: flex; flex-direction: column-reverse; }
.ws-enigma-stats dt { font-size: .85rem; color: #bdc8de; }
.ws-enigma-stats dd { margin: 0 0 4px; color: #d5f0fd; font-size: 1.8rem; font-weight: 600; line-height: 1.3; }
.ws-enigma-stats small { font-size: 1rem; font-weight: 400; color: #bdc8de; }
.ws-enigma progress { display: block; width: min(100%, 640px); height: 8px; border: 0; border-radius: 8px; overflow: hidden; appearance: none; background: #30364f; color: #78dff3; }
.ws-enigma progress::-webkit-progress-bar { background: #30364f; }
.ws-enigma progress::-webkit-progress-value { background: linear-gradient(90deg, #8875fa, #78e5f5); }
.ws-enigma progress::-moz-progress-bar { background: #78e5f5; }
.ws-enigma-section-title { scroll-margin-top: 110px; margin-bottom: 26px; }
.ws-enigma-section-title h3 { font-size: clamp(1.65rem, 2.6vw, 2.2rem); }
.ws-enigma-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ws-enigma-card { scroll-margin-top: 110px; display: flex; flex-direction: column; border: 1px solid #a7b3db35; border-radius: 14px; overflow: hidden; background: linear-gradient(155deg, #212039, #171827); box-shadow: 0 15px 30px #05061133; transition: border-color .2s, box-shadow .2s; }
.ws-enigma-card:hover { border-color: #a2cce677; box-shadow: 0 18px 36px #05061155; }
.ws-enigma-image { position: relative; display: block; width: 100%; padding: 0; border: 0; color: #fff; background: #0b1020; cursor: zoom-in; }
.ws-enigma-image img { display: block; width: 100%; height: 220px; object-fit: contain; }
.ws-enigma-image-caption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; color: #c4dfe9; font: 500 .75rem/1.4 sans-serif; border-top: 1px solid #8bcded22; background: #1e293c; }
.ws-enigma-image:hover .ws-enigma-image-caption { background: #244760; }
.ws-enigma-image:focus-visible, .ws-enigma-nav:focus-visible { outline: 3px solid #a0eafa; outline-offset: -3px; }
.ws-enigma-card-copy { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.ws-enigma-card-copy p { margin: 0; font-size: .95rem; }
.ws-enigma-card-copy .ws-enigma-thanks { margin-top: auto; padding-top: 20px; color: #9daac5; font-size: .78rem; line-height: 1.6; }
.ws-enigma-thanks strong { color: #cad8ec; font-weight: 600; }
.ws-enigma-glyphs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 10px; }
.ws-enigma-glyph { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 8px; border: 1px solid #9ca6d125; border-radius: 10px; background: #0e12214d; }
.ws-enigma-glyph.is-known { border-color: #91d0e355; background: #1e384344; }
.ws-enigma-crop { position: relative; width: 64px; height: 64px; overflow: hidden; border-radius: 6px; }
.ws-enigma-crop img { position: absolute; max-width: none; width: calc(100% * var(--image-width) / var(--crop-size)); height: auto; left: calc(-100% * var(--crop-x) / var(--crop-size)); top: calc(-100% * var(--crop-y) / var(--crop-size)); }
.ws-enigma-glyph > span:last-child { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.ws-enigma-glyph small { font-size: .65rem; color: #abb9ce; }
.ws-enigma-glyph strong { color: #d6e2f6; font: 600 1.2rem/1 monospace; }
.ws-enigma-glyph.is-known strong { color: #b2effa; }
.ws-enigma-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: stretch; margin-top: 40px; }
.ws-enigma-dictionary, .ws-enigma-code, .ws-enigma-rewards { padding: clamp(22px, 3vw, 36px); border: 1px solid #a7b3db35; border-radius: 14px; background: linear-gradient(140deg, #202039cc, #151a2ad9); }
.ws-enigma-code { scroll-margin-top: 110px; margin: 0 0 clamp(34px, 5vw, 64px); border-color: #8ee9ff4d; background: radial-gradient(ellipse at 100% 0, #51487b66, transparent 64%), #191c2b; }
.ws-enigma-code > p { margin: 0; }
.ws-enigma-decoded { display: flex; align-items: center; gap: 20px; margin: 22px 0; }
.ws-enigma-decoded span { display: grid; place-items: center; width: 76px; height: 76px; flex-shrink: 0; border: 1px solid #a6dbea66; border-radius: 50%; color: #cdf4fd; background: radial-gradient(circle, #70b5d622, transparent); font: 500 2.5rem/1 Georgia, serif; }
.ws-enigma-decoded p { max-width: 200px; font-size: 1.2rem; }
.ws-enigma-official { border-radius: 6px; overflow: hidden; }
.ws-enigma-official img { height: 220px; }
.ws-enigma-pairs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 22px 0 14px; list-style: none; }
.ws-enigma-pairs small { display: block; margin-bottom: 6px; color: #b4bdd3; text-align: center; font-size: .75rem; }
.ws-enigma-pair { display: block; padding: 7px 4px 4px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; }
a.ws-enigma-pair { border-color: #9acfe842; background: #141d32; }
a.ws-enigma-pair:hover, a.ws-enigma-pair:focus-visible { border-color: #b7eefe; background: #25344d; }
.ws-enigma-pair > span { display: flex; gap: 3px; }
.ws-enigma-letter { display: grid; place-items: center; flex: 1; min-width: 0; height: 48px; border: 1px solid #76849d44; border-radius: 6px; font: 500 1.25rem/1 monospace; }
.ws-enigma-letter.known { background: #244e60; border-color: #8ae4f7; color: #e3fcff; }
.ws-enigma-letter.found { background: #353059; border-color: #ab97ef99; color: #e0d8ff; }
.ws-enigma-letter.missing { color: #8090ae; border-style: dashed; }
.ws-enigma-code .ws-enigma-order-note { color: #bdc9e0; font-size: .9rem; }
.ws-enigma-unsolved { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: center; gap: 20px; margin-top: 22px; padding: clamp(16px, 3vw, 24px); border: 1px solid #ae9df344; border-radius: 12px; background: #33264c55; }
.ws-enigma-unsolved h4, .ws-enigma-comparison h5 { margin: 0 0 6px; color: #e9dcff; }
.ws-enigma-unsolved p, .ws-enigma-comparison p { margin: 0; }
.ws-enigma-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ws-enigma-sample { display: grid; justify-items: center; gap: 8px; padding: 10px; border: 1px solid #a3bcda55; border-radius: 10px; background: #161b2d; color: #ddedfb; font-size: .78rem; text-align: center; text-decoration: none; }
.ws-enigma-sample .ws-enigma-crop { width: min(100%, 96px); height: auto; aspect-ratio: 1; }
.ws-enigma-sample:hover, .ws-enigma-sample:focus-visible { border-color: #b7eefe; background: #25344d; color: #fff; }
.ws-enigma-comparison { margin-top: 22px; padding-top: 16px; border-top: 1px solid #8ee9ff44; }
.ws-enigma-comparison .ws-enigma-samples { margin-top: 12px; }
.ws-enigma-card:target { border-color: #8ae4f7; }
.ws-enigma-rewards { display: flex; flex-direction: column; }
.ws-enigma-prizes { display: flex; gap: 20px; }
.ws-enigma-prizes figure { flex: 1; margin: 0; text-align: center; }
.ws-enigma-prizes img { display: block; width: 100%; height: 200px; object-fit: contain; filter: drop-shadow(0 8px 15px #05091455); }
.ws-enigma-prizes figcaption { padding: 8px 0; color: #dfe6f6; font-size: .85rem; }
.ws-enigma-rewards .ws-btn { margin-top: auto; align-self: flex-start; }
#ws-enigma-dialog img { display: block; max-width: 100%; max-height: 75vh; width: auto; height: auto; margin: auto; object-fit: contain; }
@media (max-width: 1150px) { .ws-subnav .ws-submark { display: none; } }
@media (max-width: 800px) {
  .ws-enigma-heading { grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; }
  .ws-enigma-portrait { min-height: 250px; }
  .ws-enigma-shedar { height: 280px; }
  .ws-enigma-pairs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ws-enigma-grid, .ws-enigma-bottom { grid-template-columns: minmax(0, 1fr); }
  .ws-enigma-image img { height: 300px; }
  .ws-enigma-official img { height: 240px; }
}
@media (max-width: 650px) {
  .ws-enigma-unsolved { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .ws-enigma-heading { grid-template-columns: minmax(0, 1fr); }
  .ws-enigma-portrait { position: absolute; right: -45px; top: 20px; width: 150px; opacity: .16; pointer-events: none; }
  .ws-enigma-heading h2 { max-width: 240px; }
  .ws-enigma-stats { gap: 16px; }
  .ws-enigma-stats dt { font-size: .75rem; }
  .ws-enigma-pairs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ws-enigma-image img { height: 250px; }
  .ws-enigma-official img { height: 310px; }
  .ws-enigma .ws-btn { white-space: normal; text-align: center; }
}
