/* Crafted harbor controls. Deliberately scoped: signs, weather and gameplay stay unchanged. */
.reference-shell {
  --harbor-steel: url(/static/img/ui/harbor-steel-v2.webp);
  --harbor-paper: url(/static/img/ui/harbor-paper-v2.webp);
}
.reference-shell .topmenu { gap: 9px; }
.reference-shell .topmenu a {
  flex-direction: row; justify-content: flex-start; gap: 13px;
  padding: 18px; min-height: 96px; border: 1px solid #69716e; border-image: none;
  border-radius: 4px; color: #eee3cc; background: linear-gradient(#10171933, #10171966), var(--harbor-steel) center / 320px;
  box-shadow: inset 0 1px #c5c5af55, inset 0 -3px #080c10aa, 0 3px 5px #080b0dbb;
  text-shadow: 0 1px 2px #101719; text-align: left; letter-spacing: .02em;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.reference-shell .topmenu a::before, .reference-shell .topmenu a::after {
  content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #9a9e91; box-shadow: inset 0 1px #d0ccad77, 0 1px 1px #000;
  pointer-events: none;
}
.reference-shell .topmenu a::before { top: 7px; left: 7px; }
.reference-shell .topmenu a::after { bottom: 7px; right: 7px; }
.reference-shell .topmenu a .ico { flex: 0 0 32px; width: 32px; height: 32px; filter: invert(1) brightness(1.3); opacity: .85; }
.reference-shell .nav-copy { display: block; min-width: 0; }
.reference-shell .nav-copy small { display: block; color: #c4b9a3; font: 10px/1.3 Arial,sans-serif; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.reference-shell .topmenu .nav-label { font-size: 16px; line-height: 1.2; }
.reference-shell .topmenu a.active {
  color: #ffedc7; border-color: #c99e57; border-image: none;
  background: linear-gradient(115deg, #99713444, #0d181b66), var(--harbor-steel) center / 320px;
  box-shadow: inset 3px 0 #d6af67, inset 0 1px #eed7a766, inset 0 -3px #080c10aa, 0 3px 5px #080b0dbb;
}
.reference-shell .topmenu a.active .nav-copy small { color: #e7c68a; }
.reference-shell .topmenu a.active .ico { filter: invert(1) sepia(.45); opacity: 1; }
.reference-shell .topmenu a:hover { border-color: #dab773; color: #fff2d5; background: linear-gradient(#c3a56322,#16202344),var(--harbor-steel) center / 320px; }
.reference-shell .topmenu a:active { transform: translateY(1px); }

.reference-shell .tabnav { gap: 6px; }
.reference-shell .tabnav a {
  clip-path: none; min-height: 40px; padding: 9px 13px; border: 1px solid #968669;
  border-radius: 3px; background: linear-gradient(#f4e5bd33,#b19a7333),var(--harbor-paper) center / 280px;
  color: #312b21; box-shadow: inset 0 1px #fff6de88, 0 2px 2px #090e10aa;
  font-size: 12px; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.reference-shell .tabnav a.active {
  color: #ffe6b5; background: var(--harbor-steel) center / 280px;
  border-color: #caa362; box-shadow: inset 0 -3px #caa362,0 2px 2px #090e10aa;
}
.reference-shell .tabnav a:hover { filter: none; border-color: #f2cf8b; box-shadow: inset 0 0 0 1px #d9b57c,0 2px 2px #090e10aa; }
.reference-shell .tabnav a:active { transform: translateY(1px); }
.reference-shell .section-menu > summary { background: var(--harbor-steel) center / 320px; color: #eedbbb; border: 1px solid #8e7957; border-radius: 3px; }
.reference-shell .section-menu[open] > summary { background: var(--harbor-steel) center / 320px; }

.reference-shell .profilecard {
  display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 10px 12px;
  padding: 15px; margin-top: 16px; border: 1px solid #a59576; border-image: none;
  border-radius: 4px; background: var(--harbor-paper) center / 400px; color: #30291f;
  box-shadow: inset 0 0 0 4px #dfd1af, inset 0 0 0 5px #9c8c6a66,0 4px 10px #070b0dbb;
  filter: none;
}
.reference-shell .profilecard .polaroid { float: none; margin: 0; padding: 4px 4px 9px; width: 64px; align-self: start; transform: rotate(-2deg); }
.reference-shell .profilecard .polaroid img { width: 56px; height: 74px; }
.reference-shell .profilecard h2 { display: block; font-size: 17px; line-height: 1.15; margin: 1px 0 4px; border: none; padding: 0; }
.reference-shell .pc-district { margin: 0 0 8px; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; color: #5d503a; }
.reference-shell .pc-stats { display: grid; grid-template-columns: auto auto; gap: 10px; margin: 0; }
.reference-shell .pc-stats dt { font: 10px/1.4 Arial,sans-serif; text-transform: uppercase; letter-spacing: .05em; color: #5d503a; }
.reference-shell .pc-stats dd { margin: 0; font: bold 14px/1.4 Arial,sans-serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.reference-shell .profilecard .pc-mail {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  min-height: 40px; margin: 1px 0 0; padding: 9px 12px; color: #f4e7cd; text-decoration: none;
  background: var(--harbor-steel) center / 280px; border: 1px solid #74654b; border-radius: 3px;
  box-shadow: inset 0 1px #d9c69b33, 0 1px 2px #42362755; font-size: 11px; letter-spacing: .05em;
}
.reference-shell .profilecard .pc-mail span { color: inherit; }
.reference-shell .pc-unread { border-radius: 3px; padding: 1px 6px; background: #e6c27c; color: #302515; font-variant-numeric: tabular-nums; }
.reference-shell .pc-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.reference-shell .pc-links a { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 5px 6px; border: 1px solid #97896d; border-radius: 3px; text-decoration: none; background: #fff6df38; color: #3f3424; }
.reference-shell .profilecard .pc-links a:hover { background: #fff6df99; border-color: #6b5530; }
.reference-shell .profilecard .pc-mail:hover { color: #fff3cd; border-color: #b39762; }
.reference-shell .profilecard .xtra { grid-column: 1 / -1; width: auto; margin: 0; padding: 3px 0 0; border-top: 1px solid #9c896755; background: none; color: #584934; gap: 12px; }
.reference-shell .profilecard .xtra a, .reference-shell .profilecard .xtra .out { color: #584934; font-size: 11px; min-height: 30px; display: inline-flex; align-items: center; }
.reference-shell .profilecard .xtra .out { color: #882e25; }
.reference-shell .profilecard .xtra i { display: none; }
.reference-shell .profilecard .xtra form { margin: 0; }

.reference-shell .submenu { gap: 8px; }
.reference-shell .submenu .paper {
  display: flex; align-items: center; justify-content: flex-start; text-align: left;
  position: relative; min-height: 49px; padding: 12px 30px 12px 15px;
  border: 1px solid #9e8b67; border-image: none; border-radius: 3px;
  background: var(--harbor-paper) center / 300px; color: #332c21;
  box-shadow: inset 0 1px #fff4d4aa, inset 3px 0 #a9957044,0 2px 3px #090c0fbb;
  transform: none; clip-path: none; font-size: 13px; line-height: 1.35;
  transition: border-color .18s, transform .18s;
}
.reference-shell .submenu .paper::after { content: '›'; position: absolute; right: 12px; color: #736141; font: 22px/1 Georgia,serif; pointer-events: none; }
.reference-shell .submenu .paper.active { border-color: #c9a360; border-image: none; color: #ffe5b4; background: var(--harbor-steel) center / 300px; box-shadow: inset 3px 0 #d6af67,0 2px 3px #090c0fbb; }
.reference-shell .submenu .paper.active::after { color: #e5c487; }
.reference-shell .submenu .paper.active::before { filter: invert(1) sepia(.4); }
.reference-shell .submenu .paper:hover { filter: none; border-color: #e2c58c; }
.reference-shell .submenu .paper:active { transform: translateY(1px); }
.reference-shell .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1200px) {
  .reference-shell .topmenu a { flex-direction: column; justify-content: center; text-align: center; padding: 12px 8px; gap: 6px; }
  .reference-shell .topmenu a .ico { width: 26px; height: 26px; flex-basis: 26px; }
  .reference-shell .topmenu .nav-label { font-size: 14px; }
  .reference-shell .nav-copy small { display: none; }
  .reference-shell .profilecard { padding: 12px; gap: 9px; grid-template-columns: 58px minmax(0,1fr); }
  .reference-shell .profilecard h2 { font-size: 14px; letter-spacing: -.02em; }
  .reference-shell .profilecard .polaroid { width: 58px; }
  .reference-shell .profilecard .polaroid img { width: 50px; height: 68px; }
}
@media (max-width: 760px) {
  .reference-shell .topmenu { gap: 5px; }
  .reference-shell .topmenu a { flex-direction: column; justify-content: center; text-align: center; gap: 5px; padding: 10px 4px; min-height: 94px; }
  .reference-shell .topmenu a .ico { flex-basis: 24px; width: 24px; height: 24px; }
  .reference-shell .nav-copy small { display: none; }
  .reference-shell .topmenu .nav-label { font-size: 12px; letter-spacing: .015em; }
  .reference-shell .topmenu a[href="/stadt"] .nav-label { font-size: 11px; }
  .reference-shell .profilecard { width: 100%; margin-top: 0; padding: 14px; grid-template-columns: 58px minmax(0,1fr); }
  .reference-shell .profilecard .pc-text > div { display: block; margin: 0; }
  .reference-shell .pc-stats { grid-template-columns: auto auto; justify-content: start; gap: 24px; }
  .reference-shell .profilecard h2 { font-size: 16px; }
  .reference-shell .profilecard .pc-mail, .reference-shell .pc-links a, .reference-shell .profilecard .xtra a, .reference-shell .profilecard .xtra .out { min-height: 44px; }
  .reference-shell .tabnav a { min-height: 44px; padding: 8px 6px; font-size: 12px; }
  .reference-shell .submenu .paper { padding: 10px 24px 10px 10px; min-height: 48px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .reference-shell .topmenu a, .reference-shell .tabnav a, .reference-shell .submenu .paper { transition: none; }
}
