/* W00T.RU storefront — перенесено из v0-макета (Tailwind) в чистый CSS */

/* Вырываем витрину/кабинет автора из ограниченного контейнера GeneratePress на всю ширину
   экрана, прячем шапку/футер/заголовок темы GeneratePress — у обеих страниц свой хедер (.w00t-header) */
html:has(body:has(.w00t-storefront)),
html:has(body:has(.w00t-author)) {
	background: #0e1116;
}

body:has(.w00t-storefront),
body:has(.w00t-author) {
	background: #0e1116;
	margin: 0;
}

body:has(.w00t-storefront) #masthead,
body:has(.w00t-storefront) .entry-header,
body:has(.w00t-storefront) #colophon,
body:has(.w00t-storefront) .site-footer,
body:has(.w00t-storefront) .widget-area.sidebar,
body:has(.w00t-author) #masthead,
body:has(.w00t-author) .entry-header,
body:has(.w00t-author) #colophon,
body:has(.w00t-author) .site-footer,
body:has(.w00t-author) .widget-area.sidebar {
	display: none;
}

body:has(.w00t-storefront) .site.grid-container.container,
body:has(.w00t-storefront) .site-content,
body:has(.w00t-storefront) .site-content.grid-container,
body:has(.w00t-storefront) .content-area,
body:has(.w00t-storefront) .site-main,
body:has(.w00t-author) .site.grid-container.container,
body:has(.w00t-author) .site-content,
body:has(.w00t-author) .site-content.grid-container,
body:has(.w00t-author) .content-area,
body:has(.w00t-author) .site-main {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body:has(.w00t-storefront) .inside-article,
body:has(.w00t-storefront) article,
body:has(.w00t-storefront) .entry-content,
body:has(.w00t-author) .inside-article,
body:has(.w00t-author) article,
body:has(.w00t-author) .entry-content {
	padding: 0 !important;
	margin: 0 !important;
	background: #0e1116 !important;
}

.w00t-header,
.w00t-storefront,
.w00t-author {
	--w00t-bg: #0e1116;
	--w00t-panel: #151a24;
	--w00t-panel-dark: #0e1116;
	--w00t-border: #2a3441;
	--w00t-border-hover: #556274;
	--w00t-text: #ffffff;
	--w00t-text-muted: #8a97a8;
	--w00t-cyan: #22d3ee;
	--w00t-fuchsia: #d946ef;
	--w00t-yellow: #facc15;
	--w00t-green: #5fd38a;
	--w00t-purple: #a855f7;
	font-family: inherit;
	background: var(--w00t-bg);
}

/* Header */
.w00t-header {
	position: sticky;
	top: 0;
	z-index: 10;
	border-bottom: 1px solid var(--w00t-border);
	background: rgba(16, 21, 32, 0.95);
	backdrop-filter: blur(6px);
}

.w00t-header__inner {
	max-width: 72rem;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1.5rem;
}

.w00t-header__logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.w00t-header__logo-text {
	font-size: 1.75rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--w00t-cyan);
	text-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

.w00t-header__pill {
	border: 1px solid rgba(217, 70, 239, 0.5);
	background: rgba(217, 70, 239, 0.1);
	color: #f0abfc;
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.125rem 0.5rem;
	border-radius: 0.375rem;
}

.w00t-header__user {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.w00t-header__author-link {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--w00t-cyan);
	text-decoration: none;
	white-space: nowrap;
}

.w00t-header__author-link:hover {
	text-decoration: underline;
}

.w00t-header__user-info {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.w00t-header__user-name {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--w00t-text);
}

.w00t-header__user-coins {
	font-size: 0.75rem;
	color: var(--w00t-text-muted);
}

.w00t-header__avatar {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	border: 1px solid #3a4655;
	background: linear-gradient(135deg, #2b1055, #7b2ff7);
}

/* Storefront */
.w00t-storefront {
	max-width: 72rem;
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

.w00t-storefront__heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.w00t-storefront__heading h1 {
	text-align: center;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--w00t-text);
	margin: 0;
}

/* Layout: sidebar + grid */
.w00t-storefront__layout {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	align-items: flex-start;
}

@media (min-width: 768px) {
	.w00t-storefront__layout {
		flex-direction: row;
	}
}

/* Sidebar */
.w00t-sidebar {
	flex-shrink: 0;
	width: 100%;
}

@media (min-width: 768px) {
	.w00t-sidebar {
		width: 14rem;
	}
}

.w00t-sidebar__list {
	display: flex;
	overflow-x: auto;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) {
	.w00t-sidebar__list {
		flex-direction: column;
		overflow-x: visible;
	}
}

.w00t-sidebar__item {
	flex-shrink: 0;
	display: block;
	width: 100%;
	white-space: nowrap;
	text-align: left;
	border-radius: 0.5rem;
	border: 1px solid var(--w00t-border);
	background: var(--w00t-panel);
	color: #c3ccd8;
	padding: 0.625rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.w00t-sidebar__item:hover {
	border-color: var(--w00t-border-hover);
	color: var(--w00t-text);
}

.w00t-sidebar__item.is-active {
	border-color: var(--w00t-cyan);
	background: rgba(34, 211, 238, 0.1);
	color: #67e8f9;
}

.w00t-sidebar__item--absurd.is-active {
	border-color: var(--w00t-fuchsia);
	background: rgba(217, 70, 239, 0.1);
	color: #f0abfc;
}

/* Genre pills on cards */
.w00t-card__genres {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-top: 0.5rem;
}

.w00t-pill {
	border-radius: 0.375rem;
	border: 1px solid var(--w00t-border);
	background: var(--w00t-panel-dark);
	color: var(--w00t-text-muted);
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.1875rem 0.5rem;
}

.w00t-pill--absurd {
	border-color: rgba(217, 70, 239, 0.5);
	background: rgba(217, 70, 239, 0.1);
	color: #f0abfc;
}

/* Grid */
.w00t-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	flex: 1;
	min-width: 0;
	width: 100%;
}

@media (min-width: 768px) {
	.w00t-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.w00t-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.w00t-card.is-hidden {
	display: none;
}

/* Card */
.w00t-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 0.5rem;
	border: 1px solid var(--w00t-border);
	background: var(--w00t-panel);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.w00t-card__cover {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	background-size: cover;
}

.w00t-card__grid-overlay {
	position: absolute;
	inset: 0;
	opacity: 0.3;
	mix-blend-mode: overlay;
	background-image:
		linear-gradient(rgba(0, 255, 255, 0.35) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 255, 255, 0.35) 1px, transparent 1px);
	background-size: 28px 28px;
}

.w00t-card__glow {
	position: absolute;
	width: 6rem;
	height: 6rem;
	border-radius: 999px;
	filter: blur(24px);
}

.w00t-card__glow--cyan {
	left: -2.5rem;
	top: 1.5rem;
	background: rgba(34, 211, 238, 0.4);
}

.w00t-card__glow--fuchsia {
	right: 1.5rem;
	bottom: 1rem;
	background: rgba(217, 70, 239, 0.4);
}

.w00t-card__icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.7));
}

.w00t-card__badge {
	position: absolute;
	left: 0.75rem;
	top: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.375rem;
	border: 1px solid rgba(253, 224, 71, 0.6);
	background: rgba(250, 204, 21, 0.95);
	color: var(--w00t-panel-dark);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.25rem 0.625rem;
	border-radius: 0.375rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.w00t-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 1rem;
	padding: 1.25rem;
}

.w00t-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--w00t-text);
	margin: 0;
}

.w00t-card__author {
	font-size: 0.875rem;
	color: var(--w00t-text-muted);
	margin: 0.25rem 0 0;
}

.w00t-card__terminal {
	border-radius: 0.375rem;
	border: 1px solid var(--w00t-border);
	background: var(--w00t-panel-dark);
}

.w00t-card__terminal-head {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	border-bottom: 1px solid var(--w00t-border);
	padding: 0.375rem 0.75rem;
	font-size: 0.6875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7888;
}

.w00t-card__terminal-body {
	overflow-x: auto;
	margin: 0;
	padding: 0.625rem 0.75rem;
	font-family: 'Courier New', Consolas, monospace;
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--w00t-green);
}

.w00t-card__footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 0.25rem;
}

.w00t-card__price {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 0.375rem;
	border: 1px solid var(--w00t-border);
	background: var(--w00t-panel-dark);
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--w00t-text);
}

.w00t-wishlist {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 0.375rem;
	border: 1px solid #3a4655;
	background: transparent;
	color: #c3ccd8;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.w00t-wishlist:hover {
	border-color: var(--w00t-border-hover);
	color: var(--w00t-text);
}

.w00t-wishlist.is-active {
	border-color: var(--w00t-purple);
	background: rgba(168, 85, 247, 0.1);
	color: #d8b4fe;
}

.w00t-wishlist__star {
	color: inherit;
}

.w00t-wishlist.is-active .w00t-wishlist__star {
	color: #d8b4fe;
}

.w00t-wishlist__count {
	border-radius: 0.25rem;
	background: rgba(255, 255, 255, 0.1);
	color: var(--w00t-text-muted);
	padding: 0.125rem 0.375rem;
	font-size: 0.75rem;
}

.w00t-wishlist.is-active .w00t-wishlist__count {
	background: rgba(168, 85, 247, 0.2);
	color: #e9d5ff;
}

.w00t-wishlist--nope {
	border-color: #f59e0b;
	color: #fbbf24;
}

.w00t-wishlist:disabled {
	opacity: 0.6;
	cursor: wait;
}

.w00t-card__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.w00t-buy {
	border-radius: 0.375rem;
	border: 1px solid transparent;
	background: var(--w00t-cyan);
	color: #041014;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.1s;
}

.w00t-buy:hover {
	opacity: 0.9;
}

.w00t-buy:active {
	transform: scale(0.97);
}

.w00t-buy:disabled {
	opacity: 0.6;
	cursor: wait;
}

.w00t-buy.is-owned {
	background: transparent;
	border-color: var(--w00t-border);
	color: var(--w00t-text-muted);
	cursor: default;
}

.w00t-toast {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 9999;
	max-width: 22rem;
	border-radius: 0.5rem;
	border: 1px solid var(--w00t-cyan);
	background: var(--w00t-panel-dark);
	color: var(--w00t-text);
	padding: 0.875rem 1.125rem;
	font-size: 0.875rem;
	font-weight: 600;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	opacity: 0;
	transform: translateY(0.5rem);
	transition: opacity 0.3s, transform 0.3s;
}

.w00t-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.w00t-toast--error {
	border-color: #f59e0b;
	color: #fbbf24;
}

/* Author dashboard */
.w00t-author {
	max-width: 72rem;
	margin: 0 auto;
	padding: 2rem 1.5rem 4rem;
}

.w00t-author__heading h1 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--w00t-text);
	margin: 0 0 0.375rem;
}

.w00t-author__subtitle {
	color: var(--w00t-text-muted);
	font-size: 0.9375rem;
	margin: 0 0 2rem;
}

.w00t-author__guest {
	color: var(--w00t-text-muted);
	font-size: 1rem;
}

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

@media (min-width: 640px) {
	.w00t-author__stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

.w00t-stat {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	border-radius: 0.5rem;
	border: 1px solid var(--w00t-border);
	background: var(--w00t-panel);
	padding: 1.25rem;
}

.w00t-stat__label {
	font-size: 0.8125rem;
	color: var(--w00t-text-muted);
}

.w00t-stat__value {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--w00t-text);
}

.w00t-author__layout {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

@media (min-width: 900px) {
	.w00t-author__layout {
		flex-direction: row;
		align-items: flex-start;
	}
}

.w00t-author__games {
	flex: 1;
	min-width: 0;
}

.w00t-author__games h2 {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--w00t-text);
	margin: 0 0 1rem;
}

.w00t-author__empty {
	color: var(--w00t-text-muted);
	font-size: 0.9375rem;
}

.w00t-author__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.w00t-author__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	border-radius: 0.5rem;
	border: 1px solid var(--w00t-border);
	background: var(--w00t-panel);
	padding: 0.875rem 1.125rem;
}

.w00t-author__row-main {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.w00t-author__row-title {
	font-weight: 700;
	color: var(--w00t-text);
}

.w00t-author__row-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	font-size: 0.8125rem;
	color: var(--w00t-text-muted);
}

.w00t-status-badge {
	border-radius: 0.375rem;
	border: 1px solid var(--w00t-border);
	padding: 0.125rem 0.5rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.w00t-status-badge--publish {
	border-color: rgba(95, 211, 138, 0.5);
	background: rgba(95, 211, 138, 0.1);
	color: var(--w00t-green);
}

.w00t-status-badge--pending {
	border-color: rgba(250, 204, 21, 0.5);
	background: rgba(250, 204, 21, 0.1);
	color: var(--w00t-yellow);
}

.w00t-status-badge--draft {
	color: var(--w00t-text-muted);
}

.w00t-withdraw {
	flex-shrink: 0;
	border-radius: 0.375rem;
	border: 1px solid #3a4655;
	background: transparent;
	color: #c3ccd8;
	padding: 0.5rem 0.875rem;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
}

.w00t-withdraw:hover {
	border-color: #f59e0b;
	color: #fbbf24;
}

.w00t-withdraw:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* Author form */
.w00t-author__form-wrap {
	flex-shrink: 0;
	width: 100%;
	border-radius: 0.5rem;
	border: 1px solid var(--w00t-border);
	background: var(--w00t-panel);
	padding: 1.5rem;
}

@media (min-width: 900px) {
	.w00t-author__form-wrap {
		width: 22rem;
	}
}

.w00t-author__form-wrap h2 {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--w00t-text);
	margin: 0 0 0.375rem;
}

.w00t-author__form-hint {
	font-size: 0.8125rem;
	color: var(--w00t-text-muted);
	margin: 0 0 1.25rem;
}

.w00t-author-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.w00t-field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.w00t-field label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--w00t-text-muted);
}

.w00t-field input,
.w00t-field select,
.w00t-field textarea {
	border-radius: 0.375rem;
	border: 1px solid var(--w00t-border);
	background: var(--w00t-panel-dark);
	color: var(--w00t-text);
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	font-family: inherit;
}

.w00t-field input:focus,
.w00t-field select:focus,
.w00t-field textarea:focus {
	outline: none;
	border-color: var(--w00t-cyan);
}

.w00t-field textarea {
	resize: vertical;
}

.w00t-gradient-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.w00t-gradient-swatch {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.375rem;
	border: 2px solid var(--w00t-border);
	background-size: cover;
	cursor: pointer;
	padding: 0;
}

.w00t-gradient-swatch:hover {
	border-color: var(--w00t-border-hover);
}

.w00t-gradient-swatch.is-active {
	border-color: var(--w00t-cyan);
	box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35);
}

.w00t-submit-game {
	border-radius: 0.375rem;
	border: 1px solid transparent;
	background: var(--w00t-cyan);
	color: #041014;
	padding: 0.625rem 1rem;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.1s;
}

.w00t-submit-game:hover {
	opacity: 0.9;
}

.w00t-submit-game:active {
	transform: scale(0.98);
}

.w00t-submit-game:disabled {
	opacity: 0.6;
	cursor: wait;
}
