/*
 * Worms 3D for New Nintendo 3DS. The palette, Lilita One menu face, ink shadow
 * and chunky blue panels follow Esteban’s published Worms 3D tracker.
 */
@import url('assets/fonts/nunito.css');
@font-face {
  font-family: 'Lilita One';
  src: url('assets/worms/LilitaOne-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --w3-line: #061427;
  --w3-text: #fffef3;
  --w3-gold: #ffd044;
  --w3-green: #67df47;
  --w3-panel-top: #3b72aa;
  --w3-panel-bottom: #22518b;
  --w3-menu: 'Lilita One', 'Arial Black', sans-serif;
  --w3-ink: 2px 2px 0 #071222, -1px -1px 0 #071222, 1px -1px 0 #071222, -1px 1px 0 #071222;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: linear-gradient(#4b90ee 0%, #9be4ff 35%, #3094cb 51%, #237eb5 100%) fixed;
  color: var(--w3-text);
  font:
    600 16px/1.6 Nunito,
    Arial,
    sans-serif;
}
button,
a {
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
img {
  max-width: 100%;
  height: auto;
}
svg {
  display: block;
  max-width: 100%;
}
code {
  font:
    0.92em ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  background: #0a284c;
  border: 1px solid #ffffff2e;
  border-radius: 6px;
  padding: 1px 6px;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--w3-gold);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  z-index: 11000;
  top: 8px;
  left: 15px;
  background: #fff;
  color: #111;
  padding: 8px 14px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.w3-page {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-bottom: 10px;
}
.w3-wallpaper {
  position: fixed;
  inset: var(--forge-header-height, 0px) 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.w3-wallpaper:before {
  content: '';
  position: absolute;
  inset: -10px;
  background: url('assets/worms/wallpaper.webp') center 43% / cover no-repeat;
  filter: blur(6px);
  opacity: 0.28;
}
.w3-wallpaper:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #548af61a, #9fe5ff55 45%, #1685b455 100%);
}
.w3-hero,
.w3-facts,
.w3-panel,
.w3-footer {
  width: min(100% - 88px, 1280px);
  margin-inline: auto;
}

/* Medallions from the tracker’s sprite sheet (3 × 2). */
.w3-medal {
  --size: 44px;
  --col: 0;
  --row: 0;
  display: inline-block;
  flex-shrink: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #061a40 url('assets/worms/medallions.webp') no-repeat;
  background-size: calc(var(--size) * 3.2) calc(var(--size) * 2.1333333);
  background-position: calc(var(--size) * -0.0791667 - var(--col) * var(--size) * 1.0166667)
    calc(var(--size) * -0.0729167 - var(--row) * var(--size) * 0.9833333);
  filter: drop-shadow(1px 2px 0 #07182c88);
}
.w3-medal-shotgun {
  --col: 0;
  --row: 0;
}
.w3-medal-scarf {
  --col: 1;
  --row: 0;
}
.w3-medal-sheep {
  --col: 2;
  --row: 0;
}
.w3-medal-finger {
  --col: 0;
  --row: 1;
}
.w3-medal-arrow {
  --col: 1;
  --row: 1;
}
.w3-medal-binoculars {
  --col: 2;
  --row: 1;
}

/* Buttons */
.w3-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 3px solid var(--w3-line);
  border-radius: 15px;
  padding: 6px 18px 6px 7px;
  background: linear-gradient(#397cbd, #174b85);
  box-shadow:
    inset 0 2px #86b9db,
    0 3px #174071;
  color: #fff;
  font: 20px/1.2 var(--w3-menu);
  text-decoration: none;
  text-shadow: var(--w3-ink);
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    color 0.12s;
}
.w3-button .w3-medal {
  --size: 36px;
}
.w3-button:hover {
  color: #ffdc4b;
  box-shadow:
    inset 0 0 0 2px #ffd33c,
    0 3px #174071;
}
.w3-button:active {
  transform: translateY(2px);
}
.w3-button-gold {
  background: linear-gradient(#f7b733, #d0761a);
  box-shadow:
    inset 0 2px #ffe08a,
    0 3px #7a3e0c;
}
.w3-button-gold:hover {
  color: #fff6c9;
  box-shadow:
    inset 0 0 0 2px #fff1a8,
    0 3px #7a3e0c;
}

/* Hero */
.w3-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(250px, 1fr);
  gap: 48px;
  align-items: center;
  padding: 34px 0 30px;
}
.w3-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-width: 0;
}
.w3-platform {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  border: 3px solid var(--w3-line);
  border-radius: 999px;
  padding: 5px 16px;
  background: linear-gradient(#3b72aa, #22518b);
  box-shadow:
    inset 0 2px #8bb1d6,
    0 3px #1b4b78;
  font: 15px var(--w3-menu);
  letter-spacing: 0.3px;
  text-shadow: var(--w3-ink);
}
.w3-platform b {
  color: var(--w3-gold);
}
.w3-logo {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 2px 0 -18px -10px;
  filter: drop-shadow(0 5px 1px #18366455);
}
.w3-hero h1 {
  margin: 0 0 0 4px;
  font: 400 clamp(28px, 3.2vw, 40px)/1.15 var(--w3-menu);
  text-shadow: var(--w3-ink);
}
.w3-hero .port-release {
  margin: 14px 0 0 4px;
}
.w3-intro {
  max-width: 660px;
  margin: 13px 0 0 5px;
  font-size: 17px;
  line-height: 1.7;
  text-shadow: 1px 1px 2px #173d76;
}
.w3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 0 4px;
}
.w3-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.w3-gauge {
  position: relative;
  width: min(260px, 100%);
  aspect-ratio: 1;
  border: 4px solid var(--w3-line);
  border-radius: 50%;
  background: linear-gradient(#2c66a7, #123e73);
  box-shadow:
    inset 0 3px #8bb1d6,
    0 5px #123a69,
    0 12px 26px #0b2d5a55;
}
.w3-gauge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.w3-ring-interior {
  fill: #0b2a52;
  stroke: var(--w3-line);
  stroke-width: 3;
}
.w3-ring-track {
  fill: none;
  stroke: #153c68;
  stroke-width: 15;
}
.w3-ring-fill {
  fill: none;
  stroke: var(--w3-green);
  stroke-width: 15;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px #67df4788);
}
.w3-gauge-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-shadow: var(--w3-ink);
}
.w3-gauge-value span {
  font: 17px var(--w3-menu);
  color: #cfe7ff;
}
.w3-gauge-value strong {
  font: 400 76px/1 var(--w3-menu);
}
.w3-gauge-value small {
  font-size: 34px;
  margin-left: 2px;
}
.w3-gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  border: 3px solid var(--w3-line);
  border-radius: 18px;
  padding: 10px 20px;
  background: linear-gradient(var(--w3-panel-top), var(--w3-panel-bottom));
  box-shadow:
    inset 0 2px #8bb1d6,
    0 3px #1b4b78;
  text-align: center;
}
.w3-gauge-card b {
  font: 400 17px var(--w3-menu);
  color: var(--w3-gold);
  text-shadow: var(--w3-ink);
}
.w3-gauge-card span {
  font-size: 13px;
  color: #d8ecff;
}

/* Facts */
.w3-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.w3-fact {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  border: 3px solid var(--w3-line);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(var(--w3-panel-top), var(--w3-panel-bottom));
  box-shadow:
    inset 0 2px 0 #8bb1d6,
    0 3px 0 #1b4b78;
}
.w3-fact .w3-medal {
  --size: 52px;
}
.w3-fact p {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}
.w3-fact strong {
  font: 400 23px/1.15 var(--w3-menu);
  text-shadow: var(--w3-ink);
}
.w3-fact span {
  font-size: 14px;
  color: #d8ecff;
}

/* Panels */
.w3-panel {
  margin-bottom: 36px;
  border: 4px solid var(--w3-line);
  border-radius: 26px;
  padding: 34px 38px 32px;
  background: linear-gradient(#19508ef2, #0d3567f5);
  box-shadow:
    inset 0 3px 0 #6fa3d6,
    inset 0 -4px 0 #082c57,
    0 5px 0 #0b2d57,
    0 18px 40px #0a2a5040;
}
.w3-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 26px;
}
.w3-heading > span,
.w3-kicker {
  font: 14px var(--w3-menu);
  letter-spacing: 0.6px;
  color: var(--w3-gold);
  text-shadow: var(--w3-ink);
}
.w3-heading h2 {
  margin: 0;
  font: 400 clamp(30px, 3.6vw, 44px)/1.1 var(--w3-menu);
  text-shadow: var(--w3-ink);
}
.w3-heading p {
  margin: 4px 0 0;
  color: #d8ecff;
}
.w3-note {
  margin: 22px 0 0;
  font-size: 13px;
  color: #bcd7f2;
}

/* Gallery */
.w3-gallery-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 34px;
  align-items: center;
}
.w3-hardware {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
}
.w3-hardware svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 22px #04173380);
}
.w3-hardware > span {
  position: absolute;
  right: 6%;
  top: 6%;
  border: 2px solid var(--w3-line);
  border-radius: 10px;
  padding: 3px 10px;
  background: #174b85e6;
  font: 13px var(--w3-menu);
  text-shadow: var(--w3-ink);
  opacity: 0;
  transition: opacity 0.2s;
}
.w3-hardware:hover > span,
.w3-hardware:focus-visible > span {
  opacity: 1;
}
.w3-lower-screen text {
  fill: #e9f5ff;
  font: 50px var(--w3-menu);
  letter-spacing: 2px;
  paint-order: stroke;
  stroke: #071222;
  stroke-width: 8px;
}
.w3-lower-screen .w3-lower-small {
  fill: var(--w3-gold);
  font-size: 34px;
}
.w3-gallery-controls {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.w3-caption-card {
  border: 3px solid var(--w3-line);
  border-radius: 18px;
  padding: 16px 20px;
  background: linear-gradient(var(--w3-panel-top), var(--w3-panel-bottom));
  box-shadow:
    inset 0 2px 0 #8bb1d6,
    0 3px 0 #1b4b78;
  min-height: 160px;
}
.w3-caption-card h3 {
  margin: 2px 0 6px;
  font: 400 27px/1.15 var(--w3-menu);
  text-shadow: var(--w3-ink);
}
.w3-caption-card p:last-child {
  margin: 0;
  color: #e3f1ff;
}
.w3-scene-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.w3-scene {
  position: relative;
  padding: 0;
  border: 3px solid var(--w3-line);
  border-radius: 12px;
  overflow: hidden;
  background: #0a284c;
  box-shadow: 0 3px 0 #082c57;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.w3-scene img {
  display: block;
  width: 100%;
  aspect-ratio: 5/3;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.15s;
}
.w3-scene span {
  position: absolute;
  left: 6px;
  bottom: 4px;
  font: 14px var(--w3-menu);
  text-shadow: var(--w3-ink);
}
.w3-scene:hover img,
.w3-scene[aria-pressed='true'] img {
  opacity: 1;
}
.w3-scene:hover {
  transform: translateY(-2px);
}
.w3-scene[aria-pressed='true'] {
  border-color: var(--w3-gold);
  box-shadow:
    0 0 0 2px var(--w3-line),
    0 3px 0 #082c57;
}
.w3-browse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: 14px var(--w3-menu);
  color: #cfe7ff;
  text-shadow: var(--w3-ink);
}
.w3-browse div {
  display: flex;
  gap: 8px;
}
.w3-browse button {
  width: 46px;
  height: 42px;
  border: 3px solid var(--w3-line);
  border-radius: 12px;
  background: linear-gradient(#3879ba, #174b83);
  box-shadow:
    inset 0 2px 0 #80c2e3,
    0 2px 0 #061427;
  color: #fff;
  font: 20px var(--w3-menu);
  text-shadow: var(--w3-ink);
}
.w3-browse button:hover {
  color: #ffda4f;
}

/* Port cards and performance */
.w3-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.w3-card {
  border: 3px solid var(--w3-line);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(var(--w3-panel-top), var(--w3-panel-bottom));
  box-shadow:
    inset 0 2px 0 #8bb1d6,
    0 3px 0 #1b4b78;
}
.w3-card .w3-medal {
  --size: 54px;
}
.w3-card h3 {
  margin: 12px 0 6px;
  font: 400 22px/1.15 var(--w3-menu);
  text-shadow: var(--w3-ink);
}
.w3-card p {
  margin: 0;
  font-size: 15px;
  color: #e3f1ff;
}
.w3-performance {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 22px;
}
.w3-fps {
  border: 3px solid var(--w3-line);
  border-radius: 18px;
  padding: 18px 22px;
  background: linear-gradient(#2d8a3c, #17602a);
  box-shadow:
    inset 0 2px 0 #8fe28c,
    0 3px 0 #0f4a1f;
}
.w3-fps strong {
  display: block;
  font: 400 64px/1 var(--w3-menu);
  text-shadow: var(--w3-ink);
  margin: 6px 0 8px;
}
.w3-fps small {
  font-size: 28px;
  margin-left: 6px;
}
.w3-fps p {
  margin: 0;
  color: #eaffe6;
}
.w3-screens {
  display: grid;
  gap: 14px;
  align-content: center;
}
.w3-screen-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 3px solid var(--w3-line);
  border-radius: 16px;
  padding: 14px 18px;
  background: #0a284c;
}
.w3-screen-row:before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 3px solid var(--w3-line);
  border-radius: 50%;
  background: var(--w3-green);
}
.w3-screen-row.is-pending:before {
  background: var(--w3-gold);
}
.w3-screen-row b {
  font: 400 20px var(--w3-menu);
  text-shadow: var(--w3-ink);
  white-space: nowrap;
}
.w3-screen-row span {
  color: #d8ecff;
  font-size: 15px;
}

/* Mods */
.w3-mods-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.w3-mods-copy > p {
  margin: 0 0 14px;
  font-size: 17px;
}
.w3-mods-copy strong {
  color: var(--w3-gold);
}
.w3-mod-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.w3-mod-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  border: 3px solid var(--w3-line);
  border-radius: 14px;
  padding: 12px 16px;
  background: #0a284c;
}
.w3-mod-list li:before {
  content: 'Planned';
  grid-row: span 2;
  align-self: center;
  border: 2px solid var(--w3-line);
  border-radius: 8px;
  padding: 2px 8px;
  background: var(--w3-gold);
  color: #1d1300;
  font: 13px var(--w3-menu);
}
.w3-mod-list li.is-ready:before {
  content: 'In game';
  background: var(--w3-green);
  color: #062008;
}
.w3-mod-list b {
  font: 400 19px var(--w3-menu);
  text-shadow: var(--w3-ink);
}
.w3-mod-list span {
  font-size: 15px;
  color: #d8ecff;
}
.w3-mod-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.w3-mod-shot {
  margin: 0;
  border: 3px solid var(--w3-line);
  border-radius: 16px;
  overflow: hidden;
  background: #0a284c;
  box-shadow: 0 3px 0 #082c57;
}
.w3-mod-shot-wide {
  grid-column: 1 / -1;
  background: #1e1d2b;
}
.w3-mod-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.w3-mod-shot-wide img {
  aspect-ratio: 2;
}
.w3-mod-shot figcaption {
  padding: 7px 12px;
  font: 14px var(--w3-menu);
  text-shadow: var(--w3-ink);
  background: #123e73;
}

/* Road */
.w3-road {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.w3-road-column {
  border: 3px solid var(--w3-line);
  border-radius: 18px;
  padding: 18px 22px;
  background: linear-gradient(var(--w3-panel-top), var(--w3-panel-bottom));
  box-shadow:
    inset 0 2px 0 #8bb1d6,
    0 3px 0 #1b4b78;
}
.w3-road-column h3 {
  margin: 0 0 10px;
  font: 400 24px var(--w3-menu);
  color: var(--w3-green);
  text-shadow: var(--w3-ink);
}
.w3-road-column.is-next h3 {
  color: var(--w3-gold);
}
.w3-road-column ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.w3-road-column li {
  display: flex;
  gap: 10px;
}
.w3-road-column li:before {
  content: '✓';
  font: 17px var(--w3-menu);
  color: var(--w3-green);
  text-shadow: var(--w3-ink);
}
.w3-road-column.is-next li:before {
  content: '›';
  color: var(--w3-gold);
}

/* FAQ */
.w3-faq details {
  border-bottom: 2px solid #ffffff22;
  padding: 14px 0;
}
.w3-faq summary {
  font: 400 21px/1.4 var(--w3-menu);
  text-shadow: var(--w3-ink);
}
.w3-faq details p {
  max-width: 800px;
  margin: 10px 0 0;
  color: #d8ecff;
}
.w3-faq > .w3-button {
  margin-top: 26px;
}
.w3-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px 0 30px;
  font: 15px var(--w3-menu);
  text-shadow: var(--w3-ink);
}
.w3-footer > span {
  margin-right: auto;
}
.w3-footer a {
  text-decoration: none;
}
.w3-footer a:hover {
  color: var(--w3-gold);
}

/* Lightbox */
#w3-lightbox {
  padding: 0;
  border: 4px solid var(--w3-line);
  border-radius: 18px;
  background: #0d3567;
  color: #fff;
  width: min(1050px, 94vw, calc(166.6667dvh - 160px));
  max-height: 94dvh;
  overflow: auto;
}
#w3-lightbox::backdrop {
  background: #061427e0;
}
.w3-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font: 17px var(--w3-menu);
  text-shadow: var(--w3-ink);
}
#w3-lightbox-close {
  width: 40px;
  height: 38px;
  border: 3px solid var(--w3-line);
  border-radius: 10px;
  background: linear-gradient(#3879ba, #174b83);
  color: #fff;
  font: 24px/1 var(--w3-menu);
}
#w3-lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5/3;
}

@media (max-width: 1100px) {
  .w3-hero,
  .w3-facts,
  .w3-panel,
  .w3-footer {
    width: calc(100% - 48px);
  }
  .w3-facts,
  .w3-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .w3-gallery-stage,
  .w3-mods-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .w3-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 22px;
  }
  .w3-panel {
    padding: 24px 18px;
    border-radius: 20px;
  }
  .w3-performance,
  .w3-road {
    grid-template-columns: 1fr;
  }
  .w3-button {
    font-size: 17px;
  }
}
@media (max-width: 520px) {
  .w3-hero,
  .w3-facts,
  .w3-panel,
  .w3-footer {
    width: calc(100% - 24px);
  }
  .w3-facts,
  .w3-cards {
    grid-template-columns: 1fr;
  }
  .w3-scene-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .w3-screen-row {
    flex-wrap: wrap;
  }
  .w3-footer {
    flex-wrap: wrap;
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .w3-button,
  .w3-scene,
  .w3-scene img {
    transition: none;
  }
}
