.pfp-app-splash {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at top left, rgba(248, 198, 85, 0.24), transparent 34%),
    radial-gradient(circle at bottom right, rgba(26, 115, 162, 0.20), transparent 32%),
    #f7ead0;
}

.pfp-app-splash__card {
  width: min(520px, 100%);
  padding: 30px 24px;
  border: 1px solid rgba(109, 78, 34, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(55, 38, 12, 0.16);
  text-align: center;
}

.pfp-app-splash__logo {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 24px;
  background: linear-gradient(145deg, #0f3558, #16708d);
  color: #fff;
  font-size: 32px;
  box-shadow: 0 10px 24px rgba(15, 53, 88, 0.22);
}

.pfp-app-splash__kicker {
  color: #8a5b12;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pfp-app-splash__title {
  margin: 8px 0 8px;
  color: #0f3558;
  font-size: 24px;
  line-height: 1.2;
}

.pfp-app-splash__message {
  min-height: 28px;
  margin: 0 0 18px;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}

.pfp-app-splash__bar {
  width: 100%;
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7d8b7;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pfp-app-splash__bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16708d, #e1a72e);
  transition: width 260ms ease;
}

.pfp-app-splash__progress {
  margin-top: 10px;
  color: #6b4b16;
  font-size: 13px;
  font-weight: 800;
}

.pfp-app-splash__error {
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: #fff4f4;
  color: #8a1f1f;
  font-size: 14px;
  line-height: 1.5;
}

.pfp-app-splash__button {
  appearance: none;
  border: 0;
  border-radius: 15px;
  padding: 12px 16px;
  background: #0f3558;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.pfp-app-splash__hint {
  margin: 18px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(assets/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(assets/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(assets/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}

.pfp-profile-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pfp-profile-hero {
  background: linear-gradient(135deg, #173f7a 0%, #2563eb 100%);
  color: #fff;
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 14px 34px rgba(20, 39, 80, 0.18);
}

.pfp-profile-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pfp-profile-hero__identity {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.pfp-profile-hero__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.48);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.1);
}

.pfp-profile-hero__meta {
  min-width: 0;
}

.pfp-profile-hero__eyebrow {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.pfp-profile-hero__name {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
}

.pfp-profile-hero__rank {
  margin-top: 0.28rem;
  font-size: 0.95rem;
  opacity: 0.92;
}

.pfp-profile-hero__avatar-button,
.pfp-profile-hero__primary-action,
.pfp-profile-hero__secondary-action,
.pfp-profile-card__link-button,
.pfp-profile-inline-link,
.pfp-profile-inventory-cta__button {
  border: none;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.pfp-profile-hero__avatar-button {
  background: rgba(255,255,255,0.14);
  color: #fff;
  padding: 0.8rem 1rem;
  backdrop-filter: blur(8px);
}

.pfp-profile-hero__main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 1rem;
  align-items: end;
}

.pfp-profile-hero__label {
  font-size: 0.9rem;
  opacity: 0.88;
  margin-bottom: 0.35rem;
}

.pfp-profile-hero__amount {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pfp-profile-hero__subamount {
  margin-top: 0.45rem;
  font-size: 0.98rem;
  opacity: 0.92;
}

.pfp-profile-hero__quick-actions {
  display: grid;
  gap: 0.55rem;
}

.pfp-profile-hero__primary-action {
  background: #ffd166;
  color: #3d2500;
  padding: 0.9rem 1rem;
}

.pfp-profile-hero__primary-action:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.pfp-profile-hero__secondary-action {
  background: rgba(255,255,255,0.14);
  color: #fff;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(255,255,255,0.14);
}

.pfp-profile-hero__progress-block {
  margin-top: 1rem;
}

.pfp-profile-hero__progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.pfp-profile-hero__progress-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.16);
}

.pfp-profile-hero__progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fcd34d, #f59e0b);
}

.pfp-profile-hero__progress-subline {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  opacity: 0.94;
}

.pfp-profile-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid #dfe8f5;
  border-radius: 18px;
  padding: 0.45rem;
  box-shadow: 0 8px 18px rgba(24, 39, 75, 0.06);
  position: sticky;
  top: 0.6rem;
  z-index: 5;
  backdrop-filter: blur(12px);
}

.pfp-profile-tab {
  border: none;
  background: transparent;
  border-radius: 14px;
  padding: 0.9rem 0.65rem;
  color: #607089;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1.2;
}

.pfp-profile-tab.is-active {
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

.pfp-profile-tab-panel {
  display: grid;
  gap: 1rem;
}

.pfp-profile-card {
  background: #fff;
  border: 1px solid #e3ebf6;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(24, 39, 75, 0.05);
}

.pfp-profile-card__header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.pfp-profile-card__title {
  margin: 0;
  color: #122033;
  font-size: 1.15rem;
}

.pfp-profile-card__subtitle {
  margin: 0.3rem 0 0;
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.45;
}

.pfp-profile-card__actions {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pfp-profile-card__link-button,
.pfp-profile-inline-link {
  padding: 0.7rem 0.95rem;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

.pfp-profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.pfp-profile-stat-card {
  background: #f8fbff;
  border: 1px solid #e1e9f5;
  border-radius: 18px;
  padding: 0.95rem;
}

.pfp-profile-stat-card__label {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.pfp-profile-stat-card__value {
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 800;
  color: #10233b;
}

.pfp-profile-stat-card__value.is-success {
  color: #15803d;
}

.pfp-profile-stat-card__value.is-info {
  color: #1d4ed8;
}

.pfp-profile-stat-card__hint {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #7b8796;
}

.pfp-profile-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pfp-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.6rem 0.8rem;
  background: #fff7e8;
  color: #8a5a00;
  border: 1px solid #f2d8a0;
  font-size: 0.92rem;
  font-weight: 700;
}

.pfp-profile-empty-state {
  border: 1px dashed #d6dfec;
  background: #f8fbff;
  color: #64748b;
  padding: 0.95rem;
  border-radius: 16px;
}

.pfp-profile-inline-link-row {
  margin-top: 0.8rem;
}

.pfp-profile-month-summary {
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #dbe8f5;
  color: #4b5b6b;
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 1rem;
}

.pfp-profile-details-card {
  background: #fff;
  border: 1px solid #e3ebf6;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(24, 39, 75, 0.05);
  overflow: hidden;
}

.pfp-profile-details-card summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem;
  font-weight: 800;
  color: #122033;
}

.pfp-profile-details-card summary::-webkit-details-marker {
  display: none;
}

.pfp-profile-details-card summary::after {
  content: '▼';
  float: right;
  color: #64748b;
  transition: transform 0.2s ease;
}

.pfp-profile-details-card[open] summary::after {
  transform: rotate(180deg);
}

.pfp-profile-details-card__content {
  padding: 0 1rem 1rem;
}

.pfp-profile-details-card--dangerzone {
  border-color: #f1d5d5;
}

.pfp-profile-inventory-cta {
  display: flex;
  justify-content: center;
}

.pfp-profile-inventory-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #1e88e5;
  color: #fff;
  padding: 0.9rem 1.4rem;
  box-shadow: 0 8px 18px rgba(30, 136, 229, 0.16);
}

.pfp-profile-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #e3ebf6;
  border-radius: 18px;
  padding: 1rem;
  background: #f8fbff;
}

.pfp-profile-toggle-row + .pfp-profile-toggle-row,
.pfp-profile-toggle-group + .pfp-profile-toggle-row,
.pfp-profile-toggle-row + .pfp-profile-toggle-group {
  margin-top: 0.75rem;
}

.pfp-profile-toggle-row__title {
  font-weight: 800;
  color: #10233b;
}

.pfp-profile-toggle-row__hint {
  margin-top: 0.25rem;
  color: #6b7a8d;
  font-size: 0.9rem;
}

.pfp-profile-toggle-row__meta {
  margin-top: 0.35rem;
  color: #7d8da1;
  font-size: 0.82rem;
}

.pfp-profile-push-test {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.7rem 1rem 0 1rem;
}

.pfp-profile-push-test__button {
  border: 1px solid #b9d8f6;
  border-radius: 999px;
  background: #fff;
  color: #0c3563;
  cursor: pointer;
  font-weight: 800;
  padding: 0.65rem 0.95rem;
}

.pfp-profile-push-test__button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.pfp-profile-push-test__result {
  color: #5f6f84;
  font-size: 0.88rem;
}

.pfp-profile-push-ios-help {
  margin: 0.75rem 1rem 0;
  border: 1px solid #f7d08a;
  border-radius: 16px;
  background: #fff8e6;
  color: #5c3a00;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.pfp-profile-push-ios-help strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #10233b;
}

.pfp-profile-push-ios-help ol {
  margin: 0;
  padding-left: 1.25rem;
}

.pfp-profile-push-ios-help li + li {
  margin-top: 0.28rem;
}

.pfp-profile-toggle-row input[type='checkbox'] {
  appearance: none;
  flex: 0 0 auto;
  width: 50px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.pfp-profile-toggle-row input[type='checkbox']::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.pfp-profile-toggle-row input[type='checkbox']:checked {
  background: #1e88e5;
}

.pfp-profile-toggle-row input[type='checkbox']:checked::after {
  transform: translateX(22px);
}

.pfp-profile-toggle-row input[type='checkbox']:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.pfp-profile-radio {
  display: grid;
  gap: 1rem;
}

.pfp-profile-radio__now {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid #dbe8f5;
  border-radius: 16px;
  background: #f8fbff;
}

.pfp-profile-radio__icon,
.pfp-profile-radio__cover {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.pfp-profile-radio__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: #0f5970;
}

.pfp-profile-radio__cover {
  object-fit: cover;
  border-radius: 12px;
}

.pfp-profile-radio__now span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pfp-profile-radio__now strong {
  display: block;
  margin-top: 0.12rem;
  color: #10233b;
  font-size: 1.08rem;
  line-height: 1.25;
}

.pfp-profile-radio__now small {
  display: block;
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.84rem;
}

.pfp-profile-radio__status {
  padding: 0.72rem 0.85rem;
  border: 1px solid #dbe8f5;
  border-radius: 14px;
  background: #f8fbff;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.4;
}

.pfp-profile-radio__status.is-error {
  border-color: #f1c7c7;
  background: #fff5f5;
  color: #8a2b2b;
}

.pfp-profile-radio__controls,
.pfp-profile-radio__volume {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.pfp-profile-radio__controls {
  justify-content: center;
}

.pfp-profile-radio button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.pfp-profile-radio__controls button,
.pfp-profile-radio__volume button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #10233b;
  background: #eef2f5;
}

.pfp-profile-radio__controls .pfp-profile-radio__play {
  width: 58px;
  height: 58px;
  color: #fff;
  background: #1e88e5;
}

.pfp-profile-radio__volume {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.pfp-profile-radio__volume input {
  width: 100%;
  accent-color: #1e88e5;
}

.pfp-profile-radio__track-list {
  max-height: 360px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.pfp-profile-radio__track-list li + li {
  margin-top: 0.4rem;
}

.pfp-profile-radio__track-list button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  color: #10233b;
  background: #f8fafc;
  text-align: left;
}

.pfp-profile-radio__track-cover {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  border-radius: 9px;
}

.pfp-profile-radio__track-cover--placeholder {
  color: #64748b;
  background: #e8eef5;
}

.pfp-profile-radio__track-list button.is-active {
  background: #eaf4ff;
  box-shadow: inset 0 0 0 2px rgba(30, 136, 229, 0.28);
}

.pfp-profile-radio__track-list button.is-locked {
  cursor: not-allowed;
  opacity: 0.72;
}

.pfp-profile-radio__track-list span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.pfp-profile-radio__track-list strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfp-profile-radio__track-list em {
  color: #1e88e5;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.pfp-profile-achievements-panel {
  margin: 1rem 0;
  overflow: hidden;
  border: 1px solid rgba(15, 53, 88, 0.12);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff8e7 0%, #eef8ff 58%, #f4fff1 100%);
  box-shadow: 0 16px 34px rgba(15, 53, 88, 0.1);
}

.pfp-profile-achievements-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-bottom: 1px solid rgba(15, 53, 88, 0.08);
}

.pfp-profile-achievements-kicker {
  display: inline-flex;
  margin-bottom: 0.3rem;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: rgba(15, 53, 88, 0.08);
  color: #0f3558;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pfp-profile-achievements-head h3 {
  margin: 0;
  color: #0f3558;
  font-size: 1.25rem;
}

.pfp-profile-achievements-head p {
  margin: 0.25rem 0 0;
  color: #587086;
  line-height: 1.45;
}

.pfp-profile-achievements-count {
  display: grid;
  place-items: center;
  min-width: 86px;
  border-radius: 20px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 53, 88, 0.08);
}

.pfp-profile-achievements-count strong {
  color: #0f3558;
  font-size: 1.55rem;
  line-height: 1;
}

.pfp-profile-achievements-count span {
  margin-top: 0.22rem;
  color: #6b7f91;
  font-size: 0.75rem;
  font-weight: 800;
}

.pfp-profile-achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.7rem;
  padding: 1rem;
}

.pfp-profile-achievement-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 0.75rem;
  min-height: 92px;
  overflow: hidden;
  border: 1px solid rgba(15, 53, 88, 0.08);
  border-radius: 18px;
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.82);
}

.pfp-profile-achievement-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #16a34a;
}

.pfp-profile-achievement-card.rarity-rare::before { background: #2563eb; }
.pfp-profile-achievement-card.rarity-epic::before { background: #7c3aed; }
.pfp-profile-achievement-card.rarity-legendary::before { background: #d97706; }

.pfp-profile-achievement-visual {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #fff8e1;
  box-shadow: inset 0 0 0 1px rgba(15, 53, 88, 0.08);
}

.pfp-profile-achievement-visual img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.pfp-profile-achievement-visual span {
  font-size: 1.8rem;
}

.pfp-profile-achievement-copy {
  min-width: 0;
}

.pfp-profile-achievement-copy strong {
  display: block;
  color: #0f3558;
  line-height: 1.2;
}

.pfp-profile-achievement-copy p {
  display: -webkit-box;
  margin: 0.25rem 0 0;
  overflow: hidden;
  color: #607589;
  font-size: 0.82rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pfp-profile-achievement-copy small {
  display: inline-flex;
  margin-top: 0.42rem;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .pfp-profile-hero__main-grid,
  .pfp-profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .pfp-profile-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pfp-profile-hero__main-grid,
  .pfp-profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .pfp-profile-hero__top,
  .pfp-profile-card__header,
  .pfp-profile-achievements-head,
  .pfp-profile-toggle-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .pfp-profile-achievements-count {
    width: 100%;
  }

  .pfp-profile-card__actions {
    width: 100%;
  }

  .pfp-profile-card__link-button,
  .pfp-profile-inline-link,
  .pfp-profile-inventory-cta__button,
  .pfp-profile-hero__avatar-button,
  .pfp-profile-hero__primary-action,
  .pfp-profile-hero__secondary-action {
    width: 100%;
    text-align: center;
  }

  .pfp-profile-radio__track-list button {
    grid-template-columns: 30px auto minmax(0, 1fr);
  }

  .pfp-profile-radio__track-list em {
    grid-column: 3;
  }
}

.quick-mark-shell {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 110px;
  box-sizing: border-box;
}

.quick-mark-shell--standalone {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  padding: 28px 16px 96px;
  background:
    radial-gradient(circle at top left, rgba(255, 232, 164, 0.85), transparent 32%),
    linear-gradient(180deg, #f9e19c 0%, #f7cf76 40%, #f0ba63 100%);
}

.quick-mark-card {
  width: min(100%, 760px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.quick-mark-hero {
  padding: 28px 24px 22px;
  background:
    linear-gradient(135deg, rgba(255, 183, 65, 0.24), rgba(19, 163, 227, 0.12)),
    linear-gradient(180deg, #fff9ef 0%, #fff4dc 100%);
}

.quick-mark-hero-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.quick-mark-hero-copy {
  min-width: 0;
}

.quick-mark-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.quick-mark-logo-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.quick-mark-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
}

.quick-mark-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: #0f3c56;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(15, 60, 86, 0.08);
}

.quick-mark-title {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.08;
  color: #17354f;
}

.quick-mark-subtitle {
  margin: 0;
  max-width: 560px;
  color: #44566b;
  font-size: 16px;
  line-height: 1.65;
}

.quick-mark-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-mark-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #516272;
  font-size: 13px;
  font-weight: 700;
}

.quick-mark-meta-pill__icon {
  font-size: 14px;
}

.quick-mark-account-promo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(42, 155, 232, 0.24);
  box-shadow: 0 10px 26px rgba(23, 53, 79, 0.08);
}

.quick-mark-account-promo strong {
  display: block;
  margin-bottom: 4px;
  color: #17354f;
  font-size: 15px;
}

.quick-mark-account-promo span {
  display: block;
  color: #516272;
  font-size: 13px;
  line-height: 1.45;
}

.quick-mark-account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1fa9f2 0%, #137cc5 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 9px 20px rgba(19, 124, 197, 0.22);
}

.quick-mark-account-button:hover {
  transform: translateY(-1px);
}

.quick-mark-install-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 53, 79, 0.12);
  box-shadow: 0 10px 24px rgba(23, 53, 79, 0.08);
}

.quick-mark-install-panel strong,
.quick-mark-install-panel span,
.quick-mark-install-panel small {
  display: block;
}

.quick-mark-install-panel strong {
  color: #17354f;
  font-size: 15px;
  margin-bottom: 4px;
}

.quick-mark-install-panel span,
.quick-mark-install-panel small {
  color: #516272;
  font-size: 13px;
  line-height: 1.45;
}

.quick-mark-install-panel small {
  margin-top: 6px;
  font-weight: 800;
  color: #0f4f7d;
}

.quick-mark-install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb024 0%, #f28c00 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(242, 140, 0, 0.22);
}

.quick-mark-install-button:hover {
  transform: translateY(-1px);
}

.quick-mark-section {
  padding: 24px;
}

.quick-mark-step-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0f4f7d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quick-mark-section h2 {
  margin: 12px 0 8px;
  color: #17354f;
  font-size: 30px;
  line-height: 1.15;
}

.quick-mark-section p {
  margin: 0;
  color: #526476;
  line-height: 1.7;
}

.quick-mark-info-panel {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #f7fbff;
  border: 1px solid #d8ebf8;
  color: #476072;
}

.quick-mark-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #dff3e5;
  font-size: 26px;
}

.quick-mark-info-panel strong,
.quick-mark-location-box__title,
.quick-mark-success-box strong {
  color: #17354f;
}

.quick-mark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  border: none;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.quick-mark-button:hover {
  transform: translateY(-1px);
}

.quick-mark-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.quick-mark-button--location {
  background: linear-gradient(180deg, #39b663 0%, #22914c 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(34, 145, 76, 0.24);
}

.quick-mark-button--location:hover {
  background: linear-gradient(180deg, #32a95a 0%, #1d7f43 100%);
}

.quick-mark-button--primary {
  background: linear-gradient(180deg, #ffb024 0%, #f28c00 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(242, 140, 0, 0.24);
}

.quick-mark-button--primary:hover {
  background: linear-gradient(180deg, #f5a316 0%, #da7f00 100%);
}

.quick-mark-button--secondary {
  background: linear-gradient(180deg, #2a9be8 0%, #1d7fcc 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(30, 136, 229, 0.18);
}

.quick-mark-button--secondary:hover {
  background: linear-gradient(180deg, #218ed8 0%, #176db1 100%);
}

.quick-mark-button--ghost {
  background: #fff;
  color: #17354f;
  border: 1px solid #d8e0e7;
}

.quick-mark-button--ghost:hover {
  background: #f8fafb;
}

.quick-mark-help {
  margin-top: 10px;
  font-size: 13px;
  color: #7a8795;
  text-align: center;
}

.quick-mark-location-box,
.quick-mark-success-box {
  margin-top: 18px;
  padding: 15px 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5edf3;
  color: #435569;
  display: grid;
  gap: 5px;
}

.quick-mark-location-coordinates,
.quick-mark-location-accuracy {
  font-size: 14px;
}

.quick-mark-type-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.quick-mark-type-button {
  width: 100%;
  border: 1px solid #d9e1e8;
  border-radius: 22px;
  padding: 20px 18px;
  text-align: left;
  display: grid;
  gap: 7px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  color: #17354f;
}

.quick-mark-type-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.quick-mark-type-button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.quick-mark-type-button--einweg {
  background: linear-gradient(180deg, #fff5e4 0%, #ffe9c1 100%);
  border-color: #f5c36d;
}

.quick-mark-type-button--einweg:hover:not(:disabled) {
  border-color: #f0a41a;
}

.quick-mark-type-button--mehrweg {
  background: linear-gradient(180deg, #ebf7ff 0%, #d6efff 100%);
  border-color: #8cc6ea;
}

.quick-mark-type-button--mehrweg:hover:not(:disabled) {
  border-color: #2a9be8;
}

.quick-mark-type-button--giveaway {
  background: linear-gradient(180deg, #fff8d7 0%, #eef8dc 100%);
  border-color: #b9d67a;
}

.quick-mark-type-button--giveaway:hover:not(:disabled) {
  border-color: #83aa2d;
}

.quick-mark-type-emoji {
  font-size: 30px;
  line-height: 1;
}

.quick-mark-type-title {
  font-size: 24px;
  font-weight: 800;
  color: #17354f;
}

.quick-mark-type-text,
.quick-mark-inline-status {
  color: #607284;
  line-height: 1.5;
}

.quick-mark-inline-status {
  font-weight: 800;
}

.quick-mark-photo-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  margin-top: 18px;
  border: 2px dashed #b8c7d4;
  border-radius: 22px;
  background: #f8fbfd;
  color: #17354f;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.quick-mark-photo-drop:hover {
  border-color: #2a9be8;
  background: #f1f8fe;
  transform: translateY(-1px);
}

.quick-mark-photo-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.quick-mark-photo-drop--has-preview {
  border-style: solid;
  background: #111827;
}

.quick-mark-photo-placeholder {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 22px;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
}

.quick-mark-photo-placeholder__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #e8f4ff;
  font-size: 32px;
}

.quick-mark-photo-preview {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.quick-mark-section--success {
  text-align: center;
}

.quick-mark-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #e8f8ee;
  font-size: 36px;
  line-height: 1;
}

.quick-mark-success-icon--duplicate {
  background: #fff3dd;
}

.quick-mark-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.quick-mark-status-link {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #f3fbf5;
  border: 1px solid #cdebd4;
  color: #17354f;
}

.quick-mark-status-link strong,
.quick-mark-status-link span {
  display: block;
}

.quick-mark-status-link strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.quick-mark-status-link span {
  color: #516272;
  font-size: 13px;
  line-height: 1.45;
}

.quick-mark-status-link__url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #22914c;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.quick-mark-status-link__copy {
  min-height: 46px;
  margin-top: 0;
  font-size: 14px;
}

.quick-mark-actions--compact {
  margin-top: 14px;
}

.quick-mark-error {
  margin: 0 24px 24px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f0;
  border: 1px solid #ffc9c4;
  color: #b42318;
  font-weight: 700;
}

.quick-mark-error--inline {
  margin: 16px 0 0;
}

.quick-mark-footer {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
}

.quick-mark-footer a {
  color: #7a4b17;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 640px) {
  .quick-mark-shell {
    padding: 16px 12px 102px;
  }

  .quick-mark-shell--standalone {
    padding: 18px 12px 92px;
  }

  .quick-mark-card {
    border-radius: 22px;
  }

  .quick-mark-hero,
  .quick-mark-section {
    padding: 20px 16px;
  }

  .quick-mark-hero-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-mark-logo-link {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 18px;
  }

  .quick-mark-logo {
    width: 62px;
    height: 62px;
    border-radius: 15px;
  }

  .quick-mark-account-promo {
    grid-template-columns: 1fr;
  }

  .quick-mark-install-panel {
    grid-template-columns: 1fr;
  }

  .quick-mark-install-button {
    width: 100%;
  }

  .quick-mark-account-button {
    width: 100%;
  }

  .quick-mark-title {
    font-size: 34px;
  }

  .quick-mark-section h2 {
    font-size: 26px;
  }

  .quick-mark-step-label,
  .quick-mark-meta-pill {
    font-size: 11px;
  }

  .quick-mark-button {
    font-size: 16px;
  }

  .quick-mark-info-panel {
    grid-template-columns: 1fr;
  }

  .quick-mark-info-icon {
    width: 48px;
    height: 48px;
  }

  .quick-mark-error {
    margin: 0 16px 20px;
  }
}

.quick-mark-type-grid--options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-mark-type-button--bulk {
  background: linear-gradient(180deg, #edfdf2 0%, #d8f7e4 100%);
  border-color: #8ad3a4;
}

.quick-mark-type-button--bulk:hover:not(:disabled) {
  border-color: #2da75b;
}

.quick-mark-type-grid--options .quick-mark-type-button {
  min-height: 168px;
}

.quick-mark-success-icon {
  color: #0f5b34;
  font-weight: 900;
}

.quick-mark-success-icon--duplicate {
  color: #8a4e00;
}

@media (max-width: 640px) {
  .quick-mark-type-grid--options {
    grid-template-columns: 1fr;
  }

  .quick-mark-type-grid--options .quick-mark-type-button {
    min-height: auto;
  }
}

/* Platzhalter-Datei, damit der Build läuft.
   Kann später mit echtem Inhalt ersetzt werden. */
:root {
  --pfp-ink: #2b1305;
  --pfp-board: #4a1b06;
  --pfp-wood-dark: #2a0e03;
  --pfp-gold: #d8a24c;
  --pfp-parchment: #f5e3ae;
  --pfp-parchment-light: #fff4c7;
}

.pfp-pirate-page,
.pfp-profile-page,
.pfp-news-page {
  width: min(1180px, calc(100% - 18px));
  box-sizing: border-box;
  margin: 0 auto 28px;
  padding: 18px 18px 34px !important;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0.16)),
    repeating-linear-gradient(90deg, #3a1606 0 76px, #55270d 76px 152px, #783d16 152px 228px);
  box-shadow: 0 22px 48px rgba(37, 16, 4, 0.22);
  color: var(--pfp-ink);
  font-family: Georgia, "Times New Roman", serif;
}

.pfp-pirate-page *,
.pfp-profile-page *,
.pfp-news-page * {
  box-sizing: border-box;
}

.pfp-pirate-hero,
.pfp-inventory-page > h2,
.pfp-search-page > h2,
.pfp-profile-hero,
.pfp-news-page__header {
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 6px solid var(--pfp-board);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 230, 130, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(29, 85, 104, 0.98), rgba(21, 70, 91, 0.98) 48%, rgba(126, 73, 12, 0.96)) !important;
  color: #fff4cb !important;
  box-shadow:
    inset 0 0 0 2px var(--pfp-gold),
    0 8px 0 var(--pfp-wood-dark),
    0 18px 34px rgba(30, 10, 2, 0.26) !important;
}

.pfp-pirate-kicker,
.pfp-profile-hero__eyebrow {
  display: inline-flex !important;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: rgba(255, 244, 203, 0.18) !important;
  color: #fff4cb !important;
  font-family: Arial, sans-serif;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pfp-pirate-hero h1,
.pfp-inventory-page > h2,
.pfp-search-page > h2,
.pfp-profile-hero__name,
.pfp-news-page__header h2 {
  color: #fff8d9 !important;
  font-size: clamp(2rem, 6vw, 3.45rem) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: 0;
  text-shadow: 0 3px 0 #321203, 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.pfp-pirate-hero p,
.pfp-news-page__header p,
.pfp-profile-hero__rank,
.pfp-profile-hero__label,
.pfp-profile-hero__subamount,
.pfp-profile-hero__progress-meta,
.pfp-profile-hero__progress-subline {
  color: rgba(255, 248, 217, 0.94) !important;
  font-weight: 800;
  line-height: 1.45;
}

.pfp-pirate-state,
.pfp-pirate-empty,
.pfp-news-card,
.pfp-profile-card,
.pfp-profile-details-card,
.pfp-profile-tabs,
.pfp-inventory-wallet,
.pfp-search-toolbar,
.pfp-search-popular,
.unknown-drink-form,
.unknown-drink-feedback {
  border: 6px solid var(--pfp-board) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(180deg, var(--pfp-parchment-light) 0%, #eed18b 100%) !important;
  color: #351303 !important;
  box-shadow:
    inset 0 0 0 2px var(--pfp-gold),
    0 8px 0 var(--pfp-wood-dark),
    0 18px 34px rgba(30, 10, 2, 0.26) !important;
}

.pfp-pirate-empty,
.pfp-pirate-state,
.unknown-drink-feedback {
  padding: 16px 18px;
  font-weight: 900;
}

.pfp-pirate-state--error,
.pfp-news-card--error,
.unknown-drink-error {
  background: linear-gradient(180deg, #ffe3d0, #efb891) !important;
  color: #8f1d12 !important;
}

.pfp-pirate-back-button,
.pfp-profile-hero__avatar-button,
.pfp-profile-hero__primary-action,
.pfp-profile-hero__secondary-action,
.pfp-profile-card__link-button,
.pfp-profile-inline-link,
.pfp-profile-inventory-cta__button,
.pfp-profile-push-test__button,
.pfand-button,
.pfp-search-scan-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  border: 3px solid var(--pfp-board) !important;
  border-radius: 11px !important;
  background:
    linear-gradient(180deg, rgba(255, 244, 200, 0.68), transparent 24%),
    linear-gradient(180deg, #b96f1e 0%, #7b3608 100%) !important;
  color: #fff7d6 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  text-align: center;
  text-decoration: none !important;
  text-shadow: 0 2px 0 rgba(52, 20, 2, 0.9);
  box-shadow: inset 0 0 0 2px #dfa95f, 0 5px 0 var(--pfp-wood-dark) !important;
  cursor: pointer;
}

.pfp-profile-hero__primary-action,
.pfand-button--secondary,
.pfand-button--order,
.pfp-search-scan-button.is-active {
  background:
    linear-gradient(180deg, rgba(255, 244, 200, 0.68), transparent 24%),
    linear-gradient(180deg, #167fb0 0%, #07567d 100%) !important;
  box-shadow: inset 0 0 0 2px #62b8d9, 0 5px 0 var(--pfp-wood-dark) !important;
}

.pfp-pirate-back-button {
  margin: 0 0 16px !important;
}

.pfp-overview-page .pfp-overview-quick-mark-button {
  display: flex !important;
  width: min(540px, 100%) !important;
  margin: 18px auto 0 !important;
  justify-self: center;
}

.pfp-inventory-wallet {
  max-width: none !important;
  margin: 0 0 18px !important;
  padding: 16px !important;
}

.pfp-inventory-wallet > div:first-child > div:first-child,
.pfp-search-popular h2,
.pfp-profile-card__title,
.pfp-news-card h3 {
  color: #351303 !important;
  font-size: clamp(1.45rem, 3vw, 2rem) !important;
  font-weight: 900 !important;
  line-height: 1.08;
  text-shadow: 0 1px 0 rgba(255, 245, 197, 0.75);
}

.pfp-search-popular {
  padding: 14px 16px 16px;
}

.pfp-inventory-wallet strong {
  color: #15576b !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
}

.pfp-inventory-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(174px, 1fr));
  gap: 14px !important;
  margin: 18px 0 0 !important;
  justify-content: stretch !important;
}

.pfp-inventory-item,
.drink-card {
  width: auto !important;
  min-width: 0;
  border: 5px solid var(--pfp-board) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(255, 244, 200, 0.72), transparent 22%),
    linear-gradient(180deg, #f4dc9c, #d7ae61) !important;
  color: #2b1305 !important;
  box-shadow: inset 0 0 0 2px rgba(132, 75, 19, 0.48), 0 5px 0 var(--pfp-wood-dark) !important;
}

.pfp-inventory-item {
  padding: 14px 12px !important;
  text-align: center;
}

.pfp-inventory-item__image,
.pfp-inventory-item__icon,
.pfp-inventory-item__placeholder,
.drink-card__media {
  border: 4px solid rgba(74, 27, 6, 0.62) !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 253, 221, 0.82), transparent 34%),
    linear-gradient(180deg, #f5e3ae, #d7ae61) !important;
  box-shadow: inset 0 0 0 2px rgba(132, 75, 19, 0.5), 0 4px 0 var(--pfp-wood-dark) !important;
}

.pfp-inventory-item__image {
  width: 82px !important;
  height: 82px !important;
  padding: 8px;
}

.pfp-inventory-item h4,
.pfp-inventory-item__title {
  color: #351303 !important;
  font-size: 1.04rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pfp-inventory-item__desc,
.pfp-inventory-item__amount,
.pfp-inventory-item__rarity {
  color: #5b2b0d !important;
  font-weight: 800 !important;
}

.pfp-search-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px !important;
  margin-bottom: 18px !important;
  padding: 14px 16px;
}

.pfp-search-input,
.unknown-drink-input,
.pfp-profile-page input:not([type='checkbox']),
.pfp-profile-page select,
.pfp-profile-page textarea {
  min-height: 48px;
  border: 3px solid rgba(74, 27, 6, 0.56) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #fff7d9, #f0d798) !important;
  color: #351303 !important;
  font: inherit !important;
  font-weight: 850 !important;
  box-shadow: inset 0 2px 7px rgba(77, 29, 6, 0.16) !important;
}

.drink-list {
  gap: 12px !important;
}

.drink-card {
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 14px !important;
  padding: 13px 14px !important;
}

.drink-card__media {
  width: 112px !important;
  height: 112px !important;
  overflow: hidden;
}

.drink-card__media img {
  object-fit: contain !important;
  padding: 8px;
  background: rgba(255, 250, 226, 0.72);
}

.drink-card__title {
  color: #351303 !important;
  font-size: 1.2rem !important;
  font-weight: 900 !important;
}

.drink-card__meta {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
}

.drink-card__row {
  border: 3px solid rgba(74, 27, 6, 0.35) !important;
  border-radius: 12px !important;
  background: rgba(255, 247, 217, 0.72) !important;
}

.drink-card__dt,
.drink-card__dd {
  color: #4d2c0d !important;
  font-weight: 850 !important;
}

.drink-card__links {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap;
  margin: 0 0 10px !important;
}

.drink-card__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.42rem 0.75rem;
  border: 3px solid rgba(74, 27, 6, 0.74);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 244, 200, 0.76), transparent 24%),
    linear-gradient(180deg, #f5e3ae, #d7ae61);
  color: #351303 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.05;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 3px 0 var(--pfp-wood-dark);
}

.drink-card__links a:hover,
.drink-card__links a:focus-visible {
  color: #0f4f58 !important;
  text-decoration: none;
}

.pfp-news-card {
  margin-bottom: 16px;
  padding: 16px 18px;
}

.pfp-news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #6f3b0c;
  font-weight: 900;
}

.pfp-news-badge,
.pfp-news-unread,
.pfp-profile-stat-card,
.pfp-profile-chip {
  border: 3px solid var(--pfp-board) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fff2bb, #d69b45) !important;
  color: #371404 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 3px 0 var(--pfp-wood-dark) !important;
  font-weight: 900 !important;
}

.pfp-news-badge,
.pfp-news-unread {
  padding: 5px 10px;
  font-size: 0.82rem;
}

.pfp-news-card__body {
  color: #351303;
  font-weight: 800;
  line-height: 1.55;
}

.pfp-news-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pfp-profile-page {
  display: block !important;
}

.pfp-profile-hero__avatar {
  width: 78px !important;
  height: 78px !important;
  border: 4px solid #f6d88e !important;
  box-shadow: inset 0 0 0 2px rgba(91, 36, 7, 0.55), 0 5px 0 var(--pfp-wood-dark) !important;
}

.pfp-profile-hero__main-grid {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 310px) !important;
}

.pfp-profile-hero__amount {
  color: #fff1bd !important;
  font-size: clamp(2.2rem, 7vw, 4rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 4px 0 #210b02 !important;
}

.pfp-profile-hero__progress-track {
  height: 14px !important;
  border: 3px solid rgba(42, 14, 3, 0.72);
  background: rgba(255, 244, 203, 0.28) !important;
  box-shadow: inset 0 2px 8px rgba(20, 8, 2, 0.35);
}

.pfp-profile-hero__progress-track > span {
  background: linear-gradient(90deg, #ffd37b, #f09616) !important;
}

.pfp-profile-tabs {
  position: sticky;
  top: 8px;
  z-index: 10;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px !important;
  margin-bottom: 16px;
  padding: 10px !important;
}

.pfp-profile-tab {
  min-height: 46px;
  border: 3px solid var(--pfp-board) !important;
  border-radius: 12px !important;
  background:
    linear-gradient(180deg, rgba(255, 244, 200, 0.68), transparent 24%),
    linear-gradient(180deg, #8b4b13, #5b2407) !important;
  color: #fff4cb !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 0 #210b02;
  box-shadow: inset 0 0 0 2px #c0812a, 0 4px 0 var(--pfp-wood-dark) !important;
}

.pfp-profile-tab.is-active {
  border-color: #ffd37b !important;
  background:
    linear-gradient(180deg, rgba(255, 248, 214, 0.78), transparent 24%),
    linear-gradient(180deg, #b66a18, #7a350b) !important;
}

.pfp-profile-card,
.pfp-profile-details-card {
  padding: 16px !important;
}

.pfp-profile-card__subtitle,
.pfp-profile-stat-card__label,
.pfp-profile-stat-card__hint,
.pfp-profile-empty-state,
.pfp-profile-month-summary,
.pfp-profile-toggle-row__hint,
.pfp-profile-toggle-row__meta {
  color: #5b2b0d !important;
  font-weight: 800;
}

.pfp-profile-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.pfp-profile-stat-card {
  border-radius: 14px !important;
  padding: 12px !important;
}

.pfp-profile-stat-card__value,
.pfp-profile-stat-card__value.is-success,
.pfp-profile-stat-card__value.is-info,
.pfp-profile-toggle-row__title {
  color: #351303 !important;
  font-weight: 900 !important;
}

.pfp-profile-empty-state,
.pfp-profile-month-summary,
.pfp-profile-toggle-row,
.pfp-profile-radio__now,
.pfp-profile-radio__status,
.pfp-profile-push-ios-help {
  border: 3px dashed rgba(74, 27, 6, 0.35) !important;
  border-radius: 14px !important;
  background: rgba(255, 247, 217, 0.72) !important;
}

.pfp-profile-details-card summary {
  color: #351303 !important;
  font-weight: 900 !important;
}

.pfp-profile-toggle-row input[type='checkbox'] {
  width: 54px !important;
  height: 32px !important;
  border: 3px solid var(--pfp-board) !important;
  background: linear-gradient(180deg, #f5e3ae, #d7ae61) !important;
}

.pfp-profile-toggle-row input[type='checkbox']:checked {
  background: linear-gradient(180deg, #167fb0, #07567d) !important;
}

@media (max-width: 900px) {
  .pfp-profile-hero__main-grid,
  .pfp-profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .pfp-pirate-page,
  .pfp-profile-page,
  .pfp-news-page {
    width: 100%;
    margin-bottom: 0;
    padding: 10px 10px 28px !important;
    border-radius: 0;
  }

  .pfp-pirate-hero,
  .pfp-inventory-page > h2,
  .pfp-search-page > h2,
  .pfp-profile-hero,
  .pfp-news-page__header,
  .pfp-inventory-wallet,
  .pfp-search-toolbar,
  .pfp-news-card,
  .pfp-profile-card,
  .pfp-profile-details-card {
    border-width: 5px !important;
    border-radius: 16px !important;
  }

  .pfp-pirate-hero h1,
  .pfp-inventory-page > h2,
  .pfp-search-page > h2,
  .pfp-profile-hero__name,
  .pfp-news-page__header h2 {
    font-size: clamp(2rem, 10.5vw, 3rem) !important;
    overflow-wrap: anywhere;
  }

  .pfp-inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
  }

  .pfp-profile-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }

  .drink-card {
    grid-template-columns: 90px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  .drink-card__media {
    width: 90px !important;
    height: 90px !important;
  }

  .drink-card__meta {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 430px) {
  .pfp-pirate-page,
  .pfp-profile-page,
  .pfp-news-page {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .pfp-pirate-hero,
  .pfp-inventory-page > h2,
  .pfp-search-page > h2,
  .pfp-profile-hero,
  .pfp-news-page__header {
    padding: 18px !important;
  }

  .pfp-inventory-grid,
  .pfp-profile-stat-grid,
  .pfp-profile-hero__main-grid {
    grid-template-columns: 1fr !important;
  }

  .pfp-profile-hero__top,
  .pfp-profile-hero__identity,
  .pfp-profile-hero__quick-actions,
  .pfp-profile-card__header,
  .pfp-profile-card__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .pfp-profile-hero__avatar-button,
  .pfp-profile-hero__primary-action,
  .pfp-profile-hero__secondary-action,
  .pfp-profile-card__link-button,
  .pfp-profile-inline-link,
  .pfp-profile-inventory-cta__button {
    width: 100%;
  }

  .pfp-profile-hero__identity {
    justify-items: start;
  }

  .pfp-search-toolbar {
    grid-template-columns: 1fr;
  }

  .pfp-search-scan-button {
    width: 100%;
  }

  .pfp-search-page .drink-card,
  .drink-card {
    grid-template-columns: 1fr !important;
  }

  .pfp-search-page .drink-card__media,
  .drink-card__media {
    width: 96px !important;
    height: 96px !important;
    justify-self: center;
  }

  .pfp-search-page .drink-card__title,
  .drink-card__title {
    text-align: center;
  }

  .drink-card__actions {
    flex-direction: column;
  }

  .drink-card__actions .pfand-button {
    width: 100%;
  }

  .pfp-profile-tab {
    padding: 0.72rem 0.45rem !important;
    font-size: 0.86rem !important;
  }

  .pfp-profile-toggle-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Crew pirate redesign */
.pfp-crew-shell {
  width: min(1180px, calc(100% - 18px)) !important;
  box-sizing: border-box !important;
  margin: 0 auto 28px !important;
  padding: 18px 18px 34px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0.16)),
    repeating-linear-gradient(90deg, #3a1606 0 76px, #55270d 76px 152px, #783d16 152px 228px) !important;
  box-shadow: 0 22px 48px rgba(37, 16, 4, 0.22) !important;
  color: var(--pfp-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

.pfp-crew-shell *,
.pfp-crew-shell *::before,
.pfp-crew-shell *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.pfp-crew-hero {
  margin: 0 0 18px !important;
  padding: 22px 24px !important;
  border: 6px solid var(--pfp-board) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 230, 130, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(29, 85, 104, 0.98), rgba(21, 70, 91, 0.98) 48%, rgba(126, 73, 12, 0.96)) !important;
  color: #fff4cb !important;
  box-shadow:
    inset 0 0 0 2px var(--pfp-gold),
    0 8px 0 var(--pfp-wood-dark),
    0 18px 34px rgba(30, 10, 2, 0.26) !important;
}

.pfp-crew-hero__eyebrow {
  display: inline-flex !important;
  width: fit-content !important;
  margin-bottom: 8px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: rgba(255, 244, 203, 0.18) !important;
  color: #fff4cb !important;
  font-family: Arial, sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.pfp-crew-hero__title {
  color: #fff8d9 !important;
  font-size: clamp(2rem, 6vw, 3.45rem) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  text-shadow: 0 3px 0 #321203, 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.pfp-crew-hero__subtitle {
  color: #fff1bf !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
}

.pfp-crew-panel,
.pfp-crew-metric-card,
.pfp-crew-option-card,
.pfp-cashbook__form-card,
.pfp-cashbook__table-card,
.pfp-cashbook__stat-card {
  border: 5px solid var(--pfp-board) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(255, 249, 224, 0.96), rgba(239, 199, 112, 0.9)),
    var(--pfp-parchment) !important;
  box-shadow:
    inset 0 0 0 2px #e3aa48,
    0 7px 0 var(--pfp-wood-dark),
    0 14px 24px rgba(42, 14, 3, 0.2) !important;
  color: var(--pfp-ink) !important;
}

.pfp-cashbook__header {
  padding: 16px !important;
  border: 5px solid var(--pfp-board) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(255, 252, 235, 0.98), rgba(242, 207, 125, 0.94)),
    var(--pfp-parchment) !important;
  box-shadow:
    inset 0 0 0 2px #e3aa48,
    0 7px 0 var(--pfp-wood-dark),
    0 14px 24px rgba(42, 14, 3, 0.18) !important;
}

.pfp-crew-metric-card.is-warning,
.pfp-crew-metric-card.is-success,
.pfp-crew-metric-card.is-info,
.pfp-crew-metric-card.is-danger,
.pfp-cashbook__stat-card--positive,
.pfp-cashbook__stat-card--negative {
  background:
    linear-gradient(180deg, rgba(255, 250, 228, 0.98), rgba(231, 191, 98, 0.9)),
    var(--pfp-parchment) !important;
}

.pfp-crew-panel__header h3,
.pfp-cashbook__title,
.pfp-cashbook__card-title,
.pfp-crew-option-card__title,
.pfp-crew-member-row__name,
.pfp-crew-ranking-list__name,
.pfp-crew-cashbook-preview__title,
.pfp-crew-metric-card__value,
.pfp-cashbook__stat-value {
  color: #351303 !important;
  font-weight: 900 !important;
}

.pfp-cashbook__header .pfp-cashbook__title {
  color: #2b1305 !important;
  text-shadow: 0 1px 0 rgba(255, 248, 217, 0.85) !important;
}

.pfp-crew-panel__header span,
.pfp-crew-panel__subtext,
.pfp-crew-section-eyebrow,
.pfp-crew-option-card__meta,
.pfp-crew-member-row__subtitle,
.pfp-crew-cashbook-preview__meta,
.pfp-crew-metric-card__label,
.pfp-crew-metric-card__note,
.pfp-cashbook__stat-label,
.pfp-cashbook__stat-note,
.pfp-cashbook__subtitle,
.pfp-cashbook__table-meta,
.pfp-cashbook__form-grid label,
.pfp-crew-toolbar__label,
.pfp-cashbook__period-label,
.pfp-crew-goal-form label {
  color: #5b2b0d !important;
  font-weight: 800 !important;
}

.pfp-cashbook__header .pfp-cashbook__subtitle,
.pfp-cashbook__header .pfp-cashbook__period-label {
  color: #4a1b06 !important;
  text-shadow: none !important;
}

.pfp-cashbook__header .pfp-cashbook__period-label {
  align-self: center !important;
  padding: 8px 12px !important;
  border: 3px solid rgba(74, 27, 6, 0.46) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fff8d9, #e7bf62) !important;
}

.pfp-crew-select,
.pfp-crew-create-form input,
.pfp-crew-toolbar__selects select,
.pfp-cashbook__toolbar-selects select,
.pfp-crew-goal-form__controls input,
.pfp-cashbook__form-grid input,
.pfp-cashbook__form-grid select {
  min-height: 44px !important;
  border: 3px solid rgba(74, 27, 6, 0.58) !important;
  border-radius: 12px !important;
  background:
    linear-gradient(180deg, #fff8d9, #f1dda1) !important;
  color: #351303 !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.58) !important;
  font: 900 1rem Georgia, "Times New Roman", serif !important;
}

.pfp-crew-segmented,
.pfp-cashbook__segmented,
.pfp-crew-tabs {
  gap: 8px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.pfp-crew-segmented button,
.pfp-cashbook__segmented button,
.pfp-crew-tabs button,
.pfp-crew-action-button,
.pfp-cashbook__back,
.pfp-cashbook__submit,
.pfp-cashbook__pagination button {
  min-height: 44px !important;
  border: 3px solid #4a1b06 !important;
  border-radius: 12px !important;
  background:
    linear-gradient(180deg, rgba(255, 213, 105, 0.42), transparent 42%),
    linear-gradient(180deg, #c47420, #7e3507) !important;
  color: #fff8d9 !important;
  box-shadow: inset 0 0 0 2px #e4a54d, 0 4px 0 #2a0e03 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 0 #2a0e03 !important;
}

.pfp-crew-segmented button.is-active,
.pfp-cashbook__segmented button.is-active,
.pfp-crew-tabs button.is-active,
.pfp-crew-action-button.is-primary,
.pfp-cashbook__submit {
  background:
    linear-gradient(180deg, rgba(127, 211, 235, 0.42), transparent 46%),
    linear-gradient(180deg, #1589b7, #075b82) !important;
}

.pfp-crew-action-button.is-success {
  background:
    linear-gradient(180deg, rgba(255, 213, 105, 0.42), transparent 42%),
    linear-gradient(180deg, #c47420, #7e3507) !important;
}

.pfp-crew-action-button.is-danger,
.pfp-cashbook__delete {
  background:
    linear-gradient(180deg, rgba(255, 213, 105, 0.32), transparent 42%),
    linear-gradient(180deg, #b74618, #7b1e0b) !important;
  color: #fff8d9 !important;
}

.pfp-crew-action-button:disabled,
.pfp-cashbook__pagination button:disabled {
  filter: grayscale(0.3);
  opacity: 0.58 !important;
  box-shadow: inset 0 0 0 2px rgba(228, 165, 77, 0.55), 0 4px 0 rgba(42, 14, 3, 0.58) !important;
}

.pfp-crew-link-button {
  color: #075b82 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 900 !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.pfp-crew-status,
.pfp-crew-badge,
.pfp-crew-activity-list__status,
.pfp-crew-redemption-list__status {
  border: 2px solid rgba(74, 27, 6, 0.42) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fff8d9, #e7bf62) !important;
  color: #351303 !important;
  font-family: Arial, sans-serif !important;
  font-weight: 900 !important;
}

.pfp-crew-status.is-success,
.pfp-crew-badge.is-member,
.pfp-crew-cashbook-preview__amount.is-positive,
.pfp-cashbook__table .is-positive {
  color: #075b3f !important;
}

.pfp-crew-status.is-error,
.pfp-cashbook__table .is-negative,
.pfp-crew-cashbook-preview__amount.is-negative {
  color: #7b1e0b !important;
}

.pfp-crew-member-row,
.pfp-crew-ranking-list li,
.pfp-crew-cashbook-preview__row,
.pfp-crew-highlight-card,
.pfp-crew-mini-stat,
.pfp-crew-activity-list__item,
.pfp-crew-activity-detail__box,
.pfp-crew-activity-detail__note,
.pfp-crew-redemption-list__item,
.pfp-crew-empty,
.pfp-cashbook__empty {
  border: 3px dashed rgba(74, 27, 6, 0.32) !important;
  border-radius: 14px !important;
  background: rgba(255, 247, 217, 0.72) !important;
  color: #351303 !important;
}

.pfp-crew-member-row__avatar,
.pfp-crew-ranking-list__avatar {
  border: 3px solid #4a1b06 !important;
  background: linear-gradient(180deg, #fff8d9, #d8a24c) !important;
}

.pfp-crew-ranking-list li.is-self,
.pfp-crew-option-card.is-active {
  border-style: solid !important;
  background:
    linear-gradient(180deg, rgba(255, 250, 228, 0.98), rgba(231, 191, 98, 0.95)) !important;
}

.pfp-crew-progress {
  height: 11px !important;
  border: 2px solid rgba(74, 27, 6, 0.45) !important;
  background: rgba(255, 248, 217, 0.9) !important;
  box-shadow: inset 0 2px 4px rgba(42, 14, 3, 0.16) !important;
}

.pfp-crew-progress__bar {
  background: linear-gradient(90deg, #0b86ad 0%, #f0b21d 48%, #c34620 100%) !important;
}

.pfp-cashbook__table-wrap {
  border: 3px solid rgba(74, 27, 6, 0.28) !important;
  border-radius: 14px !important;
  background: rgba(255, 248, 217, 0.68) !important;
  overflow-x: auto !important;
}

.pfp-cashbook__table th {
  background: rgba(216, 162, 76, 0.34) !important;
  color: #351303 !important;
  font-weight: 900 !important;
}

.pfp-cashbook__table td,
.pfp-cashbook__table th {
  border-color: rgba(74, 27, 6, 0.24) !important;
}

.pfp-cashbook__table tfoot td {
  background: rgba(255, 238, 178, 0.78) !important;
}

@media (max-width: 900px) {
  .pfp-crew-hero,
  .pfp-cashbook__header,
  .pfp-cashbook__toolbar {
    align-items: stretch !important;
  }

  .pfp-crew-hero__actions,
  .pfp-crew-goal-panel__head-actions {
    justify-content: flex-start !important;
  }
}

@media (max-width: 760px) {
  .pfp-crew-shell {
    width: 100% !important;
    margin-bottom: 0 !important;
    padding: 10px 10px calc(34px + env(safe-area-inset-bottom)) !important;
    border-radius: 0 !important;
  }

  .pfp-crew-hero,
  .pfp-crew-panel,
  .pfp-crew-metric-card,
  .pfp-crew-option-card,
  .pfp-cashbook__form-card,
  .pfp-cashbook__table-card,
  .pfp-cashbook__stat-card {
    border-width: 5px !important;
    border-radius: 16px !important;
    padding: 14px !important;
  }

  .pfp-crew-hero__title {
    font-size: clamp(2rem, 10.5vw, 3rem) !important;
    overflow-wrap: anywhere;
  }

  .pfp-crew-tabs,
  .pfp-crew-segmented,
  .pfp-cashbook__segmented {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .pfp-crew-tabs button,
  .pfp-crew-segmented button,
  .pfp-cashbook__segmented button {
    width: 100%;
    padding-inline: 0.55rem !important;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .pfp-crew-shell {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .pfp-crew-hero,
  .pfp-crew-panel,
  .pfp-crew-metric-card,
  .pfp-crew-option-card,
  .pfp-cashbook__form-card,
  .pfp-cashbook__table-card,
  .pfp-cashbook__stat-card {
    padding: 12px !important;
  }

  .pfp-crew-toolbar__selects,
  .pfp-cashbook__toolbar-selects,
  .pfp-crew-goal-form__controls,
  .pfp-crew-hero__actions,
  .pfp-crew-member-row__actions,
  .pfp-crew-option-card__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .pfp-crew-action-button,
  .pfp-cashbook__back,
  .pfp-cashbook__submit {
    width: 100%;
  }
}

/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(assets/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(assets/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(assets/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}

.step-tracker {
  position: relative;
  width: 100%;
  max-width: 600px;       /* Desktop-Max */
  margin: 0 auto;
  /* Hier kommt dein BG rein statt <img> */
  background: url(assets/schatzsuche.jpg) no-repeat center/cover;
  /* Quadrat erzwingen (100% Breite = 100% Höhe) */
  aspect-ratio: 3 / 4;
}

/* Schrittzahl */
.st-steps {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: bold;
  color: #422d0a;
}

/* Prozenttext */
.st-percent {
  position: absolute;
  top: 37%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: #422d0a;
}

/* Fortschrittsleiste (hinter dem Button-Slot im BG) */
.st-bar {
  position: absolute;
  top: 42%;
  left: 10%;
  width: 80%;
  height: 0.75rem;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.st-bar__fill {
  height: 100%;
  background: #4CAF50;
}

/* Button über dein Holz-Panel im BG */
.st-btn {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: #8B4513;
  color: #fff;
  border: none;
  border-radius: 6px;
  box-shadow: 0 3px #663300;
  font-size: 1.8rem;
  cursor: pointer;
}
.st-btn:active {
  transform: translateX(-50%) translateY(2px);
  box-shadow: 0 1px #663300;
}

/* Footer-Stats */
.st-footer {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  width: 80%;
  font-size: 0.9rem;
  color: #422d0a;
  padding: 0 1%;
}
.st-footer__item {
  text-align: center; 
  margin: 0 0.5rem; 
}

/* ==== Mobile-Anpassungen ==== */
@media (max-width: 480px) {
  .step-tracker {
   max-width: 98vw;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
  }
  .st-steps {
    top: 26%;
    font-size: 0.9rem;
  }
  .st-percent {
    top: 32%;
    font-size: 0.85rem;
  }
  .st-bar {
    top: 42%;
    height: 0.6rem;
  }
  .st-btn {
    top: 48%;
    padding: 0.4rem 0.8rem;
    font-size: 1.0rem;
  }
  .st-footer {
    bottom: 8%;
    width: 90%;
    font-size: 0.75rem; 
  }
  .st-footer__item {
    margin: 0 0.4rem;
  }
}


.compass-wrapper {
  width: 170px;
  height: 170px;
  background: #fff7cc;
  border-radius: 50%;
  border: 4px solid #fbbc04;
  box-shadow: 0 4px 24px rgba(255,140,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto;
  position: relative;
}

.schatztruhe-icon {
  position: absolute;
  bottom: 20%;    
  right: 14.5%;
  width: 60px;
  height: auto;
  z-index: 10;
  transition: transform 0.3s;
}

.schatztruhe-icon.hovernd {
  animation: truhe-hover 1.3s infinite ease-in-out;
  filter: drop-shadow(0 0 16px gold);
  cursor: pointer;
}


@media (max-width: 480px) {
  .schatztruhe-icon {
    bottom: 22%;
    right: 13%;
    width: 42px;
  }
}

@keyframes truhe-hover {
  0%   { transform: translateY(0) scale(1.18); }
  50%  { transform: translateY(-14px) scale(1.18); }
  100% { transform: translateY(0) scale(1.18); }
}


.loot-popup {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fffbe8;
  border: 3px solid #dbb73b;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.16);
  padding: 2rem 2.5rem;
  text-align: center;
  z-index: 999;
  font-size: 1.3rem;
  color: #2f2305;
  animation: loot-popup-fadein 0.3s;
}

.loot-popup strong,
.loot-popup b {
  color: #241804;
}
@keyframes loot-popup-fadein {
  from { opacity: 0; transform: translate(-50%, -70%);}
  to   { opacity: 1; transform: translate(-50%, -50%);}
}

.cooldown-text {
  position: absolute;
  top: -2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #c97e1a;
  background: rgba(255,255,220,0.92);
  border-radius: 8px;
  padding: 0.15rem 0.5rem;
  font-size: 0.95rem;
  font-weight: bold;
  z-index: 15;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  white-space: nowrap;
}

/* ========== Base ==========
   (unchanged look, just cleaned) */
html, body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: sans-serif;
  background: #f5f5f5;
  overflow-x: hidden; /* Sicherheitsschiene gg. horizontales Scrollen */
}

button, input {
  font-size: 1.2rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
}

/* ========== Buttons (vereinheitlicht) ========== */
.pfand-button,
.pfand-scan-btn {
  background: #1e88e5;
  color: #fff;
  width: 100%;
  display: block;
  margin: 0.5rem 0;
  padding: 1rem;
  text-decoration: none; /* gilt auch für <a class="pfand-button"> */
}

@media (min-width: 600px) {
  .pfand-button,
  .pfand-scan-btn {
    width: auto;
    display: inline-block;
  }
}

/* Orange Variante für „Jetzt bestellen!“ – gleiche Maße wie .pfand-button */
.pfand-button--order {
  background: #ff9900;
  color: #111;
}
.pfand-button--order:hover,
.pfand-button--order:focus {
  background: #e68a00;
  color: #111;
}

/* In der Actions-Spalte beide Buttons vollbreit und mit Abstand */
.drink-card__actions .pfand-button { width: 100%; display: block; }
.drink-card__actions .pfand-button + .pfand-button { margin-top: 0.5rem; }

/* ========== Pfandpirat Footer Navigation ========== */
.pfandpirat-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  background: var(--wp--preset--color--base, #fff);
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}
.pfandpirat-nav button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}
.pfandpirat-hamburger { transform: translateY(-0.35rem); }

/* Icons fix schwarz/weiß */
.pfandpirat-nav svg,
.pfandpirat-hamburger svg,
.pfandpirat-nav a:active svg,
.pfandpirat-nav a:focus svg,
.pfandpirat-nav a:hover svg {
  color: #222 !important;
  filter: grayscale(100%) !important;
  transition: none !important;
}

/* Dropdown der Nav */
.pfandpirat-dropdown {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: linear-gradient(180deg, #fff8e8 0%, #f6e4b8 100%);
  border: 1px solid rgba(122, 75, 23, 0.35);
  border-radius: 0.75rem;
  box-shadow: 0 8px 18px rgba(48, 24, 6, 0.22);
  padding: 0.55rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pfandpirat-dropdown a,
.pfandpirat-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.48rem 0.55rem;
  border: none;
  border-radius: 0.5rem;
  background: none;
  color: #4a2a0e;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.pfandpirat-dropdown a svg,
.pfandpirat-dropdown button svg {
  flex: 0 0 auto;
  color: #1f5f9a;
  filter: none !important;
}

.pfandpirat-dropdown a.active,
.pfandpirat-dropdown a:hover,
.pfandpirat-dropdown button:hover {
  background: rgba(245, 158, 11, 0.18);
  color: #7a3d08;
  text-decoration: none;
}

.pfandpirat-dropdown hr {
  width: 100%;
  margin: 0.45rem 0;
  border: 0;
  border-top: 1px solid rgba(122, 75, 23, 0.28);
}

.pfandpirat-dropdown .pfandpirat-dropdown-auth {
  color: #0f7cac;
  font-weight: 800;
}

.pfandpirat-dropdown .pfandpirat-dropdown-auth.is-logout {
  color: #c23b22;
}

/* Body unten Platz lassen unter fester Nav */
body { padding-bottom: 4.5rem; }

/* ========== Drink-Search: Mobile Fixes (Overflow vermeiden) ========== */
.drink-card { max-width: 100%; overflow: hidden; }
.drink-card img { display:block; max-width:100%; height:auto; }
.drink-card__title { overflow-wrap:anywhere; word-break:break-word; }

@media (max-width: 520px) {
  .drink-card { grid-template-columns: 88px 1fr !important; }
  .drink-card__actions { grid-column: 1 / -1 !important; grid-row: auto !important; width: 100%; }
}

/* ========== Hamburger Menü (floating) ========== */
.hamburger-menu {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 50%;
  font-size: 1.5rem;
  z-index: 1000;
}
.hamburger-menu:hover { background: #005f8a; }

.menu-container {
  position: fixed;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #0073aa;
  border-radius: 8px;
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.menu-container ul { list-style: none; padding: 0; }
.menu-container li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 0;
}
.menu-container li button {
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #0073aa;
  padding: .5rem 0;
  text-align: left;
  width: 100%;
  transition: color .3s;
}
.menu-container li button:hover { color: #005f8a; }
.menu-container li svg { color:#0073aa; transition: color .3s; }
.menu-container li svg:hover { color:#005f8a; }

/* ========== Project, Progress, XP Animations ========== */
.project-card { border:1px solid #ddd; padding:1rem; margin-bottom:1rem; border-radius:4px; }
.project-card h3 { margin:0 0 .5rem; }
.progress-bar { background:#eee; border-radius:4px; overflow:hidden; height:1rem; margin-bottom:.25rem; }
.progress-bar__fill { background:#0073aa; height:100%; transition:width .3s ease; }

@keyframes shimmer { 0%{background-position:-200% 0;} 100%{background-position:200% 0;} }
@keyframes chestOpen { 0%{transform:scale(1) rotate(0);} 50%{transform:scale(1.2) rotate(-10deg);} 100%{transform:scale(1) rotate(0);} }
.chest-animate { animation: chestOpen .6s ease; }
.treasure-chest.pop { animation: chest-pop .5s ease-out; }
.treasure-chest.open { animation: chest-open 1.5s ease-out, sparkle 2s ease-in-out infinite; }

/* ========== Step Tracker ========== */
.step-tracker-card { background:#f9f9f9; border-radius:10px; padding:1rem; margin:1rem 0; text-align:center; font-size:.9rem; box-shadow:0 2px 5px rgba(0,0,0,.05); }
.step-tracker-steps { font-size:2rem; margin:.5rem 0; color:#333; }
.step-tracker-progress-text { font-size:.85rem; color:#555; }
.step-tracker-progress { background:#ddd; height:8px; border-radius:4px; margin:.75rem 0; overflow:hidden; }
.step-tracker-progress-bar { background:#1e88e5; height:8px; border-radius:4px; transition:width .3s ease; }
.step-tracker-controls { margin:1rem 0; }
.step-tracker-button { padding:.5rem 1rem; color:#fff; border:none; border-radius:5px; font-size:.85rem; cursor:pointer; transition:background .3s; }
.step-tracker-button.start { background:#43a047; }
.step-tracker-button.stop  { background:#e53935; }
.step-tracker-goal { color:#4caf50; margin:.5rem 0; }
.step-tracker-streak, .step-tracker-total { color:#666; font-size:.8rem; }

.history-currency { font-size:1rem; }



/* ========== Cashbook (mobile tweaks + Layout) ========== */
@media (max-width: 480px) {
  .cashbook-form input,
  .cashbook-form select { width:100%; }
  .cashbook-form select,
  .cashbook-form button { width:100%; box-sizing:border-box; margin-bottom:.75rem; }

  .cashbook-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .cashbook-table th, .cashbook-table td { padding:.35rem .5rem; font-size:.85rem; white-space:nowrap; }
  .cashbook-table thead > tr { position:sticky; top:0; background:#fff; z-index:2; }
  .cashbook-table tr + tr td { border-top:1px solid #e5e7eb; }

  /* Super-schmal: Spalte 3 ausblenden */
  @media (max-width: 380px) {
    .cashbook-table td:nth-child(3),
    .cashbook-table th:nth-child(3) { display:none; }
  }

  .cashbook-back-btn { display:inline-block; margin-bottom:1rem; padding:.4rem .9rem; font-size:.9rem; }
}

/* Cashbook-Wrapper & Formular-Grid */
.cashbook-wrap { max-width:48rem; margin:0 auto; padding:1rem; display:flex; flex-direction:column; gap:1.5rem; }
.cashbook-form { display:grid; grid-template-columns:1fr; gap:.5rem; }
@media (min-width:640px) {
  .cashbook-form { grid-template-columns:repeat(4, 1fr); align-items:end; }
}


/* Einheitliches Button-Grundstyling (gilt für <button> und <a>) */
.pfand-button {
  background: #1e88e5;
  color: #fff;
  width: 100%;
  display: block;
  margin: 0.5rem 0;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;        /* Text immer zentrieren – auch bei <a> */
  text-decoration: none;     /* Unterstreichung bei <a> entfernen */
  cursor: pointer;           /* Hand-Cursor auch bei <a> */
  box-sizing: border-box;    /* sicheres Boxmodell */
}

/* Orange Variante für "Jetzt bestellen!" */
.pfand-button--order {
  background: #ff9900;       /* freundliches Amazon-Orange */
  color: #111;
  font-weight: 600;
}
.pfand-button--order:hover,
.pfand-button--order:focus {
  background: #e68a00;       /* leichte Abdunklung beim Hover/Focus */
  color: #111;
}

/* Damit beide Buttons untereinander immer gleich breit sind */
.drink-card__actions .pfand-button { width: 100%; }



/*# sourceMappingURL=style.css.map*/


.pfp-nav-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #d63638;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
}

.pfp-news-overview {
  background: #fff7df;
  border: 1px solid #e2c778;
  border-radius: 14px;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pfp-news-overview__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.pfp-news-overview__head h3 {
  margin: 0 0 0.25rem;
}

.pfp-news-overview__head p {
  margin: 0;
  color: #5b5b5b;
}

.pfp-news-overview__link {
  color: #0073aa;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.pfp-news-overview__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pfp-news-overview__item {
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
  padding: 0.75rem;
  border: 1px solid #efdfae;
}

.pfp-news-overview__item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.pfp-news-overview__date {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #666;
}

.pfp-news-unread-dot,
.pfp-news-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d63638;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.pfp-news-unread-dot {
  width: 10px;
  height: 10px;
}

.pfp-news-unread {
  padding: 2px 8px;
  text-transform: uppercase;
}

.pfp-news-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.pfp-news-page__header {
  margin-bottom: 1rem;
}

.pfp-news-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.pfp-news-card--important {
  border-left: 5px solid #e5a000;
}

.pfp-news-card--critical {
  border-left: 5px solid #d63638;
}

.pfp-news-card__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.pfp-news-badge {
  background: #eef6fb;
  color: #0a5e8b;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 700;
}

.pfp-news-card__body p:first-child {
  margin-top: 0;
}

.pfp-news-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pfand-button--secondary {
  background: #f3f4f6;
  color: #1f2937;
}

.pfp-news-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 10020;
}

.pfp-news-modal {
  width: min(100%, 560px);
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  border-top: 5px solid #0073aa;
}

.pfp-news-modal--important {
  border-top-color: #e5a000;
}

.pfp-news-modal--critical {
  border-top-color: #d63638;
}

.pfp-news-modal__header h3 {
  margin: 0 0 0.75rem;
}

.pfp-news-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pfp-news-banner-wrap {
  padding: 0.75rem 1rem 0;
}

.pfp-news-banner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: #fff8e8;
  border: 1px solid #efc56a;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}

.pfp-news-banner--critical {
  background: #fff1f1;
  border-color: #e59a9a;
}

.pfp-news-banner__content {
  flex: 1;
}

.pfp-news-banner__content p:first-child {
  margin-top: 0.35rem;
}

.pfp-news-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .pfp-news-overview__head,
  .pfp-news-banner,
  .pfp-news-card__actions,
  .pfp-news-modal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pfp-news-overview__link {
    white-space: normal;
  }
}

.unknown-drink-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.unknown-drink-title {
  margin: 0;
}

.unknown-drink-hint,
.unknown-drink-meta {
  font-size: 0.92rem;
  color: #5a5a5a;
}

.unknown-drink-label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.unknown-drink-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  background: #fff;
}

.unknown-drink-input--readonly {
  background: #f4f4f4;
}

.unknown-drink-pfand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.unknown-drink-pfand-btn {
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #f1f1f1;
  color: #222;
  padding: 0.65rem 1rem;
  cursor: pointer;
  flex: 1 1 140px;
}

.unknown-drink-pfand-btn.is-active {
  background: #28a745;
  color: #fff;
  border-color: #28a745;
}

.unknown-drink-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.unknown-drink-cancel {
  background: #7a7a7a;
}

.unknown-drink-error {
  color: #c32626;
  margin: 0;
}

.unknown-drink-feedback {
  margin: 0.75rem 0;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.unknown-drink-feedback.success {
  background: #e8f8eb;
  color: #1d6a2c;
  border: 1px solid #bfe6c7;
}

.unknown-drink-feedback.info {
  background: #eef5ff;
  color: #174b87;
  border: 1px solid #c7dcff;
}

.pfandpirat-scanner {
  width: 100%;
}

.pfandpirat-scanner__viewport {
  position: relative;
  width: 100%;
  min-height: 360px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.pfandpirat-scanner__video,
.pfandpirat-scanner__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pfandpirat-scanner__video {
  object-fit: cover;
  background: #111827;
}

.pfandpirat-scanner__overlay {
  pointer-events: none;
}

.pfandpirat-scanner__status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.pfandpirat-scanner__status strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.pfandpirat-scanner__status span {
  font-size: 0.86rem;
  line-height: 1.35;
  opacity: 0.92;
}

.pfandpirat-scanner__status.is-align {
  border: 1px solid rgba(255, 176, 32, 0.65);
}

.pfandpirat-scanner__status.is-candidate,
.pfandpirat-scanner__status.is-success {
  border: 1px solid rgba(46, 204, 113, 0.7);
}

.pfandpirat-scanner__status.is-error {
  border: 1px solid rgba(239, 68, 68, 0.75);
}

.pfandpirat-scanner__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.pfandpirat-scanner__error {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #fff;
  background: rgba(15, 23, 42, 0.88);
}

@media (max-width: 480px) {
  .pfandpirat-scanner__viewport {
    min-height: 320px;
    border-radius: 16px;
  }

  .pfandpirat-scanner__status {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
  }

  .pfandpirat-scanner__status strong {
    font-size: 0.92rem;
  }

  .pfandpirat-scanner__status span {
    font-size: 0.8rem;
  }
}


/* === Treasure Map Phase 4 ============================================= */
.treasure-map-page {
  position: relative;
}

.treasure-map-page__header {
  margin-bottom: 12px;
}

.treasure-map-page__header-meta {
  margin-top: 8px;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.treasure-map-toolbar {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.treasure-map-toolbar__top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.treasure-map-toolbar__search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d7dde5;
  background: #f8fafc;
  font-size: 1rem;
  box-sizing: border-box;
}

.treasure-map-toolbar__actions,
.treasure-map-toolbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.treasure-map-toolbar__pill,
.treasure-map-toolbar__chip,
.treasure-map-toolbar__add,
.treasure-map-filter-panel button,
.treasure-map-list__actions button,
.treasure-map-list__actions a,
.treasure-map-list__select-button,
.treasure-map-details__primary-action,
.treasure-map-details__secondary-action,
.treasure-map-add-drawer__tool,
.treasure-map-add-drawer__primary,
.treasure-map-add-drawer__secondary,
.treasure-map-add-drawer__close {
  border: 1px solid #d7dde5;
  background: #fff;
  color: #1f2937;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.treasure-map-toolbar__pill.is-active,
.treasure-map-toolbar__chip.is-active,
.treasure-map-filter-panel button:hover,
.treasure-map-list__actions button:hover,
.treasure-map-list__select-button:hover,
.treasure-map-details__primary-action:hover,
.treasure-map-details__secondary-action:hover,
.treasure-map-add-drawer__tool:hover,
.treasure-map-add-drawer__secondary:hover,
.treasure-map-add-drawer__close:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.treasure-map-toolbar__view-switch {
  display: inline-flex;
  border: 1px solid #d7dde5;
  border-radius: 999px;
  overflow: hidden;
}

.treasure-map-toolbar__view-switch button {
  border: 0;
  background: transparent;
  padding: 10px 14px;
  cursor: pointer;
}

.treasure-map-toolbar__view-switch button.is-active {
  background: #1d4ed8;
  color: #fff;
}

.treasure-map-toolbar__add {
  background: #fff7e6;
  border-color: #f1c46b;
  color: #8a5a00;
}

.treasure-map-toolbar__add.is-disabled {
  opacity: 0.7;
}

.treasure-map-toolbar__bottom {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.treasure-map-toolbar__meta {
  color: #6b7280;
  font-size: 0.9rem;
}

.treasure-map-filter-panel {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 18px;
  background: #fffdf4;
  border: 1px solid #f5e7b8;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.treasure-map-filter-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.treasure-map-filter-panel__section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.treasure-map-filter-panel__button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.treasure-map-filter-panel__section select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d7dde5;
  background: #fff;
  box-sizing: border-box;
}

.treasure-map-filter-panel__toggle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.treasure-map-filter-panel__toggle-list--compact {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.treasure-map-filter-panel__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #374151;
}

.treasure-map-filter-panel__footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.treasure-map-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
}

.treasure-map-alert--error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.treasure-map-alert--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.treasure-map-level-hint {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fffdf4;
  border: 1px solid #f5e7b8;
  color: #7c5b11;
}

.treasure-map-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.treasure-map-content-layout__main,
.treasure-map-content-layout__details {
  min-width: 0;
}

.treasure-map-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.treasure-map-list--empty {
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  color: #6b7280;
}

.treasure-map-list__card {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.treasure-map-list__card.is-selected {
  border-color: #93c5fd;
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.12);
}

.treasure-map-list__card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.treasure-map-list__card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.treasure-map-list__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 0.9rem;
}

.treasure-map-list__badge {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.treasure-map-list__badge.is-location {
  background: #ecfeff;
  color: #155e75;
}

.treasure-map-list__badge.is-donation {
  background: #fff7ed;
  color: #9a3412;
}

.treasure-map-list__badge.is-bottle_message {
  background: #f5f3ff;
  color: #6d28d9;
}

.treasure-map-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.treasure-map-list__hint {
  color: #6b7280;
  font-size: 0.92rem;
}

.treasure-map-list__hint.is-success {
  color: #166534;
  font-weight: 600;
}

.treasure-map-list__confirmation-row {
  margin-top: 10px;
}

.treasure-map-list__confirmation-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
}

.treasure-map-list__select-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.treasure-map-list__select-button {
  font-weight: 600;
}

.treasure-map-marker-tooltip {
  text-align: center;
  min-width: 120px;
}

.treasure-map-marker-tooltip strong {
  display: block;
  margin-bottom: 2px;
}

.treasure-map-details {
  position: sticky;
  top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.treasure-map-details__topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}

.treasure-map-details__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #d7dde5;
  background: #fff;
  color: #334155;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.treasure-map-details__close:hover {
  background: #f8fafc;
  border-color: #bfd0e7;
  transform: scale(1.03);
}

.treasure-map-details--overlay {
  position: relative;
  top: auto;
  max-height: min(72vh, calc(100vh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  overflow-y: auto;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

.treasure-map-details__handle {
  width: 52px;
  height: 6px;
  border-radius: 999px;
  background: #d7dde5;
  margin: 0 auto 14px;
}

.treasure-map-details--empty {
  color: #6b7280;
}

.treasure-map-details__eyebrow {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.treasure-map-details__header h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.treasure-map-details__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.treasure-map-details__photo {
  width: 100%;
  max-height: 260px;
  margin: 16px 0 0;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.treasure-map-details__badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.treasure-map-details__badge.is-location {
  background: #ecfeff;
  color: #155e75;
}

.treasure-map-details__badge.is-donation {
  background: #fff7ed;
  color: #9a3412;
}

.treasure-map-details__badge.is-bottle_message {
  background: #f5f3ff;
  color: #6d28d9;
}

.treasure-map-details__info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.treasure-map-details__info-list > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
}

.treasure-map-details__info-list strong {
  color: #334155;
}

.treasure-map-details__description {
  margin: 0 0 14px;
  color: #475569;
  line-height: 1.55;
}

.treasure-map-details__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.treasure-map-details__primary-action,
.treasure-map-details__secondary-action {
  width: 100%;
  font-weight: 700;
}

.treasure-map-details__primary-action--link,
.treasure-map-details__secondary-action {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.treasure-map-details__status {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
}

.treasure-map-details__status.is-warning {
  background: #fff7ed;
  color: #9a3412;
}

.treasure-map-details__status.is-success {
  background: #ecfdf5;
  color: #166534;
}

.treasure-map-details__message-box,
.treasure-map-details__loot-box {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fffbe8;
  border: 1px solid #ecd07d;
  color: #5f4608;
  white-space: pre-wrap;
}

.treasure-map-details__loot-box.is-success {
  text-align: center;
}

.treasure-map-details__loot-box.is-success img {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
}

.treasure-map-details__loot-box.is-error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.treasure-map-details__loot-rarity {
  margin-top: 4px;
  font-weight: 700;
  color: #8a6a16;
}

.treasure-map-map-pick-hint {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  z-index: 999;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.94);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.22);
}

.treasure-map-add-drawer {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 1200;
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(12px);
  padding: 14px;
}

.treasure-map-add-drawer__handle {
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: #d7dde5;
  margin: 0 auto 14px;
}

.treasure-map-add-drawer__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.treasure-map-add-drawer__eyebrow {
  margin-bottom: 4px;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.treasure-map-add-drawer__header h3 {
  margin: 0 0 6px;
  font-size: 1.22rem;
}

.treasure-map-add-drawer__header p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.treasure-map-add-drawer__close {
  flex-shrink: 0;
}

.treasure-map-add-drawer__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.treasure-map-add-drawer__tool.is-active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.treasure-map-add-drawer__hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
}

.treasure-map-add-drawer__hint.is-info {
  background: #eff6ff;
  color: #1d4ed8;
}

.treasure-map-add-drawer__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.treasure-map-add-drawer__field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.treasure-map-add-drawer__field-group label {
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
}

.treasure-map-add-drawer__field-group input,
.treasure-map-add-drawer__field-group textarea,
.treasure-map-add-drawer__field-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d7dde5;
  background: #f8fafc;
  box-sizing: border-box;
  font-size: 0.96rem;
}

.treasure-map-add-drawer__field-group textarea {
  resize: vertical;
  min-height: 86px;
}

.treasure-map-add-drawer__coordinates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.treasure-map-add-drawer__coords-preview {
  color: #64748b;
  font-size: 0.9rem;
}

.treasure-map-add-drawer__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.treasure-map-add-drawer__primary {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  font-weight: 700;
}

.treasure-map-add-drawer__primary:hover {
  background: #1e40af;
  border-color: #1e40af;
  color: #fff;
}


.treasure-map-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.treasure-map-mobile-overlay__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.24);
}

.treasure-map-mobile-overlay__sheet {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(12px + env(safe-area-inset-top));
  bottom: auto;
  z-index: 100000;
  max-width: 560px;
  margin: 0 auto;
  transition: transform 0.22s ease, opacity 0.22s ease;
  will-change: transform;
  pointer-events: auto;
}

.treasure-map-loading-hint {

  margin-top: 12px;
  color: #6b7280;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .treasure-map-content-layout {
    grid-template-columns: 1fr;
  }

  .treasure-map-content-layout__details {
    display: none;
  }

  .treasure-map-mobile-overlay {
    display: block;
  }
}

@media (min-width: 1025px) {
  .treasure-map-mobile-overlay {
    display: none !important;
  }

  .treasure-map-details__close {
    display: none;
  }
}

@media (max-width: 768px) {
  .treasure-map-filter-panel__grid,
  .treasure-map-filter-panel__button-grid,
  .treasure-map-add-drawer__coordinates {
    grid-template-columns: 1fr;
  }

  .treasure-map-list__card-head,
  .treasure-map-add-drawer__header,
  .treasure-map-add-drawer__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .treasure-map-map-pick-hint {
    left: 12px;
    right: 12px;
    transform: none;
    text-align: center;
  }

  .treasure-map-add-drawer {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: calc(76px + env(safe-area-inset-bottom));
    max-height: calc(100vh - 98px);
    border-radius: 22px;
  }

  .treasure-map-mobile-overlay__sheet {
    left: 10px;
    right: 10px;
    top: calc(10px + env(safe-area-inset-top));
  }

  .treasure-map-details--overlay {
    max-height: min(74vh, calc(100vh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  }
}


.treasure-map-page__viewport-note {
  color: #64748b;
}

.treasure-map-cluster-marker {
  background: radial-gradient(circle at 30% 30%, #60a5fa, #1d4ed8);
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.28);
  border-radius: 999px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.treasure-map-cluster-marker.is-selected {
  background: radial-gradient(circle at 30% 30%, #22c55e, #15803d);
  box-shadow: 0 12px 28px rgba(21, 128, 61, 0.32);
}

.treasure-map-cluster-marker--sm {
  width: 42px;
  height: 42px;
}

.treasure-map-cluster-marker--md {
  width: 48px;
  height: 48px;
}

.treasure-map-cluster-marker--lg {
  width: 56px;
  height: 56px;
}

.treasure-map-cluster-marker--xl {
  width: 64px;
  height: 64px;
}

.treasure-map-cluster-marker__count {
  line-height: 1;
  font-size: 0.92rem;
}

.treasure-map-cluster-tooltip {
  text-align: center;
}

.pfp-push-prompt {
  position: fixed;
  left: 50%;
  bottom: calc(112px + env(safe-area-inset-bottom));
  z-index: 9997;
  width: min(620px, calc(100vw - 24px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(14, 116, 144, 0.24);
  border-radius: 14px;
  background: rgba(240, 249, 255, 0.96);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  color: #0f172a;
  box-sizing: border-box;
}

.pfp-push-prompt__copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}

.pfp-push-prompt__copy strong {
  font-size: 0.98rem;
  line-height: 1.2;
  color: #0f3b57;
}

.pfp-push-prompt__copy span {
  font-size: 0.86rem;
  line-height: 1.35;
  color: #334155;
}

.pfp-push-prompt__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pfp-push-prompt__primary,
.pfp-push-prompt__ghost {
  border: 0;
  border-radius: 10px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.pfp-push-prompt__primary {
  background: linear-gradient(180deg, #0ea5e9, #0369a1);
  color: #fff;
}

.pfp-push-prompt__primary:disabled {
  cursor: wait;
  opacity: 0.7;
}

.pfp-push-prompt__ghost {
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
}

@media (max-width: 520px) {
  .pfp-push-prompt {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .pfp-push-prompt__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.btn-delete,
button.delete,
button[aria-label*="Löschen"],
button[aria-label*="Delete"] {
  background: #e53935 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.2);
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-delete:hover,
button.delete:hover,
button[aria-label*="Löschen"]:hover,
button[aria-label*="Delete"]:hover {
  background: #b71c1c !important;
  color: #fff !important;
}

.btn-join {
  background: #43a047 !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(67, 160, 71, 0.2);
  transition: background 0.2s ease;
}

.btn-join:hover,
.btn-join:focus {
  background: #2e7d32 !important;
}

.btn-leave {
  background: #e53935 !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.2);
  transition: background 0.2s ease;
}

.btn-leave:hover,
.btn-leave:focus {
  background: #b71c1c !important;
}

.pfp-crew-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pfp-crew-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #0f5fa8 52%, #1d8fe1 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.pfp-crew-hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.pfp-crew-hero__title {
  margin: 0.2rem 0 0;
  font-size: 2rem;
  line-height: 1.1;
}

.pfp-crew-hero__subtitle {
  margin: 0.5rem 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
}

.pfp-crew-hero__controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 320px;
}

.pfp-crew-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.pfp-crew-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(8px);
}

.pfp-crew-select option {
  color: #111827;
}

.pfp-crew-status {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}

.pfp-crew-status.is-success {
  background: #edf9f0;
  border-color: #b8dfc1;
  color: #1e6b38;
}

.pfp-crew-status.is-error {
  background: #fff1f1;
  border-color: #f3b6b6;
  color: #a12626;
}

.pfp-crew-status.is-info {
  background: #f4f8ff;
  border-color: #d5e2fb;
  color: #28426b;
}

.pfp-crew-grid {
  display: grid;
  gap: 1rem;
}

.pfp-crew-grid--two-columns {
  grid-template-columns: minmax(0, 1fr);
}

.pfp-crew-panel {
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.pfp-crew-panel--full-width {
  grid-column: 1 / -1;
}

.pfp-crew-panel--map {
  padding-bottom: 1.4rem;
}

.pfp-crew-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.pfp-crew-panel__header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.pfp-crew-panel__header span {
  color: #667085;
  font-size: 0.92rem;
  font-weight: 600;
}

.pfp-crew-create-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pfp-crew-create-form input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid #d8e0ec;
  border-radius: 14px;
  background: #f8fafc;
}

.pfp-crew-action-button {
  border: none;
  border-radius: 14px;
  padding: 0.82rem 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.pfp-crew-action-button:hover {
  transform: translateY(-1px);
}

.pfp-crew-action-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.pfp-crew-action-button.is-primary {
  background: #0b84d8;
  color: #fff;
}

.pfp-crew-action-button.is-success {
  background: #1fa971;
  color: #fff;
}

.pfp-crew-action-button.is-danger {
  background: #e24444;
  color: #fff;
}

.pfp-crew-option-card {
  width: 100%;
  border: 1px solid #e4e9f2;
  background: #fff;
  border-radius: 18px;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pfp-crew-option-card:hover {
  border-color: #8dc8f2;
  box-shadow: 0 8px 20px rgba(11, 132, 216, 0.08);
  transform: translateY(-2px);
}

.pfp-crew-option-card.is-active {
  border-color: #0b84d8;
  box-shadow: 0 10px 24px rgba(11, 132, 216, 0.12);
}

.pfp-crew-option-card__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.pfp-crew-option-card__title {
  font-weight: 800;
  color: #13233b;
}

.pfp-crew-option-card__meta {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: #667085;
}

.pfp-crew-option-card__badge-row,
.pfp-crew-option-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.pfp-crew-option-card__actions {
  margin-top: 0.8rem;
}

.pfp-crew-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.pfp-crew-badge.is-owner {
  background: #fff2d8;
  color: #8b5a00;
}

.pfp-crew-badge.is-member {
  background: #e8f7ef;
  color: #196b45;
}

.pfp-crew-badge.is-pending {
  background: #fff8df;
  color: #946200;
}

.pfp-crew-empty {
  padding: 1rem;
  border: 1px dashed #d6deea;
  border-radius: 16px;
  background: #f8fafc;
  color: #667085;
}

.pfp-crew-list-cards {
  display: grid;
  gap: 0.75rem;
}

.pfp-crew-public-list {
  display: grid;
  gap: 0.7rem;
  color: #334155;
}

.pfp-crew-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.pfp-crew-segmented,
.pfp-cashbook__segmented,
.pfp-crew-tabs {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.pfp-crew-segmented button,
.pfp-cashbook__segmented button,
.pfp-crew-tabs button {
  border: 1px solid #d6deea;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.pfp-crew-segmented button.is-active,
.pfp-cashbook__segmented button.is-active,
.pfp-crew-tabs button.is-active {
  background: #13233b;
  color: #fff;
  border-color: #13233b;
}

.pfp-crew-toolbar__selects,
.pfp-cashbook__toolbar-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.pfp-crew-toolbar__selects select,
.pfp-cashbook__toolbar-selects select {
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  border: 1px solid #d6deea;
  background: #fff;
  min-width: 120px;
}

.pfp-crew-toolbar__label,
.pfp-cashbook__period-label {
  padding: 0.68rem 0.95rem;
  border-radius: 999px;
  background: #eef5ff;
  color: #31527f;
  font-weight: 700;
}

.pfp-crew-metrics-grid,
.pfp-cashbook__stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.pfp-crew-metric-card,
.pfp-cashbook__stat-card {
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.pfp-crew-metric-card.is-warning {
  background: linear-gradient(135deg, #fff7e6 0%, #fffdf7 100%);
  border-color: #f0d7a8;
}

.pfp-crew-metric-card.is-success,
.pfp-cashbook__stat-card--positive {
  background: linear-gradient(135deg, #eefbf3 0%, #f8fdf9 100%);
  border-color: #bfe1cc;
}

.pfp-crew-metric-card.is-info {
  background: linear-gradient(135deg, #eef7ff 0%, #f8fbff 100%);
  border-color: #c9ddfb;
}

.pfp-crew-metric-card.is-danger,
.pfp-cashbook__stat-card--negative {
  background: linear-gradient(135deg, #fff2f2 0%, #fffaf7 100%);
  border-color: #f3c7c7;
}

.pfp-crew-metric-card__label,
.pfp-cashbook__stat-label {
  color: #667085;
  font-weight: 700;
  font-size: 0.92rem;
}

.pfp-crew-metric-card__value,
.pfp-cashbook__stat-value {
  margin-top: 0.35rem;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.08;
  color: #13233b;
}

.pfp-crew-metric-card__note,
.pfp-cashbook__stat-note,
.pfp-cashbook__subtitle {
  margin-top: 0.35rem;
  color: #667085;
  font-size: 0.92rem;
}

.pfp-crew-member-list,
.pfp-crew-ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.pfp-crew-member-row,
.pfp-crew-ranking-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #edf1f7;
}

.pfp-crew-member-row__avatar,
.pfp-crew-ranking-list__avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pfp-crew-member-row__avatar img,
.pfp-crew-ranking-list__avatar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.pfp-crew-member-row__avatar-fallback,
.pfp-crew-ranking-list__avatar span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #e5edf7;
  color: #334155;
  font-weight: 700;
}

.pfp-crew-member-row__body {
  flex: 1;
  min-width: 0;
}

.pfp-crew-member-row__name,
.pfp-crew-ranking-list__name {
  font-weight: 800;
  color: #13233b;
}

.pfp-crew-member-row__subtitle {
  margin-top: 0.18rem;
  color: #667085;
  font-size: 0.9rem;
}

.pfp-crew-member-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.pfp-crew-ranking-list li.is-self {
  border-color: #9ecff3;
  background: #edf7ff;
}

.pfp-crew-ranking-list__sum {
  margin-left: auto;
  font-weight: 900;
  color: #0b84d8;
}

.pfp-crew-link-button {
  border: none;
  background: transparent;
  color: #0b84d8;
  font-weight: 800;
  cursor: pointer;
}

.pfp-crew-cashbook-preview {
  display: grid;
  gap: 0.75rem;
}

.pfp-crew-cashbook-preview__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #edf1f7;
}

.pfp-crew-cashbook-preview__title {
  font-weight: 800;
  color: #13233b;
}

.pfp-crew-cashbook-preview__meta {
  margin-top: 0.2rem;
  color: #667085;
  font-size: 0.9rem;
}

.pfp-crew-cashbook-preview__amount {
  font-weight: 900;
}

.pfp-crew-cashbook-preview__amount.is-positive {
  color: #1c8b59;
}

.pfp-crew-cashbook-preview__amount.is-negative {
  color: #c53b3b;
}

.pfp-cashbook {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pfp-cashbook--embedded {
  padding-top: 0.25rem;
}

.pfp-cashbook__back {
  border: none;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: #0b84d8;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.pfp-cashbook__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.pfp-cashbook__title {
  margin: 0;
  font-size: 1.9rem;
}

.pfp-cashbook__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.pfp-cashbook__error {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #fff1f1;
  border: 1px solid #f3b6b6;
  color: #a12626;
  font-weight: 600;
}

.pfp-cashbook__content-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.pfp-cashbook__form-card,
.pfp-cashbook__table-card {
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.pfp-cashbook__card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #13233b;
}

.pfp-cashbook__form-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.pfp-cashbook__form-span-full {
  grid-column: 1 / -1;
}

.pfp-cashbook__form-grid label {
  display: block;
  margin-bottom: 0.35rem;
  color: #475467;
  font-size: 0.92rem;
  font-weight: 700;
}

.pfp-cashbook__form-grid > div,
.pfp-cashbook__form-span-full {
  min-width: 0;
}

.pfp-cashbook__form-grid input,
.pfp-cashbook__form-grid select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid #d8e0ec;
  background: #f8fafc;
}

.pfp-cashbook__submit {
  margin-top: 1rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b84d8 0%, #1465c0 100%);
  color: #fff;
  font-weight: 800;
  padding: 0.9rem 1rem;
  cursor: pointer;
}

.pfp-cashbook__table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.pfp-cashbook__table-meta {
  color: #667085;
  font-size: 0.92rem;
  font-weight: 700;
}

.pfp-cashbook__table-wrap {
  margin-top: 1rem;
  overflow-x: hidden;
}

.pfp-cashbook__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.pfp-cashbook__table th,
.pfp-cashbook__table td {
  padding: 0.68rem 0.55rem;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pfp-cashbook__table th {
  color: #667085;
  font-size: 0.8rem;
  font-weight: 800;
  background: #f8fafc;
}

.pfp-cashbook__table th:nth-child(1),
.pfp-cashbook__table td:nth-child(1) { width: 14%; }

.pfp-cashbook__table th:nth-child(2),
.pfp-cashbook__table td:nth-child(2) { width: 16%; }

.pfp-cashbook__table th:nth-child(3),
.pfp-cashbook__table td:nth-child(3) { width: 23%; }

.pfp-cashbook__table th:nth-child(4),
.pfp-cashbook__table td:nth-child(4) { width: 14%; }

.pfp-cashbook__table th:nth-child(5),
.pfp-cashbook__table td:nth-child(5) { width: 17%; }

.pfp-cashbook__table th:nth-child(6),
.pfp-cashbook__table td:nth-child(6) { width: 10%; }

.pfp-cashbook__table td span {
  display: block;
  margin-top: 0.18rem;
  color: #98a2b3;
  font-size: 0.82rem;
}

.pfp-cashbook__table .is-right {
  text-align: right;
}

.pfp-cashbook__table .is-positive {
  color: #1c8b59;
  font-weight: 800;
}

.pfp-cashbook__table .is-negative {
  color: #c53b3b;
  font-weight: 800;
}

.pfp-cashbook__table tfoot td {
  font-weight: 900;
  background: #f8fafc;
}

.pfp-cashbook__delete {
  border: none;
  background: #e24444;
  color: #fff;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-weight: 900;
}

.pfp-cashbook__empty {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed #d6deea;
  border-radius: 16px;
  color: #667085;
  background: #f8fafc;
}

.pfp-cashbook__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pfp-cashbook__pagination button {
  border: 1px solid #d8e0ec;
  background: #fff;
  color: #13233b;
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.pfp-cashbook__pagination button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (min-width: 760px) {
  .pfp-crew-grid--two-columns,
  .pfp-cashbook__content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pfp-crew-metrics-grid,
  .pfp-cashbook__stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pfp-cashbook__form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pfp-crew-hero,
  .pfp-cashbook__header,
  .pfp-cashbook__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pfp-crew-hero__controls {
    min-width: 0;
  }

  .pfp-crew-hero__actions {
    justify-content: flex-start;
  }

  .pfp-cashbook__table-wrap {
    overflow-x: auto;
  }

  .pfp-cashbook__table {
    min-width: 720px;
    table-layout: auto;
  }
}

@media (max-width: 640px) {
  .pfp-crew-shell {
    padding: 0.75rem;
  }

  .pfp-crew-hero,
  .pfp-crew-panel,
  .pfp-cashbook__form-card,
  .pfp-cashbook__table-card,
  .pfp-crew-metric-card,
  .pfp-cashbook__stat-card {
    border-radius: 18px;
    padding: 0.9rem;
  }

  .pfp-crew-member-row,
  .pfp-crew-cashbook-preview__row {
    align-items: flex-start;
    flex-direction: column;
  }

  .pfp-crew-member-row__actions,
  .pfp-crew-option-card__actions,
  .pfp-crew-option-card__badge-row {
    width: 100%;
    justify-content: flex-start;
  }

  .pfp-cashbook__table th:nth-child(4),
  .pfp-cashbook__table td:nth-child(4) {
    display: none;
  }
}

.pfp-crew-panel__header--stack-mobile {
  align-items: flex-start;
}

.pfp-crew-panel__subtext {
  display: block;
  margin-top: 0.35rem;
  color: #667085;
  font-size: 0.95rem;
  font-weight: 600;
}

.pfp-crew-section-eyebrow {
  display: inline-block;
  margin-bottom: 0.25rem;
  color: #8390a5;
  font-size: 0.82rem;
  font-weight: 700;
}

.pfp-crew-goal-panel {
  overflow: hidden;
}

.pfp-crew-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e6ebf3;
  overflow: hidden;
}

.pfp-crew-progress.is-compact {
  margin-top: 0.65rem;
  height: 7px;
}

.pfp-crew-progress__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f3b300 0%, #f97316 52%, #ef4444 100%);
}


.pfp-crew-goal-panel__head-actions {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pfp-crew-goal-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(100%, 360px);
}

.pfp-crew-goal-form label {
  color: #667085;
  font-size: 0.85rem;
  font-weight: 700;
}

.pfp-crew-goal-form__controls {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.pfp-crew-goal-form__controls input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 150px;
  box-sizing: border-box;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #d8e0ec;
  background: #f8fafc;
}

.pfp-crew-goal-form__controls .pfp-crew-action-button {
  white-space: nowrap;
}

@media (min-width: 760px) {
  .pfp-cashbook__content-grid {
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
  }
}

.pfp-crew-progress-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #46617f;
  font-weight: 800;
}

.pfp-crew-goal-stats,
.pfp-crew-quick-grid,
.pfp-crew-insights-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.pfp-crew-mini-stat {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #edf1f7;
}

.pfp-crew-mini-stat span {
  display: block;
  color: #667085;
  font-size: 0.85rem;
  font-weight: 700;
}

.pfp-crew-mini-stat strong {
  display: block;
  margin-top: 0.25rem;
  color: #13233b;
  font-size: 1.55rem;
  line-height: 1.1;
}

.pfp-crew-mini-stat--wide {
  min-height: 120px;
}

.pfp-crew-highlight-card {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid #edf1f7;
}

.pfp-crew-highlight-card.is-warning {
  background: linear-gradient(135deg, #fff7e6 0%, #fffdf7 100%);
  border-color: #f0d7a8;
}

.pfp-crew-highlight-card.is-info {
  background: linear-gradient(135deg, #eef7ff 0%, #f8fbff 100%);
  border-color: #c9ddfb;
}

.pfp-crew-highlight-card.is-success {
  background: linear-gradient(135deg, #eefbf3 0%, #f8fdf9 100%);
  border-color: #bfe1cc;
}

.pfp-crew-highlight-card__eyebrow {
  color: #667085;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pfp-crew-highlight-card strong {
  color: #13233b;
  font-size: 1.45rem;
  line-height: 1.15;
}

.pfp-crew-highlight-card span:last-child {
  color: #516074;
  font-size: 0.95rem;
}

.pfp-crew-activity-list {
  display: grid;
  gap: 0.75rem;
}

.pfp-crew-activity-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid #dce6f4;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.pfp-crew-activity-list__item.is-active {
  border-color: #94c6ee;
  background: #eff7ff;
}

.pfp-crew-activity-list__body {
  min-width: 0;
}

.pfp-crew-activity-list__body strong {
  display: block;
  color: #13233b;
  font-size: 1rem;
}

.pfp-crew-activity-list__body span {
  display: block;
  margin-top: 0.25rem;
  color: #667085;
  font-size: 0.9rem;
}

.pfp-crew-activity-list__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.pfp-crew-activity-list__amount {
  color: #13233b;
  font-weight: 900;
}

.pfp-crew-activity-list__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #e8f7ef;
  color: #196b45;
  font-size: 0.82rem;
  font-weight: 700;
}

.pfp-crew-activity-list__status.is-negative {
  background: #fff2f2;
  color: #b23c3c;
}

.pfp-crew-activity-detail {
  display: grid;
  gap: 1rem;
}

.pfp-crew-activity-detail__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.pfp-crew-activity-detail__top h4 {
  margin: 0;
  color: #13233b;
  font-size: 1.35rem;
}

.pfp-crew-activity-detail__amount {
  font-weight: 900;
  color: #13233b;
  font-size: 1.35rem;
}

.pfp-crew-activity-detail__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.pfp-crew-activity-detail__box,
.pfp-crew-activity-detail__note {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #edf1f7;
}

.pfp-crew-activity-detail__box span,
.pfp-crew-activity-detail__note {
  color: #667085;
  font-size: 0.9rem;
}

.pfp-crew-activity-detail__box strong {
  display: block;
  margin-top: 0.25rem;
  color: #13233b;
  font-size: 1rem;
}

.pfp-crew-ranking-list__position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  background: #94a3b8;
}

.pfp-crew-ranking-list__position.is-1 {
  background: linear-gradient(135deg, #ffb100 0%, #f59e0b 100%);
}

.pfp-crew-ranking-list__position.is-2 {
  background: linear-gradient(135deg, #1980e6 0%, #1267c2 100%);
}

.pfp-crew-ranking-list__position.is-3 {
  background: linear-gradient(135deg, #14b98a 0%, #0f9f74 100%);
}

.pfp-crew-ranking-list__body {
  min-width: 0;
}

.pfp-crew-ranking-list__sub {
  display: block;
  margin-top: 0.16rem;
  color: #667085;
  font-size: 0.88rem;
}

.pfp-crew-redemption-list {
  display: grid;
  gap: 0.85rem;
}

.pfp-crew-redemption-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #edf1f7;
}

.pfp-crew-redemption-list__title {
  color: #13233b;
  font-size: 1rem;
  font-weight: 800;
}

.pfp-crew-redemption-list__meta {
  margin-top: 0.2rem;
  color: #667085;
  font-size: 0.9rem;
}

.pfp-crew-redemption-list__amount {
  color: #1c8b59;
  font-size: 1.12rem;
  font-weight: 900;
}

@media (min-width: 760px) {
  .pfp-crew-goal-stats,
  .pfp-crew-quick-grid,
  .pfp-crew-insights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pfp-crew-activity-detail__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pfp-crew-metric-card__value,
  .pfp-cashbook__stat-value {
    font-size: 1.42rem;
    line-height: 1.08;
  }

  .pfp-crew-mini-stat strong,
  .pfp-crew-highlight-card strong,
  .pfp-crew-activity-detail__amount {
    font-size: 1.2rem;
  }

  .pfp-crew-hero__title,
  .pfp-cashbook__title {
    font-size: 1.65rem;
  }

  .pfp-crew-toolbar {
    align-items: stretch;
  }

  .pfp-crew-toolbar__selects,
  .pfp-cashbook__toolbar-selects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pfp-crew-toolbar__label,
  .pfp-cashbook__period-label {
    grid-column: 1 / -1;
  }

  .pfp-crew-activity-list__item,
  .pfp-crew-redemption-list__item,
  .pfp-crew-activity-detail__top,
  .pfp-crew-ranking-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .pfp-crew-activity-list__meta,
  .pfp-crew-redemption-list__amount,
  .pfp-crew-ranking-list__sum {
    margin-left: 0;
    align-items: flex-start;
    text-align: left;
  }

  .pfp-crew-member-row__actions {
    width: 100%;
  }

  .pfp-crew-member-row__actions .pfp-crew-action-button {
    width: 100%;
  }

  .pfp-crew-goal-panel__head-actions,
  .pfp-crew-goal-form__controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .pfp-crew-goal-form {
    min-width: 0;
  }

  .pfp-crew-goal-form__controls input {
    max-width: none;
  }
}

.pfp-history-page {
  width: min(1180px, calc(100% - 18px));
  min-height: calc(100vh - 120px);
  box-sizing: border-box;
  margin: 0 auto 28px;
  padding: 18px 18px 34px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(0,0,0,0.16)),
    repeating-linear-gradient(90deg, #3a1606 0 76px, #55270d 76px 152px, #783d16 152px 228px);
  box-shadow: 0 22px 48px rgba(37, 16, 4, 0.22);
  color: #fff4cb;
}

.pfp-history-hero,
.pfp-history-filter,
.pfp-history-map-card,
.pfp-history-list-card {
  box-sizing: border-box;
  border: 6px solid #4a1b06;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 2px #d9a24c,
    0 8px 0 #2a0e03,
    0 18px 34px rgba(30, 10, 2, 0.26);
}

.pfp-history-hero {
  margin-bottom: 18px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 230, 130, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(29, 85, 104, 0.98), rgba(21, 70, 91, 0.98) 48%, rgba(126, 73, 12, 0.96));
}

.pfp-history-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 244, 203, 0.18);
  color: #fff4cb;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pfp-history-hero h1,
.pfp-history-section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

.pfp-history-hero h1 {
  color: #fff8d9;
  font-size: clamp(2rem, 6vw, 3.4rem);
  text-shadow: 0 3px 0 #321203, 0 8px 20px rgba(0,0,0,0.3);
}

.pfp-history-hero p {
  max-width: 660px;
  margin: 10px 0 0;
  color: rgba(255, 248, 217, 0.92);
  font-weight: 800;
  line-height: 1.45;
}

.pfp-history-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 14px 16px;
  background:
    radial-gradient(circle at 16% 8%, rgba(255,255,255,0.42), transparent 24%),
    linear-gradient(180deg, #fff4c7 0%, #eed18b 100%);
  color: #351303;
}

.pfp-history-filter label {
  color: #6f3b0c;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pfp-history-filter select,
.pfp-history-filter input {
  min-height: 42px;
  border: 3px solid rgba(74, 27, 6, 0.56);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff7d9, #f0d798);
  color: #351303;
  font-weight: 850;
  box-shadow: inset 0 2px 7px rgba(77, 29, 6, 0.16);
}

.pfp-history-map-card,
.pfp-history-list-card {
  margin-top: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 16% 8%, rgba(255,255,255,0.42), transparent 24%),
    linear-gradient(180deg, #fff4c7 0%, #eed18b 100%);
  color: #351303;
}

.pfp-history-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.pfp-history-section-head .pfp-history-kicker {
  background: rgba(74, 27, 6, 0.09);
  color: #8a4f10;
}

.pfp-history-section-head h2 {
  color: #351303;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.pfp-history-section-head strong {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 3px solid #4a1b06;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff2bb, #d69b45);
  color: #371404;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42), 0 4px 0 #2a0e03;
}

.pfp-history-map-frame {
  overflow: hidden;
  border: 5px solid #4a1b06;
  border-radius: 16px;
  background: #18313a;
  box-shadow: inset 0 0 0 2px #d9a24c, 0 7px 0 #2a0e03;
}

.pfp-history-map-frame .leaflet-container {
  min-height: 360px;
}

.pfp-history-empty-map,
.pfp-history-empty-list {
  padding: 18px;
  border: 3px dashed rgba(74, 27, 6, 0.35);
  border-radius: 14px;
  background: rgba(255, 247, 217, 0.72);
  color: #5a2a08;
  font-weight: 900;
}

.pfp-history-bulkbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.pfp-history-bulkbar .pfand-button,
.history-list-item .pfand-button,
.pfp-history-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  border: 3px solid #4a1b06;
  border-radius: 11px;
  background: linear-gradient(180deg, #b96f1e 0%, #7b3608 100%);
  color: #fff7d6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(52, 20, 2, 0.9);
  box-shadow: inset 0 0 0 2px #dfa95f, 0 5px 0 #2a0e03;
  cursor: pointer;
}

.pfp-history-bulkbar .pfand-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.history-list {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 4px solid #4a1b06;
  border-left-color: var(--history-accent, #d8a24c);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 247, 217, 0.94), rgba(238, 209, 139, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42), 0 5px 0 #2a0e03;
}

.history-list-item.is-selected {
  background:
    linear-gradient(180deg, rgba(255, 245, 196, 0.98), rgba(231, 179, 82, 0.95));
}

.pfp-history-check {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.pfp-history-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pfp-history-check span {
  width: 24px;
  height: 24px;
  border: 3px solid #4a1b06;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff7d9, #d7a24d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.38);
}

.pfp-history-check input:checked + span::after {
  display: block;
  color: #0a5b80;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 19px;
  text-align: center;
  content: "✓";
}

.pfp-history-entry-main {
  min-width: 0;
}

.pfp-history-entry-main strong,
.pfp-history-entry-main span,
.pfp-history-entry-main em {
  display: block;
}

.pfp-history-entry-main strong {
  color: #351303;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.pfp-history-entry-main span {
  margin-top: 2px;
  color: #7a4715;
  font-size: 0.88rem;
  font-weight: 800;
}

.pfp-history-entry-main em {
  margin-top: 4px;
  color: #4d2c0d;
  font-style: normal;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.pfp-history-entry-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-list-item .pfand-button {
  min-width: 170px;
  background: linear-gradient(180deg, #167fb0 0%, #07567d 100%);
  box-shadow: inset 0 0 0 2px #62b8d9, 0 5px 0 #2a0e03;
}

.pfp-history-delete {
  width: 62px;
  min-height: 48px;
  background: linear-gradient(180deg, #fff2bb, #d69b45);
  color: #4a1b06;
  text-shadow: none;
}

.pfp-history-status {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(12, 112, 80, 0.12);
  color: #0b684a;
  font-weight: 900;
}

.history-input {
  padding: .3rem;
  font-size: 1rem;
  box-sizing: border-box;
}

.history-input--amount {
  flex: 0 0 6rem;
  min-width: 6rem;
}

.history-input--datetime {
  flex: 1 1 12rem;
  min-width: 12rem;
}

.history-button {
  flex: 0 0 auto;
  margin-left: auto;
  padding: .5rem 1rem;
}

.history-amount {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.history-currency {
  font-size: 1rem;
}

@media (max-width: 760px) {
  .pfp-history-page {
    width: 100%;
    margin-bottom: 0;
    padding: 10px 10px 28px;
    border-radius: 0;
  }

  .pfp-history-hero,
  .pfp-history-filter,
  .pfp-history-map-card,
  .pfp-history-list-card {
    border-width: 5px;
    border-radius: 16px;
  }

  .pfp-history-filter {
    align-items: stretch;
  }

  .pfp-history-filter label,
  .pfp-history-filter select,
  .pfp-history-filter input {
    width: 100%;
  }

  .pfp-history-bulkbar {
    grid-template-columns: 1fr;
  }

  .pfp-history-map-frame .leaflet-container {
    min-height: 300px;
  }

  .history-list-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pfp-history-entry-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .history-list-item .pfand-button {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .pfp-history-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pfp-history-hero {
    padding: 18px;
  }

  .pfp-history-map-card,
  .pfp-history-list-card {
    padding: 12px;
  }

  .pfp-history-map-frame .leaflet-container {
    min-height: 260px;
  }
}

.pfandpirat-map {
  height: 400px;
  margin: 1rem 0;
  background: linear-gradient(180deg, #f5f6f7 0%, #eceff2 100%);
  border-radius: 14px;
  overflow: hidden;
}

.pfandpirat-map--hidden {
  height: 0;
  margin: 0;
  background: transparent;
}

/* ========== Trashcan-Form ========== */
.trashcan-form { background:#fff; border:1px solid #ccc; border-radius:8px; padding:1rem; box-shadow:0 2px 4px rgba(0,0,0,.1); margin-bottom:1rem; }
.trashcan-form .trashcan-field { margin-bottom:1rem; }
.trashcan-form input[type="text"],
.trashcan-form input[type="file"],
.trashcan-form textarea {
  width:100%; padding:.5rem; font-size:1rem; border:1px solid #999; border-radius:4px; box-sizing:border-box; margin-top:.25rem; background:#fafafa;
}
.trashcan-form textarea { resize:vertical; min-height:4rem; }
.trashcan-error { color:#b00020; margin-bottom:1rem; }

/* Marker-Styling */
.pfand-user-marker {
  font-size: 1.5rem;
  text-shadow: 0 0 2px #fff;
}

.leaflet-marker-icon.pfandpirat-avatar-marker {
  border-radius: 50% !important;
  border: 2px solid #f4a259 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  overflow: hidden !important;
}

.leaflet-marker-icon.pfandpirat-avatar-marker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= Pfandspende-Formular: Layout-Fix ================= */
/* sicheres Boxmodell, verhindert Überlauf durch Padding */
.card.form, .card.form *, .card.form *::before, .card.form *::after {
  box-sizing: border-box;
}

/* Karten-Container: mittig, nie breiter als 680px */
.card.form {
  width: min(100%, 680px);
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(16,24,40,.08);
}

/* Form-Controls: überschreiben die globale "button, input"-Regel NUR hier */
.card.form input,
.card.form textarea,
.card.form select {
  width: 100%;
  max-width: 100%;
  font-size: 1rem;
  padding: .75rem .9rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
  outline: none;
}
.card.form textarea { resize: vertical; min-height: 3.25rem; }

.card.form input:focus,
.card.form textarea:focus,
.card.form select:focus {
  border-color: #1e88e5;
  box-shadow: 0 0 0 3px rgba(30,136,229,.15);
}

/* Labels, Hilfetexte, Sektionstitel */
.card.form .label { display:block; font-weight:600; margin-bottom:.35rem; color:#111827; }
.card.form .help { font-size:.9rem; color:#6b7280; margin-top:.25rem; }
.card.form .form__section + .form__section { margin-top: 1rem; }
.card.form .form__section-title { margin:0 0 .5rem; font-size:1.05rem; font-weight:700; color:#111827; }

/* Raster: Adresse/Koordinaten zweispaltig ab 720px – sonst einspaltig */
.card.form .grid-2 { display:grid; gap:.9rem; grid-template-columns:1fr; }
@media (min-width: 720px) { .card.form .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Reihen mit Buttons (Adresse → Koordinaten / Standort übernehmen) */
.card.form .row { display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; }
.card.form .row input[type="text"] { flex: 1 1 260px; min-width: 0; } /* Input wächst */
.card.form .row .btn, 
.card.form .row .pfand-button { flex: 0 0 auto; white-space: nowrap; } /* Buttons bleiben kompakt */

/* Radio-Pills für Laufzeit */
.card.form .radio-group { display:flex; flex-wrap:wrap; gap:.5rem .75rem; }
.card.form .radio { display:flex; align-items:center; gap:.4rem; background:#f8fafc; border:1px solid #e5e7eb; padding:.45rem .65rem; border-radius:999px; }
.card.form .radio input { accent-color:#1e88e5; }

/* Buttons im Card-Kontext (entkoppelt vom globalen button,input) */
.card.form .btn { appearance:none; border:none; cursor:pointer; border-radius:12px; padding:.8rem 1rem; font-weight:700; line-height:1; }
.card.form .btn--primary { background:#1e88e5; color:#fff; }
.card.form .btn--primary:disabled { opacity:.6; cursor:not-allowed; }
.card.form .btn--ghost { background:#fff; color:#1f2937; border:1px solid #e5e7eb; }
.card.form .btn--ghost:hover { background:#f9fafb; }

/* Foto-Vorschau */
.card.form .photo-preview { width:84px; height:84px; object-fit:cover; border-radius:10px; border:1px solid #e5e7eb; box-shadow:0 2px 8px rgba(0,0,0,.06); }

/* Actions unten rechts */
.card.form .actions { margin-top:.75rem; display:flex; justify-content:flex-end; }

/* Mobile Feinschliff – keine abgeschnittenen Ränder */
@media (max-width: 420px) {
  .card.form { padding-inline: 12px; }
  .card.form .row { gap:.45rem; }
  .card.form .row input[type="text"] { flex: 1 1 100%; }
  .card.form .btn--ghost { padding:.7rem .8rem; }
}


.pfandspende-button {
  background: #ff9800;   /* Orange */
  color: white;
  font-weight: bold;
  width: 100%;
  margin: 1rem 0;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.2s ease;
}

.pfandspende-button:hover {
  background: #e68900;
}

.leaderboard-page {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 1rem 0;
  color: #2b1305;
  font-family: Georgia, "Times New Roman", serif;
}

.leaderboard-card {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  padding: 28px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 189, 76, 0.22), transparent 26%),
    radial-gradient(circle at 82% 22%, rgba(88, 35, 8, 0.22), transparent 30%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 3px, rgba(0, 0, 0, 0.04) 3px 7px),
    repeating-linear-gradient(90deg, #6e3513 0 110px, #5d2a0d 110px 116px, #7c3e17 116px 228px);
  box-shadow: inset 0 0 80px rgba(20, 8, 2, 0.62), 0 22px 50px rgba(36, 16, 4, 0.22);
}

.leaderboard-card::before,
.leaderboard-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.leaderboard-card::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(26, 11, 2, 0.34), transparent 12%, transparent 88%, rgba(26, 11, 2, 0.34)),
    linear-gradient(180deg, rgba(26, 11, 2, 0.38), transparent 14%, transparent 86%, rgba(26, 11, 2, 0.34));
}

.leaderboard-card::after {
  z-index: 1;
  opacity: 0.2;
  background:
    repeating-linear-gradient(12deg, transparent 0 34px, rgba(255, 210, 113, 0.16) 34px 36px),
    repeating-linear-gradient(-8deg, transparent 0 52px, rgba(35, 10, 0, 0.2) 52px 54px);
}

.leaderboard-header,
.leaderboard-filters,
.leaderboard-my-row,
.leaderboard-state,
.leaderboard-list {
  position: relative;
  z-index: 2;
}

.leaderboard-header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 26px;
}

.leaderboard-header > div {
  position: relative;
  min-height: 130px;
  padding: 28px 38px 22px;
  color: #fff1ca;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(42, 91, 105, 0.96), rgba(45, 72, 80, 0.98)),
    linear-gradient(90deg, #6c3a13, #a4631b);
  border: 7px solid #8a4b16;
  border-radius: 22px 22px 18px 18px;
  box-shadow:
    inset 0 0 0 3px #d8a24c,
    inset 0 -16px 0 rgba(68, 28, 7, 0.28),
    0 10px 0 #3b1707,
    0 20px 25px rgba(24, 8, 0, 0.35);
}

.leaderboard-header > div::before {
  content: "☠";
  position: absolute;
  top: -34px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 56px;
  transform: translateX(-50%);
  border-radius: 50% 50% 16px 16px;
  background: linear-gradient(180deg, #d89125, #754013);
  color: #140601;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  box-shadow: inset 0 0 0 4px #4b1c08, 0 8px 14px rgba(0, 0, 0, 0.28);
}

.leaderboard-header > div::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: -13px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f2c77b, #6c330e 55%, #2b1005);
  box-shadow: 0 2px 0 #f4d38f;
}

.leaderboard-header h1 {
  margin: 0;
  color: #fff1bd;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 5px 0 #210b02, 0 0 18px rgba(255, 211, 91, 0.35);
}

.leaderboard-header p {
  margin: 12px auto 0;
  max-width: 540px;
  color: #fff8da;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 0 #210b02;
}

.leaderboard-refresh {
  min-height: 58px;
  padding: 0 24px;
  border: 5px solid #2b1005;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 244, 200, 0.68), transparent 24%),
    linear-gradient(180deg, #b66a18, #7a350b);
  color: #fff7ce;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 2px 0 #210b02;
  box-shadow: inset 0 0 0 2px #e0a64c, 0 5px 0 #2a0e03;
  cursor: pointer;
}

.leaderboard-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px;
  border: 7px solid #5a250a;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 244, 190, 0.78), transparent 32%),
    linear-gradient(180deg, #fbefc5, #e5c783);
  box-shadow: inset 0 0 0 3px rgba(132, 75, 19, 0.55), 0 9px 0 #2a0e03;
}

.leaderboard-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.leaderboard-filter-group label,
.leaderboard-my-row__label {
  color: #351405;
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-filter-group select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  border: 3px solid rgba(73, 31, 8, 0.55);
  border-radius: 12px;
  background: rgba(255, 244, 207, 0.72);
  color: #2b1305;
  box-sizing: border-box;
  font: inherit;
  font-weight: 800;
}

.leaderboard-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.leaderboard-toggle {
  min-height: 46px;
  padding: 0.55rem 0.7rem;
  border: 3px solid #4a1b06;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 244, 200, 0.68), transparent 24%),
    linear-gradient(180deg, #8b4b13, #5b2407);
  color: #fff4cb;
  font: inherit;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 2px 0 #210b02;
  box-shadow: inset 0 0 0 2px #c0812a, 0 4px 0 #2a0e03;
  cursor: pointer;
}

.leaderboard-toggle.is-active {
  border-color: #ffd37b;
  background:
    linear-gradient(180deg, rgba(255, 248, 214, 0.78), transparent 24%),
    linear-gradient(180deg, #b66a18, #7a350b);
  box-shadow: inset 0 0 0 2px #ffe5a7, 0 0 0 3px rgba(255, 186, 67, 0.22), 0 4px 0 #2a0e03;
}

.leaderboard-toggle:disabled {
  cursor: not-allowed;
  filter: grayscale(0.3);
  opacity: 0.58;
}

.leaderboard-my-row {
  margin: 22px 0;
}

.leaderboard-my-row__label {
  margin: 0 0 0.65rem;
  color: #fff1bd;
  text-shadow: 0 2px 0 #210b02;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 5px solid #4a1b06;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 244, 200, 0.68), transparent 22%),
    linear-gradient(180deg, #f4dc9c, #d7ae61);
  color: #2b1305;
  box-shadow: inset 0 0 0 2px rgba(132, 75, 19, 0.48), 0 5px 0 #2a0e03;
}

.leaderboard-row--me {
  border-color: #ffd37b;
  background:
    linear-gradient(180deg, rgba(255, 253, 220, 0.9), transparent 24%),
    linear-gradient(180deg, #ffecb3, #e3b554);
  box-shadow: inset 0 0 0 2px #ffe5a7, 0 0 0 3px rgba(255, 186, 67, 0.22), 0 5px 0 #2a0e03;
}

.leaderboard-row__rank {
  min-width: 3.2rem;
  color: #4a1b06;
  font-size: 1.25rem;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 245, 197, 0.75);
}

.leaderboard-row__avatar,
.leaderboard-row__avatar-link {
  display: block;
}

.leaderboard-row__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f6d88e;
  box-shadow: inset 0 0 0 2px rgba(91, 36, 7, 0.55), 0 3px 0 #4a1b06;
}

.leaderboard-row__avatar-link {
  border-radius: 999px;
  line-height: 0;
}

.leaderboard-row__avatar-link:focus-visible,
.leaderboard-row__identity-link:focus-visible {
  outline: 3px solid #fff1bd;
  outline-offset: 3px;
  border-radius: 12px;
}

.leaderboard-row__identity {
  min-width: 0;
}

.leaderboard-row__identity-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.leaderboard-row__name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
  color: #2b1305;
  font-size: 1.04rem;
  font-weight: 900;
}

.leaderboard-row__name > :first-child,
.leaderboard-row__name {
  overflow-wrap: anywhere;
}

.leaderboard-row__identity-link:hover .leaderboard-row__name {
  color: #7a350b;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.leaderboard-row__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
  color: #5b2b0d;
  font-size: 0.9rem;
  font-weight: 700;
}

.leaderboard-row__score {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.18rem;
  text-align: right;
}

.leaderboard-row__score strong {
  color: #0f4f58;
  font-size: 1.18rem;
  font-weight: 900;
}

.leaderboard-row__score span {
  color: #5b2b0d;
  font-size: 0.85rem;
  font-weight: 800;
}

.leaderboard-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 79, 88, 0.12);
  color: #0f4f58;
  font-size: 0.8rem;
  font-weight: 900;
}

.leaderboard-chip--me {
  background: #0f4f58;
  color: #fff4cb;
}

.leaderboard-state {
  border: 5px solid #4a1b06;
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 244, 190, 0.78), transparent 32%),
    linear-gradient(180deg, #fbefc5, #e5c783);
  box-shadow: inset 0 0 0 2px rgba(132, 75, 19, 0.48), 0 5px 0 #2a0e03;
  padding: 1rem;
  color: #351405;
  font-weight: 900;
  text-align: center;
}

.leaderboard-state--error {
  background: linear-gradient(180deg, #ffe3d0, #efb891);
  color: #8f1d12;
}

@media (max-width: 900px) {
  .leaderboard-header {
    grid-template-columns: 1fr;
  }

  .leaderboard-refresh {
    width: 100%;
  }

  .leaderboard-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .leaderboard-page {
    width: min(100% - 10px, 640px);
    padding: 0.5rem 0;
  }

  .leaderboard-card {
    padding: 14px 12px 18px;
    border-radius: 12px;
  }

  .leaderboard-header {
    gap: 18px;
    margin-bottom: 20px;
  }

  .leaderboard-header > div {
    min-height: 104px;
    padding: 24px 18px 18px;
    border-width: 5px;
    border-radius: 16px;
    overflow: hidden;
  }

  .leaderboard-header h1 {
    font-size: clamp(2.15rem, 12vw, 3.35rem);
    line-height: 0.98;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-shadow: 0 3px 0 #210b02, 0 0 12px rgba(255, 211, 91, 0.3);
  }

  .leaderboard-header p {
    font-size: 0.92rem;
  }

  .leaderboard-refresh {
    min-height: 48px;
    padding: 0 12px;
    font-size: 1rem;
  }

  .leaderboard-filters {
    gap: 10px;
    padding: 14px;
    border-width: 5px;
  }

  .leaderboard-row {
    grid-template-columns: auto 42px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank avatar identity score"
      "rank avatar identity score";
    gap: 0.6rem;
    padding: 0.72rem;
    border-width: 4px;
  }

  .leaderboard-row__rank {
    grid-area: rank;
    min-width: 2.2rem;
    font-size: 1rem;
    align-self: center;
  }

  .leaderboard-row__avatar,
  .leaderboard-row__avatar-link {
    grid-area: avatar;
    align-self: center;
  }

  .leaderboard-row__avatar {
    width: 42px;
    height: 42px;
  }

  .leaderboard-row__identity {
    grid-area: identity;
    align-self: center;
  }

  .leaderboard-row__name {
    font-size: 0.96rem;
    line-height: 1.2;
  }

  .leaderboard-row__meta {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }

  .leaderboard-row__score {
    grid-area: score;
    align-self: center;
    text-align: right;
  }

  .leaderboard-row__score strong {
    font-size: 0.98rem;
    line-height: 1.15;
  }

  .leaderboard-row__score span {
    font-size: 0.75rem;
  }

  .leaderboard-chip {
    font-size: 0.72rem;
    padding: 0.18rem 0.45rem;
  }
}

@media (max-width: 520px) {
  .leaderboard-filters {
    grid-template-columns: 1fr 1fr;
  }

  .leaderboard-filter-group label {
    font-size: 0.78rem;
  }

  .leaderboard-filter-group select,
  .leaderboard-toggle {
    min-height: 44px;
    padding: 0.58rem 0.55rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .leaderboard-card {
    padding: 12px 10px 16px;
  }

  .leaderboard-filters {
    grid-template-columns: 1fr;
  }

  .leaderboard-row {
    grid-template-columns: auto 38px minmax(0, 1fr);
    grid-template-areas:
      "rank avatar identity"
      "rank score score";
    gap: 0.45rem 0.6rem;
    padding: 0.68rem;
  }

  .leaderboard-row__rank {
    min-width: 1.9rem;
    font-size: 0.95rem;
    align-self: start;
    padding-top: 0.15rem;
  }

  .leaderboard-row__avatar,
  .leaderboard-row__avatar-link {
    align-self: start;
  }

  .leaderboard-row__avatar {
    width: 38px;
    height: 38px;
  }

  .leaderboard-row__name {
    font-size: 0.92rem;
  }

  .leaderboard-row__meta {
    font-size: 0.76rem;
  }

  .leaderboard-row__score {
    align-items: flex-start;
    text-align: left;
  }

  .leaderboard-row__score strong {
    font-size: 0.94rem;
  }

  .leaderboard-row__score span {
    font-size: 0.72rem;
  }
}

.avatar-profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, #fffdf8 0%, #f8fbff 100%);
  border: 2px solid #f0c96b;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  margin: 0 0 1rem 0;
}

.avatar-profile-card__image {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  background: #edf3f8;
  flex: 0 0 86px;
}

.avatar-profile-card__content {
  flex: 1 1 auto;
  min-width: 0;
}

.avatar-profile-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #fff3d6;
  color: #9a6200;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.avatar-profile-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0c3563;
  margin: 0 0 0.35rem;
}

.avatar-profile-card__meta {
  color: #576574;
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 0 0 0.65rem;
}

.avatar-profile-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 12px;
  background: #0c3563;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.avatar-picker {
  position: fixed;
  inset: 0;
  z-index: 10050;
}

.avatar-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 43, 0.58);
}

.avatar-picker__sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(960px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  background: #ffffff;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.avatar-picker__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar-picker__header h3 {
  margin: 0 0 0.35rem;
  color: #0c3563;
}

.avatar-picker__header p {
  margin: 0;
  color: #617182;
}

.avatar-picker__close {
  border: none;
  border-radius: 12px;
  background: #0c3563;
  color: #fff;
  padding: 0.7rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.avatar-picker__section + .avatar-picker__section {
  margin-top: 1rem;
}

.avatar-picker__section-title {
  font-weight: 800;
  color: #0c3563;
  margin-bottom: 0.75rem;
}

.avatar-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.avatar-picker__tile {
  text-align: left;
  border: 1px solid #dce5ee;
  border-radius: 18px;
  background: #fff;
  padding: 0.85rem;
  cursor: pointer;
  min-height: 250px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.avatar-picker__tile:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.avatar-picker__tile.is-active {
  border-color: #f0b24a;
  box-shadow: 0 0 0 2px rgba(240, 178, 74, 0.2);
}

.avatar-picker__tile.is-locked {
  opacity: 0.78;
  cursor: default;
  background: #f7fafc;
}

.avatar-picker__image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #eef4fb 0%, #f7fbff 100%);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.avatar-picker__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-picker__tile-title {
  color: #0c3563;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.avatar-picker__tile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.avatar-picker__rarity,
.avatar-picker__current {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.avatar-picker__current {
  background: #dff0ff;
  color: #0c3563;
}

.avatar-picker__rarity--common { background: #edf3f8; color: #486175; }
.avatar-picker__rarity--rare { background: #e0f2ff; color: #0a5ea8; }
.avatar-picker__rarity--epic { background: #efe6ff; color: #6a33aa; }
.avatar-picker__rarity--legendary { background: #fff1d6; color: #a56300; }

.avatar-picker__hint {
  color: #5b6775;
  font-size: 0.86rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .avatar-profile-card {
    align-items: flex-start;
    gap: 0.85rem;
  }

  .avatar-profile-card__image {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .avatar-profile-card__button {
    width: 100%;
  }

  .avatar-picker__sheet {
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100vw, 100vw);
    max-height: min(86vh, 86vh);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .avatar-picker__header {
    align-items: stretch;
    flex-direction: column;
  }

  .avatar-picker__close {
    width: 100%;
  }

  .avatar-picker__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .avatar-picker__tile {
    min-height: auto;
    padding: 0.7rem;
  }
}

.profile-visits-card {
  margin: 1.25rem 0;
  background: linear-gradient(180deg, #fffdf8 0%, #f8fbff 100%);
  border: 1px solid #e4e9ef;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.profile-visits-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.profile-visits-card__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9a6200;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.profile-visits-card__title {
  margin: 0;
  color: #0c3563;
  font-size: 1.1rem;
}

.profile-visits-card__hint {
  color: #66727f;
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.45;
}

.profile-visits-card__list {
  display: grid;
  gap: 0.75rem;
}

.profile-visits-card__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5ecf3;
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.profile-visits-card__item:hover,
.profile-visits-card__item:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(12,53,99,0.08);
  border-color: #bfd5ec;
}

.profile-visits-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0c96b;
  background: #f3f6f8;
}

.profile-visits-card__meta {
  min-width: 0;
}

.profile-visits-card__name {
  font-weight: 700;
  color: #0c3563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-visits-card__subline {
  color: #64707e;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-visits-card__time {
  color: #6d7885;
  font-size: 0.85rem;
  text-align: right;
}

.profile-visits-card__empty {
  background: #fff;
  border: 1px dashed #d8e1ea;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  color: #6b7580;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .profile-visits-card {
    padding: 0.9rem;
  }

  .profile-visits-card__item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.65rem 0.7rem;
  }

  .profile-visits-card__avatar {
    width: 46px;
    height: 46px;
  }

  .profile-visits-card__time {
    grid-column: 2;
    text-align: left;
    font-size: 0.8rem;
    margin-top: -0.1rem;
  }

  .profile-visits-card__hint {
    max-width: none;
  }
}

.pfp-referral-card {
  background: linear-gradient(180deg, #fffdf8 0%, #f4f8ff 100%);
  border: 2px solid #f0c96b;
  border-radius: 18px;
  padding: 1rem;
  margin: 0 0 1.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.pfp-referral-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pfp-referral-card__eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #fff3d6;
  color: #9a6200;
  font-size: 0.8rem;
  font-weight: 700;
}

.pfp-referral-card__title {
  margin: 0 0 0.4rem;
  color: #0c3563;
  font-size: 1.2rem;
}

.pfp-referral-card__intro {
  margin: 0;
  color: #4f5d6c;
  line-height: 1.5;
}

.pfp-referral-card__badge {
  min-width: 160px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e3e9f1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.pfp-referral-card__badge-label,
.pfp-referral-card__label {
  display: block;
  margin-bottom: 0.35rem;
  color: #65707d;
  font-size: 0.85rem;
}

.pfp-referral-card__badge strong {
  font-size: 1.1rem;
  color: #0c3563;
  word-break: break-word;
}

.pfp-referral-card__link-box {
  padding: 0.95rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e3e9f1;
  margin-bottom: 0.9rem;
}

.pfp-referral-card__link-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pfp-referral-card__input {
  flex: 1 1 340px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #d7dce2;
  background: #fff;
  font-size: 0.96rem;
}

.pfp-referral-card__copy-button,
.pfp-referral-card__action,
.pfp-referral-card__retry {
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.pfp-referral-card__copy-button {
  background: #0c3563;
  color: #fff;
}

.pfp-referral-card__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pfp-referral-card__action {
  flex: 1 1 220px;
  color: #fff;
}

.pfp-referral-card__action--whatsapp {
  background: #1f9d55;
}

.pfp-referral-card__action--email {
  background: #1e88e5;
}

.pfp-referral-card__copy-button:disabled,
.pfp-referral-card__action:disabled {
  opacity: 0.6;
  cursor: default;
}

.pfp-referral-card__error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff0f0;
  border: 1px solid #f2c6c6;
  color: #933;
  flex-wrap: wrap;
}

.pfp-referral-card__retry {
  background: #fff;
  color: #933;
  border: 1px solid #e5b8b8;
}

.pfp-referral-card__stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

.pfp-referral-card__stat {
  padding: 0.9rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e4e9ef;
}

.pfp-referral-card__stat--success {
  border-color: #bfe6c8;
  background: #f4fff6;
}

.pfp-referral-card__stat--xp {
  border-color: #d8c8ff;
  background: #faf7ff;
}

.pfp-referral-card__stat-value {
  color: #0c3563;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.pfp-referral-card__stat-label {
  color: #65707d;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .pfp-referral-card__copy-button,
  .pfp-referral-card__action {
    width: 100%;
  }
}

.pfp-expedition-page {
  position: relative;
  overflow: hidden;
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px;
  border-radius: 16px;
  color: #2b1305;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 189, 76, 0.22), transparent 26%),
    radial-gradient(circle at 82% 22%, rgba(88, 35, 8, 0.22), transparent 30%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 3px, rgba(0, 0, 0, 0.04) 3px 7px),
    repeating-linear-gradient(90deg, #6e3513 0 110px, #5d2a0d 110px 116px, #7c3e17 116px 228px);
  box-shadow: inset 0 0 80px rgba(20, 8, 2, 0.62), 0 22px 50px rgba(36, 16, 4, 0.22);
}

.pfp-expedition-page::before,
.pfp-expedition-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pfp-expedition-page::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(26, 11, 2, 0.34), transparent 12%, transparent 88%, rgba(26, 11, 2, 0.34)),
    linear-gradient(180deg, rgba(26, 11, 2, 0.38), transparent 14%, transparent 86%, rgba(26, 11, 2, 0.34));
}

.pfp-expedition-page::after {
  z-index: 1;
  opacity: 0.2;
  background:
    repeating-linear-gradient(12deg, transparent 0 34px, rgba(255, 210, 113, 0.16) 34px 36px),
    repeating-linear-gradient(-8deg, transparent 0 52px, rgba(35, 10, 0, 0.2) 52px 54px);
}

.pfp-expedition-page > * {
  position: relative;
  z-index: 2;
}

.pfp-expedition-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 150px;
  padding: 30px 34px 24px;
  border: 7px solid #8a4b16;
  border-radius: 22px 22px 18px 18px;
  background:
    linear-gradient(180deg, rgba(42, 91, 105, 0.96), rgba(45, 72, 80, 0.98)),
    linear-gradient(90deg, #6c3a13, #a4631b);
  color: #fff1ca;
  box-shadow:
    inset 0 0 0 3px #d8a24c,
    inset 0 -16px 0 rgba(68, 28, 7, 0.28),
    0 10px 0 #3b1707,
    0 20px 25px rgba(24, 8, 0, 0.35);
}

.pfp-expedition-hero::before,
.pfp-expedition-hero::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f2c77b, #6c330e 55%, #2b1005);
  box-shadow: 0 2px 0 #f4d38f;
}

.pfp-expedition-hero::before { top: -11px; }
.pfp-expedition-hero::after { bottom: -13px; }

.pfp-expedition-hero-content::before {
  content: "☠";
  position: absolute;
  top: -34px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 56px;
  transform: translateX(-50%);
  border-radius: 50% 50% 16px 16px;
  background: linear-gradient(180deg, #d89125, #754013);
  color: #140601;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  box-shadow: inset 0 0 0 4px #4b1c08, 0 8px 14px rgba(0, 0, 0, 0.28);
}

.pfp-expedition-kicker {
  display: block;
  color: #fff8da;
  font-size: clamp(0.95rem, 2vw, 1.18rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #210b02;
}

.pfp-expedition-hero h1 {
  margin: 6px 0 10px;
  color: #fff1bd;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 5px 0 #210b02, 0 0 18px rgba(255, 211, 91, 0.35);
}

.pfp-expedition-hero p {
  margin: 0;
  max-width: 58ch;
  color: #fff8da;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.42;
  text-shadow: 0 2px 0 #210b02;
}

.pfp-expedition-scanner-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 241, 191, 0.78), transparent 36%),
    linear-gradient(180deg, rgba(255, 244, 200, 0.18), rgba(255, 244, 200, 0.06));
  border: 3px solid rgba(255, 225, 153, 0.5);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.12), 0 10px 35px rgba(0, 0, 0, 0.18);
}

.pfp-expedition-scanner-orb span {
  font-size: 3rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.pfp-expedition-scanner-orb::before,
.pfp-expedition-scanner-orb::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 238, 170, 0.5);
  opacity: 0;
}

.pfp-expedition-scanner-orb.is-scanning::before {
  animation: pfpScannerPulse 1.35s ease-out infinite;
}

.pfp-expedition-scanner-orb.is-scanning::after {
  animation: pfpScannerPulse 1.35s ease-out 0.45s infinite;
}

@keyframes pfpScannerPulse {
  0% { transform: scale(0.75); opacity: 0.8; }
  100% { transform: scale(1.28); opacity: 0; }
}

.pfp-expedition-alert {
  margin: 22px 0 0;
  padding: 14px 18px;
  border: 4px solid #5b2108;
  border-radius: 14px;
  background: #fff2cf;
  color: #6b2b0b;
  font-weight: 900;
  line-height: 1.45;
  box-shadow: 0 5px 0 #2a0e03;
}

.pfp-expedition-alert-error {
  background: #ffe3d0;
  color: #8f1d12;
}

.pfp-expedition-live-toast {
  position: fixed;
  left: 50%;
  bottom: 112px;
  z-index: 10082;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  width: min(92vw, 430px);
  padding: 12px 14px;
  transform: translateX(-50%);
  border: 4px solid #4a1b06;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 244, 200, 0.88), transparent 24%),
    linear-gradient(180deg, #fbefc5, #e5c783);
  color: #351405;
  box-shadow: inset 0 0 0 2px rgba(216, 162, 76, 0.72), 0 16px 34px rgba(24, 8, 0, 0.32);
  animation: pfpExpeditionLiveToastIn 0.2s ease-out;
}

.pfp-expedition-live-toast__body strong,
.pfp-expedition-live-toast__body span {
  display: block;
}

.pfp-expedition-live-toast__body strong {
  color: #351405;
  font-size: 1rem;
  font-weight: 900;
}

.pfp-expedition-live-toast__body span {
  margin-top: 0.2rem;
  color: #5b2b0d;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.32;
}

.pfp-expedition-live-toast__actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.pfp-expedition-live-toast__actions button {
  min-height: 38px;
  padding: 0.42rem 0.7rem;
  border: 3px solid #4a1b06;
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 244, 200, 0.68), transparent 24%),
    linear-gradient(180deg, #b66a18, #7a350b);
  color: #fff7ce;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 2px 0 #210b02;
  box-shadow: inset 0 0 0 2px #e0a64c, 0 3px 0 #2a0e03;
  cursor: pointer;
}

.pfp-expedition-live-toast__actions button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.7;
}

.pfp-expedition-live-toast__actions .is-ghost {
  background: rgba(255, 244, 207, 0.76);
  color: #4b230a;
  text-shadow: none;
}

@keyframes pfpExpeditionLiveToastIn {
  from { opacity: 0; transform: translate(-50%, 12px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.pfp-expedition-card,
.pfp-expedition-result-card,
.pfp-expedition-stat-card {
  border: 6px solid #5a250a;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 244, 190, 0.78), transparent 32%),
    linear-gradient(180deg, #fbefc5, #e5c783);
  box-shadow:
    inset 0 0 0 3px rgba(132, 75, 19, 0.5),
    inset 0 0 32px rgba(89, 37, 6, 0.14),
    0 8px 0 #2a0e03,
    0 18px 22px rgba(24, 8, 0, 0.25);
}

.pfp-expedition-card,
.pfp-expedition-result-card {
  margin-top: 24px;
  padding: 18px;
}

.pfp-expedition-card h2,
.pfp-expedition-result-card h2 {
  margin: 0 0 0.35rem;
  color: #351405;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.05;
}

.pfp-expedition-card p,
.pfp-expedition-result-card p {
  margin: 0;
  color: #4b230a;
  font-weight: 700;
  line-height: 1.45;
}

.pfp-expedition-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.pfp-expedition-section-head strong {
  white-space: nowrap;
  color: #7a350b;
  font-weight: 900;
}

.pfp-expedition-live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding: 0.28rem 0.55rem;
  border: 2px solid rgba(73, 31, 8, 0.22);
  border-radius: 999px;
  background: rgba(255, 244, 207, 0.52);
  color: #5b2b0d;
  font-size: 0.8rem;
  font-weight: 900;
}

.pfp-expedition-live-status span::before {
  content: "";
  display: inline-block;
  width: 0.58rem;
  height: 0.58rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #a16207;
  box-shadow: 0 0 0 3px rgba(161, 98, 7, 0.16);
}

.pfp-expedition-live-status.is-watching span::before {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16), 0 0 14px rgba(22, 163, 74, 0.34);
}

.pfp-expedition-live-status.is-pending span::before {
  background: #f59e0b;
}

.pfp-expedition-live-status.is-blocked span::before,
.pfp-expedition-live-status.is-unavailable span::before {
  background: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.14);
}

.pfp-expedition-live-status small {
  color: #7a350b;
  font-size: 0.74rem;
}

.pfp-expedition-light-button,
.pfp-expedition-scan-button,
.pfp-expedition-ship-button {
  border: 3px solid #4a1b06;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 244, 200, 0.68), transparent 24%),
    linear-gradient(180deg, #b66a18, #7a350b);
  color: #fff7ce !important;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  line-height: 1.05;
  text-decoration: none !important;
  text-shadow: 0 2px 0 #210b02;
  box-shadow: inset 0 0 0 2px #e0a64c, 0 4px 0 #2a0e03;
  cursor: pointer;
}

.pfp-expedition-light-button {
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  font-size: 1rem;
}

.pfp-expedition-scan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.pfp-expedition-scan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 58px;
  padding: 0.8rem 1.15rem;
  font-size: 1.15rem;
}

.pfp-expedition-scan-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.28);
  opacity: 0.62;
}

.pfp-expedition-scan-button span {
  font-size: 1.35rem;
}

.pfp-expedition-map-card {
  overflow: hidden;
}

.pfp-expedition-map {
  position: relative;
  height: 340px;
  overflow: hidden;
  border: 5px solid #4a1b06;
  border-radius: 16px;
  background: #07111f;
  box-shadow: inset 0 0 0 2px rgba(255, 228, 171, 0.18), 0 5px 0 #2a0e03;
}

.pfp-expedition-map__leaflet,
.pfp-expedition-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #07111f;
  font-family: inherit;
}

.pfp-expedition-map .leaflet-pane,
.pfp-expedition-map .leaflet-top,
.pfp-expedition-map .leaflet-bottom {
  z-index: 1;
}

.pfp-expedition-map .leaflet-tooltip {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  background: rgba(43, 19, 5, 0.92);
  color: #fff4cb;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 53, 88, 0.2);
}

.pfp-expedition-map-badge {
  position: absolute;
  z-index: 2;
  top: 0.65rem;
  right: 0.65rem;
  max-width: min(260px, calc(100% - 1.3rem));
  padding: 0.4rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 244, 203, 0.94);
  color: #351405;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 53, 88, 0.22);
  pointer-events: none;
}

.pfp-expedition-map-badge.is-error {
  background: rgba(254, 226, 226, 0.96);
  color: #7f1d1d;
}

.pfp-expedition-ship-map-marker {
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
}

.pfp-expedition-ship-map-marker span {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pfp-expedition-ship-map-marker span::after {
  content: none;
}

.pfp-expedition-ship-map-marker img {
  position: relative;
  z-index: 1;
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(15, 53, 88, 0.28));
}

.pfp-expedition-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
  align-items: center;
  margin-top: 0.85rem;
  color: #4b230a;
  font-size: 0.86rem;
  font-weight: 800;
}

.pfp-expedition-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pfp-expedition-map-legend i {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 4px;
}

.pfp-expedition-map-legend .is-current {
  border: 2px solid #f59e0b;
  background: rgba(245, 158, 11, 0.18);
}

.pfp-expedition-map-legend .is-discovered {
  border: 2px solid #16a34a;
  background: rgba(22, 163, 74, 0.18);
}

.pfp-expedition-map-legend .is-hidden {
  background: #050816;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
}

.pfp-expedition-map-legend strong {
  margin-left: auto;
  color: #351405;
  font-weight: 900;
}

.pfp-expedition-ship-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) minmax(180px, 0.78fr);
  gap: 1rem;
  align-items: center;
}

.pfp-expedition-ship-visual {
  display: grid;
  place-items: center;
  min-height: 94px;
  border: 3px solid rgba(73, 31, 8, 0.28);
  border-radius: 16px;
  background: rgba(255, 244, 207, 0.48);
}

.pfp-expedition-ship-visual img {
  display: block;
  max-width: 112px;
  max-height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
}

.pfp-expedition-ship-placeholder {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f4f58, #14535f);
  color: #fff4cf;
  font-size: 2rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.pfp-expedition-ship-kicker {
  display: inline-flex;
  margin-bottom: 0.25rem;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 79, 88, 0.12);
  color: #0f4f58;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pfp-expedition-ship-bonuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.pfp-expedition-ship-bonuses span,
.pfp-expedition-result-rewards strong,
.pfp-expedition-log-reward span {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  background: rgba(15, 79, 88, 0.12);
  color: #0f4f58;
  font-size: 0.78rem;
  font-weight: 900;
}

.pfp-expedition-ship-progress {
  margin-top: 0.65rem;
}

.pfp-expedition-ship-progress > div,
.pfp-expedition-progress {
  overflow: hidden;
  height: 13px;
  border-radius: 999px;
  background: rgba(73, 31, 8, 0.22);
}

.pfp-expedition-ship-progress span,
.pfp-expedition-progress div {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0a500, #16a34a);
  transition: width 0.35s ease;
}

.pfp-expedition-ship-progress small {
  display: block;
  margin-top: 0.28rem;
  color: #5b2b0d;
  font-weight: 900;
}

.pfp-expedition-ship-action {
  padding: 0.85rem;
  border: 3px solid rgba(73, 31, 8, 0.24);
  border-radius: 16px;
  background: rgba(255, 244, 207, 0.42);
}

.pfp-expedition-ship-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 46px;
  margin-top: 0.7rem;
  box-sizing: border-box;
}

.pfp-expedition-ship-note {
  margin-top: 0.55rem !important;
  font-weight: 900;
}

.pfp-expedition-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.pfp-expedition-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 94px;
  padding: 0.95rem;
}

.pfp-expedition-stat-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: #f6d88e;
  box-shadow: inset 0 0 0 3px rgba(91, 36, 7, 0.4);
  font-size: 1.45rem;
}

.pfp-expedition-stat-value {
  color: #351405;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.1;
}

.pfp-expedition-stat-label {
  margin-top: 0.2rem;
  color: #351405;
  font-weight: 900;
}

.pfp-expedition-stat-hint {
  margin-top: 0.2rem;
  color: #5b2b0d;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.pfp-expedition-result-card {
  display: flex;
  gap: 1rem;
  border-color: #5a250a;
}

.pfp-expedition-result-icon,
.pfp-expedition-log-thumb {
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 244, 207, 0.62);
  box-shadow: inset 0 0 0 2px rgba(73, 31, 8, 0.16);
}

.pfp-expedition-result-icon {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  font-size: 2.2rem;
}

.pfp-expedition-result-icon img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(15, 53, 88, 0.22));
}

.pfp-expedition-result-card > div:last-child > span {
  display: inline-flex;
  margin-bottom: 0.3rem;
  color: #7a350b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pfp-expedition-result-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.pfp-expedition-log-list {
  display: grid;
  gap: 0.7rem;
}

.pfp-expedition-log-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 4px solid #4a1b06;
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 244, 200, 0.68), transparent 22%),
    linear-gradient(180deg, #f4dc9c, #d7ae61);
  color: #2b1305;
  box-shadow: inset 0 0 0 2px rgba(132, 75, 19, 0.36), 0 4px 0 #2a0e03;
}

.pfp-expedition-log-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.pfp-expedition-log-thumb {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  font-size: 1.25rem;
}

.pfp-expedition-log-thumb img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgba(15, 53, 88, 0.18));
}

.pfp-expedition-log-item strong {
  display: block;
  color: #351405;
  font-weight: 900;
}

.pfp-expedition-log-item span {
  display: block;
  margin-top: 0.15rem;
  color: #5b2b0d;
  font-size: 0.82rem;
  font-weight: 700;
}

.pfp-expedition-log-reward {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 94px;
}

.pfp-expedition-log-item.rarity-uncommon,
.pfp-expedition-result-card.rarity-uncommon { border-color: #38bdf8; }
.pfp-expedition-log-item.rarity-rare,
.pfp-expedition-result-card.rarity-rare { border-color: #6366f1; }
.pfp-expedition-log-item.rarity-epic,
.pfp-expedition-result-card.rarity-epic { border-color: #a855f7; }
.pfp-expedition-log-item.rarity-legendary,
.pfp-expedition-result-card.rarity-legendary { border-color: #f59e0b; }

.pfp-expedition-empty {
  padding: 1rem;
  border: 3px dashed rgba(73, 31, 8, 0.35);
  border-radius: 12px;
  background: rgba(255, 241, 198, 0.54);
  color: #3a1705;
  font-weight: 900;
  line-height: 1.5;
}

.pfp-expedition-overview-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 540px;
  margin: 1rem auto;
  padding: 1rem;
  border: 5px solid #4a1b06;
  border-radius: 18px;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(42, 91, 105, 0.96), rgba(45, 72, 80, 0.98));
  color: #fff4cb;
  box-shadow: inset 0 0 0 2px #d8a24c, 0 8px 0 #2a0e03;
}

.pfp-expedition-overview-card strong,
.pfp-expedition-overview-card em {
  display: block;
}

.pfp-expedition-overview-card strong {
  font-size: 1rem;
}

.pfp-expedition-overview-card em {
  margin-top: 0.2rem;
  color: rgba(255, 244, 203, 0.86);
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.4;
}

.pfp-expedition-overview-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.7rem;
}

@media (max-width: 700px) {
  .pfp-expedition-page {
    width: min(100% - 10px, 640px);
    padding: 14px 12px 18px;
    border-radius: 12px;
  }

  .pfp-expedition-hero,
  .pfp-expedition-scan-card {
    grid-template-columns: 1fr;
  }

  .pfp-expedition-hero {
    min-height: 112px;
    padding: 24px 18px 18px;
    border-width: 5px;
    border-radius: 16px;
    overflow: hidden;
  }

  .pfp-expedition-hero-content::before {
    width: 60px;
    height: 46px;
    top: -29px;
    font-size: 1.6rem;
  }

  .pfp-expedition-kicker {
    font-size: clamp(0.82rem, 4vw, 1rem);
  }

  .pfp-expedition-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1;
    text-shadow: 0 3px 0 #210b02, 0 0 12px rgba(255, 211, 91, 0.3);
  }

  .pfp-expedition-hero p {
    font-size: 0.9rem;
  }

  .pfp-expedition-scanner-orb {
    width: 72px;
    height: 72px;
    margin: 0.4rem auto 0;
  }

  .pfp-expedition-scanner-orb span {
    font-size: 2.1rem;
  }

  .pfp-expedition-card,
  .pfp-expedition-result-card {
    margin-top: 18px;
    padding: 14px;
    border-width: 5px;
  }

  .pfp-expedition-live-toast {
    grid-template-columns: 1fr;
    bottom: 92px;
    gap: 0.7rem;
  }

  .pfp-expedition-live-toast__actions {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
  }

  .pfp-expedition-scan-button {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
  }

  .pfp-expedition-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .pfp-expedition-map {
    height: 270px;
    border-width: 4px;
  }

  .pfp-expedition-map-legend strong {
    width: 100%;
    margin-left: 0;
  }

  .pfp-expedition-section-head,
  .pfp-expedition-result-card,
  .pfp-expedition-log-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .pfp-expedition-log-reward {
    justify-content: flex-start;
  }

  .pfp-expedition-ship-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .pfp-expedition-ship-action {
    grid-column: 1 / -1;
  }

  .pfp-expedition-ship-visual img {
    max-width: 84px;
    max-height: 76px;
  }
}

@media (max-width: 440px) {
  .pfp-expedition-ship-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pfp-expedition-ship-bonuses {
    justify-content: center;
  }
}

.pfp-moment-toast {
  position: fixed;
  left: 50%;
  bottom: 116px;
  transform: translateX(-50%);
  z-index: 10080;
  width: min(92vw, 380px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 249, 230, 0.98);
  border: 1px solid rgba(122, 75, 23, 0.16);
  box-shadow: 0 16px 36px rgba(42, 28, 8, 0.22);
  animation: pfp-moment-toast-in 0.22s ease-out, pfp-moment-toast-out 0.32s ease-in 2.75s forwards;
}

.pfp-moment-toast strong {
  display: block;
  color: #0c3563;
  font-size: 0.98rem;
}

.pfp-moment-toast span {
  display: block;
  color: #6f5632;
  font-size: 0.86rem;
  line-height: 1.35;
}

.pfp-moment-overlay {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(7, 19, 32, 0.54);
  backdrop-filter: blur(4px);
  animation: pfp-moment-overlay-in 0.18s ease-out;
}

.pfp-moment-overlay.is-fullscreen {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 210, 88, 0.32), transparent 34%),
    radial-gradient(circle at 50% 65%, rgba(0, 95, 125, 0.22), transparent 38%),
    rgba(4, 13, 26, 0.82);
}

.pfp-moment-card {
  position: relative;
  width: min(92vw, 430px);
  overflow: hidden;
  border-radius: 28px;
  padding: 22px 18px 18px;
  text-align: center;
  background: linear-gradient(180deg, #fff7d8 0%, #fffef7 100%);
  border: 2px solid rgba(204, 139, 34, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  animation: pfp-moment-card-in 0.28s cubic-bezier(.2,.95,.22,1.12);
}

.pfp-moment-overlay.is-fullscreen .pfp-moment-card {
  width: min(94vw, 520px);
  padding: 30px 20px 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 224, 112, 0.42), transparent 34%),
    linear-gradient(180deg, #fff2bd 0%, #fffdf4 100%);
}

.pfp-moment-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  color: #7a4b17;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(122,75,23,0.1);
}

.pfp-moment-card h2 {
  margin: 14px 0 8px;
  color: #0c3563;
  font-size: clamp(1.45rem, 7vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.pfp-moment-card p {
  margin: 0 auto;
  max-width: 420px;
  color: #4d5f70;
  font-size: 1rem;
  line-height: 1.5;
}

.pfp-moment-visual {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 12px auto 0;
  display: grid;
  place-items: center;
}

.pfp-moment-visual.is-large {
  width: 184px;
  height: 154px;
  margin-top: 18px;
}

.pfp-moment-visual img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.24));
}

.pfp-moment-visual > span {
  position: relative;
  z-index: 2;
  font-size: 3.3rem;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.18));
}

.pfp-moment-visual.is-large > span {
  font-size: 5.8rem;
}

.pfp-moment-visual::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 199, 69, 0.52), rgba(255, 199, 69, 0));
  animation: pfp-moment-glow 1.5s ease-in-out infinite;
}

.pfp-moment-visual.animation-map_assemble img {
  animation: pfp-moment-map-final 0.95s cubic-bezier(.2,.95,.22,1.12) both;
}

.pfp-moment-map-fragments {
  position: absolute;
  inset: -14px;
  z-index: 1;
  pointer-events: none;
}

.pfp-moment-map-fragments i {
  position: absolute;
  width: 34px;
  height: 28px;
  border-radius: 8px 10px 9px 7px;
  background: linear-gradient(135deg, #c99445, #fff0ba);
  opacity: 0;
  box-shadow: 0 5px 14px rgba(0,0,0,0.18);
  animation: pfp-moment-fragment-fly 0.95s ease-in-out forwards;
}

.pfp-moment-map-fragments i:nth-child(1) { left: -4px; top: 0; --tx: 88px; --ty: 62px; animation-delay: 0.02s; }
.pfp-moment-map-fragments i:nth-child(2) { right: 8px; top: -2px; --tx: -84px; --ty: 66px; animation-delay: 0.08s; }
.pfp-moment-map-fragments i:nth-child(3) { left: 0; bottom: 12px; --tx: 90px; --ty: -58px; animation-delay: 0.14s; }
.pfp-moment-map-fragments i:nth-child(4) { right: -2px; bottom: 10px; --tx: -88px; --ty: -56px; animation-delay: 0.2s; }
.pfp-moment-map-fragments i:nth-child(5) { left: 50%; top: -18px; --tx: -16px; --ty: 84px; animation-delay: 0.26s; }
.pfp-moment-map-fragments i:nth-child(6) { left: 50%; bottom: -18px; --tx: -18px; --ty: -76px; animation-delay: 0.32s; }

.pfp-moment-rewards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.pfp-moment-reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  color: #7a4b17;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(122,75,23,0.1), 0 3px 10px rgba(0,0,0,0.06);
}

.pfp-moment-reward-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.pfp-moment-close {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 16px;
  padding: 13px 16px;
  color: #fff;
  background: linear-gradient(135deg, #0c3563, #006d77);
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(12,53,99,0.22);
}

.pfp-moment-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pfp-moment-particles i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffd24d;
  opacity: 0;
  animation: pfp-moment-particle 1.25s ease-out infinite;
}

.pfp-moment-particles i:nth-child(3n) { background: #fff6bf; }
.pfp-moment-particles i:nth-child(4n) { background: #79e0ff; }
.pfp-moment-particles i:nth-child(1) { --x: -160px; --y: -120px; animation-delay: 0.02s; }
.pfp-moment-particles i:nth-child(2) { --x: -90px; --y: -190px; animation-delay: 0.08s; }
.pfp-moment-particles i:nth-child(3) { --x: 110px; --y: -170px; animation-delay: 0.14s; }
.pfp-moment-particles i:nth-child(4) { --x: 180px; --y: -80px; animation-delay: 0.2s; }
.pfp-moment-particles i:nth-child(5) { --x: 170px; --y: 70px; animation-delay: 0.26s; }
.pfp-moment-particles i:nth-child(6) { --x: 90px; --y: 170px; animation-delay: 0.32s; }
.pfp-moment-particles i:nth-child(7) { --x: -120px; --y: 160px; animation-delay: 0.38s; }
.pfp-moment-particles i:nth-child(8) { --x: -190px; --y: 60px; animation-delay: 0.44s; }
.pfp-moment-particles i:nth-child(n+9) { --x: 60px; --y: -140px; animation-delay: 0.5s; }

.rarity-rare .pfp-moment-card,
.rarity-rare.pfp-moment-toast {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 22px 60px rgba(37, 99, 235, 0.22);
}

.rarity-epic .pfp-moment-card,
.rarity-epic.pfp-moment-toast {
  border-color: rgba(124, 58, 237, 0.46);
  box-shadow: 0 22px 70px rgba(124, 58, 237, 0.28);
}

.rarity-legendary .pfp-moment-card,
.rarity-legendary.pfp-moment-toast {
  border-color: rgba(217, 119, 6, 0.56);
  box-shadow: 0 28px 90px rgba(217, 119, 6, 0.34);
}

@keyframes pfp-moment-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pfp-moment-card-in { from { opacity: 0; transform: translateY(18px) scale(0.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pfp-moment-toast-in { from { opacity: 0; transform: translate(-50%, 12px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes pfp-moment-toast-out { to { opacity: 0; transform: translate(-50%, 12px) scale(0.98); } }
@keyframes pfp-moment-glow { 0%,100% { transform: scale(0.94); opacity: 0.76; } 50% { transform: scale(1.16); opacity: 1; } }
@keyframes pfp-moment-map-final { 0% { opacity: 0; transform: scale(0.55) rotate(-8deg); } 58% { opacity: 0.2; transform: scale(0.82) rotate(4deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes pfp-moment-fragment-fly { 0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.7); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(32deg) scale(0.35); } }
@keyframes pfp-moment-particle { 0% { opacity: 0; transform: translate(0,0) scale(0.7); } 22% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.15); } }

@media (prefers-reduced-motion: reduce) {
  .pfp-moment-toast,
  .pfp-moment-overlay,
  .pfp-moment-card,
  .pfp-moment-visual::before,
  .pfp-moment-visual.animation-map_assemble img,
  .pfp-moment-map-fragments i,
  .pfp-moment-particles i {
    animation: none !important;
  }
}

.pfp-kork {
  --kork-size: 112px;
  display: inline-grid;
  place-items: center;
  width: var(--kork-size);
  height: calc(var(--kork-size) * 1.08);
  line-height: 0;
  transform-origin: 50% 92%;
}

.pfp-kork.size-tiny { --kork-size: 54px; }
.pfp-kork.size-small { --kork-size: 76px; }
.pfp-kork.size-medium { --kork-size: 112px; }
.pfp-kork.size-large { --kork-size: 162px; }

.pfp-kork__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.22));
}

.pfp-kork.motion-bob {
  animation: pfp-kork-bob 2.4s ease-in-out infinite;
}

.pfp-kork.motion-pop {
  animation: pfp-kork-pop 0.42s cubic-bezier(.18,.9,.28,1.2) both;
}

.pfp-kork.motion-slide {
  animation: pfp-kork-slide 0.34s ease-out both;
}

.pfp-kork.motion-wave {
  animation: pfp-kork-raster-wave 0.95s ease-in-out 2;
}

.pfp-kork.motion-celebrate {
  animation: pfp-kork-celebrate 0.82s ease-in-out both;
}

.pfp-kork-speech {
  position: relative;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #17344a;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.28;
  box-shadow: inset 0 0 0 1px rgba(122, 75, 23, 0.1);
}

.pfp-kork-speech::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 18px;
  width: 14px;
  height: 14px;
  background: inherit;
  transform: rotate(45deg);
  box-shadow: -1px 1px 0 rgba(122, 75, 23, 0.08);
}

.pfp-xp-toast-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  pointer-events: none;
  box-sizing: border-box;
}

.pfp-xp-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: min(92vw, 330px);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 8px;
  align-items: center;
  padding: 18px 18px 16px;
  border-radius: 22px;
  pointer-events: none;
  color: #17344a;
  text-align: center;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 215, 95, 0.38), transparent 32%),
    linear-gradient(135deg, #fff8da 0%, #f4e0b2 100%);
  border: 2px solid rgba(122, 75, 23, 0.22);
  box-shadow: 0 24px 70px rgba(42, 28, 8, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  animation: pfp-xp-toast-popup-in 0.24s ease-out, pfp-xp-toast-popup-out 0.32s ease-in 1.86s forwards;
}

.pfp-xp-toast.is-negative {
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.5), transparent 34%),
    linear-gradient(135deg, #fff1f0 0%, #ffe0d8 100%);
  border-color: rgba(198, 40, 40, 0.22);
}

.pfp-xp-toast__mascot {
  width: 142px;
  height: 144px;
  display: grid;
  place-items: center;
  overflow: visible;
  margin-top: -4px;
}

.pfp-xp-toast__content {
  min-width: 0;
}

.pfp-xp-toast__line {
  width: 100%;
  margin-bottom: 0;
  text-align: center;
}

.pfp-xp-toast .pfp-kork-speech::before {
  content: none;
}

.pfp-xp-toast__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  width: 100%;
}

.pfp-xp-toast__icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(122, 75, 23, 0.1);
  font-size: 1.15rem;
}

.pfp-xp-toast__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.pfp-xp-toast__label {
  display: block;
  color: #0c3563;
  font-size: 0.92rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pfp-xp-toast__delta {
  display: inline-flex;
  margin-top: 2px;
  color: #ff9100;
  font-size: 1.42rem;
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
}

.pfp-xp-toast.is-negative .pfp-xp-toast__delta {
  color: #c62828;
}

.pfp-xp-toast__total {
  margin-top: 5px;
  color: #6f5632;
  font-size: 0.82rem;
  font-weight: 750;
}

.pfp-moment-kork {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 12px auto 0;
  max-width: 350px;
}

.pfp-moment-kork .pfp-kork-speech {
  text-align: left;
  font-size: 0.84rem;
}

.pfp-moment-toast__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.pfp-moment-toast .pfp-moment-kork {
  grid-template-columns: 46px minmax(0, 1fr);
  margin: 8px 0 0;
  max-width: none;
}

.pfp-moment-toast .pfp-moment-kork .pfp-kork-speech {
  background: rgba(255, 255, 255, 0.82);
}

@keyframes pfp-kork-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes pfp-kork-pop {
  0% { opacity: 0; transform: translateY(12px) scale(0.72); }
  72% { opacity: 1; transform: translateY(-3px) scale(1.06); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pfp-kork-slide {
  from { opacity: 0; transform: translateX(-18px) rotate(-5deg); }
  to { opacity: 1; transform: translateX(0) rotate(0); }
}

@keyframes pfp-kork-raster-wave {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  25% { transform: translateY(-4px) rotate(-5deg) scale(1.02); }
  55% { transform: translateY(0) rotate(4deg) scale(1.01); }
  78% { transform: translateY(-2px) rotate(-3deg) scale(1.02); }
}

@keyframes pfp-kork-celebrate {
  0% { transform: translateY(8px) scale(0.96) rotate(-2deg); }
  42% { transform: translateY(-12px) scale(1.04) rotate(3deg); }
  100% { transform: translateY(0) scale(1) rotate(0); }
}

@keyframes pfp-xp-toast-in {
  from { opacity: 0; transform: translateX(18px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes pfp-xp-toast-out {
  to { opacity: 0; transform: translateX(14px) scale(0.98); }
}

@keyframes pfp-xp-toast-popup-in {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.88); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes pfp-xp-toast-popup-out {
  to { opacity: 0; transform: translate(-50%, -54%) scale(0.96); }
}

@keyframes pfp-xp-toast-card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.88); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pfp-xp-toast-card-out {
  to { opacity: 0; transform: translateY(-14px) scale(0.96); }
}

@media (max-width: 480px) {
  .pfp-xp-toast {
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: min(92vw, 320px);
    grid-template-columns: 1fr;
  }

  .pfp-xp-toast__mascot {
    width: 130px;
    height: 132px;
  }

  .pfp-xp-toast .pfp-kork.size-small {
    --kork-size: 130px;
  }

  .pfp-xp-toast__delta {
    font-size: 1.26rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pfp-kork,
  .pfp-kork *,
  .pfp-xp-toast {
    animation: none !important;
  }
}

.pfp-harbor-page {
  min-height: calc(100vh - 110px);
  padding: 18px 14px 96px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 216, 128, 0.22), transparent 26%),
    radial-gradient(circle at 80% 0%, rgba(49, 178, 234, 0.18), transparent 30%),
    linear-gradient(180deg, #f5fbff 0%, #fff8e8 48%, #f7ead0 100%);
  color: #133257;
}

.pfp-fundworkshop-page {
  min-height: calc(100vh - 110px);
  padding: 18px 14px 96px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 216, 128, 0.2), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(68, 182, 147, 0.18), transparent 32%),
    linear-gradient(180deg, #f5fbff 0%, #fff8e8 48%, #f7ead0 100%);
  color: #123356;
}

.pfp-harbor-shell {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.pfp-fundworkshop-shell {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.pfp-harbor-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #0b7eb8, #075b8d);
  color: #fff;
  font-weight: 800;
  padding: 11px 16px;
  box-shadow: 0 10px 24px rgba(7, 91, 141, 0.22);
  cursor: pointer;
  margin-bottom: 14px;
}

.pfp-harbor-hero-stage {
  margin: 0 -18px;
}

.pfp-harbor-hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #a7d9f5;
  border: 3px solid rgba(185, 126, 28, 0.45);
  box-shadow: 0 22px 55px rgba(61, 85, 101, 0.20);
  isolation: isolate;
}

.pfp-harbor-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(39, 25, 0, 0.04));
  z-index: 2;
}

.pfp-harbor-hotspot {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 132px;
  justify-content: center;
  border: 2px solid rgba(126, 76, 9, 0.45);
  border-radius: 999px;
  padding: 9px 14px;
  color: #643500;
  background: linear-gradient(180deg, #fff7d8, #f3d28d);
  box-shadow: 0 10px 24px rgba(52, 30, 3, 0.20), inset 0 0 0 1px rgba(255,255,255,0.64);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.pfp-harbor-hotspot-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.74);
  box-shadow: inset 0 0 0 1px rgba(106, 67, 7, 0.18);
}

.pfp-harbor-hotspot strong {
  white-space: nowrap;
}

.pfp-harbor-hotspot-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  margin-left: 2px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(255,255,255,0.85);
  color: #6d430d;
  box-shadow: inset 0 0 0 1px rgba(126, 76, 9, 0.10);
}

.pfp-harbor-hotspot:hover,
.pfp-harbor-hotspot.is-selected {
  transform: translate(-50%, -50%) scale(1.055);
}

.pfp-harbor-hotspot.is-active {
  background: linear-gradient(180deg, #fff9dd, #ffd77f);
  border-color: rgba(233, 114, 53, 0.62);
  box-shadow: 0 14px 30px rgba(240, 142, 50, 0.26), 0 0 0 4px rgba(255, 209, 120, 0.22);
}

.pfp-harbor-hotspot.is-active .pfp-harbor-hotspot-state {
  background: rgba(255, 120, 92, 0.18);
  color: #b14d14;
}

.pfp-harbor-hotspot.is-active.is-selected {
  box-shadow: 0 14px 32px rgba(240, 142, 50, 0.30), 0 0 0 5px rgba(255, 114, 82, 0.18);
}

.pfp-harbor-hotspot.is-locked {
  filter: saturate(0.84);
  opacity: 0.95;
}

.pfp-harbor-hotspot.is-locked .pfp-harbor-hotspot-state {
  color: #725533;
  background: rgba(111, 80, 28, 0.09);
}

.pfp-harbor-hotspot--sign {
  width: clamp(150px, 18vw, 235px);
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  filter: drop-shadow(0 12px 15px rgba(45, 23, 0, 0.34));
  transform: translate(-25%, -25%);
}

.pfp-harbor-hotspot--sign.is-active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.pfp-harbor-hotspot--sign:hover,
.pfp-harbor-hotspot--sign.is-selected {
  transform: translate(-25%, -25%) scale(1.04);
}

.pfp-harbor-hotspot--sign img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.pfp-harbor-sign-label {
  position: absolute;
  z-index: 2;
  left: 14%;
  top: 26%;
  width: 59%;
  transform: rotate(-1deg);
  color: #5a2f05;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(0.78rem, 1.32vw, 1.12rem);
  font-weight: 950;
  line-height: 0.92;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 232, 163, 0.85);
  pointer-events: none;
}

.pfp-harbor-sign-label b {
  display: block;
}

.pfp-harbor-area-list {
  display: none;
}

.pfp-fundworkshop-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 3px solid rgba(185, 126, 28, 0.45);
  background: #a7d9f5;
  box-shadow: 0 22px 55px rgba(61, 85, 101, 0.20);
}

.pfp-fundworkshop-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pfp-fundworkshop-hero-panel {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: min(440px, calc(100% - 48px));
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 247, 216, 0.92);
  border: 2px solid rgba(126, 76, 9, 0.28);
  box-shadow: 0 16px 34px rgba(42, 24, 3, 0.20);
  backdrop-filter: blur(6px);
}

.pfp-fundworkshop-hero-panel h1 {
  margin: 8px 0 8px;
  color: #0d3a64;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.pfp-fundworkshop-hero-panel p {
  margin: 0;
  color: #5a3709;
  font-weight: 850;
  line-height: 1.45;
}

.pfp-fundworkshop-recipes {
  margin-top: 20px;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(255, 237, 199, 0.96)),
    radial-gradient(circle at 18% 15%, rgba(50, 148, 100, 0.16), transparent 32%);
  border: 2px solid rgba(196, 139, 51, 0.62);
  box-shadow: 0 16px 42px rgba(69, 49, 12, 0.12);
}

.pfp-fundworkshop-recipes-head {
  max-width: 720px;
  margin-bottom: 16px;
}

.pfp-fundworkshop-recipes-head h2 {
  margin: 8px 0 6px;
  color: #0d3a64;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.pfp-fundworkshop-recipes-head p {
  margin: 0;
  color: #65410c;
  font-weight: 800;
}

.pfp-fundworkshop-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.pfp-fundworkshop-notice.is-success {
  color: #0a5f47;
  background: rgba(214, 245, 225, 0.92);
  border: 1px solid rgba(25, 140, 92, 0.32);
}

.pfp-fundworkshop-notice.is-error {
  color: #91251f;
  background: rgba(255, 237, 232, 0.94);
  border: 1px solid rgba(182, 77, 67, 0.3);
}

.pfp-fundworkshop-recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pfp-fundworkshop-recipe-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(124, 84, 24, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.54);
}

.pfp-fundworkshop-recipe-card.is-ready {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(238, 255, 244, 0.74));
  border-color: rgba(24, 143, 91, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.72),
    0 10px 28px rgba(31, 121, 75, 0.11);
}

.pfp-fundworkshop-recipe-card > strong {
  color: #4d2b06;
  font-size: 1.15rem;
}

.pfp-fundworkshop-recipe-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.pfp-fundworkshop-recipe-card dl div {
  display: grid;
  gap: 2px;
}

.pfp-fundworkshop-recipe-card dt {
  color: #7b5c21;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pfp-fundworkshop-recipe-card dd {
  margin: 0;
  color: #0b7160;
  font-weight: 950;
}

.pfp-fundworkshop-recipe-card dd.is-short {
  color: #a25117;
}

.pfp-fundworkshop-recipe-card dd.is-enough {
  color: #087a52;
}

.pfp-fundworkshop-recipe-card p {
  margin: 0;
  color: #67420d;
  font-weight: 750;
  line-height: 1.38;
}

.pfp-fundworkshop-recipe-card button {
  align-self: end;
  border: 0;
  border-radius: 14px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #ceb979, #a88a49);
  color: #fff9dd;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(76, 52, 9, 0.18);
}

.pfp-fundworkshop-recipe-card.is-ready button {
  background: linear-gradient(180deg, #0d8fb2, #08688e);
  color: #fff;
}

.pfp-fundworkshop-recipe-card button:disabled {
  opacity: 0.76;
  cursor: not-allowed;
  box-shadow: none;
}

.pfp-harbor-market {
  position: relative;
  margin-top: 20px;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 254, 247, 0.96), rgba(255, 242, 207, 0.96)),
    radial-gradient(circle at 10% 10%, rgba(245, 178, 50, 0.22), transparent 32%);
  border: 2px solid rgba(215, 171, 73, 0.72);
  box-shadow: 0 16px 42px rgba(69, 49, 12, 0.12);
}

.pfp-harbor-market-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.pfp-harbor-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff2c6;
  color: #9d5900;
  border: 1px solid rgba(198, 143, 40, 0.42);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pfp-harbor-market h1 {
  margin: 0 0 8px;
  color: #0b3762;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.05;
}

.pfp-harbor-market p {
  margin: 0;
  color: #51647d;
  line-height: 1.48;
  max-width: 760px;
}

.pfp-harbor-wallet {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #093a63 0%, #0b607d 58%, #a77519 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(7, 58, 99, 0.20);
}

.pfp-harbor-wallet span,
.pfp-harbor-wallet em {
  opacity: 0.84;
  font-style: normal;
  font-size: 0.82rem;
}

.pfp-harbor-wallet strong {
  font-size: 1.16rem;
}

.pfp-harbor-loading,
.pfp-harbor-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 18px;
  margin: 14px 0;
}

.pfp-harbor-loading {
  background: rgba(255, 246, 219, 0.8);
  color: #77530a;
}

.pfp-harbor-loading span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(179, 124, 25, 0.22);
  border-top-color: #b87913;
  animation: pfpHarborSpin 0.8s linear infinite;
}

.pfp-harbor-error {
  flex-wrap: wrap;
  background: #fff1ee;
  color: #8a2c23;
  border: 1px solid #efb0a8;
}

.pfp-harbor-error span {
  flex: 1 1 100%;
}

.pfp-harbor-error button {
  border: 0;
  border-radius: 11px;
  background: #8a2c23;
  color: #fff;
  padding: 9px 13px;
  font-weight: 800;
  cursor: pointer;
}

.pfp-harbor-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pfp-harbor-product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #fffdf5 0%, #fff4dc 100%),
    radial-gradient(circle at 12% 15%, rgba(255, 214, 108, 0.22), transparent 28%);
  border: 2px solid rgba(219, 183, 59, 0.82);
  box-shadow: 0 12px 30px rgba(69, 49, 12, 0.10);
}

.pfp-harbor-product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 26%, rgba(65, 37, 3, 0.03));
}

.pfp-harbor-product-coin {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #fbe9ae, #d59b1a);
  color: #714500;
  font-size: 0.96rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(179, 122, 24, 0.24);
}

.pfp-harbor-product-ribbon {
  position: absolute;
  top: 14px;
  right: -34px;
  width: 140px;
  z-index: 2;
  text-align: center;
  transform: rotate(35deg);
  background: linear-gradient(180deg, #0b7eb8, #064f82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 0;
  box-shadow: 0 7px 16px rgba(6, 79, 130, 0.20);
}

.pfp-harbor-product-image {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 28px 18px 10px;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 224, 132, 0.62), transparent 34%),
    linear-gradient(180deg, rgba(245, 210, 142, 0.24), transparent);
}

.pfp-harbor-product-image img {
  width: 102px;
  height: 102px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(53, 34, 5, 0.18));
}

.pfp-harbor-product-image span {
  font-size: 4rem;
  filter: drop-shadow(0 12px 16px rgba(53, 34, 5, 0.18));
}

.pfp-harbor-product-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  padding: 0 20px 16px;
  text-align: center;
}

.pfp-harbor-product-body h2 {
  margin: 6px 0 8px;
  color: #c99105;
  font-size: 1.24rem;
}

.pfp-harbor-product-body p {
  color: #3f4d61;
  font-size: 0.96rem;
  line-height: 1.42;
}

.pfp-harbor-product-meta {
  margin-top: 13px;
}

.pfp-harbor-product-meta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: #edf8f2;
  color: #127047;
  font-size: 0.8rem;
  font-weight: 800;
}

.pfp-harbor-product-buybar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 18px 18px;
  border-top: 1px dashed rgba(165, 122, 25, 0.34);
  background: rgba(255, 246, 219, 0.72);
}

.pfp-harbor-price small,
.pfp-harbor-price strong {
  display: block;
}

.pfp-harbor-price small {
  color: #94701c;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pfp-harbor-price strong {
  color: #0b3762;
}

.pfp-harbor-product-buybar button {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f3bc45, #c47a08);
  color: #fff;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(196, 122, 8, 0.22);
}

.pfp-harbor-product-buybar button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.pfp-harbor-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 14, 7, 0.36);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.pfp-harbor-modal {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  border-radius: 26px;
  padding: 28px 24px 22px;
  text-align: center;
  cursor: default;
  background: linear-gradient(180deg, #fffdf3 0%, #fff4cf 100%);
  border: 2px solid #ecd07d;
  box-shadow: 0 22px 55px rgba(122, 83, 6, 0.22);
  color: #704508;
}

.pfp-harbor-modal.is-success {
  background: linear-gradient(180deg, #fffef6 0%, #fff1c6 100%);
  border-color: #ebb14c;
}

.pfp-harbor-modal.is-error {
  background: linear-gradient(180deg, #fff9f8 0%, #fff1ee 100%);
  border-color: #efb0a8;
  color: #8a2c23;
}

.pfp-harbor-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(122, 83, 6, 0.10);
  color: currentColor;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.pfp-harbor-modal-icon {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #fffef8, #ffe79a);
  box-shadow: 0 10px 24px rgba(204, 157, 39, 0.26);
}

.pfp-harbor-modal-icon img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.14));
}

.pfp-harbor-modal-icon span {
  font-size: 3rem;
}

.pfp-harbor-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(214, 155, 32, 0.14);
  color: #9d5900;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pfp-harbor-modal h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.pfp-harbor-modal p {
  margin: 8px 0 0;
  font-weight: 700;
  line-height: 1.42;
}

.pfp-harbor-modal-summary {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(203, 163, 67, 0.30);
  background: rgba(255, 255, 255, 0.60);
}

.pfp-harbor-modal-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid rgba(203, 163, 67, 0.16);
  text-align: left;
}

.pfp-harbor-modal-summary-row:first-child {
  border-top: 0;
}

.pfp-harbor-modal-summary-row span {
  font-size: 0.88rem;
  font-weight: 800;
  color: #8a6521;
}

.pfp-harbor-modal-summary-row strong {
  font-size: 0.92rem;
  color: #0b3762;
  text-align: right;
}

.pfp-harbor-modal small {
  display: block;
  margin-top: 16px;
  opacity: 0.78;
  line-height: 1.38;
}

@keyframes pfpHarborSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .pfp-harbor-market-head,
  .pfp-harbor-product-grid {
    grid-template-columns: 1fr;
  }

  .pfp-fundworkshop-hero-panel {
    position: static;
    width: auto;
    border-radius: 0;
    border-width: 2px 0 0;
    box-shadow: none;
  }

  .pfp-fundworkshop-recipe-grid {
    grid-template-columns: 1fr;
  }

  .pfp-harbor-product-grid {
    align-items: start;
    grid-auto-rows: auto;
  }

  .pfp-harbor-product-card {
    align-self: start;
    height: auto;
    min-height: 0;
  }

  .pfp-harbor-product-body {
    flex: 0 0 auto;
  }

  .pfp-harbor-hero-stage {
    margin: 0;
  }

  .pfp-harbor-hotspot {
    display: none;
  }

  .pfp-harbor-hotspot--sign {
    display: block;
    width: clamp(132px, 42vw, 176px);
  }

  .pfp-harbor-area-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .pfp-harbor-area-list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid rgba(154, 103, 29, 0.24);
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdf5, #fff1c9);
    color: #68460c;
    padding: 12px 12px;
    font-weight: 900;
    cursor: pointer;
  }

  .pfp-harbor-area-list button.is-active,
  .pfp-harbor-area-list button.is-selected {
    background: linear-gradient(180deg, #fff6d9, #ffd98d);
    border-color: rgba(233, 114, 53, 0.34);
    box-shadow: 0 10px 22px rgba(240, 142, 50, 0.12);
  }

  .pfp-harbor-area-list button em {
    font-style: normal;
    font-size: 0.78rem;
    opacity: 0.78;
  }
}

@media (max-width: 560px) {
  .pfp-harbor-page {
    padding: 12px 10px 92px;
  }

  .pfp-harbor-hero,
  .pfp-harbor-market {
    border-radius: 20px;
  }

  .pfp-harbor-market {
    padding: 16px;
  }

  .pfp-harbor-area-list {
    grid-template-columns: 1fr;
  }

  .pfp-harbor-product-buybar button {
    width: 100%;
  }

  .pfp-harbor-product-buybar {
    grid-template-columns: 1fr;
  }

  .pfp-harbor-modal-summary-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pfp-harbor-modal-summary-row strong {
    text-align: left;
  }
}

/* Freibeuterhafen V1.2: Video-Hero, Sound und Microanimations */
.pfp-harbor-hero-stage {
  position: relative;
}

.pfp-harbor-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.pfp-harbor-hero-poster {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.pfp-harbor-sound-toggle {
  position: absolute;
  z-index: 12;
  right: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 236, 171, 0.72);
  border-radius: 999px;
  padding: 9px 14px;
  background: linear-gradient(180deg, rgba(8, 68, 105, 0.92), rgba(5, 45, 76, 0.92));
  color: #fff7d8;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(5, 45, 76, 0.28);
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.pfp-harbor-sound-toggle.is-active {
  background: linear-gradient(180deg, rgba(22, 120, 92, 0.94), rgba(10, 79, 66, 0.94));
  border-color: rgba(185, 255, 211, 0.72);
  color: #edfff4;
}

.pfp-harbor-hotspot.is-active {
  animation: pfpHarborGoldPulse 2.2s ease-in-out infinite;
}

.pfp-harbor-hotspot.is-shaking,
.pfp-harbor-area-list button.is-shaking {
  animation: pfpHarborLockShake 0.52s ease-in-out;
}

.pfp-harbor-hotspot.is-locked:hover {
  box-shadow: 0 12px 24px rgba(90, 65, 32, 0.22), 0 0 0 4px rgba(80, 80, 80, 0.10);
}

.pfp-harbor-product-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pfp-harbor-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(69, 49, 12, 0.18);
  border-color: rgba(231, 158, 35, 0.95);
}

.pfp-harbor-product-card.is-flashing {
  animation: pfpHarborCardFlash 1.05s ease-out;
}

.pfp-harbor-product-buybar button {
  position: relative;
  overflow: hidden;
}

.pfp-harbor-product-buybar button::after {
  content: '';
  position: absolute;
  inset: -40% -80%;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,0.68) 50%, transparent 65%);
  transform: translateX(-80%) rotate(8deg);
  opacity: 0;
  pointer-events: none;
}

.pfp-harbor-product-buybar button.is-gold-flash::after {
  opacity: 1;
  animation: pfpHarborButtonFlash 0.92s ease-out;
}

.pfp-harbor-wallet.is-pulsing {
  animation: pfpHarborWalletPulse 1.05s ease-out;
}

.pfp-harbor-modal {
  overflow: hidden;
}

.pfp-harbor-coin-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pfp-harbor-coin-particles span {
  position: absolute;
  left: 50%;
  top: 78px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  color: transparent;
  background: radial-gradient(circle at 35% 30%, #fff8b7, #f5bd2e 50%, #b97908 100%);
  box-shadow: 0 0 0 1px rgba(126, 76, 9, 0.16), 0 7px 12px rgba(125, 76, 7, 0.18);
  animation: pfpHarborCoinBurst 1.35s ease-out forwards;
}

.pfp-harbor-coin-particles span:nth-child(1) { --pfp-coin-x: -118px; --pfp-coin-y: -34px; animation-delay: 0.02s; }
.pfp-harbor-coin-particles span:nth-child(2) { --pfp-coin-x: -74px; --pfp-coin-y: -70px; animation-delay: 0.07s; }
.pfp-harbor-coin-particles span:nth-child(3) { --pfp-coin-x: -30px; --pfp-coin-y: -92px; animation-delay: 0.11s; }
.pfp-harbor-coin-particles span:nth-child(4) { --pfp-coin-x: 36px; --pfp-coin-y: -88px; animation-delay: 0.05s; }
.pfp-harbor-coin-particles span:nth-child(5) { --pfp-coin-x: 82px; --pfp-coin-y: -61px; animation-delay: 0.12s; }
.pfp-harbor-coin-particles span:nth-child(6) { --pfp-coin-x: 122px; --pfp-coin-y: -22px; animation-delay: 0.09s; }

@keyframes pfpHarborGoldPulse {
  0%, 100% {
    box-shadow: 0 14px 30px rgba(240, 142, 50, 0.26), 0 0 0 4px rgba(255, 209, 120, 0.22);
  }
  50% {
    box-shadow: 0 18px 38px rgba(255, 179, 38, 0.36), 0 0 0 8px rgba(255, 215, 100, 0.26);
  }
}

@keyframes pfpHarborLockShake {
  0%, 100% { transform: translate(-50%, -50%); }
  18% { transform: translate(calc(-50% - 4px), -50%) rotate(-1deg); }
  36% { transform: translate(calc(-50% + 5px), -50%) rotate(1deg); }
  54% { transform: translate(calc(-50% - 3px), -50%) rotate(-0.8deg); }
  72% { transform: translate(calc(-50% + 2px), -50%) rotate(0.6deg); }
}

@keyframes pfpHarborWalletPulse {
  0% { transform: scale(1); }
  32% { transform: scale(1.045); box-shadow: 0 0 0 6px rgba(255, 211, 91, 0.22), 0 14px 32px rgba(7, 58, 99, 0.24); }
  100% { transform: scale(1); }
}

@keyframes pfpHarborButtonFlash {
  0% { transform: translateX(-80%) rotate(8deg); }
  100% { transform: translateX(86%) rotate(8deg); }
}

@keyframes pfpHarborCardFlash {
  0% { box-shadow: 0 12px 30px rgba(69, 49, 12, 0.10); }
  42% { box-shadow: 0 0 0 5px rgba(255, 206, 82, 0.24), 0 22px 50px rgba(224, 156, 31, 0.24); }
  100% { box-shadow: 0 12px 30px rgba(69, 49, 12, 0.10); }
}

@keyframes pfpHarborCoinBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.35) rotate(0deg);
  }
  18% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--pfp-coin-x)), var(--pfp-coin-y)) scale(1) rotate(220deg);
  }
}

@media (max-width: 720px) {
  .pfp-harbor-sound-toggle {
    position: relative;
    top: auto;
    right: auto;
    margin: 0 0 10px;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pfp-harbor-hotspot.is-active,
  .pfp-harbor-hotspot.is-shaking,
  .pfp-harbor-area-list button.is-shaking,
  .pfp-harbor-product-card,
  .pfp-harbor-product-card:hover,
  .pfp-harbor-product-card.is-flashing,
  .pfp-harbor-product-buybar button.is-gold-flash::after,
  .pfp-harbor-wallet.is-pulsing,
  .pfp-harbor-coin-particles span {
    animation: none !important;
    transform: none !important;
  }
}

/* Freibeuterhafen V1.3: aktive Aufträge */
.pfp-harbor-orders {
  position: relative;
  margin-top: 20px;
  padding: 24px 24px 30px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 253, 245, 0.96), rgba(237, 250, 255, 0.94)),
    radial-gradient(circle at 10% 0%, rgba(49, 178, 234, 0.16), transparent 34%);
  border: 2px solid rgba(73, 161, 202, 0.42);
  box-shadow: 0 16px 42px rgba(28, 77, 112, 0.12);
  overflow: visible;
}

.pfp-harbor-orders-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.pfp-harbor-orders h2 {
  margin: 0 0 8px;
  color: #0b3762;
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  line-height: 1.08;
}

.pfp-harbor-orders p {
  margin: 0;
  color: #51647d;
  line-height: 1.48;
}

.pfp-harbor-active-order-mini {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #113c64 0%, #0d756e 62%, #b47b16 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(8, 77, 109, 0.20);
}

.pfp-harbor-active-order-mini.is-empty {
  background: linear-gradient(135deg, #eef9ff 0%, #fff7d8 100%);
  color: #0b3762;
  border: 1px solid rgba(73, 161, 202, 0.24);
}

.pfp-harbor-active-order-mini span,
.pfp-harbor-active-order-mini em {
  opacity: 0.88;
  font-style: normal;
  font-size: 0.84rem;
}

.pfp-harbor-active-order-mini strong {
  font-size: 1.12rem;
}

.pfp-harbor-active-order-mini button {
  align-self: flex-start;
  border: 0;
  border-radius: 13px;
  padding: 10px 13px;
  background: linear-gradient(180deg, #f8c95c, #c47a08);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(196, 122, 8, 0.24);
}

.pfp-harbor-order-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  grid-auto-rows: minmax(0, auto);
}

.pfp-harbor-order-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf6 0%, #eef9ff 100%);
  border: 2px solid rgba(73, 161, 202, 0.24);
  box-shadow: 0 12px 28px rgba(28, 77, 112, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pfp-harbor-order-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(28, 77, 112, 0.14);
}

.pfp-harbor-order-card.is-active {
  border-color: rgba(242, 174, 52, 0.86);
  background: linear-gradient(180deg, #fff8dd 0%, #eef9ff 100%);
  box-shadow: 0 0 0 5px rgba(242, 174, 52, 0.12), 0 18px 38px rgba(28, 77, 112, 0.14);
}

.pfp-harbor-order-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pfp-harbor-order-card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff4c4, #ffd370);
  box-shadow: inset 0 0 0 1px rgba(153, 98, 13, 0.16), 0 9px 18px rgba(179, 122, 24, 0.16);
  font-size: 1.35rem;
}

.pfp-harbor-order-card__top strong,
.pfp-harbor-order-card__top em {
  display: block;
}

.pfp-harbor-order-card__top strong {
  color: #0b3762;
  font-size: 1.08rem;
}

.pfp-harbor-order-card__top em {
  margin-top: 3px;
  font-style: normal;
  color: #9d5900;
  font-weight: 900;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pfp-harbor-order-card p {
  flex: 1 1 auto;
  color: #3f4d61;
  font-size: 0.94rem;
  line-height: 1.44;
}

.pfp-harbor-order-card__facts {
  display: grid;
  gap: 8px;
}

.pfp-harbor-order-card__facts span {
  display: block;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.74);
  color: #52637a;
  font-size: 0.86rem;
}

.pfp-harbor-order-card__facts strong {
  color: #0b3762;
}

.pfp-harbor-order-card__bar,
.pfp-active-harbor-order__bar {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(11, 55, 98, 0.12);
  box-shadow: inset 0 0 0 1px rgba(11, 55, 98, 0.05);
}

.pfp-harbor-order-card__bar span,
.pfp-active-harbor-order__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e88e5, #1fb985, #f2b137);
  transition: width 0.36s ease;
}

.pfp-harbor-order-card__progress {
  color: #0b3762;
  font-weight: 900;
  font-size: 0.9rem;
}

.pfp-harbor-order-card__actions {
  margin-top: auto;
}

.pfp-harbor-order-card__actions button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 13px;
  background: linear-gradient(180deg, #0b7eb8, #075b8d);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(7, 91, 141, 0.18);
}

.pfp-harbor-order-card__actions button.is-primary,
.pfp-active-harbor-order__actions button.is-primary {
  background: linear-gradient(180deg, #f3bc45, #c47a08);
  box-shadow: 0 10px 22px rgba(196, 122, 8, 0.22);
}

.pfp-harbor-order-card__actions button:disabled,
.pfp-active-harbor-order__actions button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.pfp-active-harbor-order {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #093a63 0%, #0b607d 58%, #a77519 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(7, 58, 99, 0.20);
}

.pfp-active-harbor-order.is-loading {
  text-align: center;
  background: linear-gradient(180deg, #fff7dd, #eaf8ff);
  color: #0b3762;
  border: 1px solid rgba(73, 161, 202, 0.26);
}

.pfp-active-harbor-order.is-complete {
  background: linear-gradient(135deg, #0b684a 0%, #0b607d 58%, #b77e18 100%);
}

.pfp-active-harbor-order__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pfp-active-harbor-order__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
  font-size: 1.45rem;
}

.pfp-active-harbor-order__kicker {
  display: block;
  opacity: 0.82;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pfp-active-harbor-order h2 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 1.26rem;
}

.pfp-active-harbor-order p {
  margin: 12px 0;
  line-height: 1.42;
  opacity: 0.94;
}

.pfp-active-harbor-order__meta,
.pfp-active-harbor-order__progress,
.pfp-active-harbor-order__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pfp-active-harbor-order__meta span,
.pfp-active-harbor-order__progress span {
  font-size: 0.86rem;
  opacity: 0.88;
}

.pfp-active-harbor-order__progress {
  margin-top: 8px;
}

.pfp-active-harbor-order__bar {
  margin-top: 12px;
  background: rgba(255,255,255,0.22);
}

.pfp-active-harbor-order__actions {
  margin-top: 14px;
  justify-content: flex-end;
}

.pfp-active-harbor-order__actions button {
  border: 0;
  border-radius: 13px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.pfp-active-harbor-order__actions button.is-secondary {
  background: rgba(255,255,255,0.14);
}

.pfp-active-harbor-order__error {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 240, 220, 0.18);
  color: #fff7d8;
  font-weight: 800;
}

@media (max-width: 900px) {
  .pfp-harbor-orders-head,
  .pfp-harbor-order-grid {
    grid-template-columns: 1fr;
  }

  .pfp-harbor-orders-head,
  .pfp-harbor-order-grid {
    align-items: start;
    grid-auto-rows: auto;
  }

  .pfp-harbor-order-card {
    align-self: start;
    height: auto;
    min-height: 0;
  }

  .pfp-harbor-order-card p {
    flex: 0 0 auto;
  }

  .pfp-harbor-order-card__actions {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .pfp-harbor-orders {
    border-radius: 20px;
    padding: 16px;
  }

  .pfp-active-harbor-order__actions {
    justify-content: stretch;
  }

  .pfp-active-harbor-order__actions button {
    flex: 1 1 100%;
  }
}


/* Overview-Auftragsfokus V1.9.1 */
.pfp-overview-page {
  padding: 1rem;
  padding-bottom: 5.25rem;
}

.pfp-overview-quick-mark-button {
  display: block;
  max-width: 540px;
  margin: 0.75rem auto 1rem;
  text-align: center;
}

.pfp-harbor-order-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  max-width: 540px;
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff7dd 0%, #eefaff 100%);
  border: 1px solid rgba(15, 53, 88, 0.12);
  color: #0f3558;
  box-shadow: 0 12px 28px rgba(15, 53, 88, 0.12);
}

.pfp-harbor-order-cta__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffcc4d, #f59e0b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38), 0 8px 18px rgba(181, 119, 18, 0.2);
  font-size: 1.55rem;
}

.pfp-harbor-order-cta__content {
  min-width: 0;
}

.pfp-harbor-order-cta__kicker {
  display: block;
  margin-bottom: 0.1rem;
  color: #9a6515;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pfp-harbor-order-cta h2 {
  margin: 0;
  color: #0f3558;
  font-size: 1.1rem;
  line-height: 1.2;
}

.pfp-harbor-order-cta p {
  margin: 0.35rem 0 0;
  color: #31506c;
  font-size: 0.9rem;
  line-height: 1.42;
}

.pfp-harbor-order-cta__button {
  border: 0;
  border-radius: 14px;
  padding: 0.78rem 1rem;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(180, 83, 9, 0.22);
  white-space: nowrap;
}

.pfp-harbor-order-cta__button:hover,
.pfp-harbor-order-cta__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(180, 83, 9, 0.28);
}

.pfp-active-harbor-order {
  max-width: 540px;
  margin: 1rem auto;
}

@media (max-width: 620px) {
  .pfp-overview-page {
    padding: 0.75rem;
    padding-bottom: 5.25rem;
  }

  .pfp-harbor-order-cta {
    grid-template-columns: auto 1fr;
  }

  .pfp-harbor-order-cta__button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Freibeuterhafen V1.10: Taverne */
.pfp-tavern-page {
  min-height: calc(100vh - 110px);
  padding: 18px 14px 96px;
  background:
    linear-gradient(180deg, #1b3145 0%, #412915 46%, #f7ead0 100%);
  color: #fff8e5;
}

@supports (padding: max(0px)) {
  .pfp-tavern-page {
    padding-bottom: max(96px, calc(96px + env(safe-area-inset-bottom)));
  }
}

.pfp-tavern-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.pfp-tavern-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f0b744, #b96c09);
  color: #fff;
  font-weight: 900;
  padding: 11px 16px;
  box-shadow: 0 10px 24px rgba(11, 20, 32, 0.26);
  cursor: pointer;
  margin-bottom: 14px;
}

.pfp-tavern-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  align-items: stretch;
  min-height: 320px;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(16, 39, 57, 0.96), rgba(93, 51, 20, 0.94)),
    url('https://app.pfandpirat.com/wp-content/uploads/freibeuterhafen.png') center / cover;
  border: 2px solid rgba(242, 190, 91, 0.58);
  box-shadow: 0 22px 55px rgba(12, 18, 28, 0.28);
  isolation: isolate;
}

.pfp-tavern-hero__video,
.pfp-tavern-hero__fallback,
.pfp-tavern-hero__shade {
  position: absolute;
  inset: 0;
}

.pfp-tavern-hero__video {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pfp-tavern-hero__fallback {
  z-index: -3;
  background:
    linear-gradient(135deg, rgba(16, 39, 57, 0.96), rgba(93, 51, 20, 0.94)),
    url('https://app.pfandpirat.com/wp-content/uploads/freibeuterhafen.png') center / cover;
}

.pfp-tavern-hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(15, 23, 33, 0.82) 0%, rgba(42, 26, 14, 0.58) 54%, rgba(17, 28, 42, 0.68) 100%),
    linear-gradient(180deg, rgba(255, 230, 156, 0.10), rgba(10, 12, 18, 0.20));
  pointer-events: none;
}

.pfp-tavern-hero__copy {
  position: relative;
  z-index: 1;
  align-self: end;
}

.pfp-tavern-sound-toggle {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 236, 171, 0.72);
  border-radius: 999px;
  padding: 9px 14px;
  background: linear-gradient(180deg, rgba(103, 54, 16, 0.94), rgba(61, 31, 14, 0.94));
  color: #fff7d8;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(22, 12, 8, 0.28);
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.pfp-tavern-sound-toggle.is-active {
  background: linear-gradient(180deg, rgba(22, 120, 92, 0.94), rgba(10, 79, 66, 0.94));
  border-color: rgba(185, 255, 211, 0.72);
  color: #edfff4;
}

.pfp-tavern-sound-note {
  display: inline-block;
  margin-top: 12px;
  color: #fff1c8;
  font-weight: 800;
}

.pfp-tavern-hero h1 {
  margin: 12px 0 10px;
  color: #fff5cf;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.pfp-tavern-hero p,
.pfp-tavern-section-head p,
.pfp-tavern-counter p {
  color: rgba(255, 248, 229, 0.86);
  line-height: 1.5;
  max-width: 720px;
}

.pfp-tavern-player {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 247, 220, 0.12);
  border: 1px solid rgba(255, 233, 172, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}

.pfp-tavern-player span,
.pfp-tavern-player em {
  color: rgba(255, 248, 229, 0.78);
  font-style: normal;
  font-weight: 800;
}

.pfp-tavern-player strong {
  color: #fff5cf;
  font-size: 1.55rem;
}

.pfp-tavern-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.pfp-tavern-stat {
  padding: 16px;
  border-radius: 18px;
  background: #fff8e2;
  color: #17344a;
  border: 1px solid rgba(230, 177, 75, 0.5);
  box-shadow: 0 12px 28px rgba(17, 29, 43, 0.12);
}

.pfp-tavern-stat span,
.pfp-tavern-stat strong,
.pfp-tavern-stat em {
  display: block;
}

.pfp-tavern-stat span {
  color: #8a5c12;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pfp-tavern-stat strong {
  margin-top: 6px;
  font-size: 1.35rem;
}

.pfp-tavern-stat em {
  margin-top: 4px;
  color: #52637a;
  font-style: normal;
  font-size: 0.86rem;
}

.pfp-tavern-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 18px;
  align-items: start;
}

.pfp-tavern-main,
.pfp-tavern-board,
.pfp-tavern-counter {
  padding: 22px;
  border-radius: 26px;
  background: #fff8e2;
  color: #17344a;
  border: 2px solid rgba(230, 177, 75, 0.56);
  box-shadow: 0 16px 42px rgba(17, 29, 43, 0.14);
}

.pfp-tavern-section-head {
  margin-bottom: 16px;
}

.pfp-tavern-section-head h2,
.pfp-tavern-counter h2 {
  margin: 10px 0 8px;
  color: #0b3762;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.pfp-tavern-section-head p,
.pfp-tavern-counter p {
  margin: 0;
  color: #51647d;
}

.pfp-tavern-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px 14px;
}

.pfp-tavern-game {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 0;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf5 0%, #fff0c9 100%);
  border: 1px solid rgba(177, 113, 20, 0.24);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pfp-tavern-game.is-active {
  transform: translateY(-3px);
  border-color: rgba(11, 126, 184, 0.58);
  box-shadow: 0 14px 30px rgba(11, 55, 98, 0.14);
}

.pfp-tavern-game__top,
.pfp-tavern-order__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pfp-tavern-game__top span,
.pfp-tavern-game__top em {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  font-style: normal;
}

.pfp-tavern-game__top span {
  background: #e9f7ff;
  color: #0b5f86;
}

.pfp-tavern-game__top em {
  background: #fff3d0;
  color: #9a5f08;
}

.pfp-tavern-game h3,
.pfp-tavern-order h3 {
  margin: 0;
  color: #0b3762;
}

.pfp-tavern-game strong {
  color: #9a5f08;
}

.pfp-tavern-game p,
.pfp-tavern-order p {
  margin: 0;
  color: #51647d;
  line-height: 1.42;
}

.pfp-tavern-game button {
  margin-top: auto;
  border: 0;
  border-radius: 13px;
  padding: 11px 13px;
  background: linear-gradient(180deg, #0b7eb8, #075b8d);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.pfp-tavern-game button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.pfp-tavern-play {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f5fbff 0%, #fff8e4 100%);
  border: 1px solid rgba(73, 161, 202, 0.24);
}

.pfp-tavern-play__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pfp-tavern-play__head h2 {
  margin: 9px 0 0;
  color: #0b3762;
}

.pfp-tavern-play__head button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  background: linear-gradient(180deg, #f0b744, #b96c09);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(185, 108, 9, 0.18);
}

.pfp-tavern-play__head button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.pfp-tavern-play__notice,
.pfp-tavern-play__empty {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 241, 200, 0.82);
  color: #80602a;
  font-weight: 800;
}

.pfp-tavern-question {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pfp-tavern-question__visual {
  min-height: 235px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 230, 148, 0.82), transparent 40%),
    linear-gradient(180deg, #102d44 0%, #684018 100%);
  border: 2px solid rgba(242, 190, 91, 0.46);
}

.pfp-tavern-question__visual img {
  max-width: 76%;
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0,0,0,0.28));
}

.pfp-tavern-question__visual img.is-logo-quiz {
  filter: blur(2px) saturate(0.82) contrast(1.08) drop-shadow(0 16px 18px rgba(0,0,0,0.28));
}

.pfp-tavern-question__visual img.is-shadow {
  max-width: 70%;
  padding: 18px;
  border-radius: 40% 44% 34% 38%;
  background: rgba(10, 16, 24, 0.16);
  filter: grayscale(1) contrast(1.8) brightness(0.42) saturate(0.28) drop-shadow(0 16px 18px rgba(0,0,0,0.30));
  opacity: 0.92;
}

.pfp-tavern-memory {
  display: grid;
  gap: 14px;
}

.pfp-tavern-memory__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 15px;
  background: rgba(11, 55, 98, 0.08);
  color: #0b3762;
  font-weight: 900;
}

.pfp-tavern-memory__status strong {
  color: #9a5f08;
}

.pfp-tavern-memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pfp-tavern-memory-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 16px;
  cursor: pointer;
  perspective: 900px;
}

.pfp-tavern-memory-card:disabled {
  cursor: default;
}

.pfp-tavern-memory-card__inner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform 0.36s ease, opacity 0.2s ease;
}

.pfp-tavern-memory-card.is-open .pfp-tavern-memory-card__inner,
.pfp-tavern-memory-card.is-matched .pfp-tavern-memory-card__inner {
  transform: rotateY(180deg);
}

.pfp-tavern-memory-card.is-matched .pfp-tavern-memory-card__inner {
  opacity: 0.78;
}

.pfp-tavern-memory-card__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: inherit;
  backface-visibility: hidden;
  box-shadow: 0 10px 20px rgba(11, 55, 98, 0.16);
}

.pfp-tavern-memory-card__back {
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 221, 128, 0.22), transparent 36%),
    linear-gradient(145deg, #0b3762 0%, #0c6b86 48%, #6b4316 100%);
  border: 2px solid rgba(218, 174, 76, 0.76);
  color: #fff5cf;
  text-align: center;
}

.pfp-tavern-memory-card__back::before {
  content: "";
  width: 42%;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 248, 229, 0.18), rgba(255, 248, 229, 0.04)),
    radial-gradient(circle, rgba(255, 241, 189, 0.88), rgba(218, 174, 76, 0.42) 58%, rgba(90, 54, 17, 0.22) 60%);
  border: 2px solid rgba(255, 245, 207, 0.42);
  box-shadow: inset 0 0 0 8px rgba(7, 49, 62, 0.28);
}

.pfp-tavern-memory-card__back strong {
  font-size: clamp(0.86rem, 1.9vw, 1.08rem);
  line-height: 1.05;
}

.pfp-tavern-memory-card__back em {
  color: #e6b14b;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pfp-tavern-memory-card__front {
  transform: rotateY(180deg);
  background: #1b3145;
  border: 2px solid rgba(218, 174, 76, 0.72);
  color: #fff5cf;
}

.pfp-tavern-memory-card__front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pfp-tavern-memory-card__front::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(8, 19, 31, 0), rgba(8, 19, 31, 0.88));
}

.pfp-tavern-memory-card__front span,
.pfp-tavern-memory-card__front strong {
  position: relative;
  z-index: 1;
  margin: 0 9px;
  text-align: left;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.38);
}

.pfp-tavern-memory-card__front span {
  align-self: flex-start;
  margin-bottom: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 245, 207, 0.9);
  color: #7b4a15;
  font-size: 0.68rem;
  font-weight: 900;
}

.pfp-tavern-memory-card__front strong {
  margin-bottom: 9px;
  font-size: clamp(0.76rem, 1.7vw, 0.98rem);
  line-height: 1.12;
}

.pfp-tavern-counter-game {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(210px, 0.75fr);
  gap: 16px;
  align-items: stretch;
}

.pfp-tavern-counter-game__stage-wrap {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.pfp-tavern-counter-game__status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 15px;
  background: rgba(11, 55, 98, 0.08);
  color: #0b3762;
  font-weight: 900;
}

.pfp-tavern-counter-game__status span,
.pfp-tavern-counter-game__status strong,
.pfp-tavern-counter-game__status em {
  min-width: 0;
  white-space: nowrap;
}

.pfp-tavern-counter-game__status strong {
  color: #12633c;
}

.pfp-tavern-counter-game__status em {
  color: #8c2f22;
  font-style: normal;
}

.pfp-tavern-counter-stage {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 225, 130, 0.18), transparent 30%),
    linear-gradient(180deg, #183248 0%, #553516 58%, #2a170c 100%);
  border: 2px solid rgba(154, 95, 8, 0.34);
  box-shadow: 0 16px 32px rgba(11, 55, 98, 0.14);
  touch-action: none;
  isolation: isolate;
}

.pfp-tavern-counter-stage__backbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 38%;
  background:
    linear-gradient(180deg, rgba(255, 238, 178, 0.14), rgba(255, 238, 178, 0)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 2px, transparent 2px 64px);
  border-bottom: 1px solid rgba(255, 232, 176, 0.18);
  pointer-events: none;
}

.pfp-tavern-counter-stage__rail {
  position: absolute;
  z-index: 1;
  left: 5%;
  right: 8%;
  top: 59%;
  height: 30%;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 216, 136, 0.24), rgba(100, 55, 20, 0.10)),
    linear-gradient(180deg, #8a501d 0%, #5d3216 42%, #2b180e 100%);
  border: 1px solid rgba(255, 223, 155, 0.28);
  box-shadow:
    inset 0 10px 14px rgba(255, 226, 160, 0.16),
    0 14px 22px rgba(13, 9, 5, 0.22);
  pointer-events: none;
}

.pfp-tavern-counter-stage__rail::before,
.pfp-tavern-counter-stage__rail::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 231, 171, 0.44);
}

.pfp-tavern-counter-stage__rail::before {
  top: 22%;
}

.pfp-tavern-counter-stage__rail::after {
  bottom: 22%;
}

.pfp-tavern-counter-stage__drop {
  position: absolute;
  z-index: 2;
  right: 10px;
  top: 53%;
  bottom: 8%;
  display: grid;
  place-items: center;
  width: 54px;
  border-radius: 16px;
  background: rgba(140, 47, 34, 0.28);
  color: #ffe0d9;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.pfp-tavern-counter-drink {
  position: absolute;
  z-index: 5;
  top: 58%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: min(235px, 48%);
  min-height: 82px;
  margin-left: -34px;
  border: 2px solid rgba(255, 231, 171, 0.66);
  border-radius: 18px;
  padding: 9px 11px 9px 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.96), rgba(255, 241, 200, 0.94));
  color: #17344a;
  box-shadow: 0 16px 24px rgba(13, 9, 5, 0.26);
  cursor: grab;
  user-select: none;
  touch-action: none;
  transform: translateY(-50%);
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

.pfp-tavern-counter-drink:active {
  cursor: grabbing;
}

.pfp-tavern-counter-game.is-dragging .pfp-tavern-counter-drink {
  margin-left: 0;
  border-color: rgba(11, 126, 184, 0.72);
  box-shadow: 0 22px 34px rgba(13, 9, 5, 0.30), 0 0 0 5px rgba(11, 126, 184, 0.14);
}

.pfp-tavern-counter-drink:disabled {
  cursor: default;
}

.pfp-tavern-counter-drink svg,
.pfp-tavern-counter-drink__image {
  display: block;
  width: 58px;
  height: 72px;
  filter: drop-shadow(0 8px 10px rgba(53, 34, 5, 0.20));
}

.pfp-tavern-counter-drink__image {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 248, 229, 0.72);
}

.pfp-tavern-counter-drink__image img {
  width: 52px;
  height: 66px;
  object-fit: contain;
  -webkit-user-drag: none;
}

.pfp-tavern-counter-drink__label {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.pfp-tavern-counter-drink__label strong {
  overflow: hidden;
  color: #0b3762;
  font-size: 0.92rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfp-tavern-counter-drink__label em {
  color: #9a5f08;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
}

.pfp-tavern-counter-bins {
  display: grid;
  gap: 10px;
}

.pfp-tavern-counter-bin {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 3px 12px;
  align-items: center;
  min-height: 94px;
  border: 2px solid rgba(177, 113, 20, 0.22);
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, #fffdf6 0%, #fff0c9 100%);
  color: #17344a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(11, 55, 98, 0.08);
}

.pfp-tavern-counter-bin svg {
  grid-row: 1 / 3;
  width: 70px;
  height: 58px;
  filter: drop-shadow(0 7px 8px rgba(53, 34, 5, 0.16));
}

.pfp-tavern-counter-bin span {
  align-self: end;
  color: #0b3762;
  font-weight: 950;
}

.pfp-tavern-counter-bin strong {
  align-self: start;
  color: #8a5c12;
  font-size: 0.78rem;
  font-weight: 900;
}

.pfp-tavern-counter-bin.is-single {
  border-color: rgba(11, 126, 184, 0.34);
}

.pfp-tavern-counter-bin.is-returnable {
  border-color: rgba(154, 95, 8, 0.36);
}

.pfp-tavern-counter-bin.is-free {
  border-color: rgba(42, 156, 97, 0.30);
}

.pfp-tavern-counter-bin:hover:not(:disabled),
.pfp-tavern-counter-bin:focus-visible {
  border-color: rgba(11, 126, 184, 0.58);
  box-shadow: 0 14px 28px rgba(11, 55, 98, 0.13);
  outline: none;
}

.pfp-tavern-counter-bin:disabled {
  cursor: default;
  opacity: 0.72;
}

.pfp-tavern-counter-game__hint {
  margin: 0;
  padding: 13px;
  border-radius: 15px;
  background: #fff8e5;
  color: #6b521f;
  font-weight: 800;
  line-height: 1.42;
}

.pfp-tavern-tap-game {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.75fr);
  gap: 16px;
  align-items: stretch;
}

.pfp-tavern-tap-game__stage {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 20px;
  background: #1d160f;
  border: 2px solid rgba(154, 95, 8, 0.34);
  box-shadow: 0 16px 32px rgba(11, 55, 98, 0.14);
  isolation: isolate;
}

.pfp-tavern-tap-game__art {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.pfp-tavern-tap-game__glass {
  position: absolute;
  z-index: 2;
  left: 41.6%;
  top: 41.5%;
  width: 16.8%;
  height: 36.5%;
  overflow: hidden;
  border-radius: 9% 9% 22% 22% / 8% 8% 13% 13%;
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.18),
    inset 0 0 18px rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.pfp-tavern-tap-game__fill {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  border-radius: 0 0 22% 22%;
  background:
    radial-gradient(circle at 24% 36%, rgba(255, 255, 255, 0.58), transparent 3%),
    radial-gradient(circle at 72% 52%, rgba(255, 255, 255, 0.32), transparent 4%),
    linear-gradient(180deg, rgba(255, 226, 126, 0.95), rgba(217, 119, 24, 0.92) 58%, rgba(132, 63, 16, 0.94));
  box-shadow: inset 0 10px 18px rgba(255, 247, 194, 0.28);
  transition: height 0.04s linear;
}

.pfp-tavern-tap-game__target {
  position: absolute;
  z-index: 3;
  left: 4%;
  right: 4%;
  height: 3px;
  border-radius: 999px;
  background: #fff2a9;
  box-shadow: 0 0 0 2px rgba(91, 47, 10, 0.28), 0 0 12px rgba(255, 232, 148, 0.92);
}

.pfp-tavern-tap-game__foam {
  position: absolute;
  z-index: 4;
  left: 8%;
  right: 8%;
  height: 13px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 50%, #fff 0 20%, transparent 22%),
    radial-gradient(circle at 42% 50%, #fff7d6 0 24%, transparent 26%),
    radial-gradient(circle at 68% 48%, #fff 0 22%, transparent 24%),
    linear-gradient(180deg, #fffdf0, #f5d889);
  filter: drop-shadow(0 2px 4px rgba(82, 41, 8, 0.28));
  transform: translateY(50%);
}

.pfp-tavern-tap-game__stream {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 36%;
  width: 1.4%;
  height: 12%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 235, 153, 0.0), rgba(238, 160, 39, 0.95));
  box-shadow: 0 0 10px rgba(255, 204, 96, 0.72);
  opacity: 0;
  transform-origin: top;
}

.pfp-tavern-tap-game.is-pouring .pfp-tavern-tap-game__stream {
  opacity: 1;
  animation: pfp-tavern-tap-stream 0.26s ease-in-out infinite alternate;
}

.pfp-tavern-tap-game__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf6 0%, #fff0c9 100%);
  border: 1px solid rgba(177, 113, 20, 0.24);
}

.pfp-tavern-tap-game__meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 15px;
  background: rgba(11, 55, 98, 0.08);
  color: #0b3762;
  font-weight: 900;
}

.pfp-tavern-tap-game__meter span,
.pfp-tavern-tap-game__meter strong {
  white-space: nowrap;
}

.pfp-tavern-tap-game__meter strong {
  color: #9a5f08;
}

.pfp-tavern-tap-game__score-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.pfp-tavern-tap-game__score-row span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 13px;
  background: #fff8e5;
  color: #8a5c12;
  border: 1px solid rgba(177, 113, 20, 0.22);
  font-weight: 950;
}

.pfp-tavern-tap-game__score-row span.is-good {
  background: #e8f8ef;
  color: #12633c;
  border-color: rgba(42, 156, 97, 0.42);
}

.pfp-tavern-tap-game__score-row span.is-empty {
  background: #fff0ee;
  color: #8c2f22;
  border-color: rgba(201, 88, 69, 0.38);
}

.pfp-tavern-tap-game__panel p,
.pfp-tavern-tap-game__result span {
  margin: 0;
  color: #51647d;
  line-height: 1.45;
  font-weight: 800;
}

.pfp-tavern-tap-game__result {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-radius: 15px;
  background: #e8f8ef;
  color: #12633c;
}

.pfp-tavern-tap-game__result.is-overflow {
  background: #fff0ee;
  color: #8c2f22;
}

.pfp-tavern-tap-game__result strong {
  color: currentColor;
}

.pfp-tavern-tap-game__start,
.pfp-tavern-tap-game__stop {
  border: 0;
  border-radius: 15px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.pfp-tavern-tap-game__start {
  background: linear-gradient(180deg, #0b7eb8, #075b8d);
}

.pfp-tavern-tap-game__start:disabled {
  cursor: wait;
  opacity: 0.62;
}

.pfp-tavern-tap-game__stop {
  min-height: 64px;
  background: linear-gradient(180deg, #f0b744, #b96c09);
  font-size: 1.18rem;
}

.pfp-tavern-pfand-card {
  width: min(210px, 88%);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 248, 229, 0.94);
  color: #17344a;
  text-align: center;
  box-shadow: 0 16px 28px rgba(0,0,0,0.20);
}

.pfp-tavern-pfand-card span,
.pfp-tavern-pfand-card em {
  color: #8a5c12;
  font-style: normal;
  font-weight: 900;
}

.pfp-tavern-pfand-card strong {
  font-size: 1.22rem;
  line-height: 1.16;
}

.pfp-tavern-question__body {
  min-width: 0;
}

.pfp-tavern-question__progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(11, 55, 98, 0.08);
  color: #0b3762;
  font-weight: 900;
}

.pfp-tavern-question__progress strong {
  color: #9a5f08;
}

.pfp-tavern-question__body h3 {
  margin: 2px 0 13px;
  color: #0b3762;
  font-size: 1.35rem;
}

.pfp-tavern-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pfp-tavern-answer-grid button {
  min-height: 52px;
  border: 2px solid rgba(11, 55, 98, 0.10);
  border-radius: 14px;
  padding: 11px 12px;
  background: #fffdf6;
  color: #17344a;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.pfp-tavern-answer-grid button:hover:not(:disabled) {
  border-color: rgba(11, 126, 184, 0.48);
  box-shadow: 0 8px 18px rgba(11, 55, 98, 0.10);
}

.pfp-tavern-answer-grid button:disabled {
  cursor: default;
}

.pfp-tavern-answer-grid button.is-correct {
  background: #e8f8ef;
  border-color: #2a9c61;
  color: #12633c;
}

.pfp-tavern-answer-grid button.is-wrong {
  background: #fff0ee;
  border-color: #c95845;
  color: #8c2f22;
}

.pfp-tavern-result {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 13px;
  border-radius: 15px;
  font-weight: 800;
}

.pfp-tavern-result button {
  justify-self: start;
  margin-top: 8px;
  border: 0;
  border-radius: 13px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #0b7eb8, #075b8d);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.pfp-tavern-result span:last-child {
  margin-top: 8px;
  color: currentColor;
}

.pfp-tavern-summary-card {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, #0b3762 0%, #7b4a15 100%);
  color: #fff8e5;
  box-shadow: 0 16px 34px rgba(11, 55, 98, 0.18);
  scroll-margin-top: 16px;
}

.pfp-tavern-summary-card:focus {
  outline: none;
}

.pfp-tavern-summary-card__score {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 190px;
  border-radius: 18px;
  background: rgba(255, 248, 229, 0.13);
  border: 1px solid rgba(255, 233, 172, 0.28);
  text-align: center;
}

.pfp-tavern-summary-card__score span {
  font-size: clamp(2.8rem, 6vw, 4.15rem);
  font-weight: 950;
  line-height: 1;
  color: #fff1bd;
}

.pfp-tavern-summary-card__score strong {
  font-size: 1rem;
}

.pfp-tavern-summary-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.pfp-tavern-summary-card__body h3 {
  margin: 12px 0 8px;
  color: #fff5cf;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
}

.pfp-tavern-summary-card__body p {
  margin: 0;
  color: rgba(255, 248, 229, 0.86);
  line-height: 1.45;
}

.pfp-tavern-summary-card__body em {
  margin-top: 10px;
  color: #ffe0d9;
  font-style: normal;
  font-weight: 800;
}

.pfp-tavern-summary-card__rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.pfp-tavern-summary-card__rewards span {
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 248, 229, 0.16);
  border: 1px solid rgba(255, 233, 172, 0.24);
  color: #fff5cf;
  font-weight: 900;
}

.pfp-tavern-coupon-win {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 248, 229, 0.14);
  border: 1px solid rgba(255, 233, 172, 0.26);
}

.pfp-tavern-coupon-win img {
  width: 58px;
  height: 42px;
  object-fit: contain;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.92);
}

.pfp-tavern-coupon-win span,
.pfp-tavern-coupon-win strong,
.pfp-tavern-coupon-win em {
  display: block;
}

.pfp-tavern-coupon-win span {
  color: #ffe6a0;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pfp-tavern-coupon-win strong {
  color: #fff5cf;
  line-height: 1.2;
}

.pfp-tavern-coupon-win em {
  color: rgba(255, 248, 229, 0.78);
  font-style: normal;
  font-weight: 800;
  margin-top: 3px;
}

.pfp-tavern-coupon-win a {
  justify-self: end;
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(255, 248, 229, 0.16);
  color: #fff5cf;
  font-weight: 900;
  text-decoration: none;
}

.pfp-tavern-summary-card__body button {
  align-self: flex-start;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f0b744, #b96c09);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.pfp-tavern-result.is-correct {
  background: #e8f8ef;
  color: #12633c;
}

.pfp-tavern-result.is-wrong {
  background: #fff0ee;
  color: #8c2f22;
}

.pfp-tavern-order-list {
  display: grid;
  gap: 12px;
}

.pfp-tavern-highscore {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(177, 113, 20, 0.28);
}

.pfp-tavern-highscore__head {
  display: grid;
  gap: 4px;
}

.pfp-tavern-highscore__head span {
  color: #9a5f08;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pfp-tavern-highscore__head strong {
  color: #0b3762;
  font-size: 1.15rem;
}

.pfp-tavern-highscore__state {
  border-radius: 16px;
  padding: 13px;
  background: linear-gradient(180deg, #fffdf6 0%, #eef9ff 100%);
  color: #51647d;
  font-weight: 850;
}

.pfp-tavern-highscore__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pfp-tavern-highscore__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf6 0%, #eef9ff 100%);
  border: 1px solid rgba(73, 161, 202, 0.22);
}

.pfp-tavern-highscore__list li.is-me {
  border-color: rgba(240, 183, 68, 0.72);
  box-shadow: 0 0 0 3px rgba(240, 183, 68, 0.14);
}

.pfp-tavern-highscore__list li > b {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #fff1c8;
  color: #9a5f08;
  font-size: 0.9rem;
}

.pfp-tavern-highscore__list a,
.pfp-tavern-highscore__identity {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.pfp-tavern-highscore__list a:hover strong {
  text-decoration: underline;
}

.pfp-tavern-highscore__list img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff8e5;
  box-shadow: 0 6px 14px rgba(11, 55, 98, 0.12);
}

.pfp-tavern-highscore__list span {
  min-width: 0;
}

.pfp-tavern-highscore__list span strong,
.pfp-tavern-highscore__list span em {
  display: block;
}

.pfp-tavern-highscore__list span strong {
  overflow: hidden;
  color: #0b3762;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfp-tavern-highscore__list span em {
  color: #52637a;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
}

.pfp-tavern-highscore__score {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}

.pfp-tavern-highscore__score strong {
  color: #12633c;
}

.pfp-tavern-order {
  display: grid;
  gap: 12px;
  padding: 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf6 0%, #eef9ff 100%);
  border: 1px solid rgba(73, 161, 202, 0.24);
}

.pfp-tavern-order__meta span,
.pfp-tavern-order__meta strong {
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.84rem;
  font-weight: 900;
}

.pfp-tavern-order__meta span {
  background: rgba(11, 55, 98, 0.08);
  color: #0b3762;
}

.pfp-tavern-order__meta strong {
  background: #fff1c8;
  color: #9a5f08;
}

.pfp-tavern-counter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 430px);
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.pfp-tavern-counter__rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pfp-tavern-counter__rewards span {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 16px;
  background: linear-gradient(180deg, #0b7eb8, #075b8d);
  color: #fff;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 980px) {
  .pfp-tavern-hero,
  .pfp-tavern-layout,
  .pfp-tavern-counter,
  .pfp-tavern-counter-game,
  .pfp-tavern-tap-game {
    grid-template-columns: 1fr;
  }

  .pfp-tavern-stats,
  .pfp-tavern-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pfp-tavern-question {
    grid-template-columns: 1fr;
  }

  .pfp-tavern-summary-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .pfp-tavern-page {
    padding: 12px 10px 92px;
  }

  .pfp-tavern-hero,
  .pfp-tavern-main,
  .pfp-tavern-board,
  .pfp-tavern-counter {
    border-radius: 20px;
    padding: 16px;
  }

  .pfp-tavern-stats,
  .pfp-tavern-game-grid,
  .pfp-tavern-counter__rewards,
  .pfp-tavern-answer-grid {
    grid-template-columns: 1fr;
  }

  .pfp-tavern-stats {
    gap: 16px;
    margin: 18px 0;
  }

  .pfp-tavern-game-grid {
    gap: 20px;
  }

  .pfp-tavern-layout {
    gap: 22px;
  }

  .pfp-tavern-play {
    margin-top: 24px;
  }

  .pfp-tavern-memory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .pfp-tavern-play,
  .pfp-tavern-play__head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pfp-tavern-play__head button {
    width: 100%;
  }

  .pfp-tavern-question__visual {
    min-height: 210px;
  }

  .pfp-tavern-tap-game__stage {
    min-height: 250px;
  }

  .pfp-tavern-counter-stage {
    min-height: 260px;
  }

  .pfp-tavern-counter-game__status {
    grid-template-columns: 1fr;
  }

  .pfp-tavern-counter-game__status span,
  .pfp-tavern-counter-game__status strong,
  .pfp-tavern-counter-game__status em {
    white-space: normal;
  }

  .pfp-tavern-counter-drink {
    width: min(225px, 72%);
  }

  .pfp-tavern-counter-bins {
    grid-template-columns: 1fr;
  }

  .pfp-tavern-summary-card {
    padding: 14px;
    scroll-margin-top: 12px;
  }

  .pfp-tavern-summary-card__rewards {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pfp-tavern-summary-card__rewards span {
    text-align: center;
  }

  .pfp-tavern-summary-card__body button {
    width: 100%;
  }

  .pfp-tavern-coupon-win {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pfp-tavern-coupon-win a {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }
}

@keyframes pfp-tavern-tap-stream {
  from {
    transform: scaleY(0.96);
  }
  to {
    transform: scaleY(1.08);
  }
}

@media (max-width: 420px) {
  .pfp-tavern-memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@supports (padding: max(0px)) {
  @media (max-width: 620px) {
    .pfp-tavern-page {
      padding-bottom: max(92px, calc(92px + env(safe-area-inset-bottom)));
    }
  }
}

.pfp-shipyard-page{min-height:100vh;padding:14px 12px 96px;background:radial-gradient(circle at top,#e8f8ff 0,#fff7de 48%,#f4e0b2 100%);color:#17344a;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.pfp-shipyard-shell{max-width:980px;margin:0 auto}.pfp-shipyard-topbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.pfp-shipyard-back,.pfp-shipyard-sound,.pfp-shipyard-resource-footer button,.pfp-shipyard-preview{border:0;border-radius:12px;padding:10px 16px;background:linear-gradient(180deg,#0878af,#034d77);color:#fff;font-weight:900;box-shadow:0 6px 14px rgba(0,0,0,.22);cursor:pointer}.pfp-shipyard-hero{position:relative;border-radius:22px;overflow:hidden;border:3px solid rgba(6,70,104,.45);box-shadow:0 18px 34px rgba(4,38,56,.24);background:#a9def6}.pfp-shipyard-overview{display:block;width:100%;height:auto}.pfp-shipyard-head{position:absolute;top:0;left:50%;transform:translateX(-50%);width:min(430px,55%);z-index:3;filter:drop-shadow(0 8px 8px rgba(0,0,0,.28))}.pfp-shipyard-wallet{position:absolute;right:18px;top:18px;z-index:4;display:flex;gap:14px;align-items:center;padding:10px 14px;border-radius:16px;background:linear-gradient(135deg,#053954,#09283a);color:#fff;border:2px solid rgba(255,255,255,.18);box-shadow:0 8px 18px rgba(0,0,0,.25)}.pfp-shipyard-wallet span{display:flex;gap:5px;align-items:center}.pfp-shipyard-wallet-coin{width:22px;height:22px;object-fit:contain;display:inline-block;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}.pfp-shipyard-wallet strong{font-size:20px}.pfp-shipyard-wallet small{font-weight:800;opacity:.86}.pfp-shipyard-hint{position:absolute;right:20px;bottom:72px;z-index:4;width:190px;padding:16px;border-radius:12px;background:#fff0cc;border:2px solid rgba(121,74,22,.35);box-shadow:0 8px 18px rgba(0,0,0,.18);font-weight:700;line-height:1.35}.pfp-shipyard-card{background:linear-gradient(180deg,#fff4d9,#ead3aa);border:3px solid #0c405c;border-radius:18px;box-shadow:0 16px 30px rgba(0,0,0,.18);margin-top:12px}.pfp-shipyard-main-card{display:grid;grid-template-columns:1fr 300px;gap:16px;padding:22px;position:relative}.pfp-shipyard-current{display:grid;grid-template-columns:1fr 300px;gap:14px;align-items:center}.pfp-shipyard-current span{font-size:17px}.pfp-shipyard-current h1{margin:0;color:#113c5a;font-family:Georgia,serif;font-size:32px;text-transform:uppercase;line-height:1}.pfp-shipyard-current b{display:inline-block;margin:12px 0 8px;padding:8px 18px;border-radius:13px;background:#f4c66f;color:#5c350e;text-transform:uppercase}.pfp-shipyard-current ul{list-style:none;margin:8px 0 0;padding:0}.pfp-shipyard-current li{margin:5px 0;font-weight:750}.pfp-shipyard-current img{max-width:100%;filter:drop-shadow(0 12px 12px rgba(0,0,0,.18))}.pfp-shipyard-progress-card{background:#f0ddba;border:2px solid rgba(128,81,30,.25);border-radius:16px;padding:20px;text-align:center;align-self:start}.pfp-shipyard-progress-card strong{font-family:Georgia,serif;text-transform:uppercase;font-size:18px}.pfp-shipyard-progress-card>b{display:block;font-size:36px;margin:10px 0;color:#1e2933}.pfp-shipyard-progress{height:22px;background:#b9ad99;border-radius:999px;box-shadow:inset 0 2px 5px rgba(0,0,0,.25);overflow:hidden}.pfp-shipyard-progress span{display:block;height:100%;border-radius:999px;background:linear-gradient(180deg,#47d774,#188c3d)}.pfp-shipyard-next{grid-column:1/-1;display:grid;grid-template-columns:1fr 260px;gap:14px;margin-top:8px}.pfp-shipyard-next h2{grid-column:1/-1;margin:0;color:#17344a;font-family:Georgia,serif;text-transform:uppercase;font-size:18px}.pfp-shipyard-requirements{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px}.pfp-shipyard-requirement,.pfp-shipyard-resource{background:#f8e6c5;border:2px solid rgba(103,70,33,.22);border-radius:12px;text-align:center;padding:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.65)}.pfp-shipyard-requirement strong,.pfp-shipyard-resource strong{display:block;min-height:24px;color:#2a180c}.pfp-shipyard-requirement img,.pfp-shipyard-resource img{height:72px;max-width:100%;object-fit:contain;margin:8px auto;display:block}.pfp-shipyard-currency-icon{font-size:54px;display:block;margin:12px 0}.pfp-shipyard-count{font-size:26px;font-weight:950;color:#222}.pfp-shipyard-count em{font-style:normal;margin:0 8px;color:#6b5d49}.pfp-shipyard-requirement.is-missing .pfp-shipyard-count span:first-child,.pfp-shipyard-requirement.is-missing small,.pfp-shipyard-resource b:has(+ small){color:#b40808}.pfp-shipyard-requirement.is-met small{color:#08733d}.pfp-shipyard-reward-card{grid-row:2/4;grid-column:2;background:#fff0cf;border:2px solid rgba(118,74,25,.3);border-radius:12px;padding:16px}.pfp-shipyard-reward-card h3{margin:0 0 10px;text-align:center;font-family:Georgia,serif;text-transform:uppercase}.pfp-shipyard-reward-card ul{margin:0;padding:0;list-style:none}.pfp-shipyard-reward-card li{margin:10px 0;font-weight:800}.pfp-shipyard-upgrade{grid-column:1;background:linear-gradient(180deg,#827c68,#5d574a);border:0;border-radius:13px;color:#fff;padding:12px 18px;font-weight:950;text-transform:uppercase;font-size:18px;cursor:pointer}.pfp-shipyard-upgrade small{display:block;text-transform:none;font-size:13px;margin-top:3px;font-weight:700}.pfp-shipyard-upgrade.is-ready{background:linear-gradient(180deg,#13a96c,#087f4e)}.pfp-shipyard-upgrade:disabled{opacity:.9;cursor:not-allowed}.pfp-shipyard-preview{grid-column:2;align-self:end}.pfp-shipyard-resources{padding:18px}.pfp-shipyard-resources h2{display:inline-block;margin:-4px 0 12px;background:#0b4766;color:#fff;padding:8px 18px;border-radius:12px;font-family:Georgia,serif;text-transform:uppercase}.pfp-shipyard-resource-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.pfp-shipyard-resource b{display:block;font-size:30px;color:#1f1b16}.pfp-shipyard-resource small{display:block;font-weight:700}.pfp-shipyard-resource-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:14px;padding:12px;background:rgba(255,255,255,.36);border-radius:12px;font-weight:700}.pfp-shipyard-info{display:grid;grid-template-columns:1fr 310px;gap:16px;align-items:center;margin-top:12px;background:linear-gradient(180deg,#ffe9be,#e6c38e);border:3px solid #0c405c;border-radius:18px;box-shadow:0 16px 30px rgba(0,0,0,.18);overflow:hidden}.pfp-shipyard-info>img{width:100%;height:auto;display:block}.pfp-shipyard-next-mini{padding:12px;text-align:center}.pfp-shipyard-next-mini span{font-family:Georgia,serif;text-transform:uppercase;font-weight:900}.pfp-shipyard-next-mini strong{display:block;font-size:22px;color:#613b12;text-transform:uppercase}.pfp-shipyard-next-mini img{max-height:100px;max-width:100%;object-fit:contain}.pfp-shipyard-notice{position:fixed;right:20px;bottom:90px;z-index:10000;max-width:360px;background:#fff3d4;border:3px solid #0b4c6e;border-radius:18px;box-shadow:0 18px 36px rgba(0,0,0,.28);padding:18px;color:#16364b}.pfp-shipyard-notice button{position:absolute;right:10px;top:8px;border:0;background:transparent;font-size:26px;cursor:pointer}.pfp-shipyard-notice h3{margin:0 24px 8px 0}.pfp-shipyard-loading,.pfp-shipyard-error{max-width:620px;margin:60px auto;background:#fff3d4;border:3px solid #0b4c6e;border-radius:18px;padding:24px;text-align:center;box-shadow:0 15px 30px rgba(0,0,0,.18)}.pfp-shipyard-error button{border:0;border-radius:12px;padding:10px 18px;background:#0b74a5;color:#fff;font-weight:900}@media(max-width:820px){.pfp-shipyard-topbar{align-items:stretch;flex-direction:column}.pfp-shipyard-head{width:75%}.pfp-shipyard-wallet{position:static;margin:8px;background:#07344b;border-radius:14px;justify-content:center;flex-wrap:wrap}.pfp-shipyard-hint{display:none}.pfp-shipyard-main-card{grid-template-columns:1fr;padding:14px}.pfp-shipyard-current{grid-template-columns:1fr;text-align:center}.pfp-shipyard-current h1{font-size:28px}.pfp-shipyard-progress-card{grid-row:auto}.pfp-shipyard-next{grid-template-columns:1fr}.pfp-shipyard-requirements{grid-template-columns:repeat(2,1fr)}.pfp-shipyard-reward-card,.pfp-shipyard-preview{grid-column:1}.pfp-shipyard-resource-grid{grid-template-columns:repeat(2,1fr)}.pfp-shipyard-resource-footer{flex-direction:column;text-align:center}.pfp-shipyard-info{grid-template-columns:1fr}.pfp-shipyard-info>img{display:none}.pfp-shipyard-notice{left:12px;right:12px;bottom:80px;max-width:none}}@media(max-width:480px){.pfp-shipyard-requirements{grid-template-columns:1fr}.pfp-shipyard-resource-grid{grid-template-columns:1fr 1fr}.pfp-shipyard-page{padding-left:8px;padding-right:8px}.pfp-shipyard-current img{max-height:210px}}
.pfp-shipyard-head,.pfp-shipyard-current img,.pfp-shipyard-requirement img,.pfp-shipyard-resource img,.pfp-shipyard-next-mini img{background:transparent!important}.pfp-shipyard-currency-icon{width:72px;height:72px;margin:8px auto;display:grid;place-items:center;border-radius:50%;font-size:42px;line-height:1;background:radial-gradient(circle at 35% 28%,#fff7bd 0,#f5c756 35%,#a86513 100%);box-shadow:inset 0 2px 3px rgba(255,255,255,.65),inset 0 -5px 8px rgba(70,35,5,.35),0 7px 10px rgba(0,0,0,.18)}.pfp-shipyard-requirement.is-silver .pfp-shipyard-currency-icon{background:radial-gradient(circle at 35% 28%,#ffffff 0,#d8dde4 42%,#818b98 100%)}.pfp-shipyard-requirement.is-bronze .pfp-shipyard-currency-icon{background:radial-gradient(circle at 35% 28%,#ffe1aa 0,#c77a2b 42%,#6e3515 100%)}.pfp-shipyard-requirement.is-currency strong{color:#68400f}.pfp-shipyard-info-art{position:relative;min-height:145px}.pfp-shipyard-info-art>img{display:block;width:100%;height:auto;background:transparent}.pfp-shipyard-info-copy{position:absolute;left:210px;right:24px;top:50%;transform:translateY(-50%);color:#4a2a10;line-height:1.35}.pfp-shipyard-info-copy h3{margin:0 0 8px;font-family:Georgia,serif;font-size:22px;text-transform:uppercase;color:#5b3513}.pfp-shipyard-info-copy p{margin:0;font-weight:750;font-size:15px}.pfp-shipyard-requirement small{font-weight:850}.pfp-shipyard-requirement.is-missing small{color:#b40808}@media(max-width:820px){.pfp-shipyard-info>img{display:block}.pfp-shipyard-info-art{display:block;min-height:120px}.pfp-shipyard-info-art>img{display:block}.pfp-shipyard-info-copy{position:static;transform:none;padding:14px 18px;text-align:center}.pfp-shipyard-info-copy h3{font-size:20px}.pfp-shipyard-info-copy p{font-size:14px}.pfp-shipyard-currency-icon{width:64px;height:64px;font-size:36px}}

/* Werft V1.5.2 UI-Korrekturen */
.pfp-shipyard-head-row {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 128px;
  margin: 0 auto -36px;
  pointer-events: none;
}
.pfp-shipyard-head-row .pfp-shipyard-head {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: min(430px, 58%) !important;
  max-width: 92%;
  z-index: 7;
  display: block;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,.3));
  background: transparent !important;
}
.pfp-shipyard-hero { overflow: visible; }
.pfp-shipyard-requirement.is-currency img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 8px auto;
  filter: drop-shadow(0 7px 8px rgba(0,0,0,.22));
}
.pfp-shipyard-info-copy h3 { display: none !important; }
.pfp-shipyard-info-copy {
  left: 214px;
  right: 24px;
  top: 61%;
  transform: translateY(-50%);
  padding: 0;
  text-align: left;
}
.pfp-shipyard-info-copy p {
  font-weight: 750;
  font-size: 14px;
  line-height: 1.32;
  color: #4a2a10;
}
@media (max-width: 820px) {
  .pfp-shipyard-head-row {
    height: 96px;
    margin-bottom: -24px;
  }
  .pfp-shipyard-head-row .pfp-shipyard-head {
    width: min(340px, 88%) !important;
  }
  .pfp-shipyard-info-copy {
    position: absolute;
    left: 132px;
    right: 12px;
    top: 62%;
    transform: translateY(-50%);
    padding: 0;
    text-align: left;
  }
  .pfp-shipyard-info-copy p {
    font-size: 10px;
    line-height: 1.25;
  }
  .pfp-shipyard-info-art { min-height: 104px; }
  .pfp-shipyard-info-art > img {
    width: 100%;
    display: block;
  }
}
@media (max-width: 480px) {
  .pfp-shipyard-head-row {
    height: 78px;
    margin-bottom: -18px;
  }
  .pfp-shipyard-head-row .pfp-shipyard-head {
    width: min(285px, 91%) !important;
  }
  .pfp-shipyard-info-copy {
    left: 112px;
    right: 9px;
    top: 62%;
  }
  .pfp-shipyard-info-copy p {
    font-size: 8.6px;
    line-height: 1.22;
  }
}


/* Werft V1.5.4: MP4-Hintergrund für Werft-Überblick */
.pfp-shipyard-overview-video{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#123f56;
}
.pfp-shipyard-hero{background:#123f56;}
@media(max-width:820px){
  .pfp-shipyard-overview-video{
    aspect-ratio:16/9;
    min-height:220px;
  }
}

.pfp-shipyard-harbormaster-cta{
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:center;
  padding:18px;
  background:linear-gradient(180deg,#fff0cc,#dfbd83);
  position:relative;
  overflow:hidden;
}
.pfp-shipyard-harbormaster-cta::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(5,59,86,.08),rgba(122,67,20,.1));
  pointer-events:none;
}
.pfp-shipyard-harbormaster-cta>*{position:relative}
.pfp-shipyard-harbormaster-cta span{
  display:inline-block;
  background:#0b4766;
  color:#fff;
  padding:7px 14px;
  border-radius:12px;
  font-weight:900;
  text-transform:uppercase;
  font-family:Georgia,serif;
}
.pfp-shipyard-harbormaster-cta h2{
  margin:8px 0 4px;
  color:#17344a;
  font-family:Georgia,serif;
  text-transform:uppercase;
  font-size:26px;
  line-height:1;
}
.pfp-shipyard-harbormaster-cta p{
  margin:0;
  max-width:680px;
  font-weight:750;
  color:#4a2a10;
}
.pfp-shipyard-harbormaster-cta button{
  border:0;
  border-radius:13px;
  padding:13px 18px;
  background:linear-gradient(180deg,#0878af,#034d77);
  color:#fff;
  font-weight:950;
  text-transform:uppercase;
  box-shadow:0 8px 18px rgba(0,0,0,.22);
  cursor:pointer;
}
.pfp-shipyard-harbormaster-cta.is-locked button{background:linear-gradient(180deg,#827c68,#5d574a)}
@media(max-width:820px){
  .pfp-shipyard-harbormaster-cta{grid-template-columns:1fr;text-align:center}
}

.pfp-shipyard-duels{padding:18px;background:linear-gradient(180deg,#fff0cc,#dfbd83);position:relative;overflow:hidden}.pfp-shipyard-duels::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(5,59,86,.08),rgba(122,67,20,.1));pointer-events:none}.pfp-shipyard-duels>*{position:relative}.pfp-shipyard-duels-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:14px}.pfp-shipyard-duels-head span{display:inline-block;background:#0b4766;color:#fff;padding:7px 14px;border-radius:12px;font-weight:900;text-transform:uppercase;font-family:Georgia,serif}.pfp-shipyard-duels-head h2{margin:8px 0 4px;color:#17344a;font-family:Georgia,serif;text-transform:uppercase;font-size:28px;line-height:1}.pfp-shipyard-duels-head p{margin:0;max-width:620px;font-weight:750;color:#4a2a10}.pfp-shipyard-duels-head>strong{white-space:nowrap;background:#f4c66f;color:#5c350e;padding:9px 14px;border-radius:12px;text-transform:uppercase;box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}.pfp-shipyard-duel-layout{display:grid;grid-template-columns:260px 1fr;gap:14px}.pfp-shipyard-duel-events{display:grid;gap:10px;align-content:start}.pfp-shipyard-duel-events button,.pfp-shipyard-duel-prep button{border:2px solid rgba(103,70,33,.22);background:#f8e6c5;color:#17344a;border-radius:12px;text-align:left;padding:12px;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}.pfp-shipyard-duel-events button.is-active,.pfp-shipyard-duel-prep button.is-active{border-color:#0b6f93;background:linear-gradient(180deg,#e1f6ff,#f8e6c5);box-shadow:0 8px 16px rgba(4,64,94,.18),inset 0 1px 0 rgba(255,255,255,.7)}.pfp-shipyard-duel-events span,.pfp-shipyard-duel-event-card span,.pfp-shipyard-duel-opponents span{display:block;font-size:12px;font-weight:900;text-transform:uppercase;color:#0b5c7d;letter-spacing:.02em}.pfp-shipyard-duel-events strong{display:block;margin:3px 0;font-size:17px}.pfp-shipyard-duel-events small{display:block;font-weight:750;line-height:1.35;color:#5a4631}.pfp-shipyard-duel-stage{display:grid;gap:12px}.pfp-shipyard-duel-event-card{display:grid;grid-template-columns:1fr 250px;gap:12px;align-items:stretch}.pfp-shipyard-duel-event-card>div,.pfp-shipyard-duel-event-card aside,.pfp-shipyard-duel-board>section,.pfp-shipyard-duel-report{background:rgba(255,247,224,.72);border:2px solid rgba(103,70,33,.2);border-radius:14px;padding:14px}.pfp-shipyard-duel-event-card h3,.pfp-shipyard-duel-board h3,.pfp-shipyard-duel-report h3{margin:0 0 10px;font-family:Georgia,serif;text-transform:uppercase;color:#17344a}.pfp-shipyard-duel-event-card p{margin:0;font-weight:750}.pfp-shipyard-duel-event-card aside strong{display:block;margin-top:5px;color:#5c350e;line-height:1.25}.pfp-shipyard-duel-board{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pfp-shipyard-duel-power{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;padding:10px 12px;background:#0b4766;color:#fff;border-radius:12px;font-weight:900}.pfp-shipyard-duel-power strong{font-size:30px;line-height:1}.pfp-shipyard-duel-stat{display:grid;grid-template-columns:64px 1fr 34px;gap:8px;align-items:center;margin:9px 0;font-weight:850}.pfp-shipyard-duel-stat div{height:12px;background:#cdb98f;border-radius:999px;overflow:hidden;box-shadow:inset 0 2px 4px rgba(0,0,0,.18)}.pfp-shipyard-duel-stat i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0d7aa4,#22b887)}.pfp-shipyard-duel-prep{display:grid;grid-template-columns:1fr;gap:8px}.pfp-shipyard-duel-prep button{display:grid;grid-template-columns:1fr auto;gap:3px 10px}.pfp-shipyard-duel-prep button strong{font-size:15px}.pfp-shipyard-duel-prep button span,.pfp-shipyard-duel-prep button small{font-size:12px;font-weight:850;color:#5a4631}.pfp-shipyard-duel-prep button small{grid-column:2;color:#08733d}.pfp-shipyard-duel-prep button.is-missing small{color:#b40808}.pfp-shipyard-duel-opponents{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.pfp-shipyard-duel-opponents article{background:#f8e6c5;border:2px solid rgba(103,70,33,.22);border-radius:12px;padding:12px}.pfp-shipyard-duel-opponents strong{display:block;margin:4px 0 10px;font-size:18px;color:#2a180c}.pfp-shipyard-duel-opponents div{display:flex;justify-content:space-between;gap:8px;align-items:center}.pfp-shipyard-duel-opponents em{font-style:normal;font-weight:900;color:#5a4631}.pfp-shipyard-duel-opponents b{background:#0b4766;color:#fff;border-radius:999px;padding:5px 8px;font-size:12px}.pfp-shipyard-duel-report{display:grid;grid-template-columns:1fr 220px;gap:12px;align-items:center}.pfp-shipyard-duel-report h3{grid-column:1/-1;margin-bottom:0}.pfp-shipyard-duel-report ol{margin:0;padding-left:20px;font-weight:750;line-height:1.45}.pfp-shipyard-duel-report button{border:0;border-radius:13px;background:linear-gradient(180deg,#827c68,#5d574a);color:#fff;padding:12px 14px;font-weight:950;text-transform:uppercase;cursor:not-allowed}.pfp-shipyard-duels.is-locked{filter:saturate(.82)}@media(max-width:820px){.pfp-shipyard-duels-head{flex-direction:column}.pfp-shipyard-duel-layout,.pfp-shipyard-duel-event-card,.pfp-shipyard-duel-board,.pfp-shipyard-duel-report{grid-template-columns:1fr}.pfp-shipyard-duel-opponents{grid-template-columns:1fr}.pfp-shipyard-duel-report h3{grid-column:auto}}@media(max-width:480px){.pfp-shipyard-duels{padding:14px}.pfp-shipyard-duels-head h2{font-size:23px}.pfp-shipyard-duel-stat{grid-template-columns:58px 1fr 30px}.pfp-shipyard-duel-prep button{grid-template-columns:1fr}.pfp-shipyard-duel-prep button small{grid-column:auto}}

.pfp-harbormaster-page{min-height:100vh;padding:14px 12px 96px;background:radial-gradient(circle at top,#dff7ff 0,#fff1cd 46%,#dfb36f 100%);color:#17344a;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.pfp-harbormaster-shell{max-width:1040px;margin:0 auto}.pfp-harbormaster-topbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.pfp-harbormaster-topbar button,.pfp-harbormaster-loading button{border:0;border-radius:12px;padding:10px 16px;background:linear-gradient(180deg,#0878af,#034d77);color:#fff;font-weight:900;box-shadow:0 6px 14px rgba(0,0,0,.22);cursor:pointer}.pfp-harbormaster-hero{display:grid;grid-template-columns:1fr 280px;gap:18px;align-items:end;padding:24px;border:3px solid #0c405c;border-radius:20px;background:linear-gradient(180deg,#fff3d5,#dfbd83);box-shadow:0 16px 30px rgba(0,0,0,.18);position:relative;overflow:hidden}.pfp-harbormaster-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 10%,rgba(5,80,115,.16),transparent 38%);pointer-events:none}.pfp-harbormaster-hero>*{position:relative}.pfp-harbormaster-hero span{display:inline-block;background:#0b4766;color:#fff;padding:7px 14px;border-radius:12px;font-weight:900;text-transform:uppercase;font-family:Georgia,serif}.pfp-harbormaster-hero h1{margin:10px 0 6px;color:#17344a;font-family:Georgia,serif;text-transform:uppercase;font-size:34px;line-height:1}.pfp-harbormaster-hero p{margin:0;max-width:650px;font-weight:750;color:#4a2a10}.pfp-harbormaster-hero aside{padding:16px;border-radius:15px;background:rgba(255,247,224,.72);border:2px solid rgba(103,70,33,.22)}.pfp-harbormaster-hero small{display:block;font-size:12px;font-weight:900;text-transform:uppercase;color:#0b5c7d}.pfp-harbormaster-hero strong{display:block;margin-top:6px;color:#5c350e;font-size:18px}.pfp-harbormaster-board{display:grid;grid-template-columns:270px 1fr;gap:14px;margin-top:14px;padding:18px;border:3px solid #0c405c;border-radius:20px;background:linear-gradient(180deg,#fff0cc,#d7ae6d);box-shadow:0 16px 30px rgba(0,0,0,.18)}.pfp-harbormaster-events{display:grid;gap:10px;align-content:start}.pfp-harbormaster-events button,.pfp-harbormaster-prep button{border:2px solid rgba(103,70,33,.22);background:#f8e6c5;color:#17344a;border-radius:12px;text-align:left;padding:12px;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}.pfp-harbormaster-events button.is-active,.pfp-harbormaster-prep button.is-active{border-color:#0b6f93;background:linear-gradient(180deg,#e1f6ff,#f8e6c5);box-shadow:0 8px 16px rgba(4,64,94,.18),inset 0 1px 0 rgba(255,255,255,.7)}.pfp-harbormaster-events span,.pfp-harbormaster-event-card span,.pfp-harbormaster-opponents span{display:block;font-size:12px;font-weight:900;text-transform:uppercase;color:#0b5c7d;letter-spacing:.02em}.pfp-harbormaster-events strong{display:block;margin:3px 0;font-size:17px}.pfp-harbormaster-events small{display:block;font-weight:750;line-height:1.35;color:#5a4631}.pfp-harbormaster-stage{display:grid;gap:12px}.pfp-harbormaster-event-card{display:grid;grid-template-columns:1fr 250px;gap:12px}.pfp-harbormaster-event-card>div,.pfp-harbormaster-event-card aside,.pfp-harbormaster-grid>section,.pfp-harbormaster-report{background:rgba(255,247,224,.72);border:2px solid rgba(103,70,33,.2);border-radius:14px;padding:14px}.pfp-harbormaster-event-card h2,.pfp-harbormaster-grid h3,.pfp-harbormaster-report h3{margin:0 0 10px;font-family:Georgia,serif;text-transform:uppercase;color:#17344a}.pfp-harbormaster-event-card p{margin:0;font-weight:750}.pfp-harbormaster-event-card aside strong{display:block;margin-top:5px;color:#5c350e;line-height:1.25}.pfp-harbormaster-arena{position:relative;min-height:260px;border-radius:18px;overflow:hidden;border:3px solid rgba(8,55,80,.45);background:linear-gradient(180deg,#69c7ed 0,#247da3 50%,#0a4969 100%);box-shadow:inset 0 -20px 35px rgba(2,38,58,.35)}.pfp-harbormaster-arena::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,#fff8 0 6%,transparent 18%),linear-gradient(180deg,transparent 0 52%,rgba(255,255,255,.12) 53%,transparent 56%,rgba(255,255,255,.10) 66%,transparent 70%)}.pfp-harbormaster-water{position:absolute;left:-10%;right:-10%;bottom:0;height:38%;background:repeating-linear-gradient(175deg,rgba(255,255,255,.25) 0 10px,transparent 10px 32px);animation:pfp-hm-water 8s linear infinite}.pfp-harbormaster-ship{position:absolute;display:grid;justify-items:center;gap:4px;filter:drop-shadow(0 14px 10px rgba(0,0,0,.28));animation:pfp-hm-bob 3.4s ease-in-out infinite}.pfp-harbormaster-ship img{display:block;max-width:250px;max-height:150px;object-fit:contain}.pfp-harbormaster-ship span{font-size:78px}.pfp-harbormaster-ship b{padding:5px 10px;border-radius:999px;background:rgba(255,240,204,.88);color:#4a2a10;font-size:12px}.pfp-harbormaster-ship.is-player{left:8%;bottom:22%;animation-name:pfp-hm-player}.pfp-harbormaster-ship.is-opponent{right:8%;bottom:24%;transform:scaleX(-1);animation-name:pfp-hm-opponent}.pfp-harbormaster-ship.is-opponent b{transform:scaleX(-1)}.pfp-harbormaster-cannon-flash{position:absolute;left:48%;top:43%;width:48px;height:48px;border-radius:50%;background:radial-gradient(circle,#fff 0,#ffd36a 34%,#f47c28 62%,transparent 70%);filter:blur(.2px);animation:pfp-hm-flash 2.8s steps(1,end) infinite}.pfp-harbormaster-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pfp-harbormaster-power{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;padding:10px 12px;background:#0b4766;color:#fff;border-radius:12px;font-weight:900}.pfp-harbormaster-power strong{font-size:30px;line-height:1}.pfp-harbormaster-stat{display:grid;grid-template-columns:64px 1fr 34px;gap:8px;align-items:center;margin:9px 0;font-weight:850}.pfp-harbormaster-stat div{height:12px;background:#cdb98f;border-radius:999px;overflow:hidden;box-shadow:inset 0 2px 4px rgba(0,0,0,.18)}.pfp-harbormaster-stat i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0d7aa4,#22b887)}.pfp-harbormaster-prep{display:grid;gap:8px}.pfp-harbormaster-prep button{display:grid;grid-template-columns:1fr auto;gap:3px 10px}.pfp-harbormaster-prep button strong{font-size:15px}.pfp-harbormaster-prep button span,.pfp-harbormaster-prep button small{font-size:12px;font-weight:850;color:#5a4631}.pfp-harbormaster-prep button small{grid-column:2;color:#08733d}.pfp-harbormaster-prep button.is-missing small{color:#b40808}.pfp-harbormaster-opponents{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.pfp-harbormaster-opponents article{background:#f8e6c5;border:2px solid rgba(103,70,33,.22);border-radius:12px;padding:12px}.pfp-harbormaster-opponents strong{display:block;margin:4px 0 10px;font-size:18px;color:#2a180c}.pfp-harbormaster-opponents div{display:flex;justify-content:space-between;gap:8px;align-items:center}.pfp-harbormaster-opponents em{font-style:normal;font-weight:900;color:#5a4631}.pfp-harbormaster-opponents b{background:#0b4766;color:#fff;border-radius:999px;padding:5px 8px;font-size:12px}.pfp-harbormaster-report{display:grid;grid-template-columns:1fr 220px;gap:12px;align-items:center}.pfp-harbormaster-report h3{grid-column:1/-1;margin-bottom:0}.pfp-harbormaster-report ol{margin:0;padding-left:20px;font-weight:750;line-height:1.45}.pfp-harbormaster-report button{border:0;border-radius:13px;background:linear-gradient(180deg,#827c68,#5d574a);color:#fff;padding:12px 14px;font-weight:950;text-transform:uppercase;cursor:not-allowed}.pfp-harbormaster-board.is-locked{filter:saturate(.82)}.pfp-harbormaster-loading{max-width:620px;margin:60px auto;background:#fff3d4;border:3px solid #0b4c6e;border-radius:18px;padding:24px;text-align:center;box-shadow:0 15px 30px rgba(0,0,0,.18)}@keyframes pfp-hm-water{from{transform:translateX(0)}to{transform:translateX(90px)}}@keyframes pfp-hm-player{0%,100%{transform:translate(0,0) rotate(-1deg)}45%{transform:translate(18px,-8px) rotate(1deg)}60%{transform:translate(10px,2px) rotate(-2deg)}}@keyframes pfp-hm-opponent{0%,100%{transform:scaleX(-1) translate(0,0) rotate(1deg)}48%{transform:scaleX(-1) translate(12px,-7px) rotate(-1deg)}63%{transform:scaleX(-1) translate(3px,3px) rotate(2deg)}}@keyframes pfp-hm-flash{0%,42%,100%{opacity:0;transform:scale(.3)}43%,47%{opacity:1;transform:scale(1.2)}}@media(max-width:860px){.pfp-harbormaster-topbar,.pfp-harbormaster-hero{grid-template-columns:1fr;flex-direction:column}.pfp-harbormaster-board,.pfp-harbormaster-event-card,.pfp-harbormaster-grid,.pfp-harbormaster-report{grid-template-columns:1fr}.pfp-harbormaster-opponents{grid-template-columns:1fr}.pfp-harbormaster-arena{min-height:230px}.pfp-harbormaster-ship img{max-width:180px}.pfp-harbormaster-report h3{grid-column:auto}}@media(max-width:520px){.pfp-harbormaster-page{padding-left:8px;padding-right:8px}.pfp-harbormaster-hero h1{font-size:27px}.pfp-harbormaster-board{padding:12px}.pfp-harbormaster-ship img{max-width:145px}.pfp-harbormaster-ship.is-player{left:2%}.pfp-harbormaster-ship.is-opponent{right:2%}.pfp-harbormaster-prep button{grid-template-columns:1fr}.pfp-harbormaster-prep button small{grid-column:auto}.pfp-harbormaster-stat{grid-template-columns:58px 1fr 30px}}
.pfp-harbormaster-notice{margin:12px 0 0;padding:12px 16px;border-radius:14px;border:2px solid rgba(12,64,92,.35);background:#fff3d4;font-weight:850;box-shadow:0 10px 20px rgba(0,0,0,.12)}.pfp-harbormaster-notice.is-success{background:linear-gradient(180deg,#e6fff3,#fff3d4);color:#07563a}.pfp-harbormaster-notice.is-error{background:linear-gradient(180deg,#ffe7df,#fff3d4);color:#8a1f12}.pfp-harbormaster-events em{display:block;margin-top:6px;font-style:normal;font-size:12px;font-weight:900;color:#0b5c7d}.pfp-harbormaster-prep button:disabled{opacity:.72;cursor:not-allowed}.pfp-harbormaster-protection{margin:10px 0 0;padding:10px;border-radius:12px;background:rgba(255,255,255,.42);font-size:13px;font-weight:800;color:#5a4631}.pfp-harbormaster-report-action{display:grid;gap:10px}.pfp-harbormaster-report-action span{display:block;padding:10px;border-radius:12px;background:rgba(255,255,255,.45);font-weight:900;color:#5c350e}.pfp-harbormaster-report-action button:not(:disabled){background:linear-gradient(180deg,#0ca56f,#08734e);cursor:pointer}.pfp-harbormaster-report-action button:disabled{opacity:.78}
.pfp-harbormaster-notice.is-info{background:linear-gradient(180deg,#e1f6ff,#fff3d4);color:#0b4f72}.pfp-harbormaster-arena.is-battle-impact{animation:pfp-hm-arena-shake .58s ease-in-out 2}.pfp-harbormaster-battle-status{position:absolute;left:50%;top:16px;z-index:8;transform:translateX(-50%);max-width:min(86%,520px);padding:9px 14px;border-radius:999px;background:rgba(8,43,63,.84);border:2px solid rgba(255,230,145,.78);color:#fff5d2;font-weight:950;text-align:center;box-shadow:0 10px 20px rgba(0,0,0,.22);animation:pfp-hm-status-pulse 1.2s ease-in-out infinite}.pfp-harbormaster-projectiles{position:absolute;inset:0;z-index:5;pointer-events:none}.pfp-harbormaster-cannonball{position:absolute;width:15px;height:15px;border-radius:50%;background:radial-gradient(circle at 32% 28%,#6d6d66 0,#25251f 54%,#050505 100%);box-shadow:0 0 0 2px rgba(255,215,124,.22),0 0 18px rgba(255,203,98,.35);opacity:0}.pfp-harbormaster-cannonball::after{content:"";position:absolute;right:9px;top:5px;width:46px;height:5px;border-radius:999px;background:linear-gradient(90deg,transparent,rgba(255,237,178,.7),rgba(255,128,44,.9));filter:blur(.8px)}.pfp-harbormaster-cannonball.is-player-shot{left:27%;top:55%}.pfp-harbormaster-cannonball.is-opponent-shot{right:27%;top:49%}.pfp-harbormaster-cannonball.is-opponent-shot::after{left:9px;right:auto;background:linear-gradient(270deg,transparent,rgba(255,237,178,.7),rgba(255,128,44,.9))}.pfp-harbormaster-arena.is-battle-broadside .pfp-harbormaster-cannonball.is-player-shot.is-one{animation:pfp-hm-shot-player 1.55s cubic-bezier(.2,.78,.26,1) .05s both}.pfp-harbormaster-arena.is-battle-broadside .pfp-harbormaster-cannonball.is-player-shot.is-two{animation:pfp-hm-shot-player 1.42s cubic-bezier(.2,.78,.26,1) .72s both}.pfp-harbormaster-arena.is-battle-impact .pfp-harbormaster-cannonball.is-player-shot.is-three{animation:pfp-hm-shot-player 1.35s cubic-bezier(.2,.78,.26,1) .1s both}.pfp-harbormaster-arena.is-battle-broadside .pfp-harbormaster-cannonball.is-opponent-shot.is-one{animation:pfp-hm-shot-opponent 1.45s cubic-bezier(.2,.78,.26,1) .42s both}.pfp-harbormaster-arena.is-battle-impact .pfp-harbormaster-cannonball.is-opponent-shot.is-two{animation:pfp-hm-shot-opponent 1.38s cubic-bezier(.2,.78,.26,1) .28s both}.pfp-harbormaster-muzzle,.pfp-harbormaster-impact{position:absolute;z-index:6;pointer-events:none;opacity:0}.pfp-harbormaster-muzzle{width:54px;height:54px;border-radius:50%;background:radial-gradient(circle,#fff7cf 0,#ffbf3d 32%,#d65d19 55%,transparent 68%);filter:blur(.3px)}.pfp-harbormaster-muzzle.is-player{left:28%;top:48%}.pfp-harbormaster-muzzle.is-opponent{right:28%;top:43%}.pfp-harbormaster-impact{width:108px;height:78px;border-radius:45%;background:radial-gradient(circle at 40% 48%,rgba(255,242,190,.95) 0 10%,rgba(111,105,91,.72) 22%,rgba(57,61,62,.48) 44%,transparent 70%);filter:blur(1px)}.pfp-harbormaster-impact.is-player{left:18%;top:38%}.pfp-harbormaster-impact.is-opponent{right:17%;top:37%}.pfp-harbormaster-arena.is-battle-broadside .pfp-harbormaster-muzzle{animation:pfp-hm-muzzle .7s steps(1,end) 3}.pfp-harbormaster-arena.is-battle-impact .pfp-harbormaster-impact{animation:pfp-hm-impact 1.35s ease-out both}.pfp-harbormaster-arena.is-battle-aftermath::after,.pfp-harbormaster-arena.is-battle-reveal::after{content:"";position:absolute;inset:0;z-index:2;background:radial-gradient(circle at 36% 50%,rgba(70,70,65,.2),transparent 25%),radial-gradient(circle at 67% 45%,rgba(70,70,65,.24),transparent 28%);animation:pfp-hm-smoke-drift 2.4s ease-out both}.pfp-harbormaster-cannon-flash{opacity:0;animation:none}.pfp-harbormaster-arena.is-battle-broadside .pfp-harbormaster-cannon-flash,.pfp-harbormaster-arena.is-battle-impact .pfp-harbormaster-cannon-flash{animation:pfp-hm-flash 1.05s steps(1,end) 4}.pfp-harbormaster-live-report li{opacity:.58;transition:opacity .25s ease,transform .25s ease}.pfp-harbormaster-live-report li.is-active{opacity:1;transform:translateX(4px);color:#0b5c7d}.pfp-harbormaster-live-report li.is-active::marker{content:"⚓ "}.pfp-harbormaster-arena.is-battle-preparing .pfp-harbormaster-ship{animation-duration:1.7s}.pfp-harbormaster-arena.is-battle-broadside .pfp-harbormaster-ship,.pfp-harbormaster-arena.is-battle-impact .pfp-harbormaster-ship{animation-duration:1.15s}@keyframes pfp-hm-shot-player{0%{opacity:0;transform:translate(0,0) scale(.7)}10%{opacity:1}52%{opacity:1;transform:translate(22vw,-9vw) scale(1)}100%{opacity:0;transform:translate(46vw,1.5vw) scale(.78)}}@keyframes pfp-hm-shot-opponent{0%{opacity:0;transform:translate(0,0) scale(.7)}10%{opacity:1}52%{opacity:1;transform:translate(-21vw,-8vw) scale(1)}100%{opacity:0;transform:translate(-45vw,2vw) scale(.78)}}@keyframes pfp-hm-muzzle{0%,29%,100%{opacity:0;transform:scale(.45)}30%,42%{opacity:1;transform:scale(1.18)}43%,55%{opacity:.2;transform:scale(.7)}}@keyframes pfp-hm-impact{0%{opacity:0;transform:scale(.45) translateY(10px)}18%{opacity:1;transform:scale(1.1) translateY(0)}100%{opacity:0;transform:scale(1.65) translateY(-16px)}}@keyframes pfp-hm-smoke-drift{0%{opacity:0;transform:translateY(16px) scale(.9)}28%{opacity:.86}100%{opacity:0;transform:translateY(-14px) scale(1.2)}}@keyframes pfp-hm-arena-shake{0%,100%{transform:translate(0,0)}20%{transform:translate(-3px,2px)}40%{transform:translate(4px,-2px)}60%{transform:translate(-2px,-1px)}80%{transform:translate(2px,2px)}}@keyframes pfp-hm-status-pulse{0%,100%{box-shadow:0 10px 20px rgba(0,0,0,.22)}50%{box-shadow:0 10px 24px rgba(255,211,106,.34)}}@media(max-width:520px){.pfp-harbormaster-battle-status{top:10px;font-size:12px}.pfp-harbormaster-cannonball{width:12px;height:12px}.pfp-harbormaster-impact{width:78px;height:58px}.pfp-harbormaster-muzzle.is-player{left:25%;top:52%}.pfp-harbormaster-muzzle.is-opponent{right:25%;top:48%}}@media(prefers-reduced-motion:reduce){.pfp-harbormaster-cannonball,.pfp-harbormaster-muzzle,.pfp-harbormaster-impact,.pfp-harbormaster-battle-status{animation:none!important}.pfp-harbormaster-arena.is-battle-broadside .pfp-harbormaster-cannonball.is-one{opacity:.85}.pfp-harbormaster-arena.is-battle-impact .pfp-harbormaster-impact{opacity:.55}}
.pfp-harbormaster-consumed{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:linear-gradient(180deg,#fff7df,#f3d39c);border:2px solid rgba(121,74,22,.22);color:#7a330d;font-weight:950}.pfp-harbormaster-prep button small{transition:color .2s ease}.pfp-harbormaster-prep button small:has(+ *){color:inherit}

.pfp-piratenpost-page {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  color: #2b1305;
  font-family: Georgia, "Times New Roman", serif;
}

.pfp-piratenpost-stage {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding: 28px 28px 150px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 189, 76, 0.24), transparent 26%),
    radial-gradient(circle at 82% 22%, rgba(88, 35, 8, 0.24), transparent 30%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 3px, rgba(0, 0, 0, 0.04) 3px 7px),
    repeating-linear-gradient(90deg, #6e3513 0 110px, #5d2a0d 110px 116px, #7c3e17 116px 228px);
  box-shadow: inset 0 0 80px rgba(20, 8, 2, 0.62), 0 22px 50px rgba(36, 16, 4, 0.22);
}

.pfp-piratenpost-stage::before,
.pfp-piratenpost-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pfp-piratenpost-stage::before {
  background:
    linear-gradient(90deg, rgba(26, 11, 2, 0.38), transparent 12%, transparent 88%, rgba(26, 11, 2, 0.38)),
    linear-gradient(180deg, rgba(26, 11, 2, 0.42), transparent 14%, transparent 86%, rgba(26, 11, 2, 0.38));
  z-index: 1;
}

.pfp-piratenpost-stage::after {
  opacity: 0.24;
  background:
    repeating-linear-gradient(12deg, transparent 0 34px, rgba(255, 210, 113, 0.16) 34px 36px),
    repeating-linear-gradient(-8deg, transparent 0 52px, rgba(35, 10, 0, 0.2) 52px 54px);
  z-index: 1;
}

.pfp-piratenpost-header-row,
.pfp-piratenpost-alert,
.pfp-piratenpost-main-grid,
.pfp-piratenpost-inbox {
  position: relative;
  z-index: 2;
}

.pfp-piratenpost-header-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 460px);
  gap: 42px;
  align-items: start;
}

.pfp-piratenpost-hero {
  position: relative;
  min-height: 150px;
  padding: 30px 42px 24px;
  color: #fff1ca;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(42, 91, 105, 0.96), rgba(45, 72, 80, 0.98)),
    linear-gradient(90deg, #6c3a13, #a4631b);
  border: 7px solid #8a4b16;
  border-radius: 22px 22px 18px 18px;
  box-shadow:
    inset 0 0 0 3px #d8a24c,
    inset 0 -16px 0 rgba(68, 28, 7, 0.28),
    0 10px 0 #3b1707,
    0 20px 25px rgba(24, 8, 0, 0.35);
}

.pfp-piratenpost-hero::before,
.pfp-piratenpost-hero::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f2c77b, #6c330e 55%, #2b1005);
  box-shadow: 0 2px 0 #f4d38f;
}

.pfp-piratenpost-hero::before {
  top: -11px;
}

.pfp-piratenpost-hero::after {
  bottom: -13px;
}

.pfp-piratenpost-skull {
  position: absolute;
  top: -34px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 56px;
  transform: translateX(-50%);
  border-radius: 50% 50% 16px 16px;
  background: linear-gradient(180deg, #d89125, #754013);
  color: #140601;
  font-size: 2rem;
  font-family: Arial, sans-serif;
  box-shadow: inset 0 0 0 4px #4b1c08, 0 8px 14px rgba(0, 0, 0, 0.28);
}

.pfp-piratenpost-kicker {
  display: block;
  margin-bottom: 4px;
  color: #fff8da;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.1vw, 1.55rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #210b02;
}

.pfp-piratenpost-hero h1 {
  margin: 0;
  color: #fff1bd;
  font-size: clamp(3.2rem, 7.4vw, 5.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 5px 0 #210b02, 0 0 18px rgba(255, 211, 91, 0.35);
}

.pfp-piratenpost-lantern {
  position: absolute;
  bottom: -38px;
  display: block;
  width: 38px;
  height: 58px;
  border-radius: 12px 12px 18px 18px;
  background:
    radial-gradient(circle at 50% 60%, #fff3a8 0 18%, #ffb128 28% 44%, transparent 45%),
    linear-gradient(180deg, #3a1605, #9a5a18 24%, #3a1605);
  border: 3px solid #2b1005;
  box-shadow: 0 0 22px rgba(255, 177, 40, 0.6);
}

.pfp-piratenpost-lantern-left {
  left: -18px;
}

.pfp-piratenpost-lantern-right {
  right: -18px;
}

.pfp-piratenpost-toolbar {
  display: grid;
  gap: 28px;
}

.pfp-piratenpost-toolbar-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #814312, #3b1606);
  border: 5px solid #2b1005;
  box-shadow: inset 0 0 0 3px #d1983a, 0 8px 0 rgba(27, 9, 2, 0.7);
}

.pfp-piratenpost-toolbar-line.is-secondary {
  max-width: 420px;
  margin-left: auto;
  background: linear-gradient(180deg, #9b5a17, #5d2708);
}

.pfp-piratenpost-toolbar button,
.pfp-piratenpost-primary {
  min-height: 56px;
  border: 3px solid #4a1b06;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 244, 200, 0.68), transparent 24%),
    linear-gradient(180deg, #b66a18, #7a350b);
  color: #fff7ce;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 2px 0 #210b02;
  box-shadow: inset 0 0 0 2px #e0a64c, 0 4px 0 #2a0e03;
}

.pfp-piratenpost-toolbar button:disabled,
.pfp-piratenpost-primary:disabled {
  cursor: not-allowed;
  filter: grayscale(0.28);
  opacity: 0.62;
}

.pfp-piratenpost-alert {
  margin-top: 24px;
  padding: 14px 18px;
  border: 4px solid #5b2108;
  border-radius: 14px;
  background: #ffe7d3;
  color: #8f1d12;
  font-weight: 900;
}

.pfp-piratenpost-main-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.16fr) minmax(340px, 0.84fr);
  gap: 44px;
  align-items: start;
  margin-top: 50px;
}

.pfp-piratenpost-compose,
.pfp-piratenpost-conversation {
  position: relative;
  border: 7px solid #5a250a;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 244, 190, 0.78), transparent 32%),
    linear-gradient(180deg, #fbefc5, #e5c783);
  box-shadow:
    inset 0 0 0 3px rgba(132, 75, 19, 0.55),
    inset 0 0 32px rgba(89, 37, 6, 0.18),
    0 10px 0 #2a0e03,
    0 22px 28px rgba(24, 8, 0, 0.35);
}

.pfp-piratenpost-compose {
  min-height: 230px;
  padding: 28px 36px 34px;
  border-radius: 20px;
}

.pfp-piratenpost-compose::before,
.pfp-piratenpost-conversation::before {
  content: "";
  position: absolute;
  inset: -16px;
  pointer-events: none;
  border: 8px solid transparent;
  border-image: linear-gradient(90deg, #2b1005, #c4842c, #2b1005) 1;
  opacity: 0.52;
}

.pfp-piratenpost-compose::after {
  content: none;
}

.pfp-piratenpost-compose h2 {
  margin: 0;
  color: #351405;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
}

.pfp-piratenpost-compose p {
  margin: 10px 0 24px;
  color: #351405;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
}

.pfp-piratenpost-compose-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr);
  gap: 22px;
  align-items: start;
  padding-left: 10px;
}

.pfp-piratenpost-search {
  position: relative;
}

.pfp-piratenpost-compose input,
.pfp-piratenpost-compose textarea,
.pfp-piratenpost-reply textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(73, 31, 8, 0.45);
  border-radius: 0;
  background: rgba(255, 244, 207, 0.28);
  color: #2b1305;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  box-sizing: border-box;
}

.pfp-piratenpost-compose input {
  min-height: 46px;
  padding: 0 4px;
}

.pfp-piratenpost-compose textarea {
  min-height: 48px;
  padding: 12px 18px;
  border: 3px solid rgba(73, 31, 8, 0.55);
  border-radius: 14px;
  resize: vertical;
}

.pfp-piratenpost-compose input::placeholder,
.pfp-piratenpost-compose textarea::placeholder,
.pfp-piratenpost-reply textarea::placeholder {
  color: rgba(45, 18, 4, 0.86);
  opacity: 1;
}

.pfp-piratenpost-search > button {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #6b2b0b;
  font-weight: 900;
}

.pfp-piratenpost-user-results {
  position: absolute;
  z-index: 20;
  top: 52px;
  left: 0;
  right: 0;
  padding: 8px;
  border: 4px solid #5a250a;
  border-radius: 12px;
  background: #f8e8b8;
  box-shadow: 0 14px 22px rgba(31, 10, 2, 0.38);
}

.pfp-piratenpost-user-results button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #2b1305;
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.pfp-piratenpost-user-results button:hover {
  background: rgba(127, 61, 15, 0.14);
}

.pfp-piratenpost-user-results img,
.pfp-piratenpost-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.pfp-piratenpost-primary {
  grid-column: 2;
  width: min(100%, 330px);
  justify-self: end;
  margin-top: 12px;
  padding: 0 20px;
}

.pfp-piratenpost-conversation {
  min-height: 260px;
  padding: 138px 26px 24px;
  border-radius: 18px;
}

.pfp-piratenpost-conversation-title {
  position: absolute;
  top: -10px;
  left: 28px;
  right: 28px;
  min-height: 95px;
  display: grid;
  place-items: center;
  padding: 18px 20px 14px;
  border: 5px solid #5a250a;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 252, 215, 0.9), transparent 35%),
    linear-gradient(180deg, #f5e3ae, #d7ae61);
  box-shadow: inset 0 0 0 2px rgba(132, 75, 19, 0.5), 0 7px 0 #2a0e03;
  text-align: center;
}

.pfp-piratenpost-conversation-title span {
  display: block;
  color: #351405;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.pfp-piratenpost-conversation-title h2 {
  margin: 6px 0 0;
  color: #351405;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1;
  text-transform: uppercase;
}

.pfp-piratenpost-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 4px 14px;
}

.pfp-piratenpost-message {
  align-self: flex-start;
  width: min(100%, 520px);
  max-width: 92%;
  padding: 14px 16px;
  border: 3px solid rgba(183, 144, 72, 0.32);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(16, 78, 84, 0.95), rgba(12, 64, 72, 0.95)),
    #0f4f58;
  color: #fff3c7;
  box-shadow: inset 0 0 20px rgba(255, 231, 155, 0.08), 0 8px 0 #2a0e03;
}

.pfp-piratenpost-message.is-mine {
  align-self: flex-end;
  background:
    linear-gradient(180deg, rgba(25, 94, 96, 0.96), rgba(14, 69, 75, 0.96)),
    #155f63;
}

.pfp-piratenpost-message div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  font-weight: 900;
}

.pfp-piratenpost-message time {
  white-space: nowrap;
}

.pfp-piratenpost-message p {
  margin: 0;
  color: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pfp-piratenpost-message button {
  margin-top: 10px;
  padding: 6px 10px;
  border: 2px solid rgba(255, 226, 155, 0.36);
  border-radius: 999px;
  background: rgba(255, 239, 190, 0.12);
  color: #fff3c7;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.pfp-piratenpost-reply {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 18px;
}

.pfp-piratenpost-reply textarea {
  min-height: 72px;
  padding: 12px 14px;
  border: 3px solid rgba(73, 31, 8, 0.55);
  border-radius: 12px;
  background: rgba(255, 244, 207, 0.7);
  resize: vertical;
}

.pfp-piratenpost-reply .pfp-piratenpost-primary {
  grid-column: auto;
  width: auto;
  min-width: 150px;
  margin-top: 0;
}

.pfp-piratenpost-empty {
  padding: 18px;
  border: 3px dashed rgba(73, 31, 8, 0.35);
  border-radius: 12px;
  background: rgba(255, 241, 198, 0.54);
  color: #3a1705;
  font-weight: 900;
}

.pfp-piratenpost-empty-large {
  display: grid;
  place-items: center;
  min-height: 150px;
  text-align: center;
}

.pfp-piratenpost-inbox {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: center;
  margin-top: 38px;
}

.pfp-piratenpost-inbox-count {
  padding: 18px 28px;
  border: 6px solid #5a250a;
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 253, 221, 0.82), transparent 34%),
    linear-gradient(180deg, #f5e3ae, #d7ae61);
  color: #351405;
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: inset 0 0 0 2px rgba(132, 75, 19, 0.5), 0 8px 0 #2a0e03;
}

.pfp-piratenpost-thread-list {
  display: flex;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  padding: 6px 4px 12px;
  scrollbar-color: #9a5a18 rgba(43, 16, 5, 0.3);
}

.pfp-piratenpost-thread {
  display: grid;
  grid-template-columns: 42px minmax(130px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 230px;
  max-width: 280px;
  padding: 10px;
  border: 4px solid #4a1b06;
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 244, 200, 0.68), transparent 24%),
    linear-gradient(180deg, #8b4b13, #5b2407);
  color: #fff4cb;
  font: inherit;
  text-align: left;
  box-shadow: inset 0 0 0 2px #c0812a, 0 5px 0 #2a0e03;
}

.pfp-piratenpost-thread.is-active {
  border-color: #ffd37b;
  box-shadow: inset 0 0 0 2px #ffe5a7, 0 0 0 3px rgba(255, 186, 67, 0.26), 0 5px 0 #2a0e03;
}

.pfp-piratenpost-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f6d88e;
  color: #5b2407;
  font-family: Arial, sans-serif;
  font-weight: 900;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px rgba(91, 36, 7, 0.55);
}

.pfp-piratenpost-thread strong,
.pfp-piratenpost-thread em {
  display: block;
  min-width: 0;
}

.pfp-piratenpost-thread em {
  overflow: hidden;
  color: rgba(255, 244, 203, 0.8);
  font-size: 0.86rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pfp-piratenpost-thread b {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0f4f58;
  color: #fff4cb;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
}

.pfp-piratenpost-props {
  display: none;
}

@media (max-width: 980px) {
  .pfp-piratenpost-stage {
    padding: 22px 18px 140px;
  }

  .pfp-piratenpost-header-row,
  .pfp-piratenpost-main-grid,
  .pfp-piratenpost-inbox {
    grid-template-columns: 1fr;
  }

  .pfp-piratenpost-toolbar {
    gap: 16px;
  }

  .pfp-piratenpost-toolbar-line.is-secondary {
    max-width: none;
    margin-left: 0;
  }

  .pfp-piratenpost-main-grid {
    margin-top: 34px;
  }
}

@media (max-width: 620px) {
  .pfp-piratenpost-page {
    width: min(100% - 10px, 560px);
  }

  .pfp-piratenpost-stage {
    min-height: 0;
    padding: 14px 12px 28px;
    border-radius: 12px;
  }

  .pfp-piratenpost-header-row {
    gap: 22px;
  }

  .pfp-piratenpost-hero {
    width: 100%;
    min-height: 112px;
    padding: 24px 18px 18px;
    box-sizing: border-box;
    overflow: hidden;
    border-width: 5px;
    border-radius: 16px;
  }

  .pfp-piratenpost-hero h1 {
    font-size: clamp(2.15rem, 13vw, 3.35rem);
    line-height: 0.98;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-shadow: 0 3px 0 #210b02, 0 0 12px rgba(255, 211, 91, 0.3);
  }

  .pfp-piratenpost-kicker {
    font-size: clamp(0.86rem, 4.2vw, 1rem);
    white-space: nowrap;
  }

  .pfp-piratenpost-lantern {
    width: 28px;
    height: 42px;
    bottom: -28px;
  }

  .pfp-piratenpost-compose-grid,
  .pfp-piratenpost-reply {
    grid-template-columns: 1fr;
  }

  .pfp-piratenpost-toolbar-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-width: 4px;
    border-radius: 14px;
  }

  .pfp-piratenpost-toolbar-line.is-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pfp-piratenpost-toolbar button,
  .pfp-piratenpost-primary {
    min-width: 0;
    min-height: 46px;
    padding: 0 8px;
    font-size: clamp(0.82rem, 4vw, 1rem);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.05;
  }

  .pfp-piratenpost-compose,
  .pfp-piratenpost-conversation {
    padding-left: 18px;
    padding-right: 18px;
  }

  .pfp-piratenpost-compose {
    padding-bottom: 104px;
  }

  .pfp-piratenpost-compose-grid {
    padding-left: 0;
  }

  .pfp-piratenpost-primary,
  .pfp-piratenpost-reply .pfp-piratenpost-primary {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }

  .pfp-piratenpost-conversation {
    padding-top: 130px;
  }

  .pfp-piratenpost-conversation-title {
    left: 16px;
    right: 16px;
  }

  .pfp-piratenpost-inbox-count {
    font-size: 1.65rem;
  }

  .pfp-piratenpost-thread {
    min-width: 220px;
  }

  .pfp-piratenpost-props {
    display: none;
  }
}

.pfp-overview-page {
  width: min(760px, calc(100% - 18px));
  box-sizing: border-box;
  margin: 0 auto 28px;
  padding: 18px 18px 32px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 84px),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(0,0,0,0.16)),
    repeating-linear-gradient(90deg, #3a1606 0 76px, #55270d 76px 152px, #783d16 152px 228px);
  box-shadow: 0 22px 48px rgba(37, 16, 4, 0.22);
  color: #fff4cb;
}

.pfp-overview-page .step-tracker {
  box-sizing: border-box;
  width: min(100%, 540px);
  max-width: 540px;
  border: 7px solid #4a1b06;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 2px #d9a24c,
    0 8px 0 #2a0e03,
    0 18px 34px rgba(30, 10, 2, 0.32);
  overflow: hidden;
}

.pfp-overview-page .st-btn {
  min-width: min(72%, 230px);
  padding: 0.55rem 1rem;
  border: 3px solid #552105;
  border-radius: 9px;
  background: linear-gradient(180deg, #a95f18 0%, #733106 100%);
  color: #fff8d9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 2px 0 rgba(52, 20, 2, 0.85);
  box-shadow: inset 0 0 0 2px #d7a05a, 0 4px 0 #431502;
}

.pfp-overview-page .st-btn:active {
  box-shadow: inset 0 0 0 2px #d7a05a, 0 1px 0 #431502;
}

.pfp-overview-clock {
  width: fit-content;
  max-width: 100%;
  margin: 14px auto 0;
  padding: 7px 16px;
  border: 3px solid #4a1b06;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff2bb, #d69b45);
  color: #371404;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42), 0 5px 0 #2a0e03;
}

.pfp-overview-cashbox,
.pfp-harbor-order-cta,
.pfp-active-harbor-order {
  box-sizing: border-box;
  width: min(100%, 540px);
  max-width: none;
  margin: 18px auto 0;
  border: 6px solid #4a1b06;
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 8%, rgba(255,255,255,0.42), transparent 24%),
    linear-gradient(180deg, #fff4c7 0%, #eed18b 100%);
  color: #361304;
  box-shadow:
    inset 0 0 0 2px #d9a24c,
    0 8px 0 #2a0e03,
    0 18px 34px rgba(30, 10, 2, 0.28);
}

.pfp-overview-cashbox {
  padding: 18px;
}

.pfp-daily-sum {
  margin-bottom: 16px;
  text-align: center;
}

.pfp-daily-sum h2 {
  margin: 0;
  color: #351303;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.54);
}

.pfp-daily-sum small,
.pfp-daily-sum__label {
  color: #7a4715 !important;
  font-size: 0.58em;
}

.pfp-daily-sum > div {
  margin-top: 5px;
  color: #704215;
  font-weight: 800;
}

.pfp-overview-sync-hint {
  margin-bottom: 10px;
  text-align: center;
  color: #7a4715;
  font-size: 0.92rem;
  font-weight: 800;
}

.pfp-overview-quick-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.pfp-overview-free-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(148px, 0.8fr);
  gap: 10px;
  margin: 16px 0 0;
}

.pfp-overview-free-add input {
  min-width: 0;
  border: 3px solid rgba(74, 27, 6, 0.56);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff7d9, #f0d798);
  color: #351303;
  font-weight: 800;
  box-shadow: inset 0 2px 7px rgba(77, 29, 6, 0.16);
}

.pfp-overview-cashbox .pfand-button,
.pfp-overview-search-button,
.pfp-overview-quick-mark-button,
.pfp-harbor-order-cta__button,
.pfp-active-harbor-order__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  border: 3px solid #4a1b06;
  border-radius: 11px;
  background: linear-gradient(180deg, #b96f1e 0%, #7b3608 100%);
  color: #fff7d6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(52, 20, 2, 0.9);
  box-shadow: inset 0 0 0 2px #dfa95f, 0 5px 0 #2a0e03;
  cursor: pointer;
}

.pfp-overview-cashbox .pfand-button:hover,
.pfp-overview-cashbox .pfand-button:focus-visible,
.pfp-overview-search-button:hover,
.pfp-overview-search-button:focus-visible,
.pfp-overview-quick-mark-button:hover,
.pfp-overview-quick-mark-button:focus-visible,
.pfp-harbor-order-cta__button:hover,
.pfp-harbor-order-cta__button:focus-visible,
.pfp-active-harbor-order__actions button:hover,
.pfp-active-harbor-order__actions button:focus-visible {
  transform: translateY(-1px);
  color: #fff9df;
  box-shadow: inset 0 0 0 2px #f0c06e, 0 7px 0 #2a0e03;
}

.pfp-overview-cashbox .pfand-button:disabled,
.pfp-overview-search-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.pfp-overview-search-action {
  margin-top: 20px;
  text-align: center;
}

.pfp-overview-search-button {
  width: min(100%, 310px);
  background: linear-gradient(180deg, #167fb0 0%, #07567d 100%);
  box-shadow: inset 0 0 0 2px #62b8d9, 0 5px 0 #2a0e03;
}

.pfp-overview-quick-mark-button {
  box-sizing: border-box;
  display: flex;
  width: min(540px, 100%);
  margin: 18px auto 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, #f0a318 0%, #b85b06 100%);
  color: #2d1002;
  text-shadow: 0 1px 0 rgba(255,255,255,0.36);
}

.pfp-overview-page .pfp-expedition-overview-card {
  box-sizing: border-box;
  width: min(100%, 540px);
  max-width: none;
  margin-top: 18px;
}

.pfp-harbor-order-cta {
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  padding: 18px;
}

.pfp-harbor-order-cta__icon,
.pfp-active-harbor-order__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff2bd, #d39a43);
  color: #351303;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.42), 0 4px 0 #4a1b06;
}

.pfp-harbor-order-cta__kicker,
.pfp-active-harbor-order__kicker {
  color: #7a4715;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pfp-harbor-order-cta h2,
.pfp-active-harbor-order h2 {
  margin: 2px 0 0;
  color: #351303;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.1;
}

.pfp-harbor-order-cta p,
.pfp-active-harbor-order p {
  margin: 10px 0 0;
  color: #4d2c0d;
  font-weight: 750;
  line-height: 1.42;
}

.pfp-active-harbor-order {
  padding: 18px;
}

.pfp-active-harbor-order.is-complete {
  background:
    radial-gradient(circle at 16% 8%, rgba(255,255,255,0.42), transparent 24%),
    linear-gradient(180deg, #fff4c7 0%, #e8c57a 100%);
}

.pfp-active-harbor-order__head {
  align-items: center;
}

.pfp-active-harbor-order__meta,
.pfp-active-harbor-order__progress {
  color: #4d2c0d;
}

.pfp-active-harbor-order__meta span,
.pfp-active-harbor-order__progress span {
  opacity: 1;
  font-weight: 800;
}

.pfp-active-harbor-order__bar {
  height: 13px;
  background: rgba(74, 27, 6, 0.18);
  box-shadow: inset 0 0 0 1px rgba(74, 27, 6, 0.16);
}

.pfp-active-harbor-order__bar span {
  background: linear-gradient(90deg, #0e86bd, #1aa66f, #f0a318);
}

.pfp-active-harbor-order__actions {
  justify-content: flex-end;
}

.pfp-active-harbor-order__actions button.is-primary {
  background: linear-gradient(180deg, #167fb0 0%, #07567d 100%);
  box-shadow: inset 0 0 0 2px #62b8d9, 0 5px 0 #2a0e03;
}

.pfp-active-harbor-order__actions button.is-secondary {
  background: linear-gradient(180deg, #b96f1e 0%, #7b3608 100%);
}

.pfp-active-harbor-order__error {
  border: 2px solid rgba(116, 24, 8, 0.35);
  background: rgba(255, 236, 204, 0.75);
  color: #731f08;
}

@media (max-width: 620px) {
  .pfp-overview-page {
    width: 100%;
    margin-bottom: 0;
    padding: 10px 10px 26px;
    border-radius: 0;
  }

  .pfp-overview-page .step-tracker {
    border-width: 5px;
    border-radius: 14px;
  }

  .pfp-overview-cashbox,
  .pfp-harbor-order-cta,
  .pfp-active-harbor-order {
    border-width: 5px;
    border-radius: 16px;
  }

  .pfp-overview-cashbox {
    padding: 14px;
  }

  .pfp-overview-free-add {
    grid-template-columns: 1fr;
  }

  .pfp-overview-cashbox .pfand-button,
  .pfp-overview-search-button,
  .pfp-overview-quick-mark-button {
    width: 100%;
  }

  .pfp-overview-quick-mark-button {
    margin-top: 14px;
  }

  .pfp-harbor-order-cta {
    grid-template-columns: auto 1fr;
  }

  .pfp-harbor-order-cta__button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .pfp-active-harbor-order__actions {
    justify-content: stretch;
  }

  .pfp-active-harbor-order__actions button {
    flex: 1 1 100%;
  }
}

@media (max-width: 430px) {
  .pfp-overview-quick-values {
    gap: 8px;
  }

  .pfp-overview-cashbox .pfand-button {
    min-height: 44px;
    padding: 0.65rem 0.35rem;
    font-size: 0.86rem;
  }

  .pfp-overview-page .st-btn {
    min-width: 56%;
    padding: 0.46rem 0.75rem;
    font-size: 0.92rem;
  }

  .pfp-overview-page .st-footer {
    width: 88%;
    font-size: 0.68rem;
  }
}


/*# sourceMappingURL=style.css.map*/