/* Altuena Topija - wspolne elementy: pola, wskaznik zapisu, panel uzytkownika. */

.atop-stage,
/* Belka bywa dzieckiem samego body - wtedy nie ma nad soba ani powloki,
   ani panelu, wiec zmienne kolorow musi dostac takze bezposrednio. */
.atop-shell,
.atop-panel,
.atop-topbar {
	--atop-void: #07040f;
	--atop-deep: #100822;
	--atop-surface: #180e2e;
	--atop-line: rgba(196, 168, 255, .16);
	--atop-line-strong: rgba(196, 168, 255, .30);
	--atop-violet: #7b3fe4;
	--atop-violet-lift: #9d6bff;
	--atop-magenta: #e85d9f;
	--atop-starlight: #f3ecff;
	--atop-muted: #a48fcb;
	--atop-muted-dim: #7c6aa0;
	--atop-gold: #f0c36d;
	--atop-ok: #4ade9b;
	--atop-display: "Syne", "Trebuchet MS", sans-serif;
	--atop-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--atop-mono: ui-monospace, Menlo, Consolas, monospace;
}

/* pola formularzy - jeden wyglad w calej wtyczce */

.atop-input {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--atop-body);
	font-size: 14px;
	color: var(--atop-starlight);
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid var(--atop-line-strong);
	background: linear-gradient(140deg, rgba(123, 63, 228, .30), rgba(232, 93, 159, .20) 52%, rgba(90, 120, 255, .24));
	transition: border-color .18s ease, box-shadow .18s ease;
}

.atop-input::placeholder {
	color: rgba(243, 236, 255, .42);
}

.atop-input:focus {
	outline: none;
	border-color: var(--atop-violet-lift);
	box-shadow: 0 0 0 3px rgba(157, 107, 255, .24);
}

select.atop-input {
	appearance: none;
	cursor: pointer;
}

.atop-field label {
	display: block;
	font-family: var(--atop-mono);
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--atop-muted);
	margin: 0 0 7px;
}

.atop-field-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 7px;
}

.atop-field-head label {
	margin: 0;
}

.atop-hint {
	margin: 7px 0 0;
	font-size: 12.5px;
	color: var(--atop-muted-dim);
}

.atop-note {
	margin: 0;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 13px;
	color: var(--atop-starlight);
	background: rgba(232, 93, 159, .16);
	border: 1px solid rgba(232, 93, 159, .30);
}

/* wskaznik zapisu */

.atop-save {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--atop-mono);
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
	min-height: 16px;
}

.atop-save[data-state]::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.atop-save[data-state="saving"] {
	color: var(--atop-gold);
	animation: atop-pulse 1s ease-in-out infinite;
}

.atop-save[data-state="saved"] {
	color: var(--atop-ok);
}

.atop-save[data-state="error"] {
	color: var(--atop-magenta);
	text-transform: none;
	letter-spacing: 0;
	font-family: var(--atop-body);
	font-size: 12px;
}

/* Komunikat pod formularzem. Bez tresci nie zajmuje miejsca. */
.atop-message {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--atop-muted);
}

.atop-message:empty {
	display: none;
}

.atop-message[data-state="ok"] {
	color: var(--atop-ok);
}

.atop-message[data-state="error"] {
	color: var(--atop-magenta);
}

@keyframes atop-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .35; }
}

/* panel uzytkownika: kosmiczne tlo, czarny pasek, szklane karty */

.atop-shell {
	position: relative;
	background: var(--atop-void);
	color: var(--atop-starlight);
	font-family: var(--atop-body);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

/* strona wtyczki bez ramki motywu */

body.atop-standalone {
	margin: 0;
	padding: 0;
	background: var(--atop-void, #07040f);
}

body.atop-standalone .atop-shell-body {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
}

.atop-sky {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	z-index: 0;
}

.atop-topbar {
	position: sticky;
	top: 0;
	z-index: 40;

	width: 100%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 58px;
	padding: 0 24px;

	/* Bez zawijania: druga linijka ikon czytalaby sie jak pusty pas
	   nad panelem. Gdy zabraknie miejsca, rzad ikon sie przewija. */
	flex-wrap: nowrap;
	background: rgba(4, 2, 10, .92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(157, 107, 255, .24);
	box-shadow: 0 1px 0 rgba(232, 93, 159, .18);
}

a.atop-topbar-brand {
	text-decoration: none;
}

.atop-topbar-brand {
	font-family: var(--atop-display);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .4em;
	text-indent: .4em;
	text-transform: uppercase;
	color: #fff;
}

.atop-topbar-tools {
	display: flex;
	align-items: stretch;
	gap: 2px;
}

.atop-tool {
	position: relative;
	display: flex;
}

.atop-tool-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: rgba(255, 255, 255, .72);
	padding: 8px 12px;
	border-radius: 10px;
	font-family: var(--atop-body);
	font-size: 12.5px;
}

.atop-tool-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, .08);
}

.atop-tool-btn[aria-pressed="true"] {
	color: #fff;
	background: rgba(232, 93, 159, .24);
	box-shadow: inset 0 -2px 0 var(--atop-magenta);
}

a.atop-tool-btn {
	text-decoration: none;
}

.atop-tool-badge {
	font-family: var(--atop-mono);
	font-size: 10.5px;
	background: rgba(255, 255, 255, .10);
	border-radius: 999px;
	padding: 1px 8px;
	color: var(--atop-starlight);
}

.atop-tool-logout {
	margin-left: 10px;
	color: rgba(255, 157, 191, .85);
}

.atop-card-panel[hidden] {
	display: none;
}

.atop-tool-ico {
	width: 20px;
	height: 20px;
	display: block;
	flex-shrink: 0;
}

.atop-tool-ico svg {
	width: 20px;
	height: 20px;
	display: block;
}

.atop-tool-ico-flag {
	width: 22px;
	height: 15px;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}

.atop-tool-label {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.atop-tool-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	min-width: 252px;
	background: #140c26;
	border: 1px solid var(--atop-line-strong);
	border-radius: 16px;
	padding: 10px;
	box-shadow: 0 26px 56px rgba(0, 0, 0, .62);
	z-index: 30;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.atop-tool-menu[hidden] {
	display: none;
}

.atop-tool-menu-wide {
	min-width: 312px;
}

.atop-tool-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 11px;
	border-radius: 9px;
	color: var(--atop-muted);
	font-size: 13.5px;
	text-decoration: none;
}

.atop-tool-menu a:hover {
	background: rgba(123, 63, 228, .22);
	color: var(--atop-starlight);
}

.atop-tool-menu a.atop-tool-danger {
	color: #ff9dbf;
}

.atop-tool-menu a.atop-tool-danger:hover {
	background: rgba(232, 93, 159, .20);
}

.atop-tool-head {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 6px 10px 12px;
}

.atop-tool-head strong {
	display: block;
	font-size: 13.5px;
	color: var(--atop-starlight);
	font-weight: 600;
}

.atop-tool-head span {
	display: block;
	font-size: 12px;
	color: var(--atop-muted-dim);
}

.atop-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	font-family: var(--atop-display);
	font-weight: 800;
	font-size: 15px;
	color: #fff;
	background: linear-gradient(120deg, var(--atop-violet), var(--atop-magenta));
}

.atop-tool-sep {
	height: 1px;
	background: var(--atop-line);
	margin: 6px 4px;
}

.atop-tool-title {
	font-family: var(--atop-mono);
	font-size: 10px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
	padding: 4px 10px 8px;
}

.atop-lang-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
}

.atop-points-total {
	font-family: var(--atop-display);
	font-weight: 800;
	font-size: 30px;
	color: var(--atop-starlight);
	padding: 0 10px 6px;
	line-height: 1.1;
}

.atop-points-total span {
	font-size: 13px;
	color: var(--atop-muted);
	font-weight: 600;
}

.atop-tool-menu .atop-hint {
	padding: 0 10px 4px;
}

.atop-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 11px;
	font-size: 12.5px;
	color: var(--atop-muted);
}

.atop-row .plus {
	color: var(--atop-ok);
	font-family: var(--atop-mono);
}

.atop-row .minus {
	color: var(--atop-magenta);
	font-family: var(--atop-mono);
}

.atop-row .neutral {
	color: var(--atop-starlight);
	font-family: var(--atop-mono);
}

.atop-pair-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 0 6px;
}

.atop-pstat {
	background: rgba(123, 63, 228, .16);
	border: 1px solid var(--atop-line);
	border-radius: 12px;
	padding: 11px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.atop-pstat .k {
	font-family: var(--atop-mono);
	font-size: 9.5px;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
}

.atop-pstat .v {
	font-family: var(--atop-display);
	font-weight: 700;
	font-size: 18px;
	color: var(--atop-starlight);
	font-variant-numeric: tabular-nums;
}

.atop-pstat .d {
	font-size: 11px;
	color: var(--atop-muted);
}

.atop-ref-link {
	display: flex;
	gap: 6px;
	padding: 2px 6px 6px;
}

.atop-ref-link input {
	flex: 1;
	min-width: 0;
	font-family: var(--atop-mono);
	font-size: 11.5px;
	color: var(--atop-starlight);
	background: rgba(255, 255, 255, .05);
	border: 1px solid var(--atop-line);
	border-radius: 9px;
	padding: 8px 10px;
}

.atop-ref-link button {
	background: rgba(232, 93, 159, .22);
	border: 1px solid rgba(232, 93, 159, .34);
	color: #ffd6e8;
	border-radius: 9px;
	padding: 8px 12px;
	cursor: pointer;
	font-family: var(--atop-body);
	font-size: 12px;
	white-space: nowrap;
}

.atop-ref-link button:hover {
	background: rgba(232, 93, 159, .34);
}

.atop-country-list {
	display: flex;
	flex-direction: column;
	gap: 1px;
	max-height: 240px;
	overflow-y: auto;
}

.atop-country {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
	padding: 8px 11px;
	border-radius: 9px;
	color: var(--atop-muted);
	font-family: var(--atop-body);
	font-size: 13px;
}

.atop-country:hover {
	background: rgba(123, 63, 228, .20);
	color: var(--atop-starlight);
}

.atop-country[aria-current="true"] {
	background: rgba(232, 93, 159, .18);
	color: var(--atop-starlight);
}

.atop-country-meta {
	margin-left: auto;
	font-family: var(--atop-mono);
	font-size: 11px;
	color: var(--atop-muted-dim);
}

.atop-shell-body {
	position: relative;
	z-index: 10;
	padding: 28px 24px 48px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	width: 100%;
}

.atop-cards {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 16px;
}

.atop-cardp {
	background: linear-gradient(168deg, rgba(38, 22, 68, .80), rgba(16, 8, 34, .88));
	border: 1px solid var(--atop-line);
	border-radius: 22px;
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 24px 56px rgba(4, 2, 12, .46), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.atop-cardp-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.atop-cardp-head h2 {
	font-family: var(--atop-display);
	font-weight: 700;
	font-size: 16px;
	margin: 0;
	color: var(--atop-starlight);
}

.atop-cardp-note {
	font-family: var(--atop-mono);
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
}

.atop-grid-2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 16px;
}

.atop-mini-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 10px;
}

.atop-mini {
	background: rgba(123, 63, 228, .14);
	border: 1px solid var(--atop-line);
	border-radius: 12px;
	padding: 12px 13px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.atop-mini .k {
	font-family: var(--atop-mono);
	font-size: 9.5px;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
}

.atop-mini .v {
	font-family: var(--atop-display);
	font-weight: 700;
	font-size: 18px;
	color: var(--atop-starlight);
	font-variant-numeric: tabular-nums;
}

.atop-copy-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

/* Weryfikacja telefonu: numer ma miec miejsce na numer. Pole rosnie do
   konca wiersza, przycisk bierze tylko tyle, ile ma napisu, i jest
   spokojnym obrysem zamiast gradientowej plachty. */
.atop-phone {
	display: grid;
	gap: 14px;
	max-width: 640px;
	margin-top: 12px;
}

.atop-phone-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: end;
}

.atop-phone-row .atop-field { min-width: 0; }
.atop-phone-row .atop-input { width: 100%; }

.atop-phone-code .atop-input {
	max-width: 190px;
	font-family: var(--atop-mono);
	font-size: 17px;
	letter-spacing: .34em;
	text-align: center;
}

.atop-phone .atop-btn {
	margin: 0;
	padding: 9px 14px;
	font-size: 11.5px;
	background: transparent;
	border: 1px solid var(--atop-line);
	color: var(--atop-muted);
	box-shadow: none;
}

.atop-phone .atop-btn:hover {
	border-color: var(--atop-line-strong);
	color: var(--atop-starlight);
	transform: none;
	box-shadow: none;
}

@media (max-width: 520px) {
	.atop-phone-row { grid-template-columns: 1fr; }
	.atop-phone-row .atop-btn { justify-self: start; }
}

@media (max-width: 760px) {
	.atop-cards {
		grid-template-columns: 1fr;
	}

	.atop-tool-label {
		display: none;
	}

	.atop-topbar {
		padding: 0 10px;
	}

	}

/* bezpieczenstwo konta: historia IP i aktywne sesje */

.atop-cardp-wide {
	grid-column: 1 / -1;
}

.atop-two-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 22px;
}

.atop-sub-head {
	font-family: var(--atop-mono);
	font-size: 10px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
	margin: 0 0 10px;
	font-weight: 400;
}

.atop-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.atop-list li {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: baseline;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--atop-line);
	font-size: 13px;
}

.atop-list li:last-child {
	border-bottom: 0;
}

.atop-ip {
	font-family: var(--atop-mono);
	font-size: 12.5px;
	color: var(--atop-starlight);
}

.atop-list-meta {
	font-size: 12px;
	color: var(--atop-muted-dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.atop-two-cols .atop-btn-small {
	margin-top: 12px;
}

/* karty: kolekcja krajow, flagi, zamowienia, postep */

.atop-progress {
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	overflow: hidden;
	margin: 4px 0 16px;
}

.atop-progress span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--atop-violet), var(--atop-magenta));
}

.atop-country-wall {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
	gap: 10px;
}

.atop-country-tile {
	border: 1px solid var(--atop-line);
	border-radius: 14px;
	padding: 13px 14px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	background: rgba(255, 255, 255, .025);
	opacity: .45;
	filter: grayscale(1);
}

.atop-country-tile.is-unlocked {
	opacity: 1;
	filter: none;
	background: linear-gradient(150deg, rgba(123, 63, 228, .34), rgba(232, 93, 159, .18));
	border-color: var(--atop-line-strong);
}

.atop-country-code {
	font-family: var(--atop-display);
	font-weight: 800;
	font-size: 20px;
	letter-spacing: .06em;
	color: var(--atop-starlight);
}

.atop-country-name {
	font-size: 13px;
	color: var(--atop-starlight);
}

.atop-country-when {
	font-family: var(--atop-mono);
	font-size: 10.5px;
	color: var(--atop-muted-dim);
}

.atop-flag-wall {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}

.atop-flag-tile {
	display: flex;
	align-items: center;
	gap: 11px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid var(--atop-line);
	border-radius: 14px;
	padding: 13px 14px;
	cursor: pointer;
	color: var(--atop-muted);
	font-family: var(--atop-body);
	font-size: 14px;
	text-align: left;
}

.atop-flag-tile:hover {
	background: rgba(123, 63, 228, .22);
	color: var(--atop-starlight);
}

.atop-flag-tile[aria-current="true"] {
	background: linear-gradient(150deg, rgba(123, 63, 228, .34), rgba(232, 93, 159, .20));
	border-color: var(--atop-line-strong);
	color: var(--atop-starlight);
}

.atop-orders {
	display: flex;
	flex-direction: column;
}

.atop-order {
	display: grid;
	grid-template-columns: auto 1fr auto auto auto;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--atop-line);
	font-size: 13px;
	color: var(--atop-muted);
	text-decoration: none;
}

.atop-order:last-child {
	border-bottom: 0;
}

.atop-order:hover {
	color: var(--atop-starlight);
}

.atop-order-id {
	font-family: var(--atop-mono);
	font-size: 12px;
	color: var(--atop-muted-dim);
}

.atop-order-name {
	color: var(--atop-starlight);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.atop-order-total {
	font-family: var(--atop-mono);
	color: var(--atop-starlight);
}

.atop-order-date {
	font-family: var(--atop-mono);
	font-size: 11.5px;
	color: var(--atop-muted-dim);
	white-space: nowrap;
}

.atop-pill {
	font-size: 11px;
	border-radius: 999px;
	padding: 3px 10px;
	white-space: nowrap;
	background: rgba(255, 255, 255, .08);
	color: var(--atop-muted);
}

.atop-pill-completed {
	background: rgba(74, 222, 155, .16);
	color: #8df0c2;
}

.atop-pill-processing,
.atop-pill-on-hold {
	background: rgba(240, 195, 109, .16);
	color: var(--atop-gold);
}

.atop-pill-cancelled,
.atop-pill-failed,
.atop-pill-refunded {
	background: rgba(232, 93, 159, .16);
	color: #ff9dbf;
}

.atop-links-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 4px;
}

.atop-plus {
	color: var(--atop-ok);
	font-family: var(--atop-mono);
}

.atop-minus {
	color: var(--atop-magenta);
	font-family: var(--atop-mono);
}

/* tresc WooCommerce wewnatrz naszej karty */

.atop-wc a {
	color: var(--atop-violet-lift);
}

.atop-wc table {
	width: 100%;
	border-collapse: collapse;
	color: var(--atop-muted);
	font-size: 13.5px;
}

.atop-wc table th,
.atop-wc table td {
	border-bottom: 1px solid var(--atop-line);
	padding: 10px 8px;
	text-align: left;
}

.atop-wc h2,
.atop-wc h3,
.atop-wc legend {
	font-family: var(--atop-display);
	color: var(--atop-starlight);
}

.atop-wc input[type="text"],
.atop-wc input[type="email"],
.atop-wc input[type="tel"],
.atop-wc input[type="password"],
.atop-wc select,
.atop-wc textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--atop-body);
	font-size: 14px;
	color: var(--atop-starlight);
	padding: 11px 13px;
	border-radius: 14px;
	border: 1px solid var(--atop-line-strong);
	background: linear-gradient(140deg, rgba(123, 63, 228, .30), rgba(232, 93, 159, .20) 52%, rgba(90, 120, 255, .24));
}

.atop-wc .button,
.atop-wc button[type="submit"] {
	font-family: var(--atop-display);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	border: 0;
	border-radius: 14px;
	padding: 12px 18px;
	cursor: pointer;
	background: linear-gradient(100deg, var(--atop-violet), var(--atop-magenta));
}

.atop-wc .woocommerce-message,
.atop-wc .woocommerce-info,
.atop-wc .woocommerce-error {
	list-style: none;
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid var(--atop-line);
	background: rgba(123, 63, 228, .16);
	color: var(--atop-starlight);
}

@media (max-width: 760px) {
	.atop-topbar {
		padding: 8px 12px;
	}

	.atop-order {
		grid-template-columns: auto 1fr auto;
	}

	.atop-order-total,
	.atop-order-date {
		display: none;
	}
}

/* naklejka ACTIVE, miasta, wiek, odtwarzacz */

.atop-country-tile {
	position: relative;
	text-align: left;
	font-family: var(--atop-body);
	cursor: pointer;
	width: 100%;
}

.atop-sticker {
	display: inline-block;
	font-family: var(--atop-mono);
	font-size: 9.5px;
	letter-spacing: .14em;
	padding: 3px 8px;
	border-radius: 999px;
	background: linear-gradient(100deg, var(--atop-violet), var(--atop-magenta));
	color: #fff;
	vertical-align: middle;
}

.atop-country-tile .atop-sticker {
	position: absolute;
	top: 10px;
	right: 10px;
}

.atop-country-cities-count {
	font-family: var(--atop-mono);
	font-size: 10px;
	color: var(--atop-muted-dim);
	margin-top: 4px;
}

.atop-city-wall {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
	gap: 4px 14px;
}

.atop-city {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 13px;
	color: var(--atop-muted);
	padding: 5px 0;
	border-bottom: 1px solid var(--atop-line);
}

.atop-city-no {
	font-family: var(--atop-mono);
	font-size: 10.5px;
	color: var(--atop-muted-dim);
	min-width: 20px;
}

/* Ilu Topijczykow siedzi w tym miescie - zawsze na koncu wiersza. */
.atop-city-heads {
	margin-left: auto;
	font-family: var(--atop-mono);
	font-size: 11px;
	color: var(--atop-gold);
	padding: 1px 8px;
	border-radius: 999px;
	background: rgba(245, 196, 105, .10);
	border: 1px solid rgba(245, 196, 105, .26);
}

.atop-track {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.atop-track-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.atop-track-title {
	font-family: var(--atop-display);
	font-weight: 700;
	font-size: 20px;
	color: var(--atop-starlight);
}

.atop-track-artist {
	color: var(--atop-muted);
	font-size: 13.5px;
}

.atop-track-stage {
	border-radius: 16px;
	overflow: hidden;
	background: rgba(255, 255, 255, .04);
	border: 1px solid var(--atop-line);
	min-height: 62px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
}

.atop-track-stage audio {
	width: 100%;
}

.atop-track-stage iframe {
	width: 100%;
	max-width: 640px;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 12px;
}

.atop-track-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.atop-track-status {
	font-family: var(--atop-mono);
	font-size: 11.5px;
	color: var(--atop-muted);
}

.atop-track-status[data-state="done"] {
	color: var(--atop-ok);
}

/* atrybut hidden musi wygrywac z display:flex naszych kart */

.atop-shell [hidden],
.atop-cardp[hidden],
.atop-card-panel[hidden],
.atop-country-detail[hidden] {
	display: none !important;
}

/* pasek: same ikony, opis dopiero po kliknieciu w karte */

.atop-topbar-tools .atop-tool-label {
	display: none;
}

.atop-tool-btn {
	position: relative;
	padding: 9px 11px;
}

.atop-tool-btn .atop-tool-badge {
	position: static;
	font-size: 11px;
	padding: 1px 7px;
}

.atop-topbar-tools {
	gap: 4px;

	/* Ikony trzymaja sie prawej i nigdy nie wychodza poza belke -
	   na waskim ekranie rzad przewija sie w bok zamiast rozpychac pasek. */
	flex: 1 1 auto;
	min-width: 0;
	justify-content: flex-end;
	overflow-x: auto;
	scrollbar-width: none;
}

.atop-topbar-tools::-webkit-scrollbar {
	display: none;
}

.atop-topbar-tools > * {
	flex: 0 0 auto;
}

.atop-topbar-brand {
	flex: 0 0 auto;
}

/* miasto i kraj na koncie */

.atop-city-select[disabled] {
	opacity: .5;
	cursor: not-allowed;
}

/* strona dzielnicy */

.atop-district-hero {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	background: linear-gradient(150deg, rgba(123, 63, 228, .24), rgba(232, 93, 159, .12));
	border: 1px solid var(--atop-line);
	border-radius: 22px;
	padding: 24px 26px;
}

.atop-district-hero h1 {
	font-family: var(--atop-display);
	font-weight: 800;
	font-size: clamp(26px, 4vw, 40px);
	margin: 0;
	color: var(--atop-starlight);
}

.atop-district-country {
	font-family: var(--atop-mono);
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
	margin: 0 0 6px;
}

.atop-stat-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
}

.atop-stat {
	background: linear-gradient(168deg, rgba(38, 22, 68, .80), rgba(16, 8, 34, .88));
	border: 1px solid var(--atop-line);
	border-radius: 18px;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.atop-stat .k {
	font-family: var(--atop-mono);
	font-size: 10px;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
}

.atop-stat .v {
	font-family: var(--atop-display);
	font-weight: 800;
	font-size: 30px;
	color: var(--atop-starlight);
	font-variant-numeric: tabular-nums;
}

.atop-scan-note {
	margin: 0;
	font-size: 13px;
	color: var(--atop-muted);
}

/* miasto jako link do strony dzielnicy */

a.atop-city {
	text-decoration: none;
	gap: 8px;
}

a.atop-city:hover {
	color: var(--atop-starlight);
}

a.atop-city .atop-sticker {
	margin-left: auto;
	font-size: 8.5px;
	padding: 2px 6px;
}

/* dokowany odtwarzacz na dole strony */

.atop-dock {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	background: linear-gradient(168deg, rgba(38, 22, 68, .86), rgba(10, 5, 22, .94));
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-top: 1px solid rgba(157, 107, 255, .28);
	box-shadow: 0 -18px 50px rgba(3, 1, 10, .55), 0 -1px 0 rgba(232, 93, 159, .22);
	color: var(--atop-starlight);
	font-family: var(--atop-body);
}

.atop-dock[hidden] {
	display: none !important;
}

.atop-dock-bar {
	height: 3px;
	background: rgba(255, 255, 255, .10);
	overflow: hidden;
}

.atop-dock-bar span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--atop-violet), var(--atop-magenta));
	box-shadow: 0 0 14px rgba(232, 93, 159, .6);
	transition: width .4s linear;
}

.atop-dock-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 12px 24px 14px;
	/* Trzy rowne kolumny, wiec przycisk siedzi dokladnie na srodku doku
	   niezaleznie od tego, jak dlugi jest tytul nutki. */
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
}

.atop-dock-side {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.atop-dock-right {
	justify-content: flex-end;
}

.atop-dock-play {
	width: 54px;
	height: 54px;
	justify-self: center;
}

.atop-dock-play svg {
	width: 23px;
	height: 23px;
}

@media (max-width: 720px) {
	.atop-dock-inner {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.atop-dock-right {
		justify-content: center;
	}
}

.atop-dock-note {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: linear-gradient(120deg, var(--atop-violet), var(--atop-magenta));
	color: #fff;
	box-shadow: 0 0 24px rgba(123, 63, 228, .5);
}

.atop-dock-note svg {
	width: 18px;
	height: 18px;
}

/* Przycisk odtwarzania w doku - jedyne miejsce, z ktorego steruje sie nutka. */
.atop-dock-play {
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	border: 0;
	border-radius: 50%;
	display: grid;
	place-items: center;
	cursor: pointer;
	color: #fff;
	background: linear-gradient(120deg, var(--atop-violet), var(--atop-magenta));
	box-shadow: 0 0 26px rgba(123, 63, 228, .55);
	transition: transform .16s ease, box-shadow .16s ease;
}

.atop-dock-play:hover {
	transform: scale(1.06);
	box-shadow: 0 0 34px rgba(232, 93, 159, .6);
}

.atop-dock-play:focus-visible {
	outline: 2px solid var(--atop-gold);
	outline-offset: 3px;
}

.atop-dock-play[data-state="playing"] {
	animation: atop-pulse 2.4s ease-in-out infinite;
}

.atop-dock-play svg {
	width: 20px;
	height: 20px;
}

.atop-dock-play svg[hidden] {
	display: none !important;
}

.atop-dock-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.atop-dock .atop-track-title {
	font-family: var(--atop-display);
	font-weight: 700;
	font-size: 15px;
	color: var(--atop-starlight);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.atop-dock .atop-track-artist {
	font-size: 12.5px;
	color: var(--atop-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.atop-standalone .atop-shell-body {
	padding-bottom: 110px;
}

/* scena teledysku */

.atop-player .atop-track-stage {
	min-height: 220px;
	padding: 16px;
	background: rgba(4, 2, 10, .5);
}

.atop-player .atop-track-stage iframe {
	width: 100%;
	max-width: 900px;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 22px 60px rgba(3, 1, 10, .6);
}

.atop-player .atop-track-stage audio {
	width: 100%;
	max-width: 720px;
}

.atop-track-error {
	color: #ff9dbf;
	font-size: 13px;
	margin: 0;
}

@media (max-width: 640px) {
	.atop-dock-inner {
		padding: 10px 12px 12px;
		gap: 10px;
	}

	.atop-dock .atop-track-status {
		display: none;
	}
}

/* plakietki weryfikacji */

.atop-verify-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 10px 0;
	border-bottom: 1px solid var(--atop-line);
}

.atop-verify-line {
	margin-top: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.atop-verify-badge {
	display: inline-block;
	font-family: var(--atop-mono);
	font-size: 10px;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 999px;
	border: 1px solid var(--atop-line);
}

.atop-verify-badge.is-on {
	background: rgba(74, 222, 155, .16);
	color: #8df0c2;
	border-color: rgba(74, 222, 155, .34);
}

.atop-verify-badge.is-off {
	background: rgba(240, 195, 109, .14);
	color: var(--atop-gold);
	border-color: rgba(240, 195, 109, .30);
}

.atop-verify-meta {
	font-family: var(--atop-mono);
	font-size: 11.5px;
	color: var(--atop-muted-dim);
}

/* =======================================================================
   SZAFA - garderoba, konfigurator koszulki, tablica nagrod
   ======================================================================= */

.atop-tool-cur {
	width: auto;
	min-width: 58px;
	padding: 0 10px;
	position: relative;
	cursor: pointer;
}

.atop-tool-cur-face {
	font-family: var(--atop-mono);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .08em;
}

.atop-tool-cur select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	font: inherit;
	color: #000;
}

/* ---------- garderoba ---------- */

.atop-closet {
	position: relative;
	margin-top: 18px;
	border-radius: 24px;
	padding: 22px;
	overflow: hidden;
	border: 1px solid var(--atop-line);
	background:
		radial-gradient(880px 400px at 50% -20%, rgba(157, 107, 255, .20), transparent 62%),
		linear-gradient(180deg, rgba(30, 14, 60, .58), rgba(11, 5, 26, .74));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.atop-closet-rail {
	height: 3px;
	margin: 0 24px 6px;
	border-radius: 3px;
	background: linear-gradient(90deg, transparent, rgba(245, 196, 105, .8), transparent);
	box-shadow: 0 0 20px rgba(245, 196, 105, .4);
}

.atop-shelf {
	margin: 0 12px;
	padding: 22px 0 24px;
}

.atop-shelf + .atop-shelf {
	border-top: 1px solid rgba(157, 107, 255, .16);
}

.atop-shelf-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-family: var(--atop-mono);
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
}

.atop-shelf-label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--atop-line), transparent);
}

.atop-shelf-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
	gap: 16px;
	align-items: stretch;
}

.atop-item {
	display: flex;
	flex-direction: column;
	text-align: left;
	position: relative;
	padding: 18px 16px 16px;
	border-radius: 18px;
	border: 1px solid var(--atop-line);
	background: rgba(24, 10, 48, .55);
	color: var(--atop-starlight);
	font: inherit;
	cursor: pointer;
	overflow: hidden;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.atop-item:hover {
	transform: translateY(-4px);
	border-color: var(--atop-violet-lift);
	box-shadow: 0 20px 42px rgba(0, 0, 0, .48);
}

.atop-item.is-locked {
	opacity: .5;
	cursor: not-allowed;
}

.atop-item.is-locked:hover {
	transform: none;
	box-shadow: none;
	border-color: var(--atop-line);
}

.atop-item-shot,
.atop-item-ico {
	display: grid;
	place-items: center;
	width: 100%;
	height: 168px;
	margin-bottom: 12px;
	border-radius: 14px;
	position: relative;
	overflow: hidden;
	color: var(--atop-violet-lift);
	background: radial-gradient(62% 56% at 50% 48%, rgba(157, 107, 255, .18), transparent 74%);
}

.atop-item-shot img {
	position: absolute;
	inset: 6%;
	width: 88%;
	height: 88%;
	object-fit: contain;
	filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .5));
}

.atop-item-ico svg {
	width: 76px;
	height: 76px;
}

.atop-item h3 {
	margin: 0 0 4px;
	font-family: var(--atop-display);
	font-size: 16px;
	font-weight: 600;
}

.atop-item p {
	margin: 0;
	font-size: 13px;
	color: var(--atop-muted);
}

.atop-item-foot {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 14px;
}

.atop-price {
	font-family: var(--atop-display);
	font-size: 17px;
	font-weight: 600;
	color: var(--atop-gold);
	white-space: nowrap;
}

.atop-sticker-on {
	color: var(--atop-ok);
	border-color: rgba(74, 222, 155, .4);
	background: rgba(74, 222, 155, .1);
}

.atop-sticker-soon {
	color: var(--atop-muted-dim);
}

.atop-sticker-adult {
	color: var(--atop-magenta);
	border-color: rgba(232, 93, 159, .45);
	background: rgba(232, 93, 159, .12);
}

/* ---------- konfigurator ---------- */

.atop-back {
	margin-bottom: 14px;
}

.atop-tee {
	display: grid;
	grid-template-columns: 1.08fr .92fr;
	gap: 22px;
	align-items: start;
}

@media (max-width: 900px) {
	.atop-tee {
		grid-template-columns: 1fr;
	}
}

.atop-views {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.atop-view-btn {
	flex: 1;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--atop-line);
	background: rgba(123, 63, 228, .08);
	color: var(--atop-muted);
	font: inherit;
	font-size: 12.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: .16s;
}

.atop-view-btn:hover {
	color: var(--atop-starlight);
	border-color: var(--atop-violet-lift);
}

.atop-view-btn.is-on {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(130deg, var(--atop-violet), var(--atop-magenta));
	box-shadow: 0 0 18px rgba(123, 63, 228, .45);
}

.atop-tee-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 886 / 1024;
	border-radius: 16px;
	overflow: hidden;
	container-type: size;
	border: 1px solid var(--atop-line);
	background: radial-gradient(66% 52% at 50% 40%, rgba(157, 107, 255, .18), transparent 72%);
}

.atop-tee-stage img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5));
}

/* Pozycje nadrukow zdjete z wzoru produkcyjnego, w procentach kadru. */
.atop-pr {
	position: absolute;
	pointer-events: none;
	user-select: none;
}

.atop-pr-num {
	font-family: 'Anton', Impact, 'Haettenschweiler', 'Arial Narrow', sans-serif;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	letter-spacing: -.005em;
	transform: translateX(-50%);
}

.atop-pr-sub {
	font-family: 'Oswald', 'Arial Narrow', sans-serif;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	letter-spacing: .16em;
	transform-origin: center top;
}

.atop-pr-num-front { left: 48.6%; top: 22.7%; font-size: 9.45cqh; }
.atop-pr-sub-front { left: 48.8%; top: 31.4%; font-size: 2.45cqh; }
.atop-pr-num-back  { left: 49.2%; top: 15.8%; font-size: 9.45cqh; }
.atop-pr-logo-back { left: 70.2%; top: 86.3%; width: 7.26%; height: 6.28%; }
.atop-pr-logo-side { left: 43.4%; top: 38.2%; width: 7.26%; height: 6.13%; }

.atop-pr svg {
	width: 100%;
	height: 100%;
	display: block;
}

.atop-info {
	margin-top: 16px;
	padding: 16px 18px;
	border-radius: 16px;
	border: 1px solid var(--atop-line);
	background: rgba(123, 63, 228, .09);
}

.atop-info h3 {
	margin: 0 0 8px;
	font-family: var(--atop-display);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--atop-violet-lift);
}

.atop-info p {
	margin: 0 0 8px;
	font-size: 13.5px;
	color: var(--atop-muted);
}

.atop-info-list {
	margin: 0 0 12px;
	padding-left: 20px;
	font-size: 13.5px;
	color: var(--atop-muted);
}

.atop-info-list li::marker {
	color: var(--atop-violet-lift);
	font-weight: 600;
}

.atop-info-pts {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 0 !important;
}

.atop-info-pts span {
	flex-shrink: 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--atop-gold);
	color: #2a1500;
	font-family: var(--atop-display);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .05em;
}

.atop-size-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 14px;
	padding: 11px 16px;
	border-radius: 13px;
	border: 1px dashed var(--atop-line);
	background: rgba(123, 63, 228, .07);
}

.atop-size-line span {
	font-size: 13px;
	color: var(--atop-muted);
}

.atop-size-line b {
	font-family: var(--atop-display);
	font-size: 18px;
}

.atop-swatches {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.atop-swatches-ink {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
}

.atop-sw {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	padding: 9px 13px 9px 9px;
	border-radius: 15px;
	border: 1px solid var(--atop-line);
	background: rgba(255, 255, 255, .03);
	color: var(--atop-starlight);
	font: inherit;
	cursor: pointer;
	transition: .16s;
}

.atop-sw:hover {
	border-color: var(--atop-violet-lift);
	transform: translateY(-2px);
}

.atop-sw.is-on {
	border-color: var(--atop-gold);
	box-shadow: 0 0 0 1px var(--atop-gold), 0 0 22px rgba(245, 196, 105, .26);
}

.atop-sw:disabled {
	opacity: .22;
	cursor: not-allowed;
	transform: none;
	filter: grayscale(.6);
}

.atop-sw-dot {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 9px;
	border: 1px solid rgba(255, 255, 255, .22);
}

.atop-sw-name {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	text-align: left;
	min-width: 0;
}

.atop-sw-name b {
	font-family: var(--atop-display);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.atop-sw-name i {
	font-style: normal;
	font-size: 10.5px;
	color: var(--atop-muted);
}

.atop-sizes {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.atop-size {
	min-width: 52px;
	padding: 9px 12px;
	border-radius: 12px;
	border: 1px solid var(--atop-line);
	background: rgba(123, 63, 228, .08);
	color: var(--atop-muted);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: .16s;
}

.atop-size:hover {
	color: var(--atop-starlight);
	border-color: var(--atop-violet-lift);
}

.atop-size.is-on {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(130deg, var(--atop-violet), var(--atop-magenta));
}

.atop-recap {
	list-style: none;
	margin: 0;
	padding: 0;
}

.atop-recap li {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 8px 0;
	font-size: 14px;
	border-bottom: 1px solid rgba(157, 107, 255, .14);
}

.atop-recap li:last-child {
	border-bottom: 0;
}

.atop-recap span {
	color: var(--atop-muted);
}

.atop-recap i {
	display: block;
	font-style: normal;
	font-size: 12px;
	color: var(--atop-muted-dim);
}

.atop-recap b {
	text-align: right;
	font-weight: 600;
}

.atop-recap-money {
	margin-top: 12px;
	padding-top: 6px;
	border-top: 1px dashed var(--atop-line);
}

.atop-qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 14px;
}

.atop-qty > span {
	font-size: 13px;
	color: var(--atop-muted);
}

.atop-qty-box {
	display: flex;
	align-items: center;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--atop-line);
	background: rgba(123, 63, 228, .08);
}

.atop-qty-box button {
	width: 38px;
	height: 38px;
	border: 0;
	background: none;
	color: var(--atop-muted);
	font-size: 19px;
	cursor: pointer;
	transition: .15s;
}

.atop-qty-box button:hover {
	color: #fff;
	background: rgba(123, 63, 228, .35);
}

.atop-qty-box input {
	width: 52px;
	height: 38px;
	border: 0;
	background: none;
	color: var(--atop-starlight);
	text-align: center;
	font-family: var(--atop-display);
	font-size: 15px;
	font-weight: 600;
	-moz-appearance: textfield;
}

.atop-qty-box input::-webkit-outer-spin-button,
.atop-qty-box input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.atop-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--atop-line);
}

.atop-total b {
	font-family: var(--atop-display);
	font-size: 25px;
	color: var(--atop-gold);
}

.atop-btn-ghost {
	margin-top: 10px;
	background: rgba(123, 63, 228, .1);
	color: var(--atop-starlight);
	border: 1px solid var(--atop-violet-lift);
	box-shadow: none;
}

.atop-btn-ghost:hover {
	background: rgba(123, 63, 228, .24);
}

/* ---------- tablica nagrod ---------- */

.atop-reward-wall {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 12px;
	margin-top: 14px;
}

.atop-reward {
	position: relative;
	min-height: 118px;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1px solid var(--atop-line);
	background: rgba(24, 10, 48, .5);
	overflow: hidden;
}

.atop-reward-no {
	font-family: var(--atop-mono);
	font-size: 10.5px;
	letter-spacing: .12em;
	color: var(--atop-muted-dim);
}

.atop-reward-body h3 {
	margin: 6px 0 4px;
	font-family: var(--atop-display);
	font-size: 15px;
	font-weight: 600;
}

.atop-reward-body p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--atop-muted);
}

.atop-reward.is-open {
	border-color: rgba(245, 196, 105, .35);
	background: rgba(245, 196, 105, .07);
}

/* Zamglone nagrody sa nieczytelne celowo - filtr idzie na sama tresc,
   zeby numer miejsca i podpis zostaly ostre. */
.atop-reward.is-blurred .atop-reward-body {
	filter: blur(7px);
	opacity: .55;
	user-select: none;
}

.atop-reward.is-blurred::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(120% 90% at 50% 0%, rgba(123, 63, 228, .2), rgba(7, 3, 15, .55));
}

.atop-reward-lock {
	position: absolute;
	left: 16px;
	bottom: 12px;
	z-index: 1;
	font-family: var(--atop-mono);
	font-size: 9.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--atop-violet-lift);
	padding: 3px 9px;
	border-radius: 999px;
	border: 1px solid rgba(157, 107, 255, .4);
	background: rgba(7, 3, 15, .7);
}

.atop-pager {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.atop-pager-btn {
	padding: 8px 14px;
	border-radius: 11px;
	border: 1px solid var(--atop-line);
	background: rgba(123, 63, 228, .08);
	color: var(--atop-muted);
	font-family: var(--atop-mono);
	font-size: 11.5px;
	letter-spacing: .06em;
	text-decoration: none;
	cursor: pointer;
	transition: .16s;
}

.atop-pager-btn:hover {
	color: var(--atop-starlight);
	border-color: var(--atop-violet-lift);
}

.atop-pager-btn.is-on {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(130deg, var(--atop-violet), var(--atop-magenta));
}

/* Ukrywanie musi wygrywac z ukladem siatki i pozycjonowaniem, tak jak przy kartach. */
.atop-reward[hidden],
.atop-pr[hidden],
[data-atop-tee][hidden],
[data-atop-closet][hidden] {
	display: none !important;
}

/* =======================================================================
   PROFIL, AWATAR, ZNAJOMI, CZAT
   ======================================================================= */

/* ---------- pigulka poziomu w pasku ---------- */

.atop-lvl-chip {
	display: flex;
	align-items: center;
	gap: 9px;
	height: 42px;
	padding: 0 12px 0 8px;
	margin-right: 8px;
	border-radius: 13px;
	border: 1px solid rgba(240, 195, 109, .35);
	background: rgba(240, 195, 109, .10);
	color: var(--atop-gold);
	cursor: pointer;
	text-decoration: none;
	transition: background .18s ease;
}

.atop-lvl-chip:hover {
	background: rgba(240, 195, 109, .22);
}

.atop-lvl-ring {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

.atop-lvl-text b {
	display: block;
	font-family: var(--atop-display);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	color: var(--atop-gold);
}

.atop-lvl-text i {
	display: block;
	font-style: normal;
	font-size: 9.5px;
	line-height: 1.4;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--atop-muted);
}

/* Doswiadczenie stoi pod poziomem - cyfry monospace, zeby licznik nie
   przesuwal calego chipa przy kazdym zdobytym punkcie. */
.atop-lvl-exp {
	font-family: var(--atop-mono);
	font-variant-numeric: tabular-nums;
	letter-spacing: .08em;
	color: var(--atop-starlight);
	opacity: .78;
}

/* ---------- profil ---------- */

.atop-profile {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 20px;
	align-items: start;
}

@media (max-width: 900px) {
	.atop-profile {
		grid-template-columns: 1fr;
	}
}

.atop-av-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid var(--atop-line);
	background: radial-gradient(70% 60% at 50% 40%, rgba(157, 107, 255, .18), transparent 72%), rgba(6, 3, 14, .5);
}

.atop-av-frame svg,
.atop-av-photo {
	width: 100%;
	height: 100%;
	display: block;
}

.atop-av-photo {
	object-fit: cover;
}

.atop-seg {
	display: flex;
	gap: 6px;
	margin-bottom: 14px;
}

.atop-seg-btn {
	flex: 1;
	padding: 9px;
	border-radius: 12px;
	border: 1px solid var(--atop-line);
	background: rgba(123, 63, 228, .08);
	color: var(--atop-muted);
	font: inherit;
	font-size: 12.5px;
	cursor: pointer;
	transition: .16s;
}

.atop-seg-btn.is-on {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(130deg, var(--atop-violet), var(--atop-magenta));
}

.atop-who-name {
	margin: 14px 0 0;
	font-family: var(--atop-display);
	font-size: 23px;
	font-weight: 600;
}

.atop-who-no {
	margin: 2px 0 0;
	font-family: var(--atop-mono);
	font-size: 12px;
	letter-spacing: .14em;
	color: var(--atop-muted-dim);
}

.atop-who {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.atop-tag {
	font-family: var(--atop-mono);
	font-size: 10.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: 999px;
	border: 1px solid var(--atop-line);
	color: var(--atop-muted);
}

.atop-tag-job {
	color: var(--atop-gold);
	border-color: rgba(240, 195, 109, .4);
	background: rgba(240, 195, 109, .10);
}

.atop-tag-lvl {
	color: #2a1500;
	background: var(--atop-gold);
	border-color: transparent;
	font-weight: 700;
}

.atop-xp {
	margin-top: 16px;
}

.atop-xp-bar {
	height: 8px;
	border-radius: 99px;
	background: rgba(255, 255, 255, .07);
	overflow: hidden;
}

.atop-xp-bar span {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--atop-violet), var(--atop-magenta), var(--atop-gold));
}

.atop-xp-line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 7px;
	font-size: 11.5px;
	color: var(--atop-muted);
}

.atop-jobs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	gap: 8px;
	max-height: 240px;
	overflow: auto;
	padding-right: 6px;
}

.atop-job {
	padding: 8px 10px;
	border-radius: 11px;
	border: 1px solid var(--atop-line);
	background: rgba(123, 63, 228, .07);
	color: var(--atop-muted);
	font: inherit;
	font-size: 12.5px;
	text-align: left;
	cursor: pointer;
	transition: .15s;
}

.atop-job:hover {
	color: var(--atop-starlight);
	border-color: var(--atop-violet-lift);
}

.atop-job.is-on {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(130deg, var(--atop-violet), var(--atop-magenta));
}

.atop-job.is-first {
	border-color: rgba(240, 195, 109, .45);
}

.atop-upload {
	display: block;
	padding: 20px;
	border-radius: 16px;
	border: 1px dashed var(--atop-line);
	background: rgba(123, 63, 228, .05);
	text-align: center;
	cursor: pointer;
	transition: .16s;
}

.atop-upload:hover,
.atop-upload.is-over {
	border-color: var(--atop-violet-lift);
	background: rgba(123, 63, 228, .14);
}

.atop-upload b {
	display: block;
	font-family: var(--atop-display);
	font-size: 14px;
	margin-bottom: 4px;
}

.atop-upload p {
	margin: 0;
	font-size: 12.5px;
	color: var(--atop-muted-dim);
}

/* ---------- konfigurator awatara ---------- */

.atop-avconf {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 20px;
	align-items: start;
}

@media (max-width: 980px) {
	.atop-avconf {
		grid-template-columns: 1fr;
	}
}

.atop-parts {
	display: grid;
	gap: 14px;
}

.atop-part h3 {
	margin: 0 0 8px;
	font-family: var(--atop-mono);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
}

.atop-opts {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
}

.atop-opt {
	padding: 8px 12px;
	border-radius: 11px;
	border: 1px solid var(--atop-line);
	background: rgba(123, 63, 228, .07);
	color: var(--atop-muted);
	font: inherit;
	font-size: 12.5px;
	cursor: pointer;
	transition: .15s;
}

.atop-opt:hover {
	color: var(--atop-starlight);
	border-color: var(--atop-violet-lift);
}

.atop-opt.is-on {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(130deg, var(--atop-violet), var(--atop-magenta));
}

.atop-dots {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
}

.atop-dot {
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 11px;
	border: 1px solid rgba(255, 255, 255, .2);
	cursor: pointer;
	transition: .15s;
}

.atop-dot:hover {
	transform: translateY(-2px);
}

.atop-dot.is-on {
	box-shadow: 0 0 0 2px var(--atop-gold), 0 0 18px rgba(240, 195, 109, .4);
}

/* ---------- znajomi ---------- */

.atop-qr-row {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 20px;
	align-items: center;
	margin-top: 14px;
}

@media (max-width: 640px) {
	.atop-qr-row {
		grid-template-columns: 1fr;
	}
}

.atop-qr {
	width: 190px;
	height: 190px;
	padding: 10px;
	border-radius: 18px;
	background: #fff;
	flex-shrink: 0;
}

.atop-qr svg {
	width: 100%;
	height: 100%;
	display: block;
}

.atop-qr-code {
	margin: 10px 0;
	font-family: var(--atop-mono);
	font-size: 17px;
	letter-spacing: .18em;
	color: var(--atop-gold);
	word-break: break-all;
}

.atop-code-add {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.atop-code-add .atop-input {
	flex: 1;
	min-width: 220px;
}

.atop-friends {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
	margin-top: 14px;
}

.atop-friend {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 16px;
	border: 1px solid var(--atop-line);
	background: rgba(24, 10, 48, .5);
	color: var(--atop-starlight);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: .15s;
}

.atop-friend:hover {
	border-color: var(--atop-violet-lift);
	transform: translateY(-2px);
}

.atop-friend-ask {
	cursor: default;
	flex-wrap: wrap;
}

.atop-friend-ask:hover {
	transform: none;
	border-color: var(--atop-line);
}

.atop-mini {
	width: 54px;
	height: 54px;
	flex-shrink: 0;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(123, 63, 228, .16);
	display: block;
}

.atop-mini svg,
.atop-mini img {
	width: 100%;
	height: 100%;
	display: block;
}

.atop-friend-who {
	min-width: 0;
	flex: 1;
}

.atop-friend-who b {
	display: block;
	font-family: var(--atop-display);
	font-size: 14px;
	font-weight: 600;
}

.atop-friend-who span {
	display: block;
	font-size: 11.5px;
	color: var(--atop-muted);
}

.atop-friend-answer {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.atop-friend-unread {
	flex-shrink: 0;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--atop-magenta);
	color: #fff;
	font-family: var(--atop-mono);
	font-size: 11px;
	display: grid;
	place-items: center;
}

/* ---------- czat ---------- */

.atop-chat {
	display: grid;
	grid-template-columns: 270px 1fr;
	min-height: 520px;
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid var(--atop-line);
	background: rgba(24, 10, 48, .55);
}

@media (max-width: 820px) {
	.atop-chat {
		grid-template-columns: 1fr;
	}

	.atop-chat-list {
		max-height: 220px;
	}
}

.atop-chat-list {
	border-right: 1px solid var(--atop-line);
	padding: 10px;
	overflow: auto;
}

.atop-chat-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px;
	border: 0;
	border-radius: 13px;
	background: none;
	color: var(--atop-starlight);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.atop-chat-item:hover {
	background: rgba(123, 63, 228, .16);
}

.atop-chat-item.is-on {
	background: rgba(232, 93, 159, .2);
}

.atop-chat-item .atop-mini {
	width: 40px;
	height: 40px;
	border-radius: 11px;
}

.atop-chat-who {
	min-width: 0;
	flex: 1;
}

.atop-chat-who b {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
}

.atop-chat-who span {
	display: block;
	font-size: 11px;
	color: var(--atop-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.atop-chat-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.atop-chat-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--atop-line);
}

.atop-chat-head .atop-mini {
	width: 42px;
	height: 42px;
	border-radius: 12px;
}

.atop-chat-head b {
	font-family: var(--atop-display);
	font-size: 15px;
}

.atop-chat-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	overflow: auto;
	max-height: 420px;
}

.atop-msg {
	max-width: 74%;
	padding: 11px 15px;
	border-radius: 18px;
	font-size: 14px;
	line-height: 1.5;
	word-break: break-word;
}

.atop-msg.is-theirs {
	align-self: flex-start;
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--atop-line);
	border-bottom-left-radius: 6px;
}

.atop-msg.is-mine {
	align-self: flex-end;
	color: #fff;
	background: linear-gradient(130deg, var(--atop-violet), var(--atop-magenta));
	border-bottom-right-radius: 6px;
}

.atop-msg time {
	display: block;
	margin-top: 4px;
	font-size: 10px;
	opacity: .65;
}

.atop-chat-foot {
	display: flex;
	gap: 10px;
	padding: 14px 18px;
	border-top: 1px solid var(--atop-line);
}

.atop-chat-foot .atop-input {
	flex: 1;
}


/* ------------------------------------------------------------------ handel */

.atop-grid-3 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 16px;
	margin-bottom: 18px;
}

/* magazyn - kafelek pionowy, zeby liczba nigdy nie wchodzila na ikonke
   ani na nazwe, niezaleznie od tego, ile ma cyfr */

.atop-res-wall {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	gap: 12px;
}

/* W panelu budynku kafelki sa mniejsze - lista surowcow ma sie miescic
   w kilku kolumnach, a nie ciagnac panelu w gore. */
.atop-sheet .atop-res-wall {
	grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
	gap: 8px;
}

.atop-sheet .atop-res-slim { padding: 7px 9px; }

.atop-res {
	display: grid;
	grid-template-rows: auto auto auto;
	justify-items: start;
	gap: 6px;
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--atop-line);
	border-radius: 16px;
	background: var(--atop-deep);
	transition: border-color .18s ease, transform .18s ease;
}

.atop-res:hover {
	border-color: var(--atop-line-strong);
	transform: translateY(-1px);
}

.atop-res-ico {
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
}

.atop-res-ico svg {
	width: 24px;
	height: 24px;
}

.atop-res-count {
	max-width: 100%;
	font-family: var(--atop-mono);
	font-size: 20px;
	line-height: 1.05;
	letter-spacing: .01em;
	color: var(--atop-starlight);

	/* Duze liczby lamia sie w kafelku zamiast go rozpychac. */
	overflow-wrap: anywhere;
	word-break: break-word;
}

.atop-res-name {
	max-width: 100%;
	font-family: var(--atop-body);
	font-size: 11.5px;
	line-height: 1.3;
	color: var(--atop-muted);
	overflow-wrap: anywhere;
}

/* gielda - formularz wystawki */

.atop-offer-form {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto;
	align-items: end;
	gap: 14px;
	margin: 4px 0 12px;
}

.atop-offer-side {
	min-width: 0;
	display: grid;
	gap: 6px;
}

.atop-offer-tag {
	font-family: var(--atop-body);
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
}

.atop-offer-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 96px;
	gap: 8px;
}

.atop-input-num {
	text-align: right;
	font-family: var(--atop-mono);
}

.atop-offer-swap {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-bottom: 5px;
	border-radius: 50%;
	border: 1px solid var(--atop-line);
	color: var(--atop-violet-lift);
}

.atop-offer-swap svg {
	width: 18px;
	height: 18px;
}

.atop-offer-go {
	margin: 0;
	white-space: nowrap;
}

.atop-seg-market {
	margin: 14px 0 12px;
}

/* gielda - wiersz oferty */

.atop-offers {
	display: grid;
	gap: 10px;
}

.atop-offer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	border: 1px solid var(--atop-line);
	border-radius: 16px;
	background: var(--atop-deep);
}

.atop-offer.is-mine {
	border-color: rgba(232, 93, 159, .38);
	background: linear-gradient(120deg, rgba(232, 93, 159, .10), var(--atop-deep) 62%);
}

.atop-offer-legs {
	min-width: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.atop-offer-leg {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.atop-offer-leg b {
	font-family: var(--atop-mono);
	font-size: 15px;
	color: var(--atop-starlight);
	overflow-wrap: anywhere;
}

.atop-offer-leg i {
	font-style: normal;
	font-family: var(--atop-body);
	font-size: 12px;
	color: var(--atop-muted);
}

.atop-offer-arrow {
	color: var(--atop-violet-lift);
	font-size: 16px;
}

.atop-offer-meta {
	display: grid;
	gap: 2px;
	text-align: right;
}

.atop-offer-meta b {
	font-family: var(--atop-body);
	font-size: 12px;
	color: var(--atop-starlight);
}

.atop-offer-meta i {
	font-style: normal;
	font-size: 11px;
	color: var(--atop-muted-dim);
}

.atop-offer-act .atop-btn {
	margin: 0;
}

.atop-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 14px;
	font-family: var(--atop-mono);
	font-size: 12px;
	color: var(--atop-muted);
}

.atop-pager .atop-btn {
	margin: 0;
}

/* zamek na zakladce */

.atop-locked {
	text-align: center;
}

.atop-locked-mark {
	width: 62px;
	height: 62px;
	margin: 6px auto 14px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--atop-line-strong);
	background: var(--atop-deep);
	color: var(--atop-violet-lift);
}

.atop-locked-mark svg {
	width: 30px;
	height: 30px;
}

/* rejestr ruchow */

.atop-ledger {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.atop-ledger li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 14px;
	border: 1px solid var(--atop-line);
	border-radius: 12px;
	background: var(--atop-deep);
}

.atop-ledger li span {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-family: var(--atop-body);
	font-size: 13px;
	color: var(--atop-starlight);
	overflow-wrap: anywhere;
}

.atop-ledger li i {
	font-style: normal;
	font-size: 11px;
	color: var(--atop-muted-dim);
}

.atop-ledger li b {
	font-family: var(--atop-mono);
	font-size: 14px;
	letter-spacing: .04em;
	white-space: nowrap;
}

.atop-ledger .atop-in {
	color: var(--atop-ok);
}

.atop-ledger .atop-out {
	color: var(--atop-magenta);
}

.atop-res-wall[hidden],
.atop-ledger[hidden],
.atop-offers[hidden],
.atop-pager[hidden],
.atop-locked[hidden] {
	display: none !important;
}

@media (max-width: 860px) {
	.atop-offer-form {
		grid-template-columns: 1fr;
	}

	.atop-offer-swap {
		transform: rotate(90deg);
		margin: 0 auto;
	}

	.atop-offer-go {
		width: 100%;
	}

	.atop-offer {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.atop-offer-meta {
		text-align: left;
	}

	.atop-offer-act .atop-btn {
		width: 100%;
	}
}

@media (max-width: 420px) {
	.atop-res-wall {
		grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	}

	.atop-res-count {
		font-size: 17px;
	}
}

/* Strona "dajesz" i strona "chcesz" maja rozne akcenty, zeby kierunek
   wymiany bylo widac bez czytania - lewa gasnie, prawa swieci. */

.atop-offer-give i {
	color: var(--atop-muted-dim);
}

.atop-offer-want b {
	color: var(--atop-gold);
}


/* ------------------------------------------------- belka poza kontenerem */

/* Panel wchodzi na strone jako shortcode, wiec belka narysowana razem z nim
   siedzi w kontenerze motywu o stalej szerokosci - i tam zostaje, bo kontener
   ja przycina. Dlatego PHP stawia ja tuz po otwarciu body, a gdy motyw nie
   obsluguje tego miejsca, skrypt przenosi ja tam sam. Ponizej wyglad belki,
   ktora jest dzieckiem body: pelna szerokosc i warstwa nad motywem. */

body > .atop-topbar {
	width: 100%;
	max-width: none;
	margin: 0;
	z-index: 99990;
}

/* Pasek administracyjny WordPressa siedzi na samej gorze okna,
   wiec belka przykleja sie pod nim, a nie chowa sie za nim. */
body.admin-bar > .atop-topbar {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar > .atop-topbar {
		top: 46px;
	}
}

/* ---------------------------------------------------------------- playlista */

.atop-playlist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
	max-height: 460px;
	overflow-y: auto;
}

.atop-plrow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 10px;
	padding: 4px 12px 4px 4px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: transparent;
	transition: border-color .18s ease, background .18s ease;
}

.atop-plrow:hover {
	border-color: var(--atop-line);
	background: var(--atop-deep);
}

.atop-plrow.is-playing {
	border-color: rgba(232, 93, 159, .45);
	background: linear-gradient(120deg, rgba(232, 93, 159, .12), var(--atop-deep) 60%);
}

/* Nutka z wzietym punktem - gra dalej, tylko przygaszona, zeby bylo widac,
   ze nic z niej juz nie kapnie. */
.atop-plrow.is-done .atop-plmeta b {
	color: var(--atop-muted);
}

.atop-plrow.is-done .atop-plart {
	opacity: .72;
}

.atop-plgo {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 8px;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
	color: inherit;
}

/* Okladka: kadr 16:9 z YouTube przycinany do kwadratu, zeby lista
   czytala sie rowno niezaleznie od zrodla nutki. */
.atop-plart {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 8px;
	background: var(--atop-surface);
}

.atop-plart img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.atop-plart-blank {
	color: var(--atop-violet-lift);
	background: linear-gradient(150deg, rgba(123, 63, 228, .34), rgba(232, 93, 159, .18));
}

.atop-plart-blank svg {
	width: 22px;
	height: 22px;
}

.atop-plmeta {
	min-width: 0;
	display: grid;
	gap: 2px;
}

.atop-plmeta b {
	font-family: var(--atop-body);
	font-size: 14px;
	color: var(--atop-starlight);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.atop-plmeta i {
	font-style: normal;
	font-size: 12px;
	color: var(--atop-muted-dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.atop-pltag {
	flex: 0 0 auto;
	font-family: var(--atop-mono);
	font-size: 11.5px;
	letter-spacing: .04em;
	color: var(--atop-muted-dim);
	white-space: nowrap;
}

.atop-plfav {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	padding: 0;
	background: transparent;
	border: 1px solid var(--atop-line);
	border-radius: 50%;
	cursor: pointer;
	color: var(--atop-muted-dim);
	transition: color .18s ease, border-color .18s ease;
}

.atop-plfav svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linejoin: round;
}

.atop-plfav:hover {
	color: var(--atop-magenta);
	border-color: rgba(232, 93, 159, .45);
}

.atop-plfav.is-on {
	color: var(--atop-magenta);
	border-color: rgba(232, 93, 159, .55);
}

.atop-plfav.is-on svg {
	fill: currentColor;
}

.atop-plfav[disabled] {
	opacity: .5;
	cursor: default;
}

.atop-playlist[hidden],
.atop-plrow[hidden] {
	display: none !important;
}

@media (max-width: 520px) {
	.atop-plart {
		width: 42px;
		height: 42px;
	}

	.atop-pltag {
		display: none;
	}
}

/* ------------------------------------------------------------------ plansza */

.atop-map {
	position: relative;
	height: min(64vh, 600px);
	min-height: 380px;
	margin-bottom: 12px;
	border: 1px solid var(--atop-line);
	border-radius: 18px;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 50% 42%, rgba(123, 63, 228, .28), transparent 62%),
		radial-gradient(70% 60% at 76% 78%, rgba(232, 93, 159, .14), transparent 70%),
		var(--atop-void);
	cursor: grab;
	touch-action: none;
}

.atop-map.is-panning { cursor: grabbing; }

.atop-map-sky {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.atop-map-world {
	position: absolute;
	top: 0;
	left: 0;
	transform-origin: 0 0;
	will-change: transform;
}

.atop-map-terrain {
	display: block;
	overflow: visible;
}

/* Rura pompowni lezy nad terenem, ale pod budynkami - dzieki temu wchodzi
   pod sam budynek, a nie na niego. */
.atop-map-pipes {
	position: absolute;
	top: 0;
	left: 0;
	overflow: visible;
	pointer-events: none;
}

.atop-pipe-flow {
	animation: atop-flow 1.1s linear infinite;
}

.atop-pipe-ring {
	transform-box: fill-box;
	transform-origin: center;
	animation: atop-ripple 2.6s ease-out infinite;
}

@keyframes atop-flow {
	to { stroke-dashoffset: -48; }
}

@keyframes atop-ripple {
	0% { transform: scale(.35); opacity: .85; }
	100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.atop-pipe-flow, .atop-pipe-ring { animation: none; }
}

.atop-map-builds {
	position: absolute;
	top: 0;
	left: 0;
}

.atop-bld {
	position: absolute;
	cursor: pointer;
	user-select: none;
	-webkit-user-drag: none;
	filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .55));
	transition: filter .18s ease;
}

.atop-bld:hover { filter: drop-shadow(0 12px 22px rgba(232, 93, 159, .5)); }
.atop-bld.is-held { cursor: grabbing; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .7)); }
.atop-bld.is-moving { filter: drop-shadow(0 0 14px rgba(74, 222, 155, .8)); }

.atop-map-readout {
	position: absolute;
	right: 12px;
	top: 12px;
	padding: 7px 13px;
	border-radius: 12px;
	background: rgba(9, 5, 20, .84);
	border: 1px solid var(--atop-line);
	backdrop-filter: blur(8px);
	font-family: var(--atop-mono);
	font-size: 11.5px;
	color: var(--atop-muted);
	min-height: 30px;
	min-width: 130px;
}

.atop-map-readout[hidden] { display: none !important; }

.atop-map-readout b { color: var(--atop-starlight); font-weight: 600; }

.atop-map-readout i {
	display: block;
	font-style: normal;
	color: var(--atop-magenta);
	margin-top: 2px;
}

.atop-map-hud {
	position: absolute;
	left: 12px;
	bottom: calc(var(--atop-dock-h, 96px) + 12px);
	z-index: 24;
	display: flex;
	gap: 7px;
	align-items: center;
}

.atop-map-hud .atop-btn {
	margin: 0;
	background: rgba(9, 5, 20, .84);
	backdrop-filter: blur(8px);
}

.atop-map-count {
	font-family: var(--atop-mono);
	font-size: 11.5px;
	color: var(--atop-muted-dim);
	padding-left: 4px;
}

.atop-map-ver {
	font-family: var(--atop-mono);
	font-size: 10.5px;
	letter-spacing: .06em;
	color: var(--atop-muted-dim);
	opacity: .55;
	padding-left: 6px;
}

/* panel budynku */

/* Panel budynku wyjezdza z doku. Ma byc podreczny, a nie na pol ekranu -
   wysokosc bierze z tresci, szerokosc ma ograniczona, a szczegoly chowa
   pod przyciskiem, zeby na wierzchu zostalo to, czym sie gra. */
.atop-sheet {
	position: absolute;
	left: 50%;
	bottom: var(--atop-dock-h, 96px);
	width: min(1040px, 94%);
	max-height: min(44vh, 400px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 12px 14px 14px;
	background: rgba(11, 6, 24, .94);
	border: 1px solid var(--atop-line);
	border-bottom: 0;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -18px 40px rgba(4, 2, 10, .55);
	z-index: 30;
	transform: translate(-50%, 16px);
	opacity: 0;
	transition: transform .18s ease, opacity .18s ease;
}

.atop-sheet.is-open {
	transform: translate(-50%, 0);
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.atop-sheet { transition: none; }
}

.atop-sheet[hidden] { display: none !important; }

.atop-sheet-in {
	display: grid;
	gap: 10px;
}

.atop-sheet-live { min-width: 0; }

.atop-sheet-art {
	width: 44px;
	height: auto;
	flex: 0 0 auto;
}

.atop-sheet-id {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.atop-sheet-id b {
	font-family: var(--atop-display);
	font-size: 14px;
	line-height: 1.15;
}

.atop-sheet-id i {
	font-style: normal;
	font-family: var(--atop-mono);
	font-size: 10.5px;
	color: var(--atop-gold);
}

/* Wiersz ulepszenia: poziom, cena i przycisk w jednej linii. */
.atop-sheet-cost {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 11.5px;
	color: var(--atop-muted-dim);
}

.atop-sheet-cost .atop-lvl { font-size: 10.5px; }
.atop-sheet-cost .atop-arrow { width: 15px; height: 15px; }

.atop-sheet-lack {
	font-size: 11.5px;
	color: var(--atop-magenta);
}

.atop-sheet-more {
	display: grid;
	gap: 8px;
	padding-top: 9px;
	border-top: 1px solid var(--atop-line);
}

.atop-sheet-more[hidden] { display: none; }
.atop-sheet-more .atop-hint { margin: 0; font-size: 12px; }

.atop-sheet-i {
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
	border: 1px solid var(--atop-line);
	border-radius: 50%;
	background: transparent;
	color: var(--atop-muted-dim);
	font-family: var(--atop-mono);
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
	transition: color .18s ease, border-color .18s ease;
}

.atop-sheet-i:hover,
.atop-sheet-i.is-on {
	color: var(--atop-starlight);
	border-color: var(--atop-line-strong);
}

@media (max-width: 720px) {
	.atop-sheet-in { grid-template-columns: 1fr; gap: 14px; }
	.atop-sheet { max-height: 62%; }
}

.atop-sheet-x {
	position: absolute;
	right: 12px;
	top: 10px;
	width: 30px;
	height: 30px;
	border: 1px solid var(--atop-line);
	border-radius: 50%;
	background: transparent;
	color: var(--atop-muted);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.atop-sheet-x:hover { color: var(--atop-starlight); border-color: var(--atop-line-strong); }

.atop-sheet-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding-right: 30px;
}

.atop-sheet h4 {
	margin: 16px 0 8px;
	font-family: var(--atop-body);
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.atop-sheet h4 span {
	font-family: var(--atop-mono);
	letter-spacing: .04em;
	text-transform: none;
	color: var(--atop-muted);
}

.atop-perks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 7px;
}

.atop-perks li {
	position: relative;
	padding-left: 16px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--atop-muted);
}

.atop-perks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--atop-violet-lift);
}

/* Przyciski w panelu maja byc drobne i spokojne - to plansza jest bohaterem,
   nie pasek akcji. Zaden nie rozciaga sie na cala szerokosc. */
.atop-sheet-acts {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin: 0 0 0 auto;
}

.atop-sheet-acts .atop-btn,
.atop-sheet-cost .atop-btn {
	margin: 0;
	width: auto;
	padding: 6px 12px;
	font-size: 11.5px;
	background: transparent;
	border: 1px solid var(--atop-line);
	color: var(--atop-muted);
	box-shadow: none;
}

.atop-sheet-acts .atop-btn:hover,
.atop-sheet-cost .atop-btn:hover {
	border-color: var(--atop-line-strong);
	color: var(--atop-starlight);
	transform: none;
}

.atop-sheet-cost .atop-btn-up {
	border-color: rgba(157, 107, 255, .55);
	color: var(--atop-violet-lift);
}

.atop-danger:hover {
	border-color: rgba(232, 93, 159, .55);
	color: var(--atop-magenta);
}

/* pasek zapelnienia w kafelku surowca */

.atop-res-slim { padding: 10px 12px; gap: 4px; }

.atop-res-bar {
	width: 100%;
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .10);
	overflow: hidden;
	margin-top: 4px;
}

.atop-res-bar i {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--atop-violet), var(--atop-magenta));
}

/* lista budynkow do postawienia */

.atop-shop {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 12px;
}

.atop-shop-card {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 14px;
	border: 1px solid var(--atop-line);
	border-radius: 16px;
	background: var(--atop-deep);
	cursor: grab;
	transition: border-color .18s ease, transform .18s ease;
}

.atop-shop-card:hover { border-color: var(--atop-line-strong); transform: translateY(-1px); }
.atop-shop-card:active { cursor: grabbing; }

.atop-shop-art {
	flex: 0 0 auto;
	width: 66px;
	display: grid;
	place-items: end center;
}

.atop-shop-art img { width: 100%; height: auto; -webkit-user-drag: none; }

.atop-shop-txt { min-width: 0; }
.atop-shop-txt b { display: block; font-size: 13.5px; margin-bottom: 2px; }

.atop-shop-txt p {
	margin: 0 0 8px;
	font-size: 11.5px;
	line-height: 1.45;
	color: var(--atop-muted-dim);
}

.atop-prices {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.atop-price {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--atop-mono);
	font-size: 11.5px;
	color: var(--atop-starlight);
}

.atop-price i { display: block; width: 14px; height: 14px; }
.atop-price svg { width: 14px; height: 14px; }

.atop-free {
	font-family: var(--atop-mono);
	font-size: 11.5px;
	color: var(--atop-ok);
}

.atop-legend {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 11.5px;
	color: var(--atop-muted-dim);
}

.atop-legend span { display: inline-flex; align-items: center; gap: 6px; }

.atop-chip {
	width: 15px;
	height: 9px;
	border-radius: 3px;
	display: inline-block;
	transform: skewX(-18deg);
}

@media (max-width: 640px) {
	.atop-sheet { width: 100%; }
	.atop-map { height: 58vh; }
}

/* ------------------------------------------------- plansza na calym ekranie */

/* Mapa nie miesci sie w kafelku panelu, wiec na swojej karcie zajmuje cale
   okno pod belka, a lista budynkow siada na dole jak dok odtwarzacza. */

body.atop-map-on {
	overflow: hidden;
}

body.atop-map-on .atop-shell-body {
	padding-bottom: 0;
}

body.atop-map-on [data-atop-card="plansza"] > .atop-cardp {
	border: 0;
	background: none;
	padding: 0;
	margin: 0;

	/* Rozmycie tla robi z karty punkt odniesienia dla elementow
	   przyklejonych do okna - mapa mierzylaby sie wtedy wzgledem niej,
	   a nie wzgledem ekranu. Na tej karcie jest i tak niewidoczne. */
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

body.atop-map-on [data-atop-card="plansza"] .atop-cardp-head,
body.atop-map-on [data-atop-card="plansza"] .atop-message {
	position: fixed;
	left: 20px;
	top: calc(var(--atop-bar-h, 58px) + 14px);
	z-index: 26;
	margin: 0;
}

body.atop-map-on [data-atop-card="plansza"] .atop-cardp-head {
	padding: 8px 16px;
	border-radius: 12px;
	background: rgba(9, 5, 20, .82);
	border: 1px solid var(--atop-line);
	backdrop-filter: blur(8px);
	gap: 12px;
}

body.atop-map-on [data-atop-card="plansza"] .atop-cardp-head h2 {
	font-size: 14px;
}

body.atop-map-on [data-atop-card="plansza"] .atop-message {
	top: calc(var(--atop-bar-h, 58px) + 66px);
	max-width: min(420px, 60vw);
	padding: 8px 14px;
	border-radius: 10px;
	background: rgba(9, 5, 20, .88);
}

body.atop-map-on [data-atop-card="plansza"] .atop-message:empty {
	display: none;
}

body.atop-map-on .atop-map {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--atop-bar-h, 58px);
	bottom: 0;
	height: auto;
	min-height: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	z-index: 20;
}

.atop-map.is-placing { cursor: grabbing; }
.atop-map.is-aiming { cursor: crosshair; }

/* strzalka ulepszenia */

.atop-upgrade {
	margin: 16px 0 0;
	padding: 14px;
	border: 1px solid var(--atop-line);
	border-radius: 14px;
	background: var(--atop-deep);
	display: grid;
	gap: 10px;
	justify-items: center;
}

.atop-upgrade.is-locked {
	border-style: dashed;
	opacity: .82;
}

.atop-upgrade .atop-btn { margin: 0; width: 100%; }

.atop-upgrade-step {
	display: flex;
	align-items: center;
	gap: 12px;
}

.atop-lvl {
	font-family: var(--atop-mono);
	font-size: 13px;
	color: var(--atop-muted);
	letter-spacing: .04em;
}

.atop-lvl.is-next { color: var(--atop-gold); }

.atop-arrow {
	width: 22px;
	height: 22px;
	color: var(--atop-violet-lift);
}

.atop-mid { text-align: center; margin: 0; }

.atop-price.is-short {
	color: var(--atop-magenta);
}

.atop-price b {
	font-weight: 600;
	color: inherit;
}

@media (max-width: 640px) {
	body.atop-map-on [data-atop-card="plansza"] .atop-cardp-head { left: 12px; }
	.atop-dock-picker .atop-shop-card { width: 190px; }
	.atop-dock-tabs { gap: 10px; }
	.atop-dock-tab { min-width: 92px; padding: 9px 12px; font-size: 12px; }
	.atop-castle-btn, .atop-castle-btn img { width: 104px; }
	.atop-castle-btn img { margin-top: -62px; }
}

/* ------------------------------------------------------------- dok planszy */

.atop-dockbar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 32;
	display: grid;
	gap: 0;
}

.atop-dock-picker {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 12px 16px;
	background: rgba(6, 3, 14, .94);
	border-top: 1px solid var(--atop-line);
	scrollbar-width: thin;
}

.atop-dock-picker[hidden] { display: none !important; }

/* Polka w doku: podpis nad rzedem kart, zeby "Budynki podstawowe" bylo
   widac od razu, a nie dopiero po najechaniu na kafelek. */
.atop-shelf {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 0 0 auto;
}

.atop-shelf + .atop-shelf {
	padding-left: 14px;
	border-left: 1px solid var(--atop-line);
}

.atop-shelf-tag {
	font: 600 11px/1 var(--atop-body);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
	padding-left: 2px;
}

.atop-shelf-row {
	display: flex;
	gap: 10px;
}

.atop-dock-tabs {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 26px;

	/* Pasek nie moze sie zlozyc do zera, nawet gdy obrazek zamku sie nie wczyta. */
	min-height: 76px;
	padding: 10px 16px 12px;
	background: rgba(6, 3, 14, .94);
	border-top: 1px solid rgba(157, 107, 255, .30);
}

.atop-dock-tab {
	min-width: 118px;
	padding: 10px 18px;
	border: 1px solid var(--atop-line);
	border-radius: 12px;
	background: var(--atop-deep);
	color: var(--atop-muted);
	font-family: var(--atop-body);
	font-size: 13px;
	cursor: pointer;
	transition: color .18s ease, border-color .18s ease;
}

.atop-dock-tab:hover { color: var(--atop-starlight); border-color: var(--atop-line-strong); }

.atop-dock-tab.is-on {
	color: var(--atop-starlight);
	border-color: rgba(232, 93, 159, .55);
	background: linear-gradient(120deg, rgba(232, 93, 159, .18), var(--atop-deep) 70%);
}

/* Zamek wystaje ponad pasek - jest srodkiem tego doku, a nie jedna z ikon. */

.atop-castle-btn {
	position: relative;
	flex: 0 0 auto;
	width: 132px;
	margin-bottom: -6px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	display: grid;
	justify-items: center;
	filter: drop-shadow(0 -6px 22px rgba(157, 107, 255, .45));
	transition: transform .2s ease, filter .2s ease;
}

.atop-castle-btn:hover {
	transform: translateY(-5px);
	filter: drop-shadow(0 -6px 26px rgba(232, 93, 159, .6));
}

.atop-castle-btn img {
	width: 132px;
	height: auto;
	margin-top: -78px;
	pointer-events: none;
	-webkit-user-drag: none;
}

.atop-castle-tag {
	margin-top: -6px;
	font-family: var(--atop-display);
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--atop-starlight);
}

.atop-castle-dot {
	position: absolute;
	top: -66px;
	right: 22px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--atop-magenta);
	box-shadow: 0 0 0 3px rgba(6, 3, 14, .9), 0 0 14px rgba(232, 93, 159, .9);
}

.atop-castle-dot[hidden] { display: none !important; }

/* kafelek w doku */

.atop-dock-picker .atop-shop-card {
	flex: 0 0 auto;
	width: 218px;
	padding: 10px 12px;
}

.atop-shop-card.is-locked {
	cursor: default;
	opacity: .55;
	border-style: dashed;
}

.atop-shop-card.is-locked:hover { transform: none; border-color: var(--atop-line); }

.atop-shop-art { position: relative; }

.atop-lock {
	position: absolute;
	right: -2px;
	bottom: 2px;
	width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(9, 5, 20, .92);
	color: var(--atop-muted);
}

.atop-lock svg { width: 12px; height: 12px; }

.atop-soon {
	font-family: var(--atop-mono);
	font-size: 11px;
	color: var(--atop-muted-dim);
}

/* zamek: przesylki i historia */

.atop-sheet-side { min-width: 0; }
.atop-sheet-main { min-width: 0; }

.atop-sheet-side .atop-hint { margin: 0 0 10px; }

/* Obecnosc na planszy: sama liczba nad dokiem, po prawej. Ma byc ledwo
   widoczna - dopiero najechanie mowi, co to za liczba. */
.atop-map-live {
	position: absolute;
	right: 16px;
	bottom: calc(var(--atop-dock-h, 96px) + 14px);
	z-index: 24;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 3px 9px 3px 7px;
	border-radius: 999px;
	font-family: var(--atop-mono);
	font-size: 11.5px;
	color: var(--atop-muted-dim);
	background: rgba(9, 5, 20, .5);
	border: 1px solid transparent;
	cursor: default;
	opacity: .5;
	transition: opacity .18s ease, color .18s ease, border-color .18s ease;
}

.atop-map-live::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--atop-ok, #4ade9b);
	box-shadow: 0 0 0 3px rgba(74, 222, 155, .18);
}

.atop-map-live:hover {
	opacity: 1;
	color: var(--atop-starlight);
	border-color: var(--atop-line);
}

.atop-map-live[hidden] { display: none; }

/* ---------------------------------------------------------- kody w miescie */

/* Trzy kolumny: kod, konfigurator, zamowienie. Panel ma isc w bok,
   a nie w dol - inaczej po prawej zostaje pusty pas. */
.atop-code {
	display: grid;
	grid-template-columns: auto minmax(200px, 1fr) minmax(240px, 330px);
	gap: 18px;
	align-items: start;
}

.atop-code-live {
	display: grid;
	justify-items: center;
	gap: 6px;
}

.atop-code-live canvas {
	width: 150px;
	height: 150px;
	border-radius: 10px;
	background: #fff;
	image-rendering: pixelated;
}

.atop-code-token {
	font-family: var(--atop-mono);
	font-size: 12px;
	letter-spacing: .24em;
	color: var(--atop-muted);
}

.atop-code-side {
	display: grid;
	gap: 8px;
	align-content: start;
	min-width: 0;
}

.atop-code-tally {
	display: flex;
	gap: 18px;
	justify-content: center;
}

.atop-code-tally span {
	display: grid;
	gap: 1px;
	font-size: 11px;
	color: var(--atop-muted-dim);
}

.atop-code-tally b {
	font: 700 19px/1 var(--atop-mono);
	color: var(--atop-starlight);
}

.atop-code-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.atop-code-row label {
	font-size: 11.5px;
	color: var(--atop-muted);
	display: grid;
	gap: 3px;
}

.atop-code-row .atop-input { max-width: 120px; padding: 6px 9px; font-size: 12px; }

.atop-code-tag {
	font: 600 10.5px/1 var(--atop-body);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
	min-width: 116px;
}

.atop-code-swatch {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	color: var(--atop-muted);
}

.atop-code-swatch input {
	width: 30px;
	height: 24px;
	padding: 0;
	border: 1px solid var(--atop-line);
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
}

.atop-code-swatch input[disabled] { opacity: .35; cursor: not-allowed; }

.atop-code-shape {
	padding: 5px 11px;
	border: 1px solid var(--atop-line);
	border-radius: 9px;
	background: transparent;
	color: var(--atop-muted);
	font-size: 11.5px;
	cursor: pointer;
}

.atop-code-shape.is-on {
	border-color: rgba(157, 107, 255, .55);
	color: var(--atop-violet-lift);
}

.atop-code-acts {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.atop-code-acts .atop-btn {
	margin: 0;
	width: auto;
	padding: 6px 12px;
	font-size: 11.5px;
	background: transparent;
	border: 1px solid var(--atop-line);
	color: var(--atop-muted);
	box-shadow: none;
}

.atop-code-acts .atop-btn:hover {
	border-color: var(--atop-line-strong);
	color: var(--atop-starlight);
	transform: none;
}

.atop-code-acts .atop-btn-up {
	border-color: rgba(157, 107, 255, .55);
	color: var(--atop-violet-lift);
}

.atop-code-order {
	display: grid;
	gap: 9px;
	align-content: start;
	padding-left: 20px;
	border-left: 1px solid var(--atop-line);
}

.atop-code-order h4 {
	margin: 0;
	font: 600 10.5px/1 var(--atop-body);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
}

.atop-code-order .atop-btn { justify-self: start; }

.atop-code-pack {
	padding: 5px 10px;
	border: 1px solid var(--atop-line);
	border-radius: 9px;
	background: transparent;
	color: var(--atop-muted);
	font-family: var(--atop-mono);
	font-size: 11.5px;
	cursor: pointer;
}

.atop-code-pack.is-on {
	border-color: rgba(157, 107, 255, .55);
	color: var(--atop-violet-lift);
}

.atop-code-packs .atop-code-tag { min-width: 0; }

.atop-code-bill {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 16px;
	font-size: 11.5px;
	color: var(--atop-muted);
}

.atop-code-bill .atop-code-min { grid-column: 1 / -1; }

.atop-code-bill span { display: grid; gap: 2px; }
.atop-code-bill b { font-family: var(--atop-mono); font-size: 14px; color: var(--atop-starlight); }
.atop-code-bill i { font-style: normal; font-size: 10.5px; color: var(--atop-muted-dim); }
.atop-code-sum b { color: var(--atop-gold); }
.atop-code-min { color: var(--atop-magenta); }
.atop-code-note[data-state="error"] { color: var(--atop-magenta); }

@media (max-width: 980px) {
	.atop-code { grid-template-columns: auto minmax(0, 1fr); }
	.atop-code-order { grid-column: 1 / -1; padding-left: 0; padding-top: 10px;
		border-left: 0; border-top: 1px solid var(--atop-line); }
}

@media (max-width: 640px) {
	.atop-code { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ mieszkania */

.atop-home-box {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
	padding: 10px 14px;
	border: 1px solid var(--atop-line);
	border-radius: 14px;
	background: linear-gradient(140deg, rgba(143, 212, 239, .12), rgba(10, 6, 24, .5));
}

.atop-home-dial {
	display: grid;
	gap: 1px;
}

.atop-home-dial b {
	font: 700 21px/1 var(--atop-display);
	color: var(--atop-starlight);
}

.atop-home-dial i {
	font-style: normal;
	font-size: 11.5px;
	color: var(--atop-muted);
}

.atop-home-tally {
	display: grid;
	gap: 3px;
	min-width: 180px;
}

.atop-home-tally span:first-child {
	font: 600 10.5px/1 var(--atop-body);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
}

.atop-home-tally b {
	font: 700 17px/1 var(--atop-mono);
	color: #8fd4ef;
	font-variant-numeric: tabular-nums;
}

.atop-home-next {
	margin-left: auto;
	font-size: 11.5px;
	color: var(--atop-muted);
}

.atop-shop-homes {
	font-family: var(--atop-mono);
	font-size: 11px;
	color: #8fd4ef;
	margin-right: 6px;
}

/* ------------------------------------------------------------- amfiteatr */

.atop-stage-box {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
	padding: 10px 14px;
	border: 1px solid var(--atop-line);
	border-radius: 14px;
	background: linear-gradient(140deg, rgba(232, 93, 159, .12), rgba(10, 6, 24, .5));
}

.atop-stage-dial {
	display: grid;
	gap: 1px;
}

.atop-stage-dial b {
	font: 700 21px/1 var(--atop-display);
	color: var(--atop-starlight);
}

.atop-stage-dial i {
	font-style: normal;
	font-size: 11.5px;
	color: var(--atop-muted);
}

.atop-stage-tally {
	display: grid;
	gap: 2px;
}

.atop-stage-tally span {
	font: 600 10.5px/1 var(--atop-body);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
}

.atop-stage-tally b {
	font: 700 19px/1 var(--atop-mono);
	color: var(--atop-magenta);
	font-variant-numeric: tabular-nums;
}

.atop-stage-goal {
	display: grid;
	gap: 4px;
	min-width: 190px;
	margin-left: auto;
	font: 400 11.5px/1.3 var(--atop-body);
	color: var(--atop-muted);
}

.atop-stage-state {
	margin-left: auto;
	font-size: 11.5px;
	color: var(--atop-ok, #4ade9b);
}

/* Ile sztuk ozdoby zostalo i jak daleko do progu odsluchan. */
.atop-shop-owned,
.atop-shop-need {
	font-family: var(--atop-mono);
	font-size: 11px;
	color: var(--atop-muted);
}

.atop-shop-owned.is-short,
.atop-shop-need.is-short { color: var(--atop-muted-dim); }

/* ------------------------------------------------------------- pompownia */

.atop-pump {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
	padding: 10px 14px;
	border: 1px solid var(--atop-line);
	border-radius: 14px;
	background: linear-gradient(140deg, rgba(79, 209, 224, .10), rgba(10, 6, 24, .5));
}

.atop-pump-state {
	font-size: 11.5px;
	color: var(--atop-ok, #4ade9b);
	margin-left: auto;
}

.atop-pump-state.is-full { color: var(--atop-magenta); }

.atop-pump-dial {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-rows: auto auto;
	gap: 1px 9px;
	align-items: center;
}

.atop-pump-dial .atop-res-ico { grid-row: span 2; }

.atop-pump-dial b {
	font: 700 21px/1 var(--atop-display);
	color: var(--atop-starlight);
}

.atop-pump-dial i {
	font: 400 12px/1.3 var(--atop-body);
	font-style: normal;
	color: var(--atop-muted);
}

.atop-pump-clock {
	display: grid;
	gap: 3px;
}

.atop-pump-clock span {
	font: 600 11px/1 var(--atop-body);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
}

.atop-pump-clock b {
	font: 700 19px/1 var(--atop-mono);
	color: #7fe6f2;
	font-variant-numeric: tabular-nums;
}

.atop-pump-tank {
	display: grid;
	gap: 4px;
	min-width: 170px;
	font: 400 11.5px/1.3 var(--atop-body);
	color: var(--atop-muted);
}

.atop-castle-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.atop-gifts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 7px;
	max-height: 220px;
	overflow-y: auto;
}

.atop-gifts li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border: 1px solid var(--atop-line);
	border-radius: 12px;
	background: var(--atop-deep);
}

.atop-gifts li > span:nth-child(2) {
	flex: 1;
	min-width: 0;
	display: grid;
	gap: 1px;
}

.atop-gifts b { font-size: 12.5px; color: var(--atop-starlight); }

.atop-gifts i {
	font-style: normal;
	font-size: 11px;
	color: var(--atop-muted-dim);
}

.atop-gifts .atop-btn { margin: 0; }

.atop-gifts-log b:last-child {
	font-family: var(--atop-mono);
	font-size: 12.5px;
	white-space: nowrap;
}

.atop-gifts .atop-in { color: var(--atop-ok); }
.atop-gifts .atop-out { color: var(--atop-magenta); }

.atop-bld.is-fixed { cursor: pointer; }

/* Panel budynku zaslania przyciski w rogu, wiec na czas jego otwarcia
   je chowamy - inaczej wystaja spod niego polowa napisu. */
.atop-map:has([data-atop-sheet]:not([hidden])) .atop-map-hud {
	opacity: 0;
	pointer-events: none;
}

.atop-map-hud {
	transition: opacity .18s ease;
}

/* --------------------------------------------- poczta miedzyplanetarna */

.atop-post {
	display: grid;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid var(--atop-line);
	border-radius: 14px;
	background: linear-gradient(140deg, rgba(167, 139, 250, .13), rgba(10, 6, 24, .5));
}

.atop-post-send {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.atop-post-lab {
	flex: 0 0 100%;
	font: 600 10.5px/1 var(--atop-body);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
}

.atop-post-send input {
	flex: 1 1 220px;
	min-width: 0;
	padding: 8px 12px;
	font: 400 13.5px/1.2 var(--atop-body);
	color: var(--atop-starlight);
	background: rgba(6, 3, 18, .6);
	border: 1px solid var(--atop-line);
	border-radius: 10px;
}

.atop-post-send input:focus {
	outline: 0;
	border-color: var(--atop-magenta);
}

.atop-post-send .atop-btn-up {
	border-color: rgba(157, 107, 255, .55);
	color: var(--atop-violet-lift);
}

.atop-post-exp {
	font-size: 11.5px;
	color: var(--atop-muted);
}

.atop-post-tally {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
}

.atop-post-tally span {
	display: grid;
	gap: 1px;
}

.atop-post-tally b {
	font: 700 19px/1 var(--atop-mono);
	color: var(--atop-starlight);
	font-variant-numeric: tabular-nums;
}

.atop-post-tally .is-in b {
	color: #8fd4ef;
}

.atop-post-tally i {
	font-style: normal;
	font-size: 11.5px;
	color: var(--atop-muted);
}

.atop-post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 2px;
	max-height: 148px;
	overflow: auto;
}

.atop-post-list li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 10px;
	padding: 5px 8px;
	border-radius: 8px;
	background: rgba(6, 3, 18, .38);
	font-size: 12px;
}

.atop-post-list li.is-in {
	background: rgba(143, 212, 239, .12);
}

.atop-post-list b {
	font-weight: 500;
	color: var(--atop-starlight);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.atop-post-list i {
	font-style: normal;
	font-size: 11px;
	color: var(--atop-muted);
}

.atop-post-list li.is-in i {
	color: #8fd4ef;
}

.atop-post-list span {
	font-family: var(--atop-mono);
	font-size: 10.5px;
	color: var(--atop-muted-dim);
}

.atop-post-empty,
.atop-post-note {
	margin: 0;
	font-size: 11.5px;
	color: var(--atop-muted);
}

.atop-post-note:empty {
	display: none;
}

.atop-post-note.is-bad {
	color: var(--atop-magenta);
}

/* ------------------------------------------ lancuch: uprawy i fabryki */

.atop-flow {
	display: grid;
	gap: 9px;
	padding: 10px 14px;
	border: 1px solid var(--atop-line);
	border-radius: 14px;
	background: linear-gradient(140deg, rgba(143, 212, 239, .10), rgba(10, 6, 24, .5));
}

.atop-flow-line {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.atop-flow-side {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.atop-flow .atop-arrow {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	color: var(--atop-muted);
}

.atop-flow-res {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-rows: auto auto;
	align-items: center;
	gap: 0 6px;
	padding: 4px 9px 4px 6px;
	border: 1px solid var(--atop-line);
	border-radius: 10px;
	background: rgba(6, 3, 18, .45);
}

.atop-flow-res .atop-res-ico {
	grid-row: 1 / span 2;
	width: 20px;
	height: 20px;
}

.atop-flow-res .atop-res-ico svg {
	width: 100%;
	height: 100%;
}

.atop-flow-res b {
	font: 700 14px/1.1 var(--atop-mono);
	color: var(--atop-starlight);
	font-variant-numeric: tabular-nums;
}

.atop-flow-res i {
	font-style: normal;
	font-size: 10.5px;
	line-height: 1.1;
	color: var(--atop-muted-dim);
	font-family: var(--atop-mono);
}

/* Czerwono robi sie tylko to, czego naprawde brakuje - reszta zostaje spokojna. */
.atop-flow-res.is-short {
	border-color: rgba(232, 93, 159, .5);
}

.atop-flow-res.is-short b {
	color: var(--atop-magenta);
}

.atop-flow-res.is-exp {
	grid-template-columns: auto;
	padding: 4px 10px;
}

.atop-flow-res.is-exp b {
	color: var(--atop-gold);
}

.atop-flow-clock {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.atop-flow-clock span {
	font: 600 10.5px/1 var(--atop-body);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
}

.atop-flow-clock b {
	font: 700 17px/1 var(--atop-mono);
	color: var(--atop-starlight);
	font-variant-numeric: tabular-nums;
}

.atop-flow-sent {
	display: flex;
	align-items: baseline;
	gap: 7px;
}

.atop-flow-sent b {
	font: 700 17px/1 var(--atop-mono);
	color: #8fd4ef;
}

.atop-flow-sent i {
	font-style: normal;
	font-size: 11.5px;
	color: var(--atop-muted);
}

.atop-flow-go,
.atop-flow-stop {
	font-size: 11.5px;
	color: var(--atop-muted);
}

.atop-flow-stop {
	color: var(--atop-magenta);
}

.atop-cuts {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	padding-top: 8px;
	border-top: 1px solid var(--atop-line);
}

.atop-cuts > span {
	font: 600 10.5px/1 var(--atop-body);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
	margin-right: 2px;
}

.atop-cut {
	padding: 4px 10px;
	font: 500 12px/1.2 var(--atop-body);
	color: var(--atop-muted);
	background: rgba(6, 3, 18, .5);
	border: 1px solid var(--atop-line);
	border-radius: 999px;
	cursor: pointer;
}

.atop-cut:hover {
	color: var(--atop-starlight);
	border-color: var(--atop-line-strong);
}

.atop-cut.is-on {
	color: #fff;
	background: rgba(123, 63, 228, .34);
	border-color: rgba(157, 107, 255, .6);
}

.atop-cut[disabled] {
	opacity: .5;
	cursor: default;
}

/* Odznaka na karcie w doku: podstawowy czy zaawansowany. */
.atop-tier {
	position: absolute;
	left: 6px;
	top: 6px;
	font: 600 8.5px/1 var(--atop-body);
	font-style: normal;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 3px 6px;
	border-radius: 999px;
	color: #fff;
	background: rgba(79, 209, 224, .34);
	border: 1px solid rgba(79, 209, 224, .5);
}

.atop-tier.is-pro {
	background: rgba(232, 93, 159, .34);
	border-color: rgba(232, 93, 159, .55);
}

.atop-shop-makes {
	display: block;
	font-size: 10px;
	line-height: 1.3;
	color: var(--atop-muted-dim);
}

/* --------------------------------------------------- izba: czat planszy */

.atop-room {
	position: absolute;
	right: 0;
	top: 54px;
	bottom: calc(var(--atop-dock-h, 96px) + 16px);
	width: 300px;
	display: flex;
	align-items: stretch;
	transform: translateX(calc(100% - 42px));
	transition: transform .22s ease;
	z-index: 6;
	pointer-events: none;
}

.atop-room.is-open {
	transform: translateX(0);
}

.atop-room-tab,
.atop-room-in {
	pointer-events: auto;
}

/* Zwiniety pasek: pionowy jezyczek, ktory nie zabiera planszy. */
.atop-room-tab {
	flex: 0 0 42px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0;
	border: 1px solid var(--atop-line);
	border-right: 0;
	border-radius: 14px 0 0 14px;
	background: rgba(10, 6, 24, .82);
	backdrop-filter: blur(9px);
	color: var(--atop-muted);
	cursor: pointer;
	align-self: center;
	height: 148px;
}

.atop-room-tab:hover {
	color: var(--atop-starlight);
	border-color: var(--atop-line-strong);
}

.atop-room-tab svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.atop-room-tab span {
	writing-mode: vertical-rl;
	font: 600 10.5px/1 var(--atop-body);
	letter-spacing: .16em;
	text-transform: uppercase;
}

.atop-room-in {
	flex: 1 1 auto;
	min-width: 0;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto auto;
	border: 1px solid var(--atop-line);
	border-radius: 14px 0 0 14px;
	background: rgba(10, 6, 24, .9);
	backdrop-filter: blur(11px);
	overflow: hidden;
}

.atop-room-log {
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.atop-room-line {
	display: grid;
	grid-template-columns: auto auto;
	gap: 0 7px;
	font-size: 12.5px;
	line-height: 1.35;
}

.atop-room-line b {
	font-weight: 600;
	font-size: 11.5px;
}

.atop-room-line i {
	font-style: normal;
	font-family: var(--atop-mono);
	font-size: 10px;
	color: var(--atop-muted-dim);
	justify-self: start;
}

.atop-room-line span {
	grid-column: 1 / -1;
	color: var(--atop-starlight);
	overflow-wrap: anywhere;
}

.atop-room-line.is-me span {
	color: #fff;
}

/* Lista obecnych - jak na Discordzie, tyle ze poziomo scisnieta. */
.atop-room-who {
	max-height: 168px;
	overflow-y: auto;
	padding: 8px 12px;
	border-top: 1px solid var(--atop-line);
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.atop-room-count {
	font: 600 10px/1 var(--atop-body);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
	margin-bottom: 4px;
}

.atop-room-one {
	display: grid;
	grid-template-columns: 8px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--atop-muted);
}

.atop-room-one[data-me="1"] b {
	color: var(--atop-starlight);
}

.atop-room-one i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	box-shadow: 0 0 8px currentColor;
}

.atop-room-one b {
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.atop-room-one u {
	text-decoration: none;
	font-family: var(--atop-mono);
	font-size: 10px;
	color: var(--atop-muted-dim);
}

.atop-room-bar {
	display: flex;
	gap: 6px;
	padding: 9px 10px;
	border-top: 1px solid var(--atop-line);
}

.atop-room-bar input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 7px 10px;
	font: 400 12.5px/1.2 var(--atop-body);
	color: var(--atop-starlight);
	background: rgba(6, 3, 18, .6);
	border: 1px solid var(--atop-line);
	border-radius: 9px;
}

.atop-room-bar input:focus {
	outline: 0;
	border-color: var(--atop-magenta);
}

@media (max-width: 720px) {
	.atop-room { width: min(300px, 88vw); }
}

/* --------------------------------------------- kafelki sklepow na planszy */

.atop-shopwin {
	display: grid;
	gap: 10px;
	justify-items: start;
}

.atop-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
	gap: 9px;
	width: 100%;
	max-height: 260px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 4px;
}

.atop-tile {
	display: grid;
	gap: 4px;
	padding: 8px;
	border: 1px solid var(--atop-line);
	border-radius: 12px;
	background: rgba(6, 3, 18, .45);
	text-decoration: none;
	position: relative;
}

.atop-tile img,
.atop-tile-blank {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 8px;
	background: rgba(123, 63, 228, .14);
	display: block;
}

.atop-tile b {
	font-weight: 600;
	font-size: 12px;
	color: var(--atop-starlight);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.atop-tile i,
.atop-tile-price {
	font-style: normal;
	font-size: 10.5px;
	color: var(--atop-muted);
}

.atop-tile-state.is-approved { color: #8fd4ef; }
.atop-tile-state.is-pending { color: var(--atop-gold); }
.atop-tile-state.is-rejected { color: var(--atop-magenta); }

.atop-tile-tag {
	position: absolute;
	right: 10px;
	top: 10px;
	padding: 2px 7px;
	border-radius: 999px;
	font: 600 9px/1.6 var(--atop-body);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(232, 93, 159, .8);
}

/* --------------------------------------------- warsztat projektanta */

.atop-studio {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(1120px, 96vw);
	height: min(760px, 92vh);
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto auto;
	border: 1px solid var(--atop-line-strong);
	border-radius: 18px;
	background: linear-gradient(160deg, #191031, #0c0719);
	box-shadow: 0 40px 90px rgba(2, 1, 8, .74);
	z-index: 60;
	overflow: hidden;

	--atop-void: #07040f;
	--atop-deep: #100822;
	--atop-surface: #180e2e;
	--atop-line: rgba(196, 168, 255, .16);
	--atop-line-strong: rgba(196, 168, 255, .30);
	--atop-violet: #7b3fe4;
	--atop-violet-lift: #9d6bff;
	--atop-magenta: #e85d9f;
	--atop-gold: #f5c469;
	--atop-starlight: #f3efff;
	--atop-muted: #b9aad6;
	--atop-muted-dim: #8b7cad;
	--atop-body: "Inter", system-ui, sans-serif;
	--atop-display: "Space Grotesk", "Inter", sans-serif;
	--atop-mono: "IBM Plex Mono", Consolas, monospace;
	font-family: var(--atop-body);
	color: var(--atop-starlight);
}

/* Okno wisi bezposrednio na body, poza powloka panelu, wiec reset pudelka
   musi dostac wlasny - inaczej pola z paddingiem wychodza poza kolumne. */
.atop-studio,
.atop-studio *,
.atop-studio *::before,
.atop-studio *::after {
	box-sizing: border-box;
}

.atop-studio-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--atop-line);
	cursor: grab;
	background: rgba(6, 3, 18, .5);
}

.atop-studio-head:active { cursor: grabbing; }

.atop-studio-head > b {
	font: 700 14px/1 var(--atop-display);
}

.atop-studio-head input {
	flex: 0 1 260px;
	padding: 6px 10px;
	font: 400 12.5px/1.2 var(--atop-body);
	color: var(--atop-starlight);
	background: rgba(6, 3, 18, .6);
	border: 1px solid var(--atop-line);
	border-radius: 9px;
}

.atop-studio-note {
	flex: 1 1 auto;
	font-size: 11.5px;
	color: var(--atop-muted);
}

.atop-studio-note.is-bad { color: var(--atop-magenta); }

.atop-studio-x {
	background: transparent;
	border: 0;
	color: var(--atop-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.atop-studio-x:hover { color: var(--atop-starlight); }

.atop-studio-body {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) 268px;
	min-height: 0;
}

.atop-studio-tools {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 10px 7px;
	border-right: 1px solid var(--atop-line);
}

.atop-tool {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 1px solid var(--atop-line);
	border-radius: 10px;
	background: rgba(6, 3, 18, .5);
	color: var(--atop-muted);
	cursor: pointer;
}

.atop-tool svg { width: 19px; height: 19px; }

.atop-tool:hover { color: var(--atop-starlight); border-color: var(--atop-line-strong); }

.atop-tool.is-on {
	color: #fff;
	background: rgba(123, 63, 228, .34);
	border-color: rgba(157, 107, 255, .6);
}

.atop-studio-gap { flex: 1 1 auto; }

.atop-studio-mid {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	min-height: 0;
	min-width: 0;
}

.atop-studio-views {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 9px 12px;
	border-bottom: 1px solid var(--atop-line);
}

.atop-vw {
	padding: 5px 12px;
	font: 500 12px/1.2 var(--atop-body);
	color: var(--atop-muted);
	background: rgba(6, 3, 18, .5);
	border: 1px solid var(--atop-line);
	border-radius: 999px;
	cursor: pointer;
}

.atop-vw.is-on {
	color: #fff;
	background: rgba(123, 63, 228, .34);
	border-color: rgba(157, 107, 255, .6);
}

.atop-fab {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid transparent;
	box-shadow: 0 0 0 1px var(--atop-line);
	cursor: pointer;
}

.atop-fab.is-on { border-color: var(--atop-violet-lift); }

/* Plotno lezy dokladnie na polu nadruku zdjecia koszulki. */
.atop-studio-art {
	position: relative;
	margin: auto;
	width: auto;
	height: 100%;
	max-width: 100%;
	/* Proporcje bierzemy ze zdjecia koszulki - wtedy pole nadruku pokrywa
	   sie z koszulka co do piksela, a nie z kwadratem wokol niej. */
	aspect-ratio: var(--atop-tee, 0.865);
}

.atop-studio-art img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	-webkit-user-drag: none;
}

.atop-studio-art canvas {
	position: absolute;
	touch-action: none;
	cursor: crosshair;
	outline: 1px dashed rgba(157, 107, 255, .28);
}

.atop-studio-art canvas[data-tool="select"] { cursor: move; }

.atop-studio-side {
	display: grid;
	grid-template-rows: minmax(0, 1fr) minmax(0, 240px);
	border-left: 1px solid var(--atop-line);
	min-height: 0;
}

.atop-studio-ink {
	overflow-y: auto;
	padding: 11px;
	display: grid;
	gap: 9px;
	align-content: start;
}

.atop-studio-row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	color: var(--atop-muted);
}

.atop-studio-row.atop-studio-wide { grid-template-columns: 1fr; }

.atop-studio-row input[type="range"] { width: 100%; }

.atop-studio-row input[type="color"] {
	width: 100%;
	height: 28px;
	padding: 0;
	border: 1px solid var(--atop-line);
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
}

.atop-studio-row select,
.atop-studio-row textarea {
	width: 100%;
	padding: 6px 8px;
	font: 400 12px/1.3 var(--atop-body);
	color: var(--atop-starlight);
	background: rgba(6, 3, 18, .6);
	border: 1px solid var(--atop-line);
	border-radius: 8px;
	resize: vertical;
}

.atop-studio-swatch {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.atop-studio-swatch button {
	width: 21px;
	height: 21px;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, .35);
	box-shadow: 0 0 0 1px var(--atop-line);
	cursor: pointer;
}

.atop-studio-vec {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 5px;
}

.atop-vec {
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	padding: 5px;
	border: 1px solid var(--atop-line);
	border-radius: 9px;
	background: rgba(6, 3, 18, .5);
	color: var(--atop-muted);
	cursor: pointer;
}

.atop-vec svg { width: 100%; height: 100%; }

.atop-vec.is-on {
	color: var(--atop-violet-lift);
	border-color: rgba(157, 107, 255, .6);
	background: rgba(123, 63, 228, .22);
}

.atop-studio-deck {
	border-top: 1px solid var(--atop-line);
	padding: 10px 11px;
	overflow-y: auto;
	display: grid;
	gap: 6px;
	align-content: start;
}

.atop-studio-deck > b {
	font: 600 10px/1 var(--atop-body);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--atop-muted-dim);
}

.atop-lay {
	display: grid;
	grid-template-columns: 10px minmax(0, 1fr) auto auto auto;
	align-items: center;
	gap: 6px;
	padding: 5px 7px;
	border-radius: 8px;
	background: rgba(6, 3, 18, .42);
	font-size: 11.5px;
	color: var(--atop-muted);
	cursor: pointer;
}

.atop-lay.is-on {
	background: rgba(123, 63, 228, .26);
	color: var(--atop-starlight);
}

.atop-lay span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.atop-lay-dot {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .4);
}

.atop-lay button {
	background: transparent;
	border: 0;
	color: var(--atop-muted-dim);
	cursor: pointer;
	font-size: 12px;
	padding: 0 2px;
}

.atop-lay button:hover { color: var(--atop-starlight); }
.atop-lay button.atop-danger:hover { color: var(--atop-magenta); }

.atop-studio-foot {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border-top: 1px solid var(--atop-line);
}

.atop-studio-sheet {
	display: flex;
	gap: 8px;
	padding: 9px 12px;
	border-top: 1px solid var(--atop-line);
	overflow-x: auto;
	min-height: 92px;
	align-items: flex-start;
}

.atop-studio-empty {
	margin: 0;
	font-size: 11.5px;
	color: var(--atop-muted-dim);
}

.atop-mine {
	flex: 0 0 132px;
	display: grid;
	gap: 3px;
	padding: 6px;
	border: 1px solid var(--atop-line);
	border-radius: 10px;
	background: rgba(6, 3, 18, .45);
}

.atop-mine.is-on { border-color: rgba(157, 107, 255, .6); }

.atop-mine img,
.atop-mine-blank {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 7px;
	background: rgba(123, 63, 228, .14);
	display: block;
}

.atop-mine b {
	font-size: 11.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.atop-mine-state {
	font-style: normal;
	font-size: 10px;
	color: var(--atop-muted);
}

.atop-mine-state.is-approved { color: #8fd4ef; }
.atop-mine-state.is-pending { color: var(--atop-gold); }
.atop-mine-state.is-rejected { color: var(--atop-magenta); }

.atop-mine-note {
	font-size: 10px;
	color: var(--atop-magenta);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.atop-mine-acts {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.atop-mine-acts button {
	flex: 1 1 auto;
	padding: 3px 6px;
	font-size: 10px;
	color: var(--atop-muted);
	background: rgba(6, 3, 18, .6);
	border: 1px solid var(--atop-line);
	border-radius: 6px;
	cursor: pointer;
}

.atop-mine-acts button:hover { color: var(--atop-starlight); }
.atop-mine-acts button.atop-danger:hover { color: var(--atop-magenta); }

@media (max-width: 900px) {
	.atop-studio { width: 96vw; height: 94vh; }
	.atop-studio-body { grid-template-columns: 48px minmax(0, 1fr); }
	.atop-studio-side { grid-column: 1 / -1; grid-template-rows: auto auto; border-left: 0; border-top: 1px solid var(--atop-line); }
}
