/* Lasersko – Порака за тебе. Uses the theme's colours when present. */
.lgp, .lgp-dialog {
	--lgp-ink: var(--lg-ink, #1c1714);
	--lgp-accent: var(--lg-accent, #ff5c00);
	--lgp-line: var(--lg-line, #e8e1da);
	--lgp-muted: var(--lg-muted, #7d736b);
	--lgp-bg: var(--lg-bg, #faf7f3);
	--lgp-paper: #f7f1e8;
	--lgp-r: 4px;
}

/* ---------- Side tab ---------- */
.lgp { position: fixed; right: 0; top: 56%; z-index: 65; transform: translateY(-50%); }
.lgp[hidden] { display: none; }
.lgp-tab {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
	padding: 14px 9px; border: 0; border-radius: var(--lgp-r) 0 0 var(--lgp-r);
	background: var(--lgp-ink); color: #fff; cursor: pointer;
	font-family: inherit; font-weight: 700; font-size: 13px; line-height: 1; letter-spacing: .04em;
	box-shadow: 0 6px 18px -8px rgba(28, 23, 20, .45);
	transition: padding .2s ease, background .2s ease;
}
.lgp-tab:hover, .lgp-tab:focus-visible { padding-right: 13px; background: #000; }
.lgp-tab__icon { color: var(--lgp-accent); flex: none; }
.lgp-tab__label { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.lgp-tab__dot { position: absolute; top: 8px; left: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--lgp-accent); }
.lgp-tab__dot[hidden] { display: none; }
.lgp-tab__hide {
	position: absolute; top: -9px; left: -9px; width: 20px; height: 20px; padding: 0;
	display: grid; place-items: center; border: 1px solid var(--lgp-line); border-radius: 50%;
	background: #fff; color: var(--lgp-muted); font-size: 13px; line-height: 1; cursor: pointer;
	opacity: 0; transition: opacity .2s;
}
.lgp:hover .lgp-tab__hide, .lgp-tab__hide:focus-visible { opacity: 1; }

/* ---------- Dialog ---------- */
html.lgp-locked { overflow: hidden; }
.lgp-dialog {
	width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0;
	border-radius: var(--lgp-r); background: #fff; color: var(--lgp-ink);
	box-shadow: 0 30px 80px -20px rgba(28, 23, 20, .5);
	overflow-x: hidden;
}
.lgp-dialog::backdrop { background: rgba(28, 23, 20, .6); }
.lgp-dialog[open] { animation: lgp-in .22s ease-out; }
@keyframes lgp-in { from { opacity: 0; transform: translateY(10px); } }
.lgp-dialog__inner { padding: 22px 22px 18px; }
.lgp-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lgp-dialog__title { margin: 0; font-family: var(--lg-display, inherit); font-size: 19px; line-height: 1.2; }
.lgp-x { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--lgp-r); background: transparent; color: var(--lgp-ink); cursor: pointer; }
.lgp-x:hover { background: var(--lgp-bg); }

.lgp-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--lgp-bg); border-radius: var(--lgp-r); }
.lgp-tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 3px; background: transparent; color: var(--lgp-muted); font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1; cursor: pointer; }
.lgp-tabs button[aria-selected="true"] { background: #fff; color: var(--lgp-ink); box-shadow: 0 1px 3px rgba(28, 23, 20, .12); }
.lgp-pane[hidden], [data-lgp-result][hidden], [data-lgp-pick][hidden], [data-lgp-signs][hidden] { display: none; }
.lgp-lead { margin: 0 0 18px; color: var(--lgp-muted); font-size: 14px; }

/* ---------- Card back (shared by deck + big card) ---------- */
.lgp-back {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	width: 100%; height: 100%; border-radius: var(--lgp-r); overflow: hidden;
	background:
		repeating-radial-gradient(circle at 50% 44%, transparent 0 6px, rgba(255, 92, 0, .16) 6px 7px),
		var(--lgp-ink);
	box-shadow: inset 0 0 0 7px var(--lgp-ink), inset 0 0 0 8px rgba(242, 235, 228, .35), inset 0 0 0 12px var(--lgp-ink), inset 0 0 0 13px rgba(242, 235, 228, .12);
	color: #f2ebe4;
}
.lgp-back__seal {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	background: var(--lgp-ink); border: 1.5px solid var(--lgp-accent); color: var(--lgp-accent);
	box-shadow: 0 0 0 5px var(--lgp-ink), 0 0 0 6px rgba(255, 92, 0, .35);
}
.lgp-back__name { padding: 4px 8px; background: var(--lgp-ink); font-size: 10.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }

/* ---------- Deck (3 decks, fanned) ---------- */
.lgp-deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 6px 4px 10px; }
.lgp-card {
	aspect-ratio: 5 / 8; padding: 0; border: 0; border-radius: var(--lgp-r); background: transparent; cursor: pointer;
	box-shadow: 0 10px 24px -14px rgba(28, 23, 20, .6);
	transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, box-shadow .28s ease;
	color: inherit;
}
.lgp-card:nth-child(1) { transform: rotate(-5deg) translateY(6px); }
.lgp-card:nth-child(3) { transform: rotate(5deg) translateY(6px); }
.lgp-deck.is-dealt .lgp-card { animation: lgp-deal .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes lgp-deal { from { opacity: 0; transform: translateY(40px) rotate(0); } }
.lgp-card:hover:not(:disabled), .lgp-card:focus-visible { transform: translateY(-10px) rotate(0); box-shadow: 0 22px 34px -16px rgba(28, 23, 20, .55); }
.lgp-card:focus-visible { outline: 2px solid var(--lgp-accent); outline-offset: 3px; }
.lgp-card.is-picked { transform: translateY(-18px) scale(1.04) rotate(0); }
.lgp-card.is-out { opacity: 0; transform: translateY(30px) scale(.94); }
.lgp-card:disabled { cursor: default; }

/* ---------- Big card with 3D flip ---------- */
.lgp-big { perspective: 1400px; max-width: 340px; margin: 0 auto; }
.lgp-big__inner { display: grid; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.25, .8, .25, 1); }
.lgp-big.is-rising { animation: lgp-rise .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lgp-rise { from { opacity: 0; transform: translateY(24px) scale(.82); } }
.lgp-big.is-flipped .lgp-big__inner { transform: rotateY(180deg); }
.lgp-big.is-static .lgp-big__inner { transition: none; }
.lgp-face { grid-area: 1 / 1; min-height: 400px; border-radius: 6px; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 24px 50px -24px rgba(28, 23, 20, .55); }
.lgp-face--back { display: flex; }
.lgp-face--back .lgp-back { border-radius: 6px; }
.lgp-face--back .lgp-back__seal { width: 76px; height: 76px; }
.lgp-face--back .lgp-back__seal svg { width: 34px; height: 34px; }
.lgp-face--front {
	transform: rotateY(180deg);
	display: flex; flex-direction: column; padding: 26px 24px 20px;
	background: var(--lgp-paper); color: var(--lgp-ink);
	box-shadow: inset 0 0 0 9px var(--lgp-paper), inset 0 0 0 10px var(--lgp-ink), inset 0 0 0 13px var(--lgp-paper), inset 0 0 0 13.6px rgba(28, 23, 20, .4), 0 24px 50px -24px rgba(28, 23, 20, .55);
}
.lgp-big.is-static .lgp-face--back { display: none; }
.lgp-front__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.lgp-front__num { font-family: Georgia, 'Times New Roman', serif; font-size: 15px; letter-spacing: .08em; }
.lgp-front__deck { color: var(--lgp-accent); }
.lgp-front__title { margin: 22px 0 0; font-family: var(--lg-display, inherit); font-size: 21px; line-height: 1.25; text-align: center; }
.lgp-front__rule { position: relative; display: block; width: 120px; height: 9px; margin: 14px auto 16px; }
.lgp-front__rule::before { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: rgba(28, 23, 20, .45); }
.lgp-front__rule::after { content: ''; position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -4px; background: var(--lgp-paper); border: 1px solid var(--lgp-accent); transform: rotate(45deg); }
.lgp-front__text { margin: 0 0 20px; font-size: 16.5px; line-height: 1.55; text-align: center; }
.lgp-prod { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 8px; background: #fff; border: 1px solid rgba(28, 23, 20, .14); border-radius: 3px; color: var(--lgp-ink); text-decoration: none; transition: border-color .2s; }
.lgp-prod:hover { border-color: var(--lgp-ink); color: var(--lgp-ink); }
.lgp-prod img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 2px; background: var(--lgp-bg); }
.lgp-prod__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; }
.lgp-prod__name { font-size: 13.5px; line-height: 1.35; }
.lgp-prod__price { color: var(--lgp-muted); font-size: 13px; }
.lgp-prod__price del { opacity: .7; }

/* ---------- After the reveal ---------- */
.lgp-after { max-width: 340px; margin: 18px auto 0; text-align: center; animation: lgp-in .35s ease-out both; }
.lgp-actions { display: flex; gap: 8px; }
.lgp-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border-radius: 3px; font-family: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.lgp-btn--main { flex: 1.6; background: var(--lgp-accent); color: #fff; border: 0; }
.lgp-btn--main:hover { background: var(--lgp-ink); color: #fff; }
.lgp-btn--ghost { background: #fff; color: var(--lgp-ink); border: 1px solid var(--lgp-line); }
.lgp-btn--ghost:hover { border-color: var(--lgp-ink); }
.lgp-next { margin: 12px 0 0; color: var(--lgp-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.lgp-link { margin-top: 12px; padding: 8px 0; border: 0; background: none; color: var(--lgp-ink); font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Signs ---------- */
.lgp-signs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lgp-sign { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 52px; padding: 9px 10px; border: 1px solid var(--lgp-line); border-radius: var(--lgp-r); background: #fff; color: var(--lgp-ink); text-align: left; cursor: pointer; font-family: inherit; }
.lgp-sign strong { font-size: 14px; }
.lgp-sign small { color: var(--lgp-muted); font-size: 11px; }
.lgp-sign:hover { border-color: var(--lgp-ink); }
.lgp-sign.is-mine { border-color: var(--lgp-accent); }
.lgp-sign.is-loading { opacity: .5; }

.lgp-foot { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--lgp-line); color: var(--lgp-muted); font-size: 12px; text-align: center; }

@media (max-width: 760px) {
	.lgp { top: 44%; }
	.lgp-tab { padding: 11px 8px; }
	.lgp-tab__label { display: none; }
	.lgp-tab__hide { opacity: 1; width: 18px; height: 18px; top: -8px; left: -8px; }
	.lgp-dialog__inner { padding: 18px 16px 14px; }
	.lgp-face { min-height: 360px; }
	.lgp-face--front { padding: 24px 20px 18px; }
	.lgp-front__text { font-size: 15.5px; }
	.lgp-back__seal { width: 44px; height: 44px; }
	.lgp-back__seal svg { width: 22px; height: 22px; }
	.lgp-back__name { font-size: 9px; letter-spacing: .16em; }
	.lgp-signs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.lgp-card, .lgp-deck.is-dealt .lgp-card, .lgp-big.is-rising, .lgp-big__inner, .lgp-dialog[open], .lgp-after { transition: none; animation: none; }
}

/* ---------- Horoscope additions ---------- */
.lgp-sign { flex-direction: row; align-items: center; gap: 10px; }
.lgp-sign__glyph { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--lgp-line); border-radius: 50%; color: var(--lgp-accent); font-size: 16px; line-height: 1; font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif; }
.lgp-sign__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lgp-sign.is-mine .lgp-sign__glyph { background: var(--lgp-accent); border-color: var(--lgp-accent); color: #fff; }
.lgp-back__seal--glyph { font-size: 30px; line-height: 1; font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif; }
.lgp-face--back .lgp-back__seal--glyph { font-size: 40px; }
.lgp-front__glyph { display: block; margin: 16px auto 0; color: var(--lgp-accent); font-size: 34px; line-height: 1; text-align: center; font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif; }
.lgp-front__glyph + .lgp-front__title { margin-top: 8px; }
.lgp-front__dates { display: block; margin-top: 4px; color: var(--lgp-muted); font-size: 12px; text-align: center; letter-spacing: .06em; }
.lgp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; padding: 10px 0; border-top: 1px solid rgba(28, 23, 20, .15); border-bottom: 1px solid rgba(28, 23, 20, .15); }
.lgp-stat { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.lgp-stat__k { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lgp-muted); }
.lgp-stat__v { display: flex; gap: 3px; }
.lgp-stat__v i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--lgp-ink); }
.lgp-stat__v i.on { background: var(--lgp-accent); border-color: var(--lgp-accent); }
.lgp-lucky { margin: 0 0 14px; font-size: 13px; text-align: center; color: var(--lgp-muted); }
.lgp-lucky strong { color: var(--lgp-ink); }
.lgp-lucky__sep { margin: 0 8px; }
.lgp-prod__label { display: block; margin: 0 0 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--lgp-muted); }
.lgp-face--front .lgp-prod { margin-top: 0; }
.lgp-face--front .lgp-prod img { width: 56px; height: 56px; }
.lgp-front__text { margin-bottom: 16px; }
@media (max-width: 760px) {
	.lgp-sign__glyph { width: 26px; height: 26px; font-size: 14px; }
	.lgp-front__glyph { font-size: 28px; margin-top: 10px; }
}

/* ---------- Home tile (theme hero, 2nd promo slot) ---------- */
.lgp-tile {
	--lgp-ink: var(--lg-ink, #1c1714); --lgp-accent: var(--lg-accent, #ff5c00);
	width: 100%; border: 0; text-align: left; font: inherit; cursor: pointer;
	position: relative; overflow: hidden; isolation: isolate;
	background:
		radial-gradient(circle at 82% 50%, rgba(255, 92, 0, .16), transparent 46%),
		repeating-radial-gradient(circle at 82% 50%, transparent 0 9px, rgba(242, 235, 228, .05) 9px 10px),
		var(--lgp-ink);
	color: #f2ebe4;
}
.lgp-tile:hover, .lgp-tile:focus-visible { color: #f2ebe4; }
.lgp-tile:focus-visible { outline: 2px solid var(--lgp-accent); outline-offset: 3px; }

.lgp-tile__text { position: relative; z-index: 2; display: flex; flex-direction: column; max-width: 72%; }
.lgp-tile__kicker { white-space: nowrap; margin-bottom: 8px; color: var(--lgp-accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.lgp-tile__title { font-family: var(--lg-display, inherit); font-weight: 600; font-size: 19px; line-height: 1.22; margin-bottom: 10px; color: #fff; }
.lgp-tile__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #f2ebe4; }
.lgp-tile__cta svg { transition: transform .25s ease; }
.lgp-tile:hover .lgp-tile__cta svg { transform: translateX(4px); }
.lgp-tile__dot { position: absolute; top: 16px; right: 16px; z-index: 3; width: 8px; height: 8px; border-radius: 50%; background: var(--lgp-accent); box-shadow: 0 0 0 4px rgba(255, 92, 0, .18); }
.lgp-tile__dot[hidden] { display: none; }

/* Zodiac wheel */
.lgp-tile__wheel {
	position: absolute; z-index: 1; right: -98px; top: 50%; width: 236px; height: 236px; margin-top: -118px;
	animation: lgp-spin 120s linear infinite; transition: filter .3s;
}
.lgp-tile__ring { position: absolute; inset: 0; border: 1px solid rgba(242, 235, 228, .22); border-radius: 50%; }
.lgp-tile__ring--in { inset: 46px; border-style: dashed; border-color: rgba(255, 92, 0, .45); }
.lgp-tile__g {
	position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px;
	display: grid; place-items: center; font-size: 15px; line-height: 1; color: rgba(242, 235, 228, .55);
	font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif;
	transform: rotate(var(--a)) translateY(-95px) rotate(calc(var(--a) * -1));
	transition: color .3s;
}
.lgp-tile__g.is-now { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--lgp-accent); color: #fff; font-size: 16px; }
.lgp-tile__g b { display: block; font-weight: 400; animation: lgp-spin 120s linear infinite reverse; }
.lgp-tile:hover .lgp-tile__g { color: #fff; }
.lgp-tile:hover .lgp-tile__ring--in { border-color: rgba(255, 92, 0, .8); }
@keyframes lgp-spin { to { transform: rotate(360deg); } }

/* Twinkling sky */
.lgp-tile__sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lgp-tile__sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #f2ebe4; opacity: .15; animation: lgp-twinkle 4.2s ease-in-out infinite; animation-delay: var(--d); }
@keyframes lgp-twinkle { 50% { opacity: .75; } }

@media (max-width: 1100px) {
	.lgp-tile__wheel { right: -90px; width: 210px; height: 210px; margin-top: -105px; }
	.lgp-tile__g { transform: rotate(var(--a)) translateY(-84px) rotate(calc(var(--a) * -1)); }
}
@media (max-width: 600px) {
	.lgp-tile__text { max-width: 78%; }
	.lgp-tile__title { font-size: 16px; }
	.lgp-tile__wheel { right: -120px; opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
	.lgp-tile__wheel, .lgp-tile__g b, .lgp-tile__sky i { animation: none; }
}
