/**
 * Player-facing styles for The Dealers of Destiny.
 */

.dodst-game {
	--dodst-bg: #11100d;
	--dodst-panel: rgba(31, 28, 21, 0.94);
	--dodst-border: rgba(211, 177, 94, 0.35);
	--dodst-gold: #d3b15e;
	--dodst-text: #f5edd9;
	--dodst-muted: #b9ad91;
	background:
		radial-gradient(circle at top right, rgba(125, 77, 29, 0.3), transparent 40%),
		linear-gradient(145deg, #17130e, var(--dodst-bg));
	border: 1px solid var(--dodst-border);
	border-radius: 18px;
	box-sizing: border-box;
	color: var(--dodst-text);
	font-family: Georgia, "Times New Roman", serif;
	margin: 2rem auto;
	max-width: 1180px;
	overflow: hidden;
	padding: clamp(1rem, 3vw, 2rem);
}

.dodst-game *,
.dodst-game *::before,
.dodst-game *::after {
	box-sizing: border-box;
}

.dodst-game h1,
.dodst-game h2,
.dodst-game p {
	margin-top: 0;
}

.dodst-game h1 {
	color: var(--dodst-gold);
	font-size: clamp(2rem, 7vw, 4.8rem);
	line-height: 0.95;
	margin-bottom: 0.65rem;
}

.dodst-game h2 {
	color: var(--dodst-text);
	font-size: 1.3rem;
}

.dodst-eyebrow {
	color: var(--dodst-gold);
	font-family: system-ui, sans-serif;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.dodst-card {
	background: var(--dodst-panel);
	border: 1px solid var(--dodst-border);
	border-radius: 14px;
	padding: 1.2rem;
}

.dodst-entry {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 65vh;
}

.dodst-entry__card {
	max-width: 620px;
	text-align: center;
	width: 100%;
}

.dodst-hero {
	align-items: center;
	display: flex;
	gap: 1.5rem;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}

.dodst-level {
	align-items: center;
	aspect-ratio: 1;
	background: rgba(211, 177, 94, 0.1);
	border: 1px solid var(--dodst-gold);
	border-radius: 50%;
	display: flex;
	flex: 0 0 100px;
	flex-direction: column;
	justify-content: center;
}

.dodst-level span,
.dodst-card > span {
	color: var(--dodst-muted);
	font-family: system-ui, sans-serif;
	font-size: 0.75rem;
	text-transform: uppercase;
}

.dodst-level strong,
.dodst-card > strong {
	color: var(--dodst-text);
	font-size: 1.7rem;
}

.dodst-stats {
	display: grid;
	gap: 1rem;
	grid-template-columns: 2fr 1fr 1fr;
	margin-bottom: 1rem;
}

.dodst-stats .dodst-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.dodst-health {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 100px;
	height: 8px;
	overflow: hidden;
}

.dodst-health i {
	background: linear-gradient(90deg, #7d1f1f, #dc6767);
	display: block;
	height: 100%;
}

.dodst-layout {
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
}

.dodst-map-placeholder {
	align-items: end;
	background:
		linear-gradient(rgba(15, 13, 9, 0.25), rgba(15, 13, 9, 0.95)),
		repeating-linear-gradient(35deg, rgba(211, 177, 94, 0.06) 0 1px, transparent 1px 28px),
		#292316;
	display: flex;
	min-height: 380px;
}

.dodst-equipment {
	margin: 0;
}

.dodst-equipment div {
	border-bottom: 1px solid var(--dodst-border);
	padding: 0.8rem 0;
}

.dodst-equipment div:last-child {
	border-bottom: 0;
}

.dodst-equipment dt {
	color: var(--dodst-muted);
	font-family: system-ui, sans-serif;
	font-size: 0.75rem;
	text-transform: uppercase;
}

.dodst-equipment dd {
	margin: 0.25rem 0 0;
}

.dodst-actions,
.dodst-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	justify-content: center;
	margin-top: 1.25rem;
}

.dodst-button,
.dodst-nav button {
	background: var(--dodst-gold);
	border: 1px solid var(--dodst-gold);
	border-radius: 8px;
	color: #18140d;
	cursor: pointer;
	display: inline-block;
	font-family: system-ui, sans-serif;
	font-size: 0.9rem;
	font-weight: 800;
	padding: 0.8rem 1.1rem;
	text-decoration: none;
}

.dodst-button--secondary {
	background: transparent;
	color: var(--dodst-gold);
}

.dodst-nav button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.dodst-form {
	display: grid;
	gap: 0.8rem;
	margin: 1.5rem auto 0;
	max-width: 420px;
	text-align: left;
}

.dodst-form label {
	color: var(--dodst-muted);
	font-family: system-ui, sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
}

.dodst-form input:not([type="checkbox"]):not([type="radio"]) {
	background-color: #0d0c09;
	border: 1px solid var(--dodst-border, #665b42);
	border-radius: 8px;
	color: #f4ead2;
	caret-color: #f4ead2;
	font-size: 1rem;
	padding: 0.85rem;
	width: 100%;
}

.dodst-form input:not([type="checkbox"]):not([type="radio"])::placeholder {
	color: #b9ad91;
	opacity: 1;
}

.dodst-form input:not([type="checkbox"]):not([type="radio"]):focus {
	border-color: #d4af37;
	box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
	outline: 0;
}

.dodst-form input:-webkit-autofill,
.dodst-form input:-webkit-autofill:hover,
.dodst-form input:-webkit-autofill:focus {
	-webkit-text-fill-color: #f4ead2;
	box-shadow: 0 0 0 1000px #0d0c09 inset;
	caret-color: #f4ead2;
}

.dodst-notice {
	background: rgba(77, 126, 68, 0.22);
	border: 1px solid rgba(118, 182, 106, 0.45);
	border-radius: 8px;
	margin-bottom: 1rem;
	padding: 0.85rem;
}

.dodst-notice--error {
	background: rgba(145, 48, 48, 0.2);
	border-color: rgba(220, 103, 103, 0.55);
}

@media (max-width: 720px) {
	.dodst-hero {
		align-items: flex-start;
	}

	.dodst-level {
		flex-basis: 76px;
	}

	.dodst-stats,
	.dodst-layout {
		grid-template-columns: 1fr;
	}

	.dodst-map-placeholder {
		min-height: 280px;
	}
}


.dodst-map-placeholder {
	position: relative;
	overflow: hidden;
}

.dodst-map-grid {
	background:
		linear-gradient(rgba(211, 177, 94, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(211, 177, 94, 0.08) 1px, transparent 1px);
	background-size: 40px 40px;
	inset: 0;
	position: absolute;
}

.dodst-map-copy {
	position: relative;
	z-index: 2;
	max-width: 560px;
}

.dodst-map-player {
	align-items: center;
	background: rgba(211, 177, 94, 0.18);
	border: 1px solid var(--dodst-gold);
	border-radius: 50%;
	color: var(--dodst-gold);
	display: flex;
	font-size: 1.2rem;
	height: 48px;
	justify-content: center;
	left: 60%;
	position: absolute;
	top: 35%;
	width: 48px;
}

.dodst-location-status {
	color: var(--dodst-muted);
	font-family: system-ui, sans-serif;
	font-size: 0.85rem;
	margin: 0.8rem 0 0;
	min-height: 1.3em;
}

.dodst-divider {
	border: 0;
	border-top: 1px solid var(--dodst-border);
	margin: 1.2rem 0;
}


.dodst-attribute-rolls,
.dodst-attributes {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dodst-attribute-rolls div,
.dodst-attributes .dodst-card {
	background: rgba(211, 177, 94, 0.08);
	border: 1px solid var(--dodst-border);
	border-radius: 10px;
	padding: 0.85rem;
	text-align: center;
}

.dodst-attribute-rolls span,
.dodst-attributes span {
	color: var(--dodst-muted);
	display: block;
	font-family: system-ui, sans-serif;
	font-size: 0.72rem;
	text-transform: uppercase;
}

.dodst-attribute-rolls strong,
.dodst-attributes strong {
	color: var(--dodst-gold);
	display: block;
	font-size: 1.65rem;
	margin-top: 0.25rem;
}

.dodst-attributes {
	margin-bottom: 1rem;
}

@media (max-width: 520px) {
	.dodst-attribute-rolls,
	.dodst-attributes {
		grid-template-columns: 1fr;
	}
}


.dodst-world-card {
	overflow: hidden;
	padding: 0;
}

.dodst-world-toolbar {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding: 1rem 1.2rem;
}

.dodst-world-toolbar h2 {
	margin-bottom: 0;
}

.dodst-world-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.dodst-world-badges span {
	background: rgba(211, 177, 94, 0.1);
	border: 1px solid var(--dodst-border);
	border-radius: 999px;
	font-family: system-ui, sans-serif;
	font-size: 0.72rem;
	padding: 0.35rem 0.65rem;
	text-transform: capitalize;
}

.dodst-world-map {
	background:
		radial-gradient(circle at 60% 45%, rgba(78, 111, 62, 0.22), transparent 25%),
		linear-gradient(rgba(211, 177, 94, 0.09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(211, 177, 94, 0.09) 1px, transparent 1px),
		#211d13;
	background-size: auto, 42px 42px, 42px 42px, auto;
	cursor: grab;
	height: 430px;
	overflow: hidden;
	position: relative;
	touch-action: none;
}

.dodst-world-map:active {
	cursor: grabbing;
}

.dodst-world-map[data-period="night"] {
	filter: brightness(0.68) saturate(0.85);
}

.dodst-world-map[data-period="dawn"],
.dodst-world-map[data-period="dusk"] {
	filter: sepia(0.24);
}

.dodst-world-map[data-weather="rain"]::after,
.dodst-world-map[data-weather="storm"]::after {
	background: repeating-linear-gradient(115deg, transparent 0 12px, rgba(180, 210, 225, 0.18) 13px 14px);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.dodst-world-map[data-weather="mist"]::after {
	background: rgba(225, 225, 215, 0.18);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.dodst-world-layer {
	inset: 0;
	position: absolute;
}

.dodst-world-empty {
	left: 50%;
	max-width: 430px;
	position: absolute;
	text-align: center;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 2rem);
	z-index: 5;
}

.dodst-marker {
	align-items: center;
	background: rgba(20, 17, 11, 0.9);
	border: 1px solid var(--dodst-gold);
	border-radius: 50%;
	color: var(--dodst-text);
	display: flex;
	font-size: 1.25rem;
	height: 42px;
	justify-content: center;
	padding: 0;
	position: absolute;
	transform: translate(-50%, -50%);
	transition: left 0.8s ease, top 0.8s ease;
	width: 42px;
	z-index: 2;
}

.dodst-marker--self {
	box-shadow: 0 0 0 8px rgba(211, 177, 94, 0.14);
	color: var(--dodst-gold);
	z-index: 4;
}

.dodst-marker--player {
	border-color: #9bb6dd;
}

.dodst-marker--creature {
	border-color: #bd7b5c;
}

.dodst-map-controls {
	display: flex;
	gap: 0.5rem;
	padding: 0.8rem 1rem;
}

.dodst-map-controls button {
	background: rgba(211, 177, 94, 0.1);
	border: 1px solid var(--dodst-border);
	border-radius: 7px;
	color: var(--dodst-text);
	cursor: pointer;
	min-height: 34px;
	padding: 0.35rem 0.7rem;
}

#dodst-nearby-status {
	display: grid;
	gap: 0.55rem;
}

#dodst-nearby-status span {
	border-bottom: 1px solid var(--dodst-border);
	padding-bottom: 0.45rem;
}


.dodst-marker--creature.is-engageable {
	animation: dodst-pulse 1.8s infinite;
	box-shadow: 0 0 0 7px rgba(189, 123, 92, 0.2);
	cursor: pointer;
}

@keyframes dodst-pulse {
	50% {
		box-shadow: 0 0 0 13px rgba(189, 123, 92, 0.04);
		transform: translate(-50%, -50%) scale(1.08);
	}
}

.dodst-nav button.is-active {
	background: var(--dodst-gold);
	color: #17130c;
}

.dodst-inventory-panel {
	margin-top: 1rem;
}

.dodst-panel-heading {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

.dodst-inventory-grid {
	display: grid;
	gap: 0.9rem;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	margin-top: 1rem;
}

.dodst-item {
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid var(--dodst-border);
	border-left-width: 4px;
	border-radius: 8px;
	display: grid;
	gap: 0.8rem;
	grid-template-columns: 48px 1fr;
	padding: 1rem;
}

.dodst-item h3,
.dodst-item p {
	margin: 0 0 0.4rem;
}

.dodst-item small,
.dodst-item span {
	font-family: system-ui, sans-serif;
	font-size: 0.75rem;
	opacity: 0.76;
	text-transform: capitalize;
}

.dodst-item__symbol {
	font-size: 2rem;
	line-height: 1;
}

.dodst-rarity--common {
	border-left-color: #a5a5a5;
}

.dodst-rarity--uncommon {
	border-left-color: #6da56d;
}

.dodst-rarity--rare {
	border-left-color: #5b86c5;
}

.dodst-rarity--epic {
	border-left-color: #9f68bc;
}

.dodst-rarity--legendary {
	border-left-color: #d8a838;
}

.dodst-potion-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.75rem;
}

.dodst-potion-actions button {
	background: rgba(211, 177, 94, 0.08);
	border: 1px solid var(--dodst-border);
	border-radius: 5px;
	color: var(--dodst-text);
	cursor: pointer;
	font-size: 0.72rem;
	padding: 0.3rem 0.5rem;
	text-transform: capitalize;
}

.dodst-action-message {
	min-height: 1.5em;
}

.dodst-modal[hidden] {
	display: none;
}

.dodst-modal {
	inset: 0;
	position: fixed;
	z-index: 99999;
}

.dodst-modal__backdrop {
	background: rgba(5, 5, 4, 0.84);
	inset: 0;
	position: absolute;
}

.dodst-modal__panel {
	background: #211d13;
	border: 1px solid var(--dodst-gold);
	border-radius: 12px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
	left: 50%;
	max-height: calc(100vh - 2rem);
	max-width: 560px;
	overflow-y: auto;
	padding: 1.5rem;
	position: absolute;
	text-align: center;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 2rem);
}

.dodst-modal__close {
	background: transparent;
	border: 0;
	color: var(--dodst-text);
	cursor: pointer;
	font-size: 1.8rem;
	position: absolute;
	right: 0.8rem;
	top: 0.4rem;
}

.dodst-creature-symbol {
	font-size: 4.5rem;
	line-height: 1;
	margin: 0.5rem 0;
}

.dodst-combat-bars {
	display: grid;
	gap: 0.7rem;
	margin: 1.2rem 0;
	text-align: left;
}

.dodst-combat-bars label {
	display: grid;
	font-family: system-ui, sans-serif;
	font-size: 0.8rem;
	gap: 0.25rem;
}

.dodst-combat-bars progress {
	height: 18px;
	width: 100%;
}

.dodst-combat-log {
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid var(--dodst-border);
	border-radius: 7px;
	max-height: 210px;
	overflow-y: auto;
	padding: 0.75rem;
	text-align: left;
}

.dodst-combat-log p {
	margin: 0 0 0.45rem;
}

.dodst-combat-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	justify-content: center;
	margin-top: 1rem;
}

@media (max-width: 620px) {
	.dodst-world-map {
		height: 360px;
	}

	.dodst-inventory-grid {
		grid-template-columns: 1fr;
	}
}


.dodst-guild-panel {
	margin-top: 1rem;
}

.dodst-guild-overview {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 1rem;
}

.dodst-guild-overview article {
	background: rgba(211, 177, 94, 0.08);
	border: 1px solid var(--dodst-border);
	border-radius: 8px;
	display: grid;
	gap: 0.25rem;
	padding: 0.8rem;
}

.dodst-guild-overview span {
	font-size: 0.75rem;
	text-transform: uppercase;
}

.dodst-guild-actions {
	align-items: end;
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-bottom: 1.2rem;
}

.dodst-guild-actions label {
	display: grid;
	gap: 0.35rem;
}

.dodst-guild-actions input:not([type="checkbox"]):not([type="radio"]) {
	background-color: #0d0c09;
	border: 1px solid var(--dodst-border, #665b42);
	border-radius: 8px;
	color: #f4ead2;
	caret-color: #f4ead2;
	max-width: 130px;
	padding: 0.65rem 0.75rem;
}

.dodst-guild-actions input:not([type="checkbox"]):not([type="radio"])::placeholder {
	color: #b9ad91;
	opacity: 1;
}

.dodst-guild-actions input:not([type="checkbox"]):not([type="radio"]):focus {
	border-color: #d4af37;
	box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
	outline: 0;
}

.dodst-guild-actions input:-webkit-autofill,
.dodst-guild-actions input:-webkit-autofill:hover,
.dodst-guild-actions input:-webkit-autofill:focus {
	-webkit-text-fill-color: #f4ead2;
	box-shadow: 0 0 0 1000px #0d0c09 inset;
	caret-color: #f4ead2;
}

.dodst-guild-columns {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dodst-guild-columns section,
.dodst-guild-card,
.dodst-objective {
	background: rgba(0, 0, 0, 0.16);
	border: 1px solid var(--dodst-border);
	border-radius: 8px;
	padding: 1rem;
}

.dodst-guild-columns ul {
	display: grid;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dodst-guild-columns li {
	display: flex;
	gap: 0.6rem;
	justify-content: space-between;
}

.dodst-objective {
	margin-bottom: 0.7rem;
}

.dodst-objective > div {
	display: flex;
	justify-content: space-between;
}

.dodst-objective progress {
	width: 100%;
}

.dodst-guild-list {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 720px) {
	.dodst-guild-overview,
	.dodst-guild-columns {
		grid-template-columns: 1fr;
	}
}


/* Phase 0.8: real Leaflet map. */
.dodst-world-map {
	background: #000;
	filter: none !important;
	height: 520px;
	position: relative;
}

.dodst-leaflet-map {
	background: #000;
	height: 100%;
	width: 100%;
	z-index: 1;
}

.dodst-world-empty {
	background: rgba(0, 0, 0, 0.88);
	border: 1px solid var(--dodst-border);
	border-radius: 10px;
	padding: 1.2rem;
	z-index: 1000;
}

.dodst-leaflet-icon {
	background: transparent;
	border: 0;
}

.dodst-leaflet-icon span {
	align-items: center;
	background: #080808;
	border: 2px solid #c89b3c;
	border-radius: 50%;
	box-shadow: 0 0 14px rgba(200, 155, 60, 0.65);
	color: #f7e2a5;
	display: flex;
	font-size: 1.2rem;
	height: 38px;
	justify-content: center;
	width: 38px;
}

.dodst-leaflet-icon--self span {
	background: #141006;
	border-color: #f2c65d;
	box-shadow: 0 0 0 8px rgba(242, 198, 93, 0.18), 0 0 18px rgba(242, 198, 93, 0.85);
}

.dodst-leaflet-icon--player span {
	border-color: #9ab4d9;
	color: #dceaff;
}

.dodst-leaflet-icon--creature span {
	border-color: #9f473b;
	box-shadow: 0 0 12px rgba(159, 71, 59, 0.8);
}

.dodst-world-map[data-period="night"] .leaflet-tile-pane {
	filter: brightness(0.42) saturate(0.7) hue-rotate(8deg);
}

.dodst-world-map[data-period="dusk"] .leaflet-tile-pane,
.dodst-world-map[data-period="dawn"] .leaflet-tile-pane {
	filter: brightness(0.72) sepia(0.28);
}

.dodst-world-map[data-weather="mist"] .leaflet-tile-pane {
	filter: brightness(0.7) contrast(0.78);
}

.dodst-world-map[data-weather="storm"] .leaflet-tile-pane {
	filter: brightness(0.34) saturate(0.58);
}

.dodst-world-map .leaflet-control-zoom a,
.dodst-world-map .leaflet-control-attribution {
	background: rgba(0, 0, 0, 0.88);
	color: #ead79b;
}

.dodst-world-map .leaflet-control-zoom a {
	border-bottom-color: #5c4924;
}

.dodst-world-map .leaflet-popup-content-wrapper,
.dodst-world-map .leaflet-popup-tip {
	background: #080808;
	color: #eee3c6;
}

.dodst-world-map .leaflet-popup-content-wrapper {
	border: 1px solid #8f6c2d;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.dodst-map-popup {
	display: grid;
	gap: 0.4rem;
	min-width: 160px;
}

.dodst-map-popup strong {
	color: #f2c65d;
	font-size: 1rem;
}

.dodst-map-toggle {
	align-items: center;
	display: inline-flex;
	gap: 0.4rem;
	margin-left: auto;
}

.dodst-weather-overlay {
	background: rgba(0, 0, 0, 0.86);
	border: 1px solid #8f6c2d;
	border-radius: 6px;
	color: #ead79b;
	font-weight: 700;
	margin-top: 44px;
	padding: 0.45rem 0.65rem;
}

.dodst-weather-overlay--storm {
	box-shadow: 0 0 18px rgba(124, 145, 190, 0.6);
}

@media (max-width: 720px) {
	.dodst-world-map {
		height: 65vh;
		min-height: 420px;
	}
}


/* Phase 6: Living World markers. */
.dodst-leaflet-icon--world span {
	background: #000;
	border-color: #8f6c2d;
	box-shadow: 0 0 15px rgba(200, 155, 60, 0.5);
	font-size: 1.35rem;
}

.dodst-leaflet-icon--world.dodst-rarity--uncommon span {
	border-color: #4da36b;
	box-shadow: 0 0 16px rgba(77, 163, 107, 0.7);
}

.dodst-leaflet-icon--world.dodst-rarity--rare span {
	border-color: #5a8bd8;
	box-shadow: 0 0 18px rgba(90, 139, 216, 0.75);
}

.dodst-leaflet-icon--world.dodst-rarity--legendary span {
	border-color: #f1bf45;
	box-shadow: 0 0 10px #f1bf45, 0 0 24px rgba(220, 71, 32, 0.9);
	animation: dodst-legendary-pulse 1.8s ease-in-out infinite;
}

.dodst-world-node-popup p {
	margin: 0.25rem 0;
}

.dodst-rarity-label {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@keyframes dodst-legendary-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
	.dodst-leaflet-icon--world.dodst-rarity--legendary span {
		animation: none;
	}
}


.dodst-initiation {
	background: #000;
	border: 1px solid var(--dodst-border);
	border-radius: 8px;
	margin: 0.8rem 0;
	padding: 0.9rem;
}

.dodst-initiation h4 {
	color: var(--dodst-gold);
	margin: 0 0 0.6rem;
}

.dodst-initiation ul {
	display: grid;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dodst-initiation li::before {
	content: "○";
	display: inline-block;
	margin-right: 0.45rem;
}

.dodst-initiation li.is-complete {
	color: #9fd3a5;
}

.dodst-initiation li.is-complete::before {
	content: "✓";
}


/* Phase 7: Hunt Board. */
.dodst-bounty-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dodst-bounty-card {
	background: #050505;
	border: 1px solid var(--dodst-border);
	border-radius: 10px;
	box-shadow: inset 0 0 20px rgba(143, 108, 45, 0.08);
	padding: 1rem;
}

.dodst-bounty-card.is-complete {
	border-color: #c89b3c;
	box-shadow: 0 0 16px rgba(200, 155, 60, 0.22);
}

.dodst-bounty-card__heading {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

.dodst-bounty-card__heading h3 {
	color: var(--dodst-gold);
	margin: 0;
}

.dodst-bounty-card__heading span {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dodst-bounty-card progress {
	display: block;
	margin-top: 0.35rem;
	width: 100%;
}


/* Phase 8: player account gateway. */
.dodst-account-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	justify-content: center;
	margin-top: 1.25rem;
}

.dodst-account-links a {
	color: var(--dodst-gold);
}

.dodst-account-check {
	align-items: center;
	display: flex;
	gap: 0.5rem;
}

.dodst-account-check input {
	height: auto;
	width: auto;
}


/* Phase 7: The Dealer. */
.dodst-leaflet-icon--world.dodst-rarity--mythic span {
	animation: dodst-dealer-pulse 1.8s infinite;
	filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.95));
	font-size: 2rem;
}

.dodst-dealer-modal .dodst-modal__panel {
	background: radial-gradient(circle at top, #23190b, #050505 58%);
	border: 1px solid #d4af37;
	max-width: 760px;
}

.dodst-dealer-symbol {
	font-size: 3rem;
	margin: 0;
	text-align: center;
}

.dodst-dealer-warning {
	border-left: 3px solid #8f1d1d;
	color: #d8c7a0;
	padding-left: 0.8rem;
}

.dodst-dealer-bargains {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.dodst-dealer-bargain {
	background: rgba(0, 0, 0, 0.72);
	border: 1px solid rgba(212, 175, 55, 0.45);
	border-radius: 8px;
	padding: 1rem;
}

.dodst-dealer-bargain h3,
.dodst-dealer-result h3 {
	color: #d4af37;
}

.dodst-dealer-bargain blockquote {
	font-style: italic;
	margin: 0.75rem 0;
}

.dodst-dealer-result {
	border-top: 1px solid rgba(212, 175, 55, 0.35);
	margin-top: 1rem;
	padding-top: 1rem;
}

@keyframes dodst-dealer-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.18); }
}


/* Phase 8: player progression. */
.dodst-xp-card progress {
	display: block;
	height: 0.7rem;
	margin: 0.6rem 0 0.35rem;
	width: 100%;
}

.dodst-xp-card small {
	color: #c7b98f;
	display: block;
}

.dodst-level-up-modal .dodst-modal__panel {
	background: radial-gradient(circle at top, #2a210e, #080808 62%);
	border: 1px solid #d4af37;
	max-width: 520px;
	text-align: center;
}

.dodst-level-up-symbol {
	animation: dodst-level-up-pulse 1.4s infinite;
	color: #d4af37;
	font-size: 4rem;
	line-height: 1;
	margin: 0;
	text-shadow: 0 0 18px rgba(212, 175, 55, 0.85);
}

.dodst-level-up-modal ul {
	display: inline-block;
	text-align: left;
}

@keyframes dodst-level-up-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.12); }
}

.dodst-level-lock {
	color: #d89a62;
	display: block;
	font-weight: 700;
	margin-top: 0.35rem;
}


/* Phase 9: character advancement. */
.dodst-advancement-panel { margin-top: 1rem; }
.dodst-advancement-points,
.dodst-respec-box {
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid var(--dodst-border);
	border-radius: 8px;
	margin: 1rem 0;
	padding: 1rem;
}
.dodst-advancement-grid,
.dodst-derived-grid {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin-bottom: 1.25rem;
}
.dodst-advancement-card,
.dodst-derived-grid span {
	background: rgba(211, 177, 94, 0.06);
	border: 1px solid var(--dodst-border);
	border-radius: 8px;
	padding: 0.9rem;
}
.dodst-advancement-card h3 { color: var(--dodst-gold); margin-top: 0; }
.dodst-advancement-card strong { display: block; font-size: 1.8rem; margin-bottom: 0.7rem; }
.dodst-derived-grid span { display: flex; justify-content: space-between; }
.dodst-derived-grid strong { color: var(--dodst-gold); }
.dodst-combat-log { scroll-behavior: smooth; }


/* Phase 10: Equipment and loot. */
.dodst-equipment-panel {
	margin-top: 1rem;
}

.dodst-equipped-slots,
.dodst-equipment-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin: 1rem 0;
}

.dodst-slot,
.dodst-equipment-item {
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid var(--dodst-border);
	border-left-width: 4px;
	border-radius: 9px;
	padding: 1rem;
}

.dodst-slot {
	display: grid;
	gap: 0.3rem;
}

.dodst-slot > span,
.dodst-equipment-item span {
	font-family: system-ui, sans-serif;
	font-size: 0.72rem;
	text-transform: uppercase;
}

.dodst-equipment-item__heading {
	align-items: center;
	display: flex;
	gap: 0.75rem;
}

.dodst-equipment-item h3 {
	margin: 0;
}

.dodst-equipment-symbol {
	font-size: 2rem !important;
}

.dodst-equipment-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.dodst-equipment-actions .dodst-button {
	font-size: 0.75rem;
	padding: 0.55rem 0.7rem;
}

.dodst-compare {
	background: rgba(211, 177, 94, 0.08);
	border: 1px solid var(--dodst-border);
	border-radius: 6px;
	padding: 0.6rem;
}

.dodst-materials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.dodst-materials span {
	background: rgba(211, 177, 94, 0.08);
	border: 1px solid var(--dodst-border);
	border-radius: 999px;
	padding: 0.45rem 0.7rem;
}


/* Phase 11: merchants and temporary effects. */
.dodst-active-effects {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1rem;
}

.dodst-active-effects span {
	background: rgba(93, 42, 120, 0.28);
	border: 1px solid rgba(190, 130, 220, 0.55);
	border-radius: 999px;
	padding: 0.4rem 0.7rem;
}

.dodst-merchant-modal .dodst-modal__panel {
	background: radial-gradient(circle at top, #2c210f, #080808 65%);
	border: 1px solid #c89b3c;
	max-width: 860px;
}

.dodst-merchant-symbol {
	font-size: 3rem;
	margin: 0;
}

.dodst-merchant-policy {
	border-left: 3px solid #6ca36c;
	padding-left: 0.75rem;
	text-align: left;
}

.dodst-merchant-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin: 1rem 0;
}

.dodst-merchant-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	text-align: left;
}

.dodst-merchant-item {
	background: rgba(0, 0, 0, 0.34);
	border: 1px solid var(--dodst-border);
	border-left-width: 4px;
	border-radius: 8px;
	padding: 1rem;
}

.dodst-merchant-item h3 {
	color: var(--dodst-gold);
	margin-top: 0;
}


/* Phase 12: Potion Journal and Guild Knowledge. */
.dodst-potion-journal-panel {
	margin-top: 1rem;
}

.dodst-potion-journal-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	margin-top: 1rem;
}

.dodst-journal-entry {
	background: rgba(0, 0, 0, 0.26);
	border: 1px solid var(--dodst-border);
	border-left-width: 4px;
	border-radius: 10px;
	padding: 1rem;
}

.dodst-journal-heading {
	align-items: center;
	display: flex;
	gap: 0.8rem;
}

.dodst-journal-heading h3 {
	margin: 0;
}

.dodst-journal-symbol {
	font-size: 2rem;
}

.dodst-memory-meter {
	background: rgba(255,255,255,0.08);
	border-radius: 999px;
	height: 9px;
	margin: 0.9rem 0 0.5rem;
	overflow: hidden;
}

.dodst-memory-meter i {
	background: linear-gradient(90deg, #6a3829, #d3b15e);
	display: block;
	height: 100%;
}

.dodst-guild-record {
	background: rgba(64, 108, 76, 0.14);
	border: 1px solid rgba(110, 169, 126, 0.35);
	border-radius: 7px;
	padding: 0.7rem;
}

.dodst-journal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.8rem;
}

.dodst-journal-actions .dodst-button {
	font-size: 0.74rem;
	padding: 0.55rem 0.7rem;
}

.dodst-muted {
	opacity: 0.68;
}


/* Phase 13: Quest journal. */
.dodst-quest-panel {
	margin-top: 1rem;
}

.dodst-reputation-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0;
}

.dodst-reputation-summary span {
	background: rgba(211, 177, 94, 0.08);
	border: 1px solid var(--dodst-border);
	border-radius: 999px;
	padding: 0.45rem 0.75rem;
}

.dodst-quest-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dodst-quest-card {
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid var(--dodst-border);
	border-left: 4px solid currentColor;
	border-radius: 10px;
	padding: 1rem;
}

.dodst-quest-type--daily { color: #d3b15e; }
.dodst-quest-type--weekly { color: #89a7d9; }
.dodst-quest-type--story { color: #70b98c; }
.dodst-quest-type--secret { color: #bb78cc; }

.dodst-quest-card > * {
	color: var(--dodst-text);
}

.dodst-quest-card__heading {
	align-items: center;
	display: flex;
	gap: 0.8rem;
}

.dodst-quest-card__heading h3 {
	margin: 0;
}

.dodst-quest-npc {
	font-size: 2.3rem;
}

.dodst-quest-card blockquote {
	background: rgba(211, 177, 94, 0.06);
	border-left: 3px solid var(--dodst-border);
	font-style: italic;
	margin: 1rem 0;
	padding: 0.7rem 0.9rem;
}

.dodst-quest-objectives {
	list-style: none;
	margin: 1rem 0;
	padding: 0;
}

.dodst-quest-objectives li {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding: 0.35rem 0;
}

.dodst-quest-objectives li.is-complete {
	opacity: 0.65;
	text-decoration: line-through;
}

.dodst-quest-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1rem 0;
}

.dodst-quest-reward,
.dodst-quest-claimed {
	display: block;
	font-weight: 700;
	margin-top: 1rem;
}


/* Phase 14: Temporary dungeon instances. */
.dodst-dungeon-modal__panel {
	max-width: 760px;
}

.dodst-dungeon-symbol {
	font-size: 2.5rem;
	margin: 0;
	text-align: center;
}

.dodst-dungeon-start-actions,
.dodst-dungeon-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1rem 0;
}

.dodst-dungeon-status {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
	margin-bottom: 0.6rem;
}

.dodst-dungeon-room {
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid var(--dodst-border);
	border-left: 4px solid var(--dodst-border);
	border-radius: 10px;
	margin: 1rem 0;
	padding: 1rem;
}

.dodst-dungeon-room--elite {
	border-left-color: #8f74c7;
}

.dodst-dungeon-room--boss {
	border-left-color: #b94b4b;
	box-shadow: 0 0 18px rgba(185, 75, 75, 0.18);
}

.dodst-dungeon-log {
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid var(--dodst-border);
	border-radius: 8px;
	max-height: 180px;
	overflow-y: auto;
	padding: 0.75rem;
}

.dodst-dungeon-log p {
	margin: 0.35rem 0;
}

.dodst-dungeon-rewards {
	background: rgba(211, 177, 94, 0.08);
	border: 1px solid var(--dodst-border);
	border-radius: 8px;
	margin-top: 1rem;
	padding: 1rem;
}


/* Phase 15: Guild expansion. */
.dodst-guild-expansion {
	display: grid;
	gap: 1rem;
	margin-top: 1.25rem;
}

.dodst-guild-expansion > section {
	background: rgba(0, 0, 0, 0.22);
	border: 1px solid var(--dodst-border);
	border-radius: 10px;
	padding: 1rem;
}

.dodst-guild-feature-grid {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.dodst-guild-feature-card {
	background: rgba(211, 177, 94, 0.05);
	border: 1px solid var(--dodst-border);
	border-radius: 8px;
	padding: 0.8rem;
}

.dodst-guild-chat-log {
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid var(--dodst-border);
	border-radius: 8px;
	max-height: 260px;
	overflow-y: auto;
	padding: 0.75rem;
}

#dodst-guild-chat-form {
	display: flex;
	gap: 0.6rem;
	margin-top: 0.75rem;
}

#dodst-guild-chat-form input {
	flex: 1;
	min-width: 0;
}

.dodst-guild-achievements {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dodst-guild-achievements li {
	display: flex;
	justify-content: space-between;
	padding: 0.4rem 0;
}

.dodst-guild-achievements li.is-complete {
	color: #9fd9a8;
}

.dodst-guild-ranking {
	border-collapse: collapse;
	width: 100%;
}

.dodst-guild-ranking th,
.dodst-guild-ranking td {
	border-bottom: 1px solid var(--dodst-border);
	padding: 0.55rem;
	text-align: left;
}


.dodst-dealer-relationship {
	margin-block: 1.5rem;
}

.dodst-dealer-relationship .dodst-panel-heading {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

.dodst-dealer-relationship__stats {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-block: 1rem;
}

.dodst-dealer-relationship__stats > div {
	background: rgba(0, 0, 0, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.65rem;
	padding: 0.9rem;
}

.dodst-dealer-relationship__stats span,
.dodst-dealer-relationship__stats small {
	display: block;
}

.dodst-dealer-memory-list {
	display: grid;
	gap: 0.55rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dodst-dealer-memory-list li {
	align-items: start;
	background: rgba(0, 0, 0, 0.14);
	border-left: 3px solid currentColor;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding: 0.7rem 0.85rem;
}

.dodst-dealer-memory-list time {
	font-size: 0.78rem;
	opacity: 0.72;
	white-space: nowrap;
}

@media (max-width: 700px) {
	.dodst-dealer-relationship__stats {
		grid-template-columns: 1fr;
	}

	.dodst-dealer-memory-list li {
		display: block;
	}

	.dodst-dealer-memory-list time {
		display: block;
		margin-top: 0.35rem;
	}
}


/* 0.21.0a1: map-first navigation and encounter-style potion modal. */
.dodst-nav {
	background: rgba(15, 13, 9, 0.96);
	border: 1px solid var(--dodst-border);
	border-radius: 10px;
	margin: 1rem 0;
	padding: 0.75rem;
	position: sticky;
	top: 0.5rem;
	z-index: 1000;
}

.dodst-nav button.is-active {
	box-shadow: 0 0 0 2px rgba(211, 177, 94, 0.28);
}

.dodst-item--interactive {
	cursor: pointer;
	transition: border-color 160ms ease, transform 160ms ease;
}

.dodst-item--interactive:hover,
.dodst-item--interactive:focus {
	border-color: var(--dodst-gold);
	outline: none;
	transform: translateY(-1px);
}

.dodst-item__open {
	background: transparent;
	border: 0;
	color: var(--dodst-gold);
	cursor: pointer;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	margin-top: 0.65rem;
	padding: 0;
	text-decoration: underline;
}

.dodst-potion-modal__panel {
	max-width: 640px;
}

.dodst-potion-modal__symbol {
	font-size: 5rem;
	line-height: 1;
	margin: 0.5rem 0;
}

.dodst-potion-modal__appearance {
	color: var(--dodst-gold);
	font-style: italic;
}

.dodst-potion-modal__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin: 1rem 0;
}

.dodst-potion-modal__meta span {
	background: rgba(211, 177, 94, 0.08);
	border: 1px solid var(--dodst-border);
	border-radius: 999px;
	font-family: system-ui, sans-serif;
	font-size: 0.78rem;
	padding: 0.4rem 0.7rem;
}

.dodst-potion-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	justify-content: center;
	margin-top: 1rem;
}

body:has(.dodst-potion-modal:not([hidden])) {
	overflow: hidden;
}

@media (max-width: 720px) {
	.dodst-nav {
		justify-content: flex-start;
		overflow-x: auto;
		position: sticky;
		scrollbar-width: thin;
	}

	.dodst-nav button {
		flex: 0 0 auto;
	}

	.dodst-potion-modal__panel {
		border-radius: 0;
		height: 100%;
		max-height: none;
		max-width: none;
		width: 100%;
	}
}


/* 0.21.0b: Dealer bargains, debts, consequences, clues, and memory. */
.dodst-dealer-subsection {
	border-top: 1px solid var(--dodst-border);
	margin-top: 1rem;
	padding-top: 1rem;
}

.dodst-dealer-subsection h4 {
	color: var(--dodst-gold);
	margin: 0 0 0.75rem;
}

.dodst-dealer-subsection blockquote {
	border-left: 3px solid var(--dodst-gold);
	font-style: italic;
	margin: 0;
	padding: 0.5rem 0 0.5rem 1rem;
}

.dodst-dealer-record {
	background: rgba(0, 0, 0, 0.22);
	border: 1px solid var(--dodst-border);
	border-radius: 8px;
	display: grid;
	gap: 0.25rem;
	margin-bottom: 0.6rem;
	padding: 0.75rem;
}

.dodst-dealer-record--clue {
	border-style: dashed;
}

.dodst-dealer-record small {
	opacity: 0.72;
}


/* 0.21.0c: cursed relics and Dealer-only equipment. */
.dodst-item:has(.dodst-curse-summary) {
	border-color: #71438f;
	box-shadow: 0 0 18px rgba(113, 67, 143, 0.2);
}

.dodst-curse-summary {
	background: rgba(66, 24, 82, 0.28);
	border: 1px solid rgba(162, 105, 190, 0.55);
	border-radius: 8px;
	display: grid;
	gap: 0.25rem;
	margin: 0.65rem 0;
	padding: 0.65rem;
}

.dodst-curse-summary strong {
	color: #d8a7ef;
}

.dodst-curse-summary small {
	opacity: 0.78;
}

.dodst-dealer-only-label {
	background: rgba(211, 177, 94, 0.12);
	border: 1px solid var(--dodst-gold);
	border-radius: 999px;
	color: var(--dodst-gold);
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	margin: 0.35rem 0;
	padding: 0.25rem 0.55rem;
	text-transform: uppercase;
}


/* Forbidden Knowledge — v0.21.0d */
.dodst-forbidden-knowledge {
	margin-top: 1.5rem;
	border-color: rgba(156, 120, 255, 0.45);
	background:
		radial-gradient(circle at top right, rgba(98, 49, 148, 0.24), transparent 42%),
		var(--dodst-card, rgba(16, 20, 28, 0.96));
}

.dodst-forbidden-tabs,
.dodst-journal-controls,
.dodst-forbidden-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1rem 0;
}

.dodst-forbidden-summary > div {
	flex: 1 1 180px;
	display: grid;
	gap: 0.3rem;
	padding: 0.8rem;
	border: 1px solid rgba(156, 120, 255, 0.3);
	border-radius: 0.7rem;
	background: rgba(0, 0, 0, 0.18);
}

.dodst-forbidden-summary span,
.dodst-forbidden-entry small,
.dodst-journal-entry time {
	opacity: 0.72;
	font-size: 0.82rem;
}

.dodst-forbidden-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.dodst-forbidden-entry {
	padding: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0.8rem;
	background: rgba(4, 6, 12, 0.35);
}

.dodst-forbidden-entry header {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.dodst-forbidden-entry h3 {
	margin: 0;
}

.dodst-forbidden-entry ul {
	padding-left: 1.2rem;
}

.dodst-forbidden-entry.is-locked {
	filter: saturate(0.45);
	opacity: 0.74;
}

.dodst-forbidden-glyph {
	font-size: 1.8rem;
}

.dodst-forbidden-lore {
	padding-left: 0.75rem;
	border-left: 2px solid rgba(156, 120, 255, 0.5);
	font-style: italic;
	opacity: 0.84;
}

.dodst-rarity--forbidden {
	box-shadow: inset 0 0 0 1px rgba(167, 94, 255, 0.28);
}

.dodst-rarity--mythic {
	box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.36);
}

.dodst-journal-controls label {
	display: grid;
	gap: 0.3rem;
}

.dodst-journal-controls select,
.dodst-journal-controls input {
	min-height: 2.6rem;
}

.dodst-journal-list {
	display: grid;
	gap: 0.75rem;
}

.dodst-journal-entry {
	padding: 0.85rem;
	border-left: 3px solid rgba(156, 120, 255, 0.62);
	background: rgba(0, 0, 0, 0.2);
}

.dodst-journal-entry header {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.dodst-journal-entry p {
	margin-bottom: 0.45rem;
}


/* Phase 5: Community World Events. */
.dodst-community-events {
	margin-bottom: 1.25rem;
}

.dodst-community-events__header {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

.dodst-community-events__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dodst-world-announcement,
.dodst-global-bargain {
	background: rgba(13, 12, 9, 0.78);
	border: 1px solid var(--dodst-border);
	border-radius: 12px;
	margin-bottom: 0.75rem;
	padding: 0.9rem;
}

.dodst-world-announcement[data-priority="10"],
.dodst-world-announcement[data-priority="9"],
.dodst-world-announcement[data-priority="8"] {
	border-color: var(--dodst-gold);
	box-shadow: 0 0 0 1px rgba(211, 177, 94, 0.18);
}

.dodst-world-announcement p,
.dodst-global-bargain p {
	margin-bottom: 0.65rem;
}

.dodst-community-sightings {
	display: grid;
	gap: 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dodst-community-sightings li {
	background: rgba(13, 12, 9, 0.65);
	border: 1px solid var(--dodst-border);
	border-radius: 10px;
	display: grid;
	gap: 0.2rem;
	padding: 0.75rem;
}

.dodst-community-sightings span,
.dodst-community-sightings small,
.dodst-muted {
	color: var(--dodst-muted);
}

@media (max-width: 720px) {
	.dodst-community-events__grid {
		grid-template-columns: 1fr;
	}
}
