/* =============================================================================
   The Tavern — Social Feed Styles
   BEM naming: inv-tavern-*
   ============================================================================= */

/* ── Compose Trigger Bar ──────────────────────────────────────────────────── */
/* ── Category filter bar ─────────────────────────────────────────────────── */
.inv-tavern-filter {
	display: flex;
	gap: 6px;
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 2px 0 8px;
	margin-bottom: 2px;
	cursor: grab;
}

.inv-tavern-filter:active {
	cursor: grabbing;
}

.inv-tavern-filter::-webkit-scrollbar {
	display: none;
}

.inv-tavern-filter__tab {
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	color: rgba(255, 255, 255, 0.5);
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 5px 14px;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	white-space: nowrap;
}

.inv-tavern-filter__tab:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.8);
}

.inv-tavern-filter__tab.is-active {
	background: rgba(245, 158, 11, 0.12);
	border-color: rgba(245, 158, 11, 0.4);
	color: #f59e0b;
}

/* AOEM tab — blue/gold when active */
.inv-tavern-filter__tab--aoem.is-active {
	background: rgba(26, 58, 110, 0.4);
	border-color: rgba(196, 160, 60, 0.5);
	color: #c9a43c;
}

.inv-tavern-compose {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: rgba(17, 24, 39, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.15s;
	margin-bottom: 16px;
	max-width: 680px;
}

.inv-tavern-compose:hover {
	border-color: rgba(245, 158, 11, 0.3);
}

.inv-tavern-compose__avatar {
	flex-shrink: 0;
}

.inv-tavern-compose__avatar img:not(.inv-avatar-frame) {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.inv-tavern-compose__placeholder {
	flex: 1;
	font-size: 0.875rem;
	color: #6b7494;
}

.inv-tavern-compose__btn {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #080d1a;
	background: #f59e0b;
	border: none;
	border-radius: 8px;
	padding: 6px 16px;
	cursor: pointer;
	transition: background 0.15s;
}

.inv-tavern-compose__btn:hover {
	background: #d97706;
}

/* ── Compose Modal ────────────────────────────────────────────────────────── */
.inv-tavern-compose-modal {
	position: fixed;
	inset: 0;
	z-index: 9000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: max(60px, calc(env(safe-area-inset-top, 0px) + 20px)) 16px 16px;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	overflow-y: auto;
}

.inv-tavern-compose-modal.is-open {
	display: flex;
}

.inv-tavern-compose-modal__inner {
	width: 100%;
	max-width: 540px;
	background: #111827;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	overflow: hidden;
}

.inv-tavern-compose-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inv-tavern-compose-modal__title {
	font-family: 'Rajdhani', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #e2e8f0;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.inv-tavern-compose-modal__close {
	background: none;
	border: none;
	color: #6b7494;
	font-size: 1.4rem;
	cursor: pointer;
	padding: 4px;
	line-height: 1;
}

.inv-tavern-compose-modal__close:hover {
	color: #e2e8f0;
}

.inv-tavern-compose-modal__body {
	padding: 16px;
}

.inv-tavern-compose-modal__textarea {
	width: 100%;
	min-height: 100px;
	background: transparent;
	border: none;
	color: #e2e8f0;
	font-size: 0.95rem;
	line-height: 1.5;
	resize: none;
	outline: none;
}

.inv-tavern-compose-modal__textarea::placeholder {
	color: #6b7494;
}

.inv-tavern-compose-modal__counter {
	font-size: 0.75rem;
	color: #6b7494;
	text-align: right;
	margin-top: 4px;
}

.inv-tavern-compose-modal__counter.is-over {
	color: #ef4444;
}

/* Category chips in compose */
.inv-tavern-compose-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.inv-tavern-compose-cats__chip {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7494;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 4px 12px;
	cursor: pointer;
	transition: all 0.15s;
}

.inv-tavern-compose-cats__chip:hover {
	border-color: rgba(245, 158, 11, 0.3);
	color: #c8cce8;
}

.inv-tavern-compose-cats__chip.is-selected {
	background: rgba(245, 158, 11, 0.15);
	border-color: #f59e0b;
	color: #f59e0b;
}

/* ── Official Update chip (site) — amber ── */
.inv-tavern-compose-cats__chip--site-update {
	background: rgba(245, 158, 11, 0.08);
	border-color: rgba(245, 158, 11, 0.25);
	color: #f59e0b;
}

.inv-tavern-compose-cats__chip--site-update:hover {
	background: rgba(245, 158, 11, 0.15);
	border-color: rgba(245, 158, 11, 0.5);
	color: #f59e0b;
}

.inv-tavern-compose-cats__chip--site-update.is-selected {
	background: rgba(245, 158, 11, 0.25);
	border-color: #f59e0b;
}

/* ── AOEM Official Update chip — AoE Mobile blue + gold ── */
.inv-tavern-compose-cats__chip--aoem {
	background: rgba(26, 58, 110, 0.35);
	border-color: rgba(196, 160, 60, 0.4);
	color: #c9a43c;
}

.inv-tavern-compose-cats__chip--aoem:hover {
	background: rgba(26, 58, 110, 0.55);
	border-color: rgba(196, 160, 60, 0.7);
	color: #d4b24a;
}

.inv-tavern-compose-cats__chip--aoem.is-selected {
	background: rgba(26, 58, 110, 0.75);
	border-color: #c9a43c;
	color: #d4b24a;
}

/* ── Chip logos ── */
.inv-tavern-compose-cats__chip-logo {
	width: 13px;
	height: 13px;
	object-fit: contain;
	vertical-align: middle;
	margin-right: 1px;
}

.inv-tavern-compose-cats__chip-logo--site {
	opacity: 0.85;
	filter: brightness(0) saturate(100%) invert(70%) sepia(60%) saturate(800%) hue-rotate(5deg) brightness(1.1);
}

.inv-tavern-compose-cats__chip-logo--aoem {
	border-radius: 3px;
	opacity: 1;
}

/* Image upload preview */
.inv-tavern-compose-images {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.inv-tavern-compose-images__item {
	position: relative;
	width: 80px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.inv-tavern-compose-images__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Loading placeholder */
.inv-tavern-compose-images__item.is-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(17, 24, 39, 0.6);
}

.inv-tavern-compose-images__spinner {
	width: 24px;
	height: 24px;
	border: 2.5px solid rgba(245, 158, 11, 0.2);
	border-top-color: #f59e0b;
	border-radius: 50%;
	animation: inv-spin 0.7s linear infinite;
}

@keyframes inv-spin {
	to { transform: rotate(360deg); }
}

/* Upload message toast */
.inv-tavern-upload-msg {
	position: absolute;
	bottom: 70px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(17, 24, 39, 0.95);
	border: 1px solid rgba(59, 130, 246, 0.4);
	color: #93c5fd;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 0.75rem;
	font-weight: 500;
	z-index: 100;
	white-space: nowrap;
	animation: inv-toast-in 0.2s ease;
}

.inv-tavern-upload-msg.is-error {
	border-color: rgba(239, 68, 68, 0.4);
	color: #fca5a5;
}

@keyframes inv-toast-in {
	from { opacity: 0; transform: translateX(-50%) translateY(8px); }
	to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.inv-tavern-compose-images__remove {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 20px;
	height: 20px;
	background: rgba(0, 0, 0, 0.7);
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Toolbar */
.inv-tavern-compose-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.inv-tavern-compose-toolbar__left {
	display: flex;
	gap: 8px;
}

.inv-tavern-compose-toolbar__icon {
	background: none;
	border: none;
	color: #6b7494;
	cursor: pointer;
	padding: 6px;
	border-radius: 6px;
	transition: all 0.15s;
	display: flex;
	align-items: center;
}

.inv-tavern-compose-toolbar__icon:hover {
	color: #f59e0b;
	background: rgba(245, 158, 11, 0.1);
}

.inv-tavern-compose-toolbar__submit {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #080d1a;
	background: #f59e0b;
	border: none;
	border-radius: 8px;
	padding: 8px 20px;
	cursor: pointer;
	transition: background 0.15s;
}

.inv-tavern-compose-toolbar__submit:hover {
	background: #d97706;
}

.inv-tavern-compose-toolbar__submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ── Category Filter Pills ────────────────────────────────────────────────── */
.inv-tavern-filters {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 0 0 12px;
	margin-bottom: 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.inv-tavern-filters::-webkit-scrollbar {
	display: none;
}

.inv-tavern-filters__pill {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7494;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 20px;
	padding: 5px 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.15s;
	flex-shrink: 0;
}

.inv-tavern-filters__pill:hover {
	border-color: rgba(245, 158, 11, 0.3);
	color: #c8cce8;
}

.inv-tavern-filters__pill.is-active {
	background: rgba(245, 158, 11, 0.15);
	border-color: #f59e0b;
	color: #f59e0b;
}

/* Hashtag search */
.inv-tavern-hashtag-search {
	margin-bottom: 12px;
}

.inv-tavern-hashtag-search__input {
	width: 100%;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 8px;
	padding: 8px 12px;
	color: #e2e8f0;
	font-size: 0.82rem;
	outline: none;
	transition: border-color 0.15s;
}

.inv-tavern-hashtag-search__input:focus {
	border-color: rgba(245, 158, 11, 0.4);
}

.inv-tavern-hashtag-search__input::placeholder {
	color: #6b7494;
}

/* ── Post Card ────────────────────────────────────────────────────────────── */
.inv-tavern-post {
	position: relative;
	padding: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	transition: background 0.15s;
	max-width: 680px;
	cursor: pointer;
}

.inv-tavern-post:hover {
	background: rgba(255, 255, 255, 0.01);
}

.inv-tavern-post__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.inv-tavern-post__avatar-link {
	flex-shrink: 0;
}

.inv-tavern-post__avatar-link .inv-avatar-wrap {
	width: 36px !important;
	height: 36px !important;
}

.inv-tavern-post__info {
	flex: 1;
	min-width: 0;
}

.inv-tavern-post__username {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	color: #e2e8f0;
	text-decoration: none;
}

.inv-tavern-post__username:hover {
	color: #f59e0b;
}

.inv-tavern-post__name-row {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.inv-tavern-post__badges {
	display: flex;
	align-items: center;
	gap: 3px;
}

.inv-tavern-post__badge-icon {
	width: 16px;
	height: 16px;
	object-fit: contain;
	border-radius: 3px;
	vertical-align: middle;
	flex-shrink: 0;
}

.inv-tavern-post__badge-emoji {
	font-size: 0.75rem;
	line-height: 1;
}

.inv-tavern-post__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.72rem;
	color: #6b7494;
}

.inv-tavern-post__category {
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #f59e0b;
	background: rgba(245, 158, 11, 0.1);
	padding: 1px 8px;
	border-radius: 4px;
	font-size: 0.65rem;
}

.inv-tavern-post__dot {
	width: 2px;
	height: 2px;
	background: #6b7494;
	border-radius: 50%;
}

/* ── Achievement card frame ──────────────────────────────────────────────────── */

.inv-tavern-post--achievement {
	border-top: 2px solid rgba(245, 158, 11, 0.6);
	box-shadow: 0 0 12px rgba(245, 158, 11, 0.08);
}

.inv-tavern-ach-banner {
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f59e0b;
	background: rgba(245, 158, 11, 0.08);
	padding: 4px 12px;
	margin: -4px -4px 10px;
	border-radius: 4px 4px 0 0;
}

.inv-tavern-post__category--achievement {
	color: #f59e0b;
	background: rgba(245, 158, 11, 0.15);
	border: 1px solid rgba(245, 158, 11, 0.3);
}

.inv-tavern-post__pin {
	position: absolute;
	top: 42px;
	right: 40px;
	background: none;
	border: none;
	color: #6b7494;
	cursor: pointer;
	padding: 4px;
	line-height: 1;
	opacity: 0;
	transition: opacity 0.15s, color 0.15s;
	z-index: 2;
}

.inv-tavern-post__pin.is-pinned {
	color: #f59e0b;
	opacity: 1;
}

/* Pinned post badge */
.inv-tavern-post--pinned {
	border-color: rgba(245,158,11,0.3) !important;
	background: rgba(245,158,11,0.04) !important;
}

.inv-tavern-pinned-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #f59e0b;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.inv-tavern-pinned-badge svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}

.inv-tavern-post:hover .inv-tavern-post__pin {
	opacity: 1;
}

.inv-tavern-post__pin:hover {
	color: #f59e0b;
}

/* ── Admin tag/category button ── */
.inv-tavern-post__tag-btn {
	position: absolute;
	top: 42px;
	right: 62px;
	background: none;
	border: none;
	color: #6b7494;
	cursor: pointer;
	padding: 4px;
	line-height: 1;
	opacity: 0;
	transition: opacity 0.15s, color 0.15s;
	z-index: 2;
}

.inv-tavern-post:hover .inv-tavern-post__tag-btn {
	opacity: 1;
}

.inv-tavern-post__tag-btn:hover {
	color: #c9a43c;
}

/* ── Tag dropdown ── */
.inv-tavern-tag-dropdown {
	position: absolute;
	top: 60px;
	right: 55px;
	z-index: 100;
	background: #111827;
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 8px;
	padding: 4px;
	min-width: 160px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.inv-tavern-tag-dropdown__item {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	color: rgba(255,255,255,0.7);
	font-size: 0.78rem;
	padding: 7px 10px;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.1s, color 0.1s;
}

.inv-tavern-tag-dropdown__item:hover {
	background: rgba(255,255,255,0.06);
	color: #fff;
}

.inv-tavern-tag-dropdown__item.is-current {
	color: #f59e0b;
	font-weight: 600;
}

.inv-tavern-post__delete {
	position: absolute;
	top: 42px;
	right: 14px;
	background: none;
	border: none;
	color: #6b7494;
	font-size: 1rem;
	cursor: pointer;
	padding: 4px;
	line-height: 1;
	opacity: 0;
	transition: opacity 0.15s;
	z-index: 2;
}

.inv-tavern-post:hover .inv-tavern-post__delete {
	opacity: 1;
}

.inv-tavern-post__delete:hover {
	color: #ef4444;
}

/* ── Post badges (Official Update + AOEM Official Update) ── */
.inv-tavern-announcement-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	margin-bottom: 10px;
	border-radius: 5px;
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Site Official Update — amber */
.inv-tavern-announcement-badge--site {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
	border: 1px solid rgba(245, 158, 11, 0.35);
	color: #f59e0b;
}

/* AOEM Official Update — AoE Mobile blue + gold */
.inv-tavern-announcement-badge--aoem {
	background: linear-gradient(135deg, rgba(26, 58, 110, 0.6), rgba(15, 35, 75, 0.4));
	border: 1px solid rgba(196, 160, 60, 0.45);
	color: #c9a43c;
}

.inv-tavern-announcement-badge__logo {
	width: 14px;
	height: 14px;
	object-fit: contain;
	opacity: 0.9;
}

.inv-tavern-announcement-badge--site .inv-tavern-announcement-badge__logo {
	filter: brightness(0) saturate(100%) invert(70%) sepia(60%) saturate(800%) hue-rotate(5deg) brightness(1.1);
}

.inv-tavern-announcement-badge__logo--aoem {
	border-radius: 3px;
	opacity: 1;
	filter: none;
}

/* Post content */
.inv-tavern-post__body {
	font-size: 0.9rem;
	color: #c8cce8;
	line-height: 1.55;
	margin-bottom: 10px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: pre-wrap;
}

.inv-tavern-post__body-inner--clamped {
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.inv-tavern-post__readmore-btn {
	display: inline-block;
	margin-top: 4px;
	padding: 0;
	background: none;
	border: none;
	color: #f59e0b;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.4;
	transition: opacity 0.15s;
}

.inv-tavern-post__readmore-btn:hover {
	opacity: 0.8;
	text-decoration: underline;
}

.inv-tavern-post__body a {
	color: #f59e0b;
	text-decoration: none;
}

.inv-tavern-post__body a:hover {
	text-decoration: underline;
}

.inv-tavern-post__link {
	color: #3b82f6;
	word-break: break-all;
}

.inv-tavern-post__link:hover {
	text-decoration: underline;
}

.inv-tavern-post__hashtag {
	color: #3b82f6;
}

.inv-tavern-post__mention {
	color: #f59e0b;
}

/* Image grid */
.inv-tavern-post__images {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	max-width: 650px;
	background: rgba(255, 255, 255, 0.08);
	position: relative;
}

.inv-tavern-post__images-more {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 6px;
	pointer-events: all;
	cursor: pointer;
}

.inv-tavern-post__images-data {
	display: none !important;
}

.inv-tavern-post__images img {
	transition: outline-color 0.2s;
	outline: 2px solid transparent;
	outline-offset: -2px;
}

.inv-tavern-post__images img:hover {
	outline-color: rgba(245, 158, 11, 0.5);
}

.inv-tavern-post__images--1 {
	display: block;
}

.inv-tavern-post__images--1 img {
	width: 100%;
	max-height: 280px;
	object-fit: cover;
	display: block;
	cursor: pointer;
}

.inv-tavern-post__images--2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
}

.inv-tavern-post__images--2 img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
	cursor: pointer;
	border-radius: 6px;
}

.inv-tavern-post__images--3 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 160px 110px;
	gap: 4px;
}

.inv-tavern-post__images--3 img:first-of-type {
	grid-column: 1 / -1;
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
	cursor: pointer;
	border-radius: 6px;
}

.inv-tavern-post__images--3 img:nth-of-type(2),
.inv-tavern-post__images--3 img:nth-of-type(3) {
	width: 100%;
	height: 110px;
	object-fit: cover;
	display: block;
	cursor: pointer;
	border-radius: 6px;
}

/* ── Fullscreen Image Lightbox ────────────────────────────────────────── */
.inv-tavern-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9500;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
}

.inv-tavern-lightbox img {
	max-width: 92vw;
	max-height: 92vh;
	object-fit: contain;
	border-radius: 4px;
}

.inv-tavern-lightbox__img {
	cursor: default;
}

.inv-tavern-lightbox__close {
	position: absolute;
	top: calc(16px + env(safe-area-inset-top, 0px));
	right: calc(16px + env(safe-area-inset-right, 0px));
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 1.2rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.inv-tavern-lightbox__counter {
	position: absolute;
	top: calc(20px + env(safe-area-inset-top, 0px));
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8rem;
	font-weight: 600;
	z-index: 2;
}

.inv-tavern-lightbox__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.08);
	border: none;
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	z-index: 2;
}

.inv-tavern-lightbox__arrow:hover {
	background: rgba(255, 255, 255, 0.2);
}

.inv-tavern-lightbox__arrow--prev { left: 16px; }
.inv-tavern-lightbox__arrow--next { right: 16px; }

@media (max-width: 639px) {
	.inv-tavern-lightbox__arrow { width: 36px; height: 36px; }
	.inv-tavern-lightbox__arrow--prev { left: 8px; }
	.inv-tavern-lightbox__arrow--next { right: 8px; }
}

/* YouTube embed */
.inv-tavern-post__youtube {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 10px;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.inv-tavern-post__youtube iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ── Link Preview Card ── */
.inv-tavern-link-preview {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	margin-bottom: 10px;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s, border-color 0.15s;
}

.inv-tavern-link-preview:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(245, 158, 11, 0.3);
}

.inv-tavern-link-preview__icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(59, 130, 246, 0.1);
	border-radius: 10px;
	color: #3b82f6;
}

.inv-tavern-link-preview__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.inv-tavern-link-preview__domain {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	color: #f59e0b;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.inv-tavern-link-preview__url {
	font-size: 0.72rem;
	color: #6b7494;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.inv-tavern-link-preview__arrow {
	flex-shrink: 0;
	color: #6b7494;
	transition: color 0.15s;
}

.inv-tavern-link-preview:hover .inv-tavern-link-preview__arrow {
	color: #f59e0b;
}

/* Action buttons */
.inv-tavern-post__actions {
	display: flex;
	gap: 4px;
}

.inv-tavern-post__action {
	display: flex;
	align-items: center;
	gap: 5px;
	touch-action: manipulation; /* iOS: prevents 300ms tap delay — first tap fires click */
	background: none;
	border: none;
	color: #6b7494;
	font-size: 0.78rem;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 8px;
	transition: all 0.15s;
}

.inv-tavern-post__action:hover {
	background: rgba(255, 255, 255, 0.04);
}

.inv-tavern-post__action--like:hover {
	color: #ef4444;
}

.inv-tavern-post__action--comment:hover {
	color: #3b82f6;
}

.inv-tavern-post__action--repost:hover {
	color: #22c55e;
}

.inv-tavern-post__action--quote:hover {
	color: #8b5cf6;
}

.inv-tavern-post__action svg {
	width: 16px;
	height: 16px;
}

.inv-tavern-post__action--like.is-liked {
	color: #ef4444;
}

.inv-tavern-post__action--like.is-liked svg {
	fill: #ef4444;
}

.inv-tavern-post__action--repost.is-reposted {
	color: #22c55e;
}

/* Repost banner */
.inv-tavern-post__repost-banner {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.72rem;
	color: #6b7494;
	padding: 0 0 6px 46px;
}

.inv-tavern-post__repost-banner svg {
	width: 14px;
	height: 14px;
}

/* ── Feed Container ───────────────────────────────────────────────────────── */
.inv-tavern-feed {
	background: rgba(17, 24, 39, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.04);
	border-radius: 12px;
	overflow: hidden;
	max-width: 680px;
}

/* Load More button */
.inv-tavern-feed__load-more {
	display: block;
	width: 100%;
	padding: 12px;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-top: none;
	border-radius: 0 0 12px 12px;
	color: #f59e0b;
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.inv-tavern-feed__load-more:hover {
	background: rgba(245, 158, 11, 0.06);
}

/* Hashtag pills under post body */
.inv-tavern-post__hashtags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 8px;
}

.inv-tavern-post__hashtag-pill {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: lowercase;
	letter-spacing: 0.03em;
	padding: 2px 8px;
	border-radius: 12px;
	border: 1px solid;
	text-decoration: none;
	transition: opacity 0.15s;
	cursor: pointer;
}

.inv-tavern-post__hashtag-pill:hover {
	opacity: 0.8;
}

/* ── Quote Post (embedded original) ───────────────────────────────────────── */
.inv-tavern-post__quote {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 10px;
	background: rgba(255, 255, 255, 0.02);
}

.inv-tavern-post__quote-header {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.inv-tavern-post__quote-avatar {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	object-fit: cover;
}

.inv-tavern-post__quote-user {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.7rem;
	font-weight: 700;
	color: #e2e8f0;
}

.inv-tavern-post__quote-time {
	font-size: 0.65rem;
	color: #6b7494;
	margin-left: auto;
}

.inv-tavern-post__quote {
	cursor: pointer;
	transition: border-color 0.15s;
}

.inv-tavern-post__quote:hover {
	border-color: rgba(245, 158, 11, 0.3);
}

.inv-tavern-post__quote-body {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.inv-tavern-post__quote-text {
	font-size: 0.78rem;
	color: #9ca3af;
	line-height: 1.4;
	margin: 0;
	flex: 1;
	white-space: pre-wrap;
}

.inv-tavern-post__quote-img {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
}

/* Clickable repost count */
.inv-tavern-post__count--reposts {
	cursor: pointer;
}

.inv-tavern-post__count--reposts:hover {
	text-decoration: underline;
}

/* Reposts panel */
.inv-tavern-post__reposts-panel {
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	padding: 4px 16px 8px;
	max-height: 200px;
	overflow-y: auto;
}

.inv-tavern-repost-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.inv-tavern-repost-item:last-child {
	border-bottom: none;
}

.inv-tavern-repost-item__info {
	flex: 1;
	min-width: 0;
}

.inv-tavern-repost-item__user {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	color: #e2e8f0;
	margin-right: 4px;
}

.inv-tavern-repost-item__text {
	font-size: 0.68rem;
	color: #9ca3af;
	white-space: pre-wrap;
}

.inv-tavern-repost-item__label {
	font-size: 0.68rem;
	color: #22c55e;
	font-style: italic;
}

.inv-tavern-repost-item__time {
	font-size: 0.62rem;
	color: #6b7494;
	flex-shrink: 0;
}

/* Quote button (next to repost) */
.inv-tavern-post__repost-wrap {
	display: flex;
	gap: 0;
}

.inv-tavern-post__action--quote {
	padding: 6px 6px !important;
}

/* Quote preview in compose modal */
.inv-tavern-quote-preview {
	margin-top: 10px;
	position: relative;
}

.inv-tavern-quote-preview__remove {
	background: none;
	border: none;
	color: #6b7494;
	font-size: 1.1rem;
	cursor: pointer;
	margin-left: auto;
	padding: 0 2px;
	line-height: 1;
}

.inv-tavern-quote-preview__remove:hover {
	color: #ef4444;
}

/* ── Command Palette ──────────────────────────────────────────────────────── */
.inv-tavern-cmd-palette {
	margin-top: 8px;
	background: rgba(17, 24, 39, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	overflow: hidden;
}

.inv-tavern-cmd-palette__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 14px;
	background: none;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	color: #e2e8f0;
	cursor: pointer;
	text-align: left;
	transition: background 0.15s;
}

.inv-tavern-cmd-palette__item:last-child {
	border-bottom: none;
}

.inv-tavern-cmd-palette__item:hover {
	background: rgba(245, 158, 11, 0.08);
}

.inv-tavern-cmd-palette__icon {
	font-size: 1.1rem;
	flex-shrink: 0;
	width: 24px;
	text-align: center;
}

.inv-tavern-cmd-palette__label {
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 0.82rem;
	color: #f59e0b;
}

.inv-tavern-cmd-palette__desc {
	font-size: 0.72rem;
	color: #6b7494;
	margin-left: auto;
}

/* ── Embed Search Panel ──────────────────────────────────────────────────── */
.inv-tavern-embed-search {
	margin-top: 10px;
	background: rgba(13, 20, 36, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	overflow: hidden;
}

.inv-tavern-embed-search__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #f59e0b;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inv-tavern-embed-search__close {
	background: none;
	border: none;
	color: #6b7494;
	font-size: 1.2rem;
	cursor: pointer;
}

.inv-tavern-embed-search__input {
	width: 100%;
	padding: 8px 12px;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	color: #e2e8f0;
	font-size: 0.82rem;
	outline: none;
}

.inv-tavern-embed-search__input::placeholder {
	color: #6b7494;
}

.inv-tavern-embed-search__results {
	max-height: 200px;
	overflow-y: auto;
}

.inv-tavern-embed-search__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 12px;
	background: none;
	border: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.03);
	color: #e2e8f0;
	cursor: pointer;
	text-align: left;
	transition: background 0.15s;
}

.inv-tavern-embed-search__item:hover {
	background: rgba(245, 158, 11, 0.08);
}

.inv-tavern-embed-search__thumb {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	object-fit: cover;
}

.inv-tavern-embed-search__portraits {
	display: flex;
	flex-shrink: 0;
}

.inv-tavern-embed-search__portrait {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	object-fit: cover;
	border: 2px solid #0d1424;
	margin-left: -6px;
}

.inv-tavern-embed-search__portrait:first-child {
	margin-left: 0;
}

.inv-tavern-embed-search__name {
	font-size: 0.82rem;
	flex: 1;
}

.inv-tavern-embed-search__tier {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.6rem;
	font-weight: 700;
	color: #fff;
	padding: 1px 6px;
	border-radius: 4px;
	text-transform: uppercase;
}

/* ── Embed Cards in Posts ─────────────────────────────────────────────────── */
.inv-tavern-embed {
	margin-bottom: 8px;
	max-width: 400px;
}

.inv-tavern-embed__loading {
	padding: 12px;
	color: #6b7494;
	font-size: 0.75rem;
	text-align: center;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 10px;
}

.inv-tavern-embed__error {
	padding: 8px 12px;
	color: #6b7494;
	font-size: 0.72rem;
}

.inv-tavern-embed__card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: rgba(17, 24, 39, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	text-decoration: none;
	transition: border-color 0.15s;
}

.inv-tavern-embed__card:hover {
	border-color: rgba(245, 158, 11, 0.3);
}

.inv-tavern-embed__thumb {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
}

.inv-tavern-embed__portraits {
	display: flex;
	flex-shrink: 0;
}

.inv-tavern-embed__portrait {
	width: 36px;
	height: 36px;
	border-radius: 6px;
	object-fit: cover;
	border: 2px solid #0d1424;
	margin-left: -8px;
}

.inv-tavern-embed__portrait:first-child {
	margin-left: 0;
}

.inv-tavern-embed__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.inv-tavern-embed__title {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	color: #e2e8f0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.inv-tavern-embed__tier {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.58rem;
	font-weight: 700;
	color: #fff;
	padding: 1px 6px;
	border-radius: 3px;
	text-transform: uppercase;
	align-self: flex-start;
}

/* ── Comment Section ──────────────────────────────────────────────────────── */
.inv-tavern-post__comments {
	padding: 0 16px 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	margin-top: 4px;
}

.inv-tavern-post__comments-list {
	max-height: 300px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.inv-tavern-comment {
	display: flex;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.inv-tavern-comment:last-child {
	border-bottom: none;
}

.inv-tavern-comment__avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	margin-top: 1px;
}

.inv-tavern-comment__avatar-wrap {
	flex-shrink: 0;
	margin-top: 1px;
}

.inv-tavern-comment__avatar-wrap .inv-avatar-wrap {
	width: 28px !important;
	height: 28px !important;
}

.inv-tavern-comment__body {
	flex: 1;
	min-width: 0;
}

.inv-tavern-comment__user {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	color: #e2e8f0;
	margin-right: 6px;
	text-decoration: none;
	cursor: pointer;
}

.inv-tavern-comment__user:hover {
	color: #f59e0b;
}

.inv-tavern-comment__text {
	font-size: 0.78rem;
	color: #c8cce8;
	line-height: 1.4;
	word-wrap: break-word;
	white-space: pre-wrap;
}

.inv-tavern-comment__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
}

.inv-tavern-comment__actions-spacer {
	flex: 1;
}

.inv-tavern-comment__like {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: none;
	border: none;
	color: #64748b;
	font-size: 0.7rem;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	transition: color 0.15s;
}

.inv-tavern-comment__like:hover,
.inv-tavern-comment__like.is-liked {
	color: #f43f5e;
}

.inv-tavern-comment__reply-btn {
	background: none;
	border: none;
	color: #64748b;
	font-size: 0.7rem;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	transition: color 0.15s;
}

.inv-tavern-comment__reply-btn:hover {
	color: #f59e0b;
}

.inv-tavern-comment__delete {
	background: none;
	border: none;
	color: #ef4444;
	cursor: pointer;
	font-size: 0.9rem;
	line-height: 1;
	margin-left: auto;
	opacity: 0;
	padding: 0 2px;
	transition: opacity 0.15s;
}

.inv-tavern-comment:hover .inv-tavern-comment__delete {
	opacity: 0.6;
}

.inv-tavern-comment__delete:hover {
	opacity: 1 !important;
}

.inv-tavern-comment__text--deleted {
	color: #4b5563;
	font-style: italic;
}

.inv-tavern-comment__replies {
	margin-top: 6px;
	padding-left: 10px;
	border-left: 2px solid rgba(245, 158, 11, 0.2);
}

.inv-tavern-comment__replies:empty {
	display: none;
}

.inv-tavern-comment__reply-form {
	margin-top: 6px;
}

.inv-tavern-comment__reply-input {
	width: 100%;
	background: #0f172a;
	border: 1px solid #1e293b;
	border-radius: 6px;
	color: #e2e8f0;
	font-size: 0.78rem;
	padding: 6px 8px;
	resize: none;
	font-family: inherit;
	line-height: 1.4;
	box-sizing: border-box;
}

.inv-tavern-comment__reply-input:focus {
	outline: none;
	border-color: rgba(245, 158, 11, 0.4);
}

.inv-tavern-comment__reply-form-footer {
	display: flex;
	gap: 6px;
	margin-top: 4px;
}

.inv-tavern-comment__reply-send {
	background: rgba(245, 158, 11, 0.15);
	border: 1px solid rgba(245, 158, 11, 0.3);
	border-radius: 4px;
	color: #f59e0b;
	font-size: 0.72rem;
	font-weight: 700;
	font-family: 'Rajdhani', sans-serif;
	cursor: pointer;
	padding: 3px 10px;
	transition: background 0.15s;
}

.inv-tavern-comment__reply-send:hover {
	background: rgba(245, 158, 11, 0.25);
}

.js-cmt-reply-cancel {
	background: none;
	border: none;
	color: #64748b;
	font-size: 0.72rem;
	cursor: pointer;
	padding: 3px 6px;
}

.js-cmt-reply-cancel:hover {
	color: #e2e8f0;
}

/* Comment command palette */
.inv-tavern-comment-cmd {
	display: flex;
	gap: 4px;
	padding: 4px 0;
}

.inv-tavern-comment-cmd__item {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.68rem;
	font-weight: 700;
	color: #f59e0b;
	background: rgba(245, 158, 11, 0.08);
	border: 1px solid rgba(245, 158, 11, 0.15);
	border-radius: 6px;
	padding: 3px 8px;
	cursor: pointer;
	transition: background 0.15s;
}

.inv-tavern-comment-cmd__item:hover {
	background: rgba(245, 158, 11, 0.15);
}

/* Comment embed search */
.inv-tavern-comment-search {
	margin: 4px 0;
	background: rgba(13, 20, 36, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	overflow: hidden;
	max-height: 180px;
	overflow-y: auto;
}

/* Smaller embeds in comments */
.inv-tavern-embed--comment {
	max-width: 320px;
	margin-top: 4px;
}

.inv-tavern-embed--comment .inv-tavern-embed__card {
	padding: 6px 8px;
	gap: 8px;
}

.inv-tavern-embed--comment .inv-tavern-embed__thumb {
	width: 32px;
	height: 32px;
}

.inv-tavern-embed--comment .inv-tavern-embed__title {
	font-size: 0.72rem;
}

/* Comment input form */
.inv-tavern-post__comment-form {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.inv-tavern-post__comment-input {
	flex: 1;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 20px;
	padding: 6px 14px;
	color: #e2e8f0;
	font-size: 0.78rem;
	outline: none;
	transition: border-color 0.15s;
}

.inv-tavern-post__comment-input:focus {
	border-color: rgba(245, 158, 11, 0.4);
}

.inv-tavern-post__comment-input::placeholder {
	color: #6b7494;
}

.inv-tavern-post__comment-send {
	background: none;
	border: none;
	color: #f59e0b;
	cursor: pointer;
	padding: 4px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.15s;
}

.inv-tavern-post__comment-send:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.inv-tavern-post__comment-send:not(:disabled):hover {
	background: rgba(245, 158, 11, 0.1);
}

/* ── Post Detail — Inline View ────────────────────────────────────────────── */
.inv-tavern-post-inline {
	animation: inv-fade-in 0.15s ease-out;
}

@keyframes inv-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.inv-tavern-post-inline__back {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 0;
	margin-bottom: 8px;
	background: none;
	border: none;
	color: #f59e0b;
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: gap 0.15s;
}

.inv-tavern-post-inline__back:hover {
	gap: 10px;
}

.inv-tavern-post-inline__back svg {
	flex-shrink: 0;
}

.inv-tavern-post-inline__content .inv-tavern-post {
	max-width: none;
	background: rgba(17, 24, 39, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.04);
	border-radius: 12px;
}

/* ── Two-column Layout ────────────────────────────────────────────────────── */
.inv-tavern-layout {
	display: flex;
	gap: 24px;
	align-items: stretch;
}

.inv-tavern-layout__main {
	flex: 3;
	min-width: 340px;
	max-width: 680px;
}

.inv-tavern-layout__aside {
	flex: 2;
	min-width: 200px;
	max-width: 680px;
	position: sticky;
	top: 80px;
	max-height: calc(100vh - 100px);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.06) transparent;
	align-self: flex-start;
}

.inv-tavern-aside__header {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.92rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #f59e0b;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0 12px;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(245, 158, 11, 0.15);
	position: sticky;
	top: 0;
	background: rgba(8, 13, 26, 0.97);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 5;
}

.inv-tavern-aside__header svg {
	color: #f59e0b;
	width: 16px;
	height: 16px;
}

.inv-tavern-layout__aside .inv-rich-feed {
	border: none;
	background: none;
}

.inv-tavern-layout__aside .inv-rich-feed__item {
	padding: 8px 0;
	max-width: none;
}

.inv-tavern-layout__aside .inv-rich-feed__meta {
	gap: 6px;
}

.inv-tavern-layout__aside .inv-rich-feed__actor {
	font-size: 0.72rem;
}

.inv-tavern-layout__aside .inv-rich-feed__time {
	font-size: 0.65rem;
}

.inv-tavern-layout__aside .inv-rich-feed__lineup-card {
	max-width: none;
}

.inv-tavern-layout__aside .inv-rich-feed__achievement-img {
	max-height: 120px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
	.inv-tavern-layout {
		flex-direction: column;
	}

	.inv-tavern-layout__main {
		max-width: 100%;
		min-width: 0;
		width: 100%;
	}

	.inv-tavern-feed {
		max-width: 100%;
		width: 100%;
	}

	.inv-tavern-layout {
		gap: 0;
	}

	.inv-tavern-post {
		max-width: 100%;
	}

	.inv-tavern-layout__aside {
		width: 100%;
		position: static;
		max-height: none;
		overflow: visible;
		border-top: 1px solid rgba(255, 255, 255, 0.06);
		padding-top: 16px;
		margin-top: 8px;
	}
}

@media (max-width: 640px) {
	.inv-tavern-post {
		padding: 12px 8px;
	}

	.inv-tavern-feed {
		border-radius: 6px;
		border-left: none;
		border-right: none;
	}

	.inv-tavern-compose-modal {
		padding: 0;
		align-items: stretch;
	}

	.inv-tavern-compose-modal__inner {
		max-width: 100%;
		border-radius: 0;
		min-height: 100vh;
	}

	.inv-tavern-post__images--2 img {
		height: 110px;
	}

	.inv-tavern-post__images--3 img:first-child {
		height: 110px;
	}

	.inv-tavern-post__images--3 img:nth-child(2),
	.inv-tavern-post__images--3 img:nth-child(3) {
		height: 80px;
	}
}

/* =============================================================================
   Quote Replies Section (post detail view)
   ============================================================================= */

.inv-tavern-quotes-section {
	margin-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding-top: 12px;
}

.inv-tavern-quotes-section__header {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b7494;
	margin-bottom: 10px;
}

.inv-tavern-quotes-section__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.05);
	background: rgba(17, 24, 39, 0.4);
	margin-bottom: 8px;
	transition: border-color 0.15s, background 0.15s;
}

.inv-tavern-quotes-section__item:hover {
	border-color: rgba(245, 158, 11, 0.2);
	background: rgba(17, 24, 39, 0.6);
}

.inv-tavern-quotes-section__body {
	flex: 1;
	min-width: 0;
}

.inv-tavern-quotes-section__user {
	font-weight: 600;
	font-size: 0.8rem;
	color: #e5e7eb;
	margin-right: 6px;
}

.inv-tavern-quotes-section__time {
	font-size: 0.7rem;
	color: #6b7494;
}

.inv-tavern-quotes-section__text {
	font-size: 0.78rem;
	color: #94a3b8;
	margin: 4px 0 0;
	line-height: 1.4;
}

/* =============================================================================
   Bookmark Ribbon (top-right of post card)
   ============================================================================= */

.inv-tavern-post__bookmark {
	position: absolute;
	top: -2px;
	right: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	border: none;
	background: none;
	color: rgba(148, 163, 184, 0.25);
	cursor: pointer;
	padding: 0;
	transition: color 0.2s, transform 0.2s;
	z-index: 2;
}

.inv-tavern-post__bookmark svg {
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.inv-tavern-post__bookmark:hover {
	color: #f59e0b;
	transform: translateY(-1px);
}

.inv-tavern-post__bookmark.is-bookmarked {
	color: #f59e0b;
}

.inv-tavern-post__bookmark.is-bookmarked svg {
	fill: #f59e0b;
	filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.inv-tavern-post__bookmark-count {
	font-size: 0.6rem;
	font-weight: 700;
	color: inherit;
	line-height: 1;
}

/* =============================================================================
   Hashtag Filter Banner
   ============================================================================= */

.inv-tavern-hashtag-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(245, 158, 11, 0.08);
	border: 1px solid rgba(245, 158, 11, 0.2);
	border-radius: 10px;
	padding: 8px 14px;
	margin-bottom: 12px;
}

.inv-tavern-hashtag-banner__tag {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	color: #f59e0b;
}

.inv-tavern-hashtag-banner__back {
	display: flex;
	align-items: center;
	gap: 4px;
	border: none;
	background: rgba(245, 158, 11, 0.12);
	color: #f59e0b;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
}

.inv-tavern-hashtag-banner__back:hover {
	background: rgba(245, 158, 11, 0.25);
}

/* =============================================================================
   Tavern Music Player
   ============================================================================= */

.inv-home-tab--music {
	display: flex;
	align-items: center;
	margin-left: auto;
	padding: 0 !important;
	border: none !important;
	cursor: default;
}

.inv-home-tab--music::after {
	display: none !important;
}

.inv-tavern-music {
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(17, 24, 39, 0.7);
	border: 1px solid rgba(245, 158, 11, 0.2);
	border-radius: 20px;
	padding: 4px 10px 4px 6px;
	transition: opacity 0.3s;
}

.inv-tavern-music__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: none;
	background: rgba(245, 158, 11, 0.15);
	color: #f59e0b;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	flex-shrink: 0;
}

.inv-tavern-music__toggle:hover {
	background: rgba(245, 158, 11, 0.3);
}

.inv-tavern-music__icon-off { display: none; }
.inv-tavern-music.is-muted .inv-tavern-music__icon-on  { display: none; }
.inv-tavern-music.is-muted .inv-tavern-music__icon-off { display: block; }

.inv-tavern-music.is-muted .inv-tavern-music__toggle {
	background: rgba(107, 116, 148, 0.15);
	color: #6b7494;
}

/* Gentle pulse when music is playing */
.inv-tavern-music:not(.is-muted) .inv-tavern-music__toggle {
	animation: inv-music-pulse 2s ease-in-out infinite;
}

@keyframes inv-music-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
	50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0); }
}

.inv-tavern-music__volume {
	-webkit-appearance: none;
	appearance: none;
	width: 60px;
	height: 4px;
	border-radius: 2px;
	background: rgba(107, 116, 148, 0.3);
	outline: none;
	cursor: pointer;
}

.inv-tavern-music__volume::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #f59e0b;
	cursor: pointer;
}

.inv-tavern-music__volume::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #f59e0b;
	border: none;
	cursor: pointer;
}

.inv-tavern-music__next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: none;
	background: rgba(107, 116, 148, 0.15);
	color: #94a3b8;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	flex-shrink: 0;
}

.inv-tavern-music__next:hover {
	background: rgba(245, 158, 11, 0.2);
	color: #f59e0b;
}

.inv-tavern-music__label {
	font-size: 0.7rem;
	color: #94a3b8;
	max-width: 100px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 639px) {
	.inv-tavern-music__label { display: none; }
	.inv-tavern-music__volume { display: none; }
	.inv-tavern-music__next { width: 24px; height: 24px; }
	.inv-tavern-music__toggle { width: 28px; height: 28px; }
}

/* Share Menu */
.inv-share-menu {
	background: rgba(13, 20, 36, 0.97);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 12px;
	min-width: 220px;
	backdrop-filter: blur(8px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.inv-share-menu__title {
	font-size: 0.7rem;
	font-weight: 700;
	color: #6b7494;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 8px;
	padding: 0 4px;
}
.inv-share-menu__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
}
.inv-share-menu__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 6px;
	background: none;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	color: #8b95b0;
	transition: all 0.15s;
}
.inv-share-menu__item:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #f0f4ff;
}
.inv-share-menu__item span {
	font-size: 0.55rem;
	font-weight: 600;
}
