/* Arena Teney — World Navigation WN1 r02
 * Elden / dark-fantasy mobile presentation.
 * No travel authority, no shared dock ownership, no body/root geometry ownership.
 */

#screen-map[data-wn-legacy-map="true"] {
  display: none !important;
}

#screen-worldnav {
  --wn-gold: #bfa66b;
  --wn-gold-bright: #dcc98d;
  --wn-gold-dim: rgba(191, 166, 107, .34);
  --wn-ivory: #ece6d8;
  --wn-muted: #96958f;
  --wn-muted-2: #757772;
  --wn-stone: #0b0d0e;
  --wn-stone-2: #111416;
  --wn-stone-3: #171a1b;
  --wn-line: rgba(207, 188, 137, .18);
  --wn-line-strong: rgba(207, 188, 137, .42);
  --wn-danger: #9d6559;
  --wn-current: #a9c39d;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  overflow-x: hidden;
  color: var(--wn-ivory);
}

.wn1-shell {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 16px;
}

.wn1-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 174px;
  padding: 21px 18px 18px;
  border: 1px solid var(--wn-line-strong);
  border-radius: 3px 17px 3px 17px;
  background:
    radial-gradient(circle at 82% 14%, rgba(184, 157, 90, .12), transparent 31%),
    radial-gradient(circle at 16% 86%, rgba(121, 132, 111, .11), transparent 34%),
    linear-gradient(155deg, rgba(24, 25, 23, .98), rgba(11, 13, 14, .99) 60%, rgba(6, 8, 9, .99));
  box-shadow:
    0 20px 46px rgba(0, 0, 0, .34),
    inset 0 0 0 1px rgba(255, 250, 225, .018),
    inset 0 -46px 80px rgba(0, 0, 0, .2);
}

.wn1-hero::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(207, 188, 137, .08);
  border-radius: 1px 12px 1px 12px;
  background:
    repeating-linear-gradient(117deg, transparent 0 13px, rgba(255,255,255,.006) 13px 14px, transparent 14px 28px),
    linear-gradient(90deg, transparent, rgba(255,255,255,.012), transparent);
}

.wn1-hero::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 13px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--wn-gold), rgba(191, 166, 107, .12) 55%, transparent 88%);
  opacity: .56;
}

.wn1-hero-seal {
  position: absolute;
  width: 160px;
  height: 160px;
  right: -48px;
  top: -34px;
  pointer-events: none;
  opacity: .22;
  border: 1px solid rgba(218, 196, 136, .34);
  border-radius: 50%;
  box-shadow:
    0 0 0 15px rgba(191, 166, 107, .025),
    0 0 0 39px rgba(191, 166, 107, .018),
    inset 0 0 42px rgba(191, 166, 107, .05);
}

.wn1-hero-seal::before,
.wn1-hero-seal::after,
.wn1-hero-seal span::before,
.wn1-hero-seal span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(218, 196, 136, .45);
  transform-origin: center;
}

.wn1-hero-seal::before,
.wn1-hero-seal span::before {
  width: 1px;
  height: 118px;
  margin: -59px 0 0 -.5px;
}

.wn1-hero-seal::after,
.wn1-hero-seal span::after {
  width: 118px;
  height: 1px;
  margin: -.5px 0 0 -59px;
}

.wn1-hero-seal span::before { transform: rotate(45deg); }
.wn1-hero-seal span::after { transform: rotate(45deg); }

.wn1-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  color: var(--wn-gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wn1-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 350px;
  color: var(--wn-ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 8vw, 37px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.025em;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .65);
}

.wn1-hero p {
  position: relative;
  z-index: 1;
  max-width: 530px;
  margin: 11px 0 0;
  color: #aaa9a2;
  font-size: 12px;
  line-height: 1.56;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.wn1-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.wn1-chip {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 9px;
  border: 1px solid rgba(195, 179, 136, .2);
  border-radius: 2px 9px 2px 9px;
  background: rgba(7, 9, 10, .58);
  color: #aaa79d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .025em;
}

.wn1-chip.current {
  border-color: rgba(194, 178, 126, .42);
  color: var(--wn-gold-bright);
  background: rgba(31, 28, 20, .58);
}

.wn1-block {
  position: relative;
  min-width: 0;
  padding: 16px 13px 15px;
  border-top: 1px solid var(--wn-line-strong);
  border-bottom: 1px solid rgba(207, 188, 137, .12);
  background:
    linear-gradient(90deg, rgba(191, 166, 107, .022), transparent 22%, transparent 78%, rgba(191, 166, 107, .018)),
    linear-gradient(180deg, rgba(13, 16, 17, .88), rgba(8, 10, 11, .9));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
}

.wn1-block::before,
.wn1-block::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 34px;
  height: 5px;
  border-top: 1px solid var(--wn-gold-dim);
  border-bottom: 1px solid rgba(191,166,107,.13);
}

.wn1-block::before { left: 0; }
.wn1-block::after { right: 0; }

.wn1-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  padding: 0 2px;
}

.wn1-block-head small {
  display: block;
  margin-bottom: 3px;
  color: #7f806f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.wn1-block-head h3 {
  margin: 0;
  color: var(--wn-ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.wn1-count {
  flex: 0 0 auto;
  color: #85847b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 700;
}

.wn1-path {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 5px 0 2px;
}

.wn1-path::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 31px;
  bottom: 31px;
  width: 1px;
  background: linear-gradient(180deg, rgba(205, 185, 125, .58), rgba(157, 137, 91, .28) 58%, rgba(103, 87, 60, .12));
  box-shadow: 0 0 14px rgba(191, 166, 107, .08);
}

.wn1-node-wrap {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.wn1-node {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  min-height: 74px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 7px;
  border: 1px solid rgba(123, 119, 104, .28);
  border-radius: 2px 12px 2px 12px;
  background:
    linear-gradient(90deg, rgba(191, 166, 107, .024), transparent 34%),
    linear-gradient(145deg, rgba(23, 26, 27, .97), rgba(12, 14, 15, .98));
  color: var(--wn-ivory);
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  box-shadow:
    inset 0 1px rgba(255,255,255,.012),
    inset 0 -20px 34px rgba(0,0,0,.13),
    0 7px 20px rgba(0,0,0,.16);
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

.wn1-node::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 13px;
  bottom: 13px;
  width: 1px;
  background: rgba(205, 185, 125, .12);
}

.wn1-node:active {
  transform: scale(.989);
}

.wn1-node.selected {
  border-color: rgba(208, 187, 126, .58);
  background:
    linear-gradient(90deg, rgba(193, 168, 100, .075), transparent 45%),
    linear-gradient(145deg, rgba(30, 30, 27, .99), rgba(13, 14, 14, .99));
  box-shadow:
    inset 0 0 0 1px rgba(215, 193, 132, .04),
    0 0 24px rgba(191, 166, 107, .06),
    0 9px 24px rgba(0,0,0,.2);
}

.wn1-node.current {
  border-color: rgba(173, 190, 148, .48);
  background:
    linear-gradient(90deg, rgba(130, 154, 116, .09), transparent 43%),
    linear-gradient(145deg, rgba(25, 31, 27, .98), rgba(12, 16, 14, .99));
}

.wn1-node.current.selected {
  border-color: rgba(197, 188, 130, .68);
}

.wn1-node.locked {
  border-color: rgba(126, 92, 83, .28);
  opacity: .72;
}

.wn1-node-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(183, 166, 118, .24);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(191, 166, 107, .08), transparent 64%),
    rgba(11, 13, 13, .94);
  color: #b8a56f;
  box-shadow:
    inset 0 0 18px rgba(191, 166, 107, .03),
    0 6px 15px rgba(0,0,0,.22);
}

.wn1-node-icon svg,
.wn1-expanded-sigil svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wn1-node.current .wn1-node-icon {
  border-color: rgba(168, 191, 143, .38);
  color: #b9c9a5;
  background:
    radial-gradient(circle, rgba(149, 175, 130, .1), transparent 64%),
    rgba(14, 19, 16, .96);
}

.wn1-node.locked .wn1-node-icon {
  border-color: rgba(144, 98, 88, .28);
  color: #8d6a60;
}

.wn1-node-copy {
  min-width: 0;
}

.wn1-node-copy strong {
  display: block;
  overflow: hidden;
  color: #e8e2d5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wn1-node-copy span {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #858781;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wn1-node-state {
  align-self: center;
  color: #7d735c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.wn1-node.current .wn1-node-state {
  color: #b7c99f;
  font-size: 13px;
}

.wn1-node.locked .wn1-node-state {
  color: #8b6259;
}

.wn1-expanded {
  position: relative;
  z-index: 1;
  margin: -3px 8px 4px 20px;
  padding: 21px 14px 14px 20px;
  border-left: 1px solid rgba(201, 180, 119, .38);
  border-right: 1px solid rgba(201, 180, 119, .08);
  border-bottom: 1px solid rgba(201, 180, 119, .15);
  border-radius: 0 0 2px 11px;
  background:
    radial-gradient(circle at 0 0, rgba(191, 166, 107, .07), transparent 38%),
    linear-gradient(180deg, rgba(14, 16, 16, .98), rgba(8, 10, 10, .99));
  box-shadow: 0 14px 26px rgba(0,0,0,.18);
}

.wn1-expanded-rule {
  position: absolute;
  top: 10px;
  left: 17px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 1px;
  background: linear-gradient(90deg, rgba(205, 185, 125, .42), transparent 72%);
}

.wn1-expanded-rule span {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(205,185,125,.55);
  transform: rotate(45deg);
  background: #111311;
}

.wn1-expanded-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.wn1-expanded-sigil {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(190, 168, 108, .21);
  border-radius: 50%;
  color: var(--wn-gold);
  background: rgba(8, 10, 10, .78);
}

.wn1-expanded-sigil svg {
  width: 24px;
  height: 24px;
}

.wn1-expanded-kicker {
  margin-bottom: 2px;
  color: #8b8066;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.wn1-expanded h4 {
  margin: 0;
  color: #ede6d8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.18;
}

.wn1-expanded > p {
  margin: 12px 0 0;
  color: #9c9d97;
  font-size: 11px;
  line-height: 1.55;
}

.wn1-expanded > p.wn1-unlock {
  margin-top: 8px;
  padding-left: 9px;
  border-left: 1px solid rgba(157, 101, 89, .42);
  color: #b08b82;
}

.wn1-expanded-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.wn1-expanded-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(159, 148, 117, .18);
  border-radius: 2px 8px 2px 8px;
  background: rgba(9, 11, 11, .75);
  color: #8c8c84;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  font-weight: 700;
}

.wn1-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: 8px;
  margin-top: 13px;
}

.wn1-action {
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 2px 10px 2px 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.wn1-action:active:not(:disabled) {
  transform: scale(.985);
}

.wn1-action.primary {
  border: 1px solid rgba(215, 192, 128, .55);
  background:
    linear-gradient(180deg, rgba(191, 166, 107, .16), rgba(95, 78, 43, .08)),
    #151512;
  color: #e0cc91;
  box-shadow: inset 0 0 20px rgba(191, 166, 107, .035);
}

.wn1-action.secondary {
  border: 1px solid rgba(124, 125, 119, .25);
  background: #0d0f0f;
  color: #aaa89e;
}

.wn1-action:disabled {
  opacity: .42;
  filter: grayscale(.6);
  cursor: default;
}

@media (max-width: 430px) {
  .wn1-hero {
    min-height: 166px;
    padding: 19px 15px 16px;
    border-radius: 3px 15px 3px 15px;
  }

  .wn1-hero-seal {
    width: 145px;
    height: 145px;
    right: -52px;
    top: -36px;
  }

  .wn1-block {
    padding: 14px 10px 13px;
  }

  .wn1-node {
    grid-template-columns: 54px minmax(0, 1fr) 18px;
    gap: 8px;
    min-height: 72px;
    padding-right: 10px;
  }

  .wn1-node-icon {
    width: 47px;
    height: 47px;
  }

  .wn1-node-icon svg {
    width: 27px;
    height: 27px;
  }

  .wn1-path::before {
    left: 27px;
  }

  .wn1-expanded {
    margin-left: 17px;
    padding-left: 17px;
  }

  .wn1-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wn1-node,
  .wn1-action {
    transition: none;
  }
}
