/* Advento kalendorius – frontend */

.ak-theme {
	--ak-accent: #b3123a;
	--ak-bg1: #17573f;
	--ak-bg2: #082219;
	--ak-gold: #e8c170;
	--ak-gold-rgb: 232, 193, 112;
	--ak-text: #fbf4e6;
	--ak-d1: #1f6b4f;
	--ak-d2: #fbf4e6;
	--ak-d3: #c9983f;
	--ak-d0-ink: #fff; --ak-d1-ink: #fff; --ak-d2-ink: #2a1a10; --ak-d3-ink: #2a1a10;
	--ak-d0-line: rgba(255, 255, 255, .45); --ak-d1-line: rgba(255, 255, 255, .45);
	--ak-d2-line: rgba(42, 26, 16, .3); --ak-d3-line: rgba(42, 26, 16, .3);
	--ak-bg-img: none;
	--ak-card: #fbf4e6;
	--ak-ink: #1f1a17;
	--ak-font-head: Georgia, "Times New Roman", serif;
	color: var(--ak-text);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.ak-theme *, .ak-theme *::before, .ak-theme *::after { box-sizing: border-box; }
.ak-theme button {
	margin: 0; font-family: inherit; text-transform: none; letter-spacing: normal;
	min-height: 0; min-width: 0; line-height: inherit; text-shadow: none;
}
.ak-noscroll, .ak-noscroll body { overflow: hidden !important; }

/* ---------- Panelė (modale ir straipsnyje) ---------- */
.ak-panel {
	position: relative;
	border-radius: 20px;
	background:
		linear-gradient(rgba(0, 0, 0, .12), rgba(0, 0, 0, .12)),
		var(--ak-bg-img) center / cover no-repeat,
		radial-gradient(120% 70% at 50% 0%, rgba(var(--ak-gold-rgb), .16) 0%, rgba(var(--ak-gold-rgb), 0) 55%),
		radial-gradient(130% 90% at 50% 0%, var(--ak-bg1) 0%, var(--ak-bg2) 100%);
	background-color: var(--ak-bg2);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(var(--ak-gold-rgb), .35);
	padding: 30px 26px 22px;
}
.ak-panel.has-lights { padding-top: 50px; }
.ak-panel::before { /* vidinis rėmelis */
	content: ""; position: absolute; inset: 8px; border-radius: 14px; pointer-events: none;
	border: 1px solid rgba(var(--ak-gold-rgb), .25);
}
.ak-panel--inline { margin: 24px 0; }
.ak-content { position: relative; z-index: 1; }

/* ---------- Girlianda ---------- */
.ak-lights {
	position: absolute; top: 4px; left: 22px; right: 62px; height: 26px; z-index: 2; pointer-events: none;
	color: rgba(0, 0, 0, .55);
}
.ak-panel--inline .ak-lights { right: 22px; }
.ak-lights svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ak-bulb {
	position: absolute; width: 9px; height: 13px; margin-left: -4.5px;
	border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
	background: var(--c); box-shadow: 0 0 10px 2px var(--c);
	animation: ak-bulb 1.2s ease-in-out infinite alternate;
}
.ak-bulb::before { /* lizdas */
	content: ""; position: absolute; top: -3px; left: 2px; width: 5px; height: 4px; border-radius: 1px; background: #2b2b2b;
}
.ak-bulb--0 { --c: #ff4d5e; } .ak-bulb--1 { --c: #ffd25e; } .ak-bulb--2 { --c: #4dd88a; }
.ak-bulb--3 { --c: #5eb6ff; } .ak-bulb--4 { --c: #ff8ad8; }
.ak-anim-calm .ak-bulb { animation: none; }

/* ---------- Modalas ---------- */
.ak-modal {
	position: fixed; inset: 0; z-index: 2147483000;
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
}
.ak-modal[hidden] { display: none; }
.ak-modal__backdrop {
	position: absolute; inset: 0; overflow: hidden;
	background: rgba(4, 12, 10, .74);
	-webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
	opacity: 0; transition: opacity .35s ease;
}
.ak-modal__card {
	width: 100%; max-width: 760px;
	max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
	overflow-y: auto; overscroll-behavior: contain;
	opacity: 0; transform: translateY(40px) scale(.9) rotate(-1.5deg);
	transition: transform .6s cubic-bezier(.2, 1.1, .3, 1.15), opacity .3s ease;
}
.ak-modal.is-visible .ak-modal__backdrop { opacity: 1; }
.ak-modal.is-visible .ak-modal__card { opacity: 1; transform: none; }

.ak-theme .ak-close {
	position: absolute; top: 12px; right: 12px; z-index: 5;
	width: 38px; height: 38px; padding: 0; border-radius: 50%;
	border: 1px solid rgba(var(--ak-gold-rgb), .5);
	background: rgba(0, 0, 0, .3); color: #fff;
	font-size: 24px; line-height: 1; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background .2s, transform .25s;
}
.ak-theme .ak-close:hover { background: var(--ak-accent); color: var(--ak-d0-ink); transform: rotate(90deg); }

/* ---------- Sniegas ---------- */
.ak-snow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ak-snow--panel { border-radius: inherit; z-index: 0; opacity: .7; }
.ak-anim-calm .ak-snow--panel { display: none; }
.ak-snow i {
	position: absolute; top: -10px; border-radius: 50%; background: #fff;
	box-shadow: 0 0 4px rgba(255, 255, 255, .6);
	animation: ak-fall linear infinite;
}
@keyframes ak-fall {
	from { transform: translate3d(0, -10px, 0); }
	to   { transform: translate3d(var(--drift, 0), 105vh, 0); }
}

/* ---------- Antraštė ---------- */
.ak-hero { display: block; margin: -8px -4px 18px; border-radius: 12px; overflow: hidden; }
.ak-hero img { display: block; width: 100%; height: auto; transition: transform .4s; }
a.ak-hero:hover img { transform: scale(1.02); }
.ak-head { text-align: center; margin: 0 36px 20px; }
.ak-theme .ak-title {
	margin: 0 0 6px; padding: 0; border: 0;
	font-family: var(--ak-font-head); font-weight: 700; font-size: clamp(24px, 4.2vw, 36px); line-height: 1.15;
	color: var(--ak-gold); letter-spacing: .01em; text-transform: none;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.ak-anim-festive .ak-title {
	background: linear-gradient(100deg, var(--ak-gold) 0%, var(--ak-gold) 42%, #fff 50%, var(--ak-gold) 58%, var(--ak-gold) 100%);
	background-size: 300% 100%;
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: none; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
	animation: ak-shine 4.5s ease-in-out infinite;
}
.ak-sub { font-size: 15px; line-height: 1.55; opacity: .9; max-width: 520px; margin: 0 auto; }
.ak-sub p { margin: 0; }

/* Ornamentas po antrašte */
.ak-orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 10px; color: var(--ak-gold); }
.ak-orn span { display: block; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--ak-gold-rgb), .8)); }
.ak-orn span:last-child { transform: scaleX(-1); }
.ak-orn svg { width: 12px; height: 12px; }
.ak-anim-festive .ak-orn svg { animation: ak-twinkle 2.4s ease-in-out infinite; }

/* Kalbos perjungiklis */
.ak-langs {
	display: flex; justify-content: center; gap: 4px; width: max-content; margin: -6px auto 14px; padding: 3px;
	border-radius: 999px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px rgba(var(--ak-gold-rgb), .3);
	position: relative; z-index: 3;
}
.ak-langs.is-loading { opacity: .6; pointer-events: none; }
.ak-theme .ak-langbtn {
	padding: 4px 11px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
	color: var(--ak-text); font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.4;
	transition: background .2s, color .2s;
}
.ak-theme .ak-langbtn:hover { background: rgba(255, 255, 255, .12); }
.ak-theme .ak-langbtn.is-active { background: var(--ak-gold); color: var(--ak-bg2); }
.ak-theme .ak-langbtn:focus-visible { outline: 2px solid var(--ak-gold); outline-offset: 2px; }

/* ---------- Tinklelis ---------- */
.ak-cal { position: relative; }
.ak-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ak-cal.is-detail .ak-grid { display: none; }

.ak-theme .ak-cell {
	position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; height: auto;
	padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit;
	cursor: pointer; perspective: 700px; -webkit-tap-highlight-color: transparent;
	animation: ak-in .55s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: calc(var(--i, 0) * 28ms);
}
@supports not (aspect-ratio: 1 / 1) {
	.ak-theme .ak-cell { height: 0; padding-bottom: 100%; }
}
.ak-theme .ak-cell:focus { outline: none; }
.ak-theme .ak-cell:focus-visible { outline: 3px solid var(--ak-gold); outline-offset: 3px; }

.ak-inside {
	position: absolute; inset: 0; border-radius: 10px; overflow: hidden;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .1) 0%, rgba(0, 0, 0, .6) 80%), var(--ak-bg2);
	box-shadow: inset 0 4px 14px rgba(0, 0, 0, .7);
	color: var(--ak-gold);
}
.ak-inside::after { /* šviesos blyksnis atidarant */
	content: ""; position: absolute; inset: 0; opacity: 0;
	background: radial-gradient(circle at 50% 50%, rgba(255, 244, 200, .95) 0%, rgba(var(--ak-gold-rgb), .4) 35%, transparent 70%);
}
.ak-cell.is-opening .ak-inside::after { animation: ak-flash 1.1s ease-out; }
.ak-inside svg { width: 44%; height: auto; filter: drop-shadow(0 0 8px rgba(var(--ak-gold-rgb), .6)); }
.ak-cell.is-opening .ak-inside svg { animation: ak-bounce .9s .25s cubic-bezier(.3, 1.6, .5, 1) both; }
.ak-anim-festive .ak-cell.is-open:not(.is-opening) .ak-inside svg { animation: ak-float 3s ease-in-out infinite; }
.ak-inside__n { font: 700 12px/1 var(--ak-font-head); opacity: .75; }

.ak-door {
	position: absolute; inset: 0; border-radius: 10px;
	transform-origin: 0 50%; transform-style: preserve-3d;
	transition: transform .9s cubic-bezier(.25, 1.3, .45, 1);
}
.ak-door__front, .ak-door__back {
	position: absolute; inset: 0; border-radius: 10px; overflow: hidden;
	-webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.ak-door__front {
	display: flex; align-items: center; justify-content: center;
	background-color: var(--door);
	background-image: linear-gradient(150deg, rgba(255, 255, 255, .25) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .18) 100%);
	box-shadow: 0 3px 0 rgba(0, 0, 0, .28), 0 6px 14px rgba(0, 0, 0, .25);
	color: var(--door-ink);
	transition: filter .3s, box-shadow .3s;
}
.ak-door__front::before { /* vidinis punktyrinis rėmelis */
	content: ""; position: absolute; inset: 5px; border-radius: 7px;
	border: 1px dashed var(--door-line);
}
.ak-door__front::after { /* rankenėlė */
	content: ""; position: absolute; right: 9px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
	border-radius: 50%; background: var(--ak-gold); box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.ak-anim-festive .ak-door__front { /* blizgesio blyksnis per dureles */
	background-image:
		linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 45%, transparent 60%),
		linear-gradient(150deg, rgba(255, 255, 255, .25) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .18) 100%);
	background-size: 300% 100%, 100% 100%;
	background-position: 150% 0, 0 0;
	background-repeat: no-repeat;
	animation: ak-sheen 7s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * 180ms);
}
.ak-door__back {
	transform: rotateY(180deg);
	background: linear-gradient(150deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .35)), var(--door);
}
.ak-door__num {
	position: relative; font: 700 clamp(20px, 3.6vw, 32px)/1 var(--ak-font-head);
	text-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}
.ak-door__lock { position: absolute; left: 8px; bottom: 7px; width: 13px; height: 13px; opacity: .7; }
.ak-door__lock svg, .ak-door__star svg { display: block; width: 100%; height: 100%; }
.ak-door__star {
	position: absolute; top: 6px; left: 50%; width: 16px; height: 16px; margin-left: -8px;
	color: var(--ak-gold); filter: drop-shadow(0 0 5px rgba(var(--ak-gold-rgb), .9));
	animation: ak-twinkle 1.6s ease-in-out infinite;
}

/* Durelių spalvos */
.ak-v0 { --door: var(--ak-accent); --door-ink: var(--ak-d0-ink); --door-line: var(--ak-d0-line); }
.ak-v1 { --door: var(--ak-d1); --door-ink: var(--ak-d1-ink); --door-line: var(--ak-d1-line); }
.ak-v2 { --door: var(--ak-d2); --door-ink: var(--ak-d2-ink); --door-line: var(--ak-d2-line); }
.ak-v3 { --door: var(--ak-d3); --door-ink: var(--ak-d3-ink); --door-line: var(--ak-d3-line); }

/* Būsenos */
.ak-cell:not(.is-open):not(.is-locked):hover .ak-door { transform: rotateY(-18deg); }
.ak-cell.is-locked .ak-door__front { filter: saturate(.6) brightness(.8); }
.ak-cell.is-locked:hover .ak-door__front { filter: saturate(.7) brightness(.9); }
.ak-cell.is-today .ak-door__front { animation: ak-glow 1.8s ease-in-out infinite; }
.ak-cell.is-open { z-index: 2; }
.ak-cell.is-open .ak-door { transform: rotateY(-108deg); }
.ak-cell.is-peek:not(.is-open) .ak-door { animation: ak-peek 1.2s ease-in-out; }
.ak-cell.is-shake { animation: ak-shake .45s ease !important; }

/* Kibirkštėlės aplink šiandienos langelį */
.ak-sparks { position: absolute; inset: -6px; pointer-events: none; z-index: 3; }
.ak-sparks i {
	position: absolute; width: 8px; height: 8px; background: #fff;
	clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
	animation: ak-spark 2s ease-in-out infinite;
}
.ak-sparks i:nth-child(1) { top: 0; left: 6%; }
.ak-sparks i:nth-child(2) { top: 10%; right: 0; animation-delay: .5s; width: 6px; height: 6px; }
.ak-sparks i:nth-child(3) { bottom: 4%; right: 12%; animation-delay: 1s; }
.ak-sparks i:nth-child(4) { bottom: 14%; left: 0; animation-delay: 1.5s; width: 6px; height: 6px; }
.ak-cell.is-open .ak-sparks { display: none; }

/* Konfeti */
.ak-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 4; }
.ak-burst i {
	position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 1px;
	background: var(--ak-gold); opacity: 0;
	animation: ak-burst 1s cubic-bezier(.15, .7, .3, 1) forwards;
}
.ak-burst i:nth-child(3n) { background: #fff; border-radius: 50%; }
.ak-burst i:nth-child(3n+1) { background: var(--ak-accent); }

/* ---------- Dienos pranešimas ---------- */
.ak-detail {
	display: none; position: relative; overflow: hidden;
	background: var(--ak-card); color: var(--ak-ink);
	border-radius: 16px; padding: 30px 24px 22px; text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
	outline: none;
}
.ak-cal.is-detail .ak-detail { display: block; animation: ak-pop .55s cubic-bezier(.2, 1.1, .3, 1.2); }
.ak-detail > * { position: relative; z-index: 1; }
.ak-detail__day {
	display: inline-block; margin-bottom: 14px; padding: 5px 14px; border-radius: 999px;
	background: var(--ak-accent); color: var(--ak-d0-ink); font: 700 13px/1.3 var(--ak-font-head); letter-spacing: .04em;
}
.ak-detail__body { font-size: 17px; line-height: 1.55; }
.ak-detail__body > :first-child { margin-top: 0; }
.ak-detail__body > :last-child { margin-bottom: 0; }
.ak-detail__body img { max-width: 100%; height: auto; border-radius: 10px; }
.ak-detail__body a { color: inherit; text-decoration: underline; }

/* Konfeti lietus pranešime */
.ak-detail > .ak-rain { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ak-rain i {
	position: absolute; top: -12px; width: 7px; height: 11px; border-radius: 1px; opacity: 0;
	animation: ak-rain 2s ease-in forwards;
}
.ak-rain__p0 { background: var(--ak-accent); }
.ak-rain__p1 { background: var(--ak-gold); }
.ak-rain__p2 { background: var(--ak-d1); }
.ak-rain__p3 { background: var(--ak-d3); border-radius: 50%; width: 7px; height: 7px; }

.ak-code {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px;
	margin: 18px auto 0; padding: 12px 14px; max-width: 420px;
	border: 2px dashed var(--ak-accent); border-radius: 12px; background: #fff;
}
.ak-code__label { font-size: 13px; opacity: .7; }
.ak-code__value { font: 700 20px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--ak-ink); }
.ak-theme .ak-code__copy {
	padding: 6px 12px; border: 0; border-radius: 8px; cursor: pointer;
	background: var(--ak-ink); color: #fff; font-size: 13px; font-weight: 600;
}
.ak-theme .ak-code__copy.is-done { background: #1f6b4f; }

.ak-theme .ak-btn {
	position: relative; overflow: hidden;
	display: inline-block; margin-top: 18px; padding: 12px 26px; border-radius: 999px;
	background: var(--ak-accent); color: var(--ak-d0-ink); font-weight: 700; font-size: 15px; text-decoration: none;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .22); transition: transform .2s, box-shadow .2s;
}
.ak-anim-festive .ak-btn::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg); animation: ak-btnshine 3s ease-in-out infinite;
}
.ak-theme .ak-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .28); color: var(--ak-d0-ink); }
.ak-theme .ak-back {
	display: block; margin: 16px auto 0; padding: 6px 10px; border: 0; background: none;
	color: var(--ak-ink); opacity: .7; font-size: 14px; cursor: pointer; text-decoration: underline;
}
.ak-theme .ak-back:hover { opacity: 1; }

/* ---------- Apačia ---------- */
.ak-foot { text-align: center; margin-top: 18px; }
.ak-theme .ak-link {
	color: var(--ak-gold); font-weight: 700; text-decoration: none;
	border-bottom: 1px solid rgba(var(--ak-gold-rgb), .5); padding-bottom: 2px;
}
.ak-theme .ak-link:hover { border-color: currentColor; }
.ak-anim-festive .ak-link span { display: inline-block; animation: ak-nudge 1.6s ease-in-out infinite; }

.ak-toast {
	position: absolute; left: 50%; bottom: 10px; z-index: 6; max-width: 92%;
	padding: 10px 16px; border-radius: 10px;
	background: rgba(20, 12, 8, .92); color: #fff; font-size: 14px; text-align: center;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
	opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
	transition: opacity .25s, transform .25s;
}
.ak-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Sveikinimas ---------- */
.ak-greet { text-align: center; padding: 6px 10px 8px; }
.ak-greet__stars { display: flex; justify-content: center; gap: 14px; margin-bottom: 12px; color: var(--ak-gold); }
.ak-greet__stars i { display: block; width: 18px; height: 18px; animation: ak-twinkle 1.8s ease-in-out infinite; }
.ak-greet__stars i:nth-child(2) { width: 26px; height: 26px; animation-delay: .3s; }
.ak-greet__stars i:nth-child(3) { animation-delay: .6s; }
.ak-greet__stars svg { width: 100%; height: 100%; display: block; }
.ak-greet__img { display: block; max-width: 100%; height: auto; margin: 0 auto 18px; border-radius: 12px; }
.ak-greet .ak-title { font-size: clamp(28px, 5vw, 42px); }
.ak-greet__text { max-width: 520px; margin: 0 auto; font-size: 17px; opacity: .92; }
.ak-greet__text p { margin: 0 0 10px; }

/* ---------- Plaukiojantis mygtukas ---------- */
.ak-theme.ak-launcher {
	position: fixed; bottom: 20px; right: 20px; z-index: 2147482999;
	display: flex; align-items: center; gap: 8px;
	padding: 10px 18px 10px 12px; border: 0; border-radius: 999px;
	background: var(--ak-accent); color: var(--ak-d0-ink);
	font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.2;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .28), inset 0 0 0 2px rgba(var(--ak-gold-rgb), .6);
	cursor: pointer;
	transform: translateY(140px); transition: transform .6s cubic-bezier(.2, .9, .3, 1.3);
}
.ak-theme.ak-launcher--left { right: auto; left: 20px; }
.ak-theme.ak-launcher.is-in { transform: none; }
.ak-theme.ak-launcher:hover { transform: translateY(-3px); }
.ak-anim-festive.ak-launcher::after { /* pulsuojantis žiedas */
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	box-shadow: 0 0 0 0 var(--ak-accent); animation: ak-ring 2.2s ease-out infinite;
}
.ak-launcher__icon { display: block; width: 26px; height: 26px; color: var(--ak-gold); animation: ak-wiggle 3.2s ease-in-out infinite; }
.ak-launcher__icon svg { display: block; width: 100%; height: 100%; }

/* ---------- Mobilieji ---------- */
@media (max-width: 640px) {
	.ak-panel { padding: 24px 14px 16px; border-radius: 16px; }
	.ak-panel.has-lights { padding-top: 46px; }
	.ak-lights { left: 14px; right: 56px; }
	.ak-modal { padding: 10px; }
	.ak-modal__card { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
	.ak-head { margin: 0 6px 16px; }
	.ak-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
	.ak-door__front::after { right: 6px; }
	.ak-detail { padding: 24px 16px 18px; }
	.ak-theme.ak-launcher { padding: 12px; bottom: 14px; right: 14px; }
	.ak-theme.ak-launcher--left { left: 14px; right: auto; }
	.ak-launcher__text { display: none; }
}

/* ---------- Animacijos ---------- */
@keyframes ak-in { from { opacity: 0; transform: translateY(14px) scale(.8) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes ak-glow {
	0%, 100% { box-shadow: 0 3px 0 rgba(0, 0, 0, .28), 0 0 0 0 rgba(var(--ak-gold-rgb), 0); }
	50%      { box-shadow: 0 3px 0 rgba(0, 0, 0, .28), 0 0 0 4px rgba(var(--ak-gold-rgb), .6), 0 0 28px 8px rgba(var(--ak-gold-rgb), .5); }
}
@keyframes ak-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(25deg); opacity: .6; } }
@keyframes ak-spark { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 50% { transform: scale(1.2) rotate(90deg); opacity: 1; } }
@keyframes ak-shake {
	0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px) rotate(-2deg); }
	40% { transform: translateX(6px) rotate(2deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); }
}
@keyframes ak-peek { 0%, 100% { transform: rotateY(0); } 35% { transform: rotateY(-28deg); } 55% { transform: rotateY(-18deg); } 70% { transform: rotateY(-24deg); } }
@keyframes ak-wiggle { 0%, 82%, 100% { transform: rotate(0); } 86% { transform: rotate(-14deg); } 92% { transform: rotate(12deg); } 96% { transform: rotate(-6deg); } }
@keyframes ak-pop { from { opacity: 0; transform: scale(.8) rotateX(14deg); } to { opacity: 1; transform: none; } }
@keyframes ak-burst {
	0%   { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
	100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.4); }
}
@keyframes ak-rain {
	0%   { opacity: 1; transform: translate(0, 0) rotate(0); }
	85%  { opacity: 1; }
	100% { opacity: 0; transform: translate(var(--sx), 420px) rotate(var(--r)); }
}
@keyframes ak-flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ak-bounce { 0% { transform: scale(.2) translateY(30%); opacity: 0; } 60% { transform: scale(1.25) translateY(-8%); opacity: 1; } 100% { transform: none; } }
@keyframes ak-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8%); } }
@keyframes ak-bulb { from { opacity: .35; box-shadow: 0 0 2px 0 var(--c); } to { opacity: 1; box-shadow: 0 0 12px 3px var(--c); } }
@keyframes ak-shine { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }
@keyframes ak-sheen { 0%, 70% { background-position: 150% 0, 0 0; } 100% { background-position: -50% 0, 0 0; } }
@keyframes ak-btnshine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes ak-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes ak-ring { 0% { box-shadow: 0 0 0 0 var(--ak-accent); opacity: .7; } 100% { box-shadow: 0 0 0 16px var(--ak-accent); opacity: 0; } }

/* Ramus režimas */
.ak-anim-calm .ak-cell.is-today .ak-door__front { animation-duration: 3s; }

@media (prefers-reduced-motion: reduce) {
	.ak-theme *, .ak-theme *::before, .ak-theme *::after, .ak-theme.ak-launcher {
		animation-duration: .01ms !important; animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
