/* /2026 — year in review. Saturated gradient cards (after lex.games/year),
   with a little more mischief: stickers, wobbles, confetti, a receipt. */

:root {
	--ink: #fff;
	--ink-2: rgba(255, 255, 255, 0.8);
	--ink-3: rgba(255, 255, 255, 0.6);
	--gold: #fcd34d;
	--pink: #f9a8d4;
	--paper: #fffdf5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: Nunito, "Avenir Next", system-ui, -apple-system, sans-serif;
	background:
		radial-gradient(900px 500px at 10% 0%, rgba(124, 58, 237, 0.35), transparent 60%),
		radial-gradient(800px 600px at 90% 30%, rgba(236, 72, 153, 0.22), transparent 60%),
		radial-gradient(900px 700px at 30% 90%, rgba(20, 184, 166, 0.18), transparent 60%),
		#140a26;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	background-attachment: fixed;
}
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

.yr { max-width: 820px; margin: 0 auto; padding: 22px 16px 60px; }

.card {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	padding: 40px 34px 34px;
	margin: 0 0 26px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.card::before {
	content: "";
	position: absolute;
	width: 380px; height: 380px; right: -130px; top: -160px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
	pointer-events: none;
}
.js .card { opacity: 0; transform: translateY(30px) rotate(-0.6deg) scale(0.98); transition: opacity 0.6s ease, transform 0.8s cubic-bezier(.2, .9, .25, 1.25); }
.js .card:nth-of-type(even) { transform: translateY(30px) rotate(0.6deg) scale(0.98); }
.js .card.in { opacity: 1; transform: none; }

.c-hero    { background: linear-gradient(140deg, #2d1066 0%, #5b21b6 50%, #c026d3 100%); }
.c-apps    { background: linear-gradient(150deg, #1e1b4b 0%, #3730a3 100%); }
.c-sales   { background: linear-gradient(150deg, #042f2e 0%, #0f766e 100%); }
.c-games   { background: linear-gradient(150deg, #500724 0%, #be185d 100%); }
.c-writing { background: linear-gradient(150deg, #431407 0%, #c2410c 100%); }
.c-pods    { background: linear-gradient(150deg, #0c0a2a 0%, #1e3a8a 60%, #0369a1 100%); }
.c-album   { background: linear-gradient(150deg, #052e16 0%, #15803d 70%, #b91c1c 140%); }
.c-bag     { background: linear-gradient(150deg, #2d1066 0%, #86198f 100%); }

.kicker { margin: 0 0 8px; font-size: 13px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
h1, h2 { margin: 0 0 12px; line-height: 1.12; font-weight: 900; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(26px, 5vw, 36px); }
.hl { color: var(--gold); }
.lede { font-size: 18px; line-height: 1.5; color: var(--ink-2); margin: 0 0 18px; text-wrap: pretty; max-width: 62ch; }
.lede strong { color: var(--ink); }
.fine { font-size: 14.5px; line-height: 1.5; color: var(--ink-3); margin: 18px 0 0; text-wrap: pretty; }
.sub { font-size: 13px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 26px 0 8px; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }
a:hover { color: var(--gold); text-decoration-color: var(--gold); }

/* ---- hero ---- */
.hero { text-align: center; padding: 56px 24px 38px; }
.mega {
	margin: 4px 0 6px;
	font-size: clamp(96px, 27vw, 210px);
	line-height: 0.9;
	letter-spacing: -0.05em;
	font-variant-numeric: tabular-nums;
}
.mega span {
	display: inline-block;
	background: linear-gradient(180deg, #fff 25%, #fde68a 75%, #f9a8d4 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	/* background-clip:text only paints inside the box; negative letter-spacing
	   shrank the box under each glyph's right edge. Pad the box, tighten with margins. */
	letter-spacing: 0; padding: 0 0.06em; margin: 0 -0.085em;
	filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.18));
	animation: hop 2.8s ease-in-out infinite;
}
.mega span:nth-child(2) { animation-delay: 0.12s; }
.mega span:nth-child(3) { animation-delay: 0.24s; }
.mega span:nth-child(4) { animation-delay: 0.36s; }
@keyframes hop { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-10px) rotate(-4deg); } 90% { transform: translateY(2px) rotate(2deg); } }
.hero .kicker { font-size: 15px; color: var(--ink-2); }
.hero-sub { font-size: clamp(20px, 3.6vw, 26px); font-weight: 800; color: var(--ink-2); margin: 0 0 24px; }
.hero-sub em { font-weight: 700; color: var(--ink-3); }
.chips { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 560px; }
.chips a {
	display: inline-block; padding: 9px 16px; border-radius: 999px;
	background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.22);
	text-decoration: none; font-size: 16px; font-weight: 700; color: var(--ink-2);
	transition: transform 0.2s cubic-bezier(.2, .9, .3, 1.6), background 0.2s;
}
.chips a:hover { transform: translateY(-3px) rotate(-2deg); background: rgba(255, 255, 255, 0.26); color: var(--ink); }
.chips b { color: var(--gold); font-weight: 900; }
.scroll { margin: 30px 0 0; font-size: 14px; color: var(--ink-3); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.sticker { position: absolute; font-size: 40px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3)); animation: float 6s ease-in-out infinite; pointer-events: none; }
.s1 { left: 6%; top: 10%; transform: rotate(-14deg); }
.s2 { right: 8%; top: 16%; font-size: 46px; animation-delay: -1.5s; }
.s3 { left: 9%; bottom: 18%; font-size: 34px; animation-delay: -3s; }
.s4 { right: 11%; bottom: 24%; font-size: 36px; animation-delay: -2s; }
.s5 { left: 46%; top: 4%; font-size: 28px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-12px) rotate(10deg); } }

/* ---- apps ---- */
.apps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.apps a {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; height: 100%;
	padding: 16px 14px 14px; border-radius: 18px; text-decoration: none; color: var(--ink);
	background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12);
	transition: transform 0.25s cubic-bezier(.2, .9, .3, 1.6), background 0.2s;
}
.apps li:nth-child(odd) a:hover { transform: translateY(-4px) rotate(-2deg); background: rgba(255, 255, 255, 0.14); }
.apps li:nth-child(even) a:hover { transform: translateY(-4px) rotate(2deg); background: rgba(255, 255, 255, 0.14); }
.apps img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); margin-bottom: 10px; transition: transform 0.4s cubic-bezier(.2, .9, .3, 1.8); }
.apps a:hover img { transform: rotate(-8deg) scale(1.08); }
.mo { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; background: var(--gold); color: #3b0764; padding: 3px 8px; border-radius: 8px; transform: rotate(4deg); }
.an { font-size: 17px; font-weight: 900; line-height: 1.2; }
.at { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); margin: 4px 0 8px; flex: 1; }
.ap { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* ---- bars ---- */
.rows { display: grid; gap: 9px; margin: 4px 0 6px; }
.row { display: grid; grid-template-columns: 28px 9.5em 1fr 4.2em; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.row img { border-radius: 7px; }
.row-l { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-t { height: 16px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.row-b { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, #5eead4, var(--gold)); transform-origin: left; }
.js .row-b { transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .9, .25, 1); transition-delay: calc(var(--i) * 70ms + 200ms); }
.in .row-b { transform: scaleX(1); }
.row-v { text-align: right; font-weight: 900; font-variant-numeric: tabular-nums; }
.row:hover .row-l { color: var(--gold); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 24px; }
.tile { background: rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 18px; }
.tile-n { margin: 0; font-size: 38px; font-weight: 900; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.tile-l { margin: 6px 0 6px; font-weight: 900; font-size: 16px; }
.tile-s { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }

/* ---- Lex.Games bubbles ---- */
.bubbles { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 10px 0 4px; }
.bubble {
	position: relative; width: var(--s); height: var(--s); border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1) 60%);
	border: 1px solid rgba(255, 255, 255, 0.25);
	text-decoration: none; color: var(--ink);
	transition: transform 0.3s cubic-bezier(.2, .9, .3, 1.8);
	animation: wobble 5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.7s);
}
.bubble b { font-size: calc(var(--s) * 0.22); font-weight: 900; line-height: 1; }
.bubble span { font-size: max(10px, calc(var(--s) * 0.1)); font-weight: 800; line-height: 1.1; padding: 0 6px; margin-top: 2px; }
.bubble i { position: absolute; top: -4px; right: -6px; font-style: normal; font-size: 11px; font-weight: 900; text-transform: uppercase; background: var(--gold); color: #500724; padding: 2px 7px; border-radius: 8px; transform: rotate(12deg); }
.bubble:hover { transform: scale(1.12); color: var(--ink); }
@keyframes wobble { 50% { translate: 0 -5px; } }

/* ---- Lex on Tech ---- */
.minibars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 170px; margin: 8px 0 0; }
.mb { display: grid; grid-template-rows: 18px 1fr 18px; align-items: end; text-align: center; }
.mb-v { font-size: 13px; font-weight: 900; }
.mb-b { align-self: end; justify-self: center; width: 70%; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--gold), #fb923c); transform-origin: bottom; }
.js .mb-b { transform: scaleY(0); transition: transform 0.9s cubic-bezier(.2, .9, .3, 1.3); transition-delay: calc(var(--i) * 60ms + 200ms); }
.in .mb-b { transform: scaleY(1); }
.mb-0 .mb-b { height: 4px; background: rgba(255, 255, 255, 0.15); }
.mb-l { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.top { margin: 0; padding: 0 0 0 1.4em; display: grid; gap: 8px; }
.top li { font-size: 16.5px; line-height: 1.35; font-weight: 700; }
.top li::marker { color: var(--gold); font-weight: 900; }
.top span { display: inline-block; font-size: 13px; font-weight: 700; color: var(--ink-3); margin-left: 4px; }

/* ---- podcasts ---- */
.pods { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.pod { background: rgba(255, 255, 255, 0.09); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; }
.pod-e { margin: 0; font-size: 30px; }
.pod-n { margin: 2px 0 0; font-size: 54px; font-weight: 900; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.pod-t { margin: 4px 0 2px; font-size: 19px; font-weight: 900; }
.pod-s { margin: 0 0 12px; font-size: 14px; line-height: 1.4; color: var(--ink-2); flex: 1; }
.pod-l { margin: 10px 0 0; font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.wave { display: flex; align-items: flex-end; gap: 3px; height: 38px; }
.wave span { flex: 1; height: max(3px, var(--h)); background: rgba(255, 255, 255, 0.5); border-radius: 3px; animation: eq 1.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.13s); transform-origin: bottom; }
@keyframes eq { to { transform: scaleY(0.55); } }

/* ---- album ---- */
.album { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; }
.cover img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45); transform: rotate(-4deg); transition: transform 0.4s cubic-bezier(.2, .9, .3, 1.6); }
.cover:hover img { transform: rotate(3deg) scale(1.04); }
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--gold); color: #052e16; font-weight: 900; text-decoration: none; transition: transform 0.2s cubic-bezier(.2, .9, .3, 1.8); }
.btn:hover { color: #052e16; transform: scale(1.06) rotate(-2deg); }
.cal { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cal li { width: 78px; background: var(--paper); color: #1f2937; border-radius: 10px; overflow: hidden; text-align: center; transform: rotate(var(--r)); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); transition: transform 0.3s cubic-bezier(.2, .9, .3, 1.8); }
.cal li:hover { transform: rotate(0) scale(1.1); }
.cal-m { display: block; background: #dc2626; color: #fff; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 0; }
.cal-d { display: block; font-size: 26px; font-weight: 900; line-height: 1.1; padding-top: 2px; }
.cal-t { display: block; font-size: 10.5px; font-weight: 800; line-height: 1.15; padding: 0 4px 6px; color: #4b5563; }

/* ---- grab bag ---- */
.bag { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.bag-i { display: block; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.1); text-decoration: none; color: var(--ink-2); transition: transform 0.25s cubic-bezier(.2, .9, .3, 1.6), background 0.2s; }
.bag-i:hover { color: var(--ink-2); background: rgba(255, 255, 255, 0.16); transform: translateY(-3px) rotate(-1deg); }
.bag-i b { display: block; font-size: 40px; font-weight: 900; line-height: 1.05; color: var(--gold); font-variant-numeric: tabular-nums; }
.bag-i > span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.4; }
.bag-i u { color: var(--ink); text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 3px; }

/* ---- receipt ---- */
.receipt-wrap { text-align: center; padding: 10px 0 0; }
.receipt {
	position: relative; width: min(360px, 100%); margin: 10px auto 26px; padding: 30px 26px 34px;
	background: var(--paper); color: #1f2937; font-family: "Courier New", ui-monospace, monospace;
	transform: rotate(-1.5deg); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
	--zz: 10px;
	-webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%;
	        mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--zz) * 2) 100%;
}
.js .receipt { transform: translateY(-40px) rotate(-1.5deg); clip-path: inset(0 0 100% 0); transition: transform 1.4s ease-out, clip-path 1.6s steps(24); }
.js .receipt.in { transform: rotate(-1.5deg); clip-path: inset(0 0 0 0); }
.rc-h { margin: 0; font-weight: 900; font-size: 19px; line-height: 1.25; letter-spacing: 0.04em; }
.rc-s { margin: 6px 0 16px; font-size: 13px; color: #6b7280; }
.receipt ul { list-style: none; margin: 0; padding: 14px 0; border-top: 2px dashed #9ca3af; border-bottom: 2px dashed #9ca3af; text-align: left; }
.receipt li { display: flex; align-items: baseline; gap: 6px; font-size: 14.5px; line-height: 1.7; }
.receipt li i { flex: 1; border-bottom: 2px dotted #cbd5e1; transform: translateY(-4px); }
.receipt li b { font-variant-numeric: tabular-nums; }
.rc-t { display: flex; justify-content: space-between; margin: 12px 0 18px; font-size: 19px; font-weight: 900; }
.rc-f { margin: 0; font-size: 13px; line-height: 1.6; letter-spacing: 0.05em; }
.rc-bar { margin: 14px 0 6px; font-size: 22px; letter-spacing: -1px; white-space: nowrap; overflow: hidden; transform: scaleY(1.6); }
.rc-x { margin: 22px 0 0; font-size: 11px; color: #6b7280; }
.next { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0 0 18px; }
.again {
	font: inherit; font-weight: 900; font-size: 17px; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
	background: linear-gradient(135deg, var(--gold), var(--pink)); color: #3b0764;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); transition: transform 0.2s cubic-bezier(.2, .9, .3, 1.8);
}
.again:hover { transform: scale(1.08) rotate(-3deg); }
.again:active { transform: scale(0.95); }

/* ---- tooltip ---- */
.tip { position: fixed; z-index: 60; pointer-events: none; padding: 7px 11px; border-radius: 10px; background: #0b0618; color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); white-space: nowrap; }

@media (max-width: 600px) {
	.card { padding: 32px 20px 26px; border-radius: 22px; }
	.lede { font-size: 16.5px; }
	.apps { grid-template-columns: 1fr 1fr; gap: 10px; }
	.apps a { padding: 14px 11px 12px; }
	.apps img { width: 52px; height: 52px; }
	.row { grid-template-columns: 24px 7em 1fr 3.4em; gap: 7px; }
	.row img { width: 24px; height: 24px; }
	.row-l { font-size: 13.5px; }
	.album { grid-template-columns: 1fr; text-align: center; }
	.cover { width: 200px; margin: 0 auto; }
	.album .lede { margin-left: auto; margin-right: auto; }
	.minibars { height: 140px; gap: 3px; }
	.mb-l { font-size: 10px; }
	.mb-v { font-size: 11px; }
	.sticker { font-size: 26px !important; }
	.s5 { display: none; }
	.s1 { left: 4%; top: 4%; }
	.s2 { right: 4%; top: 6%; }
	.cal li { width: 66px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .card, .js .receipt { opacity: 1; transform: none; clip-path: none; }
	.js .row-b, .js .mb-b { transform: none; }
}
