/*
	Stile der VulnonaMAP-Ebenen. Werte aus den berechneten Stilen der Originalseite (Bodenansicht),
	SVG-Maße im Vulnona-Pixelraum (2,5 px pro Spieleinheit), skalieren also mit dem Zoom wie im Original.
*/

/* ---------- Sichtbarkeit (wie Vulnonas Klassen am #map; Gebietskarte, Gefahrenzonen und Safe-Rocks sind ausgeblendet) ---------- */

.v-svg > g { display: none; }
.vmap.v-grid_line .grid_layer,
.vmap.v-water .water_layer,
.vmap.v-road .road_layer,
.vmap.v-land .land_layer,
.vmap.v-cave .cave_layer,
.vmap.v-sky .sky_layer,
.v-svg > .extra_layer { display: block; }

.extra_layer > * { display: none; }
.vmap.v-MudPool .extra_layer > .mud,
.vmap.v-Migration .extra_layer > .mz,
.vmap.v-PatrolZone .extra_layer > .pz,
.vmap.v-Sanctuary .extra_layer > .sanc { display: block; }

.vmap:not(.v-water) .v-img.water_layer { display: none; }

.v-text > * { display: none; }
/* Namen erscheinen mit ihrer Ebene; Gebietsnamen schließen die von Spielern benannten ein. Koordinaten und Straßennamen bleiben aus. */
.vmap.v-area_name .v-text.area > .name,
.vmap.v-water .v-text.water > .name,
.vmap.v-land .v-text.land > .name { display: block; }

/* ---------- SVG ---------- */

.v-svg { stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.v-svg title { pointer-events: none; }

/* Raster */
.v-svg .gl_X, .v-svg .gl_XB { stroke: rgba(255, 136, 0, .6); stroke-width: 1px; fill: none; }
.v-svg .gl_Y, .v-svg .gl_YB { stroke: rgba(0, 136, 255, .6); stroke-width: 1px; fill: none; }
.v-svg .gl_XB { fill: rgba(255, 136, 0, .6); }
.v-svg .gl_YB { fill: rgba(0, 136, 255, .6); }
.v-svg .gl_D { stroke-dasharray: 0 5; }
.v-svg .gl_W { stroke: #fff; stroke-width: .5px; }

/* Wasser (Vektor) */
.v-svg .water { stroke: #0ff; stroke-width: 2; fill: none; fill-rule: evenodd; }
.v-svg .water.fill { fill: #08f9; }
.v-svg .water.color2 { stroke: #0fe; }
.v-svg .water.color2.fill { fill: #0f95; }
.v-svg .water.scent { stroke: none; fill: #0ffa; }
.v-svg .water.line { stroke-width: 3; }
.v-svg .water.nofill { fill: none; }

/* Straßen */
.v-svg .road { stroke: #9f0; stroke-width: 3; fill: none; pointer-events: visibleStroke; }
.v-svg .road.fill { stroke-width: 1; stroke-dasharray: 2 3; stroke-opacity: .7; fill: #9f0; fill-opacity: .3; }
.v-svg .road.trail { stroke: #7f4; stroke-width: 2; stroke-dasharray: 0 3; }

/* Höhlen (Bodenansicht) */
.v-svg .cave_layer > g.B0 { opacity: 1; }
.v-svg .cave_layer > g.B1 { opacity: .8; }
.v-svg .cave_layer > g.B2 { opacity: .7; }
.v-svg .cave_layer > g.B3 { opacity: .6; }
.v-svg .cave { stroke: rgba(255, 255, 0, .667); stroke-width: 1.5px; fill: none; pointer-events: visibleStroke; }
.v-svg .cave.bold { stroke-width: 2.5px; }
.v-svg .cave.fill { stroke-width: 0; fill: rgba(255, 255, 0, .667); }
.v-svg .cave.uw { stroke: rgba(17, 153, 255, .667); }
.v-svg .cave.uw.fill { fill: rgba(17, 153, 255, .667); }
.v-svg .cave.up, .v-svg .cave.dw { visibility: hidden; stroke-width: 0; opacity: .8; }
.v-svg .cave.up { fill: #1df; }
.v-svg .cave.dw { fill: #f99; }
.v-svg .cave.B0.dw { visibility: visible; fill: #f0f; }
.v-svg .cave.exit { stroke: #000; stroke-width: .75px; fill: rgba(255, 255, 204, .6); filter: drop-shadow(0 0 1px #fff); pointer-events: visiblePainted; }

/* Luftströmungen */
.v-svg .sky_layer { opacity: .6; }
.v-svg .sky { opacity: .75; fill: none; filter: drop-shadow(0 3px 2px #000) drop-shadow(0 3px 3px #000); }
.v-svg .sky.bold { stroke: #fbb; stroke-width: 20px; }
.v-svg .sky.up { stroke: #fff; stroke-width: 2px; fill: #f60; pointer-events: visiblePainted; cursor: help; }

/* Zonen */
.v-svg .extra.mud, .v-svg .extra_layer > g.mud { stroke: #fd0; stroke-width: 1; fill: #842; }
.v-svg .extra.mz { stroke: #000; stroke-width: 1; fill: rgba(0, 204, 119, .4); }
.v-svg .extra.mz.mmz { stroke: #6f0; stroke-width: 3; fill: rgba(0, 255, 136, .467); }
.v-svg .extra.pz { stroke: #e00; stroke-width: 2; fill: rgba(255, 0, 0, .333); }
.v-svg .extra.sanc { stroke: #ff9; stroke-width: 8; stroke-dasharray: 0 14; fill: rgba(255, 153, 255, .6); }

.v-svg .dev { display: none; }

/* Hover-Infos: diese Elemente reagieren auf die Maus (der Rest des SVG lässt sie durch) */
.v-svg .extra_layer > * { pointer-events: visiblePainted; cursor: help; }
.v-svg .sky.bold { pointer-events: visibleStroke; cursor: help; }
.v-svg .cave.up, .v-svg .cave.dw { pointer-events: visiblePainted; cursor: help; }
.v-svg .road, .v-svg .cave { cursor: help; }
.v-text > div { pointer-events: auto; cursor: help; }

.v-tip {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 1000;
	max-width: 280px;
	padding: 6px 9px;
	border-radius: 6px;
	background: rgba(20, 24, 30, .92);
	color: #fff;
	font: 12px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
	box-shadow: 0 2px 8px #0008;
	pointer-events: none;
}
.v-tip-kind { color: #9fc4e8; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.v-tip-kind .v-icon.inline { width: 16px; height: 16px; font-size: 12px; line-height: 16px; vertical-align: -3px; }
.v-tip-name { margin: 1px 0 3px; font-size: 14px; font-weight: 700; }
.v-tip-line { color: #d6dde5; }
.v-tip-line small { color: #9aa7b4; }

/* ---------- Beschriftungen (Vulnonas Skalierungsformel) ---------- */

.v-anchor { width: 0 !important; height: 0 !important; background: none; border: 0; }

.v-text {
	--sR: 1; --sX: .25; --sL: 1; --sF: .75; --sH: 3.0625;
	position: absolute;
	left: 0;
	top: 0;
	transform: translate(-50%, -50%) scale(calc(var(--vz) * var(--sR) * var(--sX) / clamp(var(--sL), var(--vz) * var(--sF), var(--sH))));
	text-align: center;
	white-space: nowrap;
	font: bold 40px/42px Meiryo, Arial, sans-serif;
	paint-order: stroke fill;
	pointer-events: none;
}
.v-text.small { --sR: .75; }
.v-text.large { --sR: 1.25; }
.v-text .s { display: block; font: bold 24px/24px Meiryo, Arial, sans-serif; }
.v-text .m { display: block; font: bold 32px/32px Meiryo, Arial, sans-serif; }
.v-text .l { display: block; font: bold 48px/48px Meiryo, Arial, sans-serif; }
.v-text > .name { position: relative; z-index: 2; }
.v-text > .code { position: relative; z-index: 1; font-size: 28px; line-height: 30px; }

.v-text.area { --sX: .35; --sL: .64; --sF: 1; color: #c40; letter-spacing: -.5px; -webkit-text-stroke: 12px #fff; }
.v-text.area.user { color: #470; }
.v-text.area.ocean { color: #22d; }
.v-text.water { color: #0df; -webkit-text-stroke: 12px #004; }
.v-text.land { color: #fe0; -webkit-text-stroke: 12px #110; }
.v-text.land.mt { color: #f88; }
.v-text.cR { color: #d02; }
.v-text.road { -webkit-text-stroke: 2px #000; }

/* ---------- Icons ---------- */

.v-icon {
	--sL: .1; --sH: 1.5;
	position: absolute;
	left: 0;
	top: 0;
	display: inline-block;
	width: 35px;
	height: 35px;
	border-radius: 100px;
	text-align: center;
	font: normal 20px/30px "Noto Color Emoji", Meiryo, Arial, sans-serif;
	font-style: normal;
	transform: translate(-50%, -50%) scale(calc(var(--vz) * clamp(var(--sL), 1 / var(--vz), var(--sH))));
	cursor: pointer;
}
.vmap.v-all .v-icon { --sL: .05; --sH: .4; }
.v-icon::before { display: inline-block; }
.v-icon:hover { background: rgba(255, 255, 255, .733); }
.v-icon.foodArea::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: calc(var(--rx) * 1px / clamp(var(--sL), 1 / var(--vz), var(--sH)));
	height: calc(var(--ry) * 1px / clamp(var(--sL), 1 / var(--vz), var(--sH)));
	rotate: var(--rt);
	translate: -50% -50%;
	background: rgba(255, 255, 255, .4);
	border-radius: 100%;
	pointer-events: none;
	z-index: -1;
}

/* Icon in der Seitenleiste */
.v-icon.inline { position: static; transform: none; width: 20px; height: 20px; font-size: 14px; line-height: 20px; margin-right: 3px; cursor: inherit; }
.v-icon.inline:hover { background: none; }

/* Foto-Pins: Sprechblase 28×32, halbe Größe, beim Überfahren voll (wie Vulnona) */
.v-pin {
	position: absolute;
	left: -14px;
	top: -32px;
	width: 28px;
	height: 32px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 32'%3E%3Cpath d='M14 31 L8 22 H5 a4 4 0 0 1 -4 -4 V5 a4 4 0 0 1 4 -4 H23 a4 4 0 0 1 4 4 V18 a4 4 0 0 1 -4 4 H20 Z' fill='%23f5b400' stroke='%23704f00' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	color: #fff;
	font: bold 14px/22px system-ui, sans-serif;
	text-align: center;
	text-shadow: 0 0 2px #704f00;
	transform: scale(.5);
	transform-origin: bottom center;
	transition: transform .15s;
	cursor: pointer;
}
.v-pin:hover { transform: scale(1); }
.v-pin.warn { color: #d00; text-shadow: none; filter: drop-shadow(0 0 5px #d00) drop-shadow(0 0 5px #d00); }
.v-photos figure { margin: 8px 0 0; }
.v-photos img { display: block; max-width: 280px; max-height: 200px; border-radius: 4px; }
.v-photos figcaption { margin-top: 4px; font-size: 12px; }
