/* =====================================================================
   style.css – the look of Sky-Kai
   ---------------------------------------------------------------------
   Sections:
     1. Colours and fonts
     2. Basics and the starry sky
     3. "Sample content" banner
     4. Menu
     5. Top of the page (hero)
     6. Sections and cards
     7. Drawings
     8. Shop
     9. About me
    10. Movies
    11. Music
    12. Footer and the star button
    13. Pop-ups (big drawing, order)
    14. Effects
    15. Tablets and phones
   ===================================================================== */


/* ---------- 1. Colours and fonts ----------
   Change a colour here and it changes everywhere.                        */
:root {
	--bg: #1a1440;                       /* night sky, dark */
	--bg2: #271d58;                      /* night sky, a bit lighter */
	--pink: #ff8fc7;
	--sky: #7fd1ff;
	--lilac: #c9a7ff;
	--yellow: #ffe27a;
	--mint: #8ff0c8;
	--ink: #fff;                         /* main text */
	--muted: #d3cbf7;                    /* softer text */
	--card: rgba(255, 255, 255, .07);    /* see-through card background */
	--line: rgba(255, 255, 255, .15);    /* thin borders */
	--head: "Mochiy Pop One", "M PLUS Rounded 1c", system-ui, sans-serif;
	--body: "M PLUS Rounded 1c", system-ui, -apple-system, "Segoe UI", sans-serif;
}


/* ---------- 2. Basics and the starry sky ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--body);
	color: var(--ink);
	line-height: 1.6;
	min-height: 100vh;
	overflow-x: hidden;
	/* soft pink, blue and lilac glows on a dark gradient */
	background:
		radial-gradient(1200px 700px at 85% -10%, rgba(255, 143, 199, .25), transparent 60%),
		radial-gradient(900px 600px at -10% 30%, rgba(127, 209, 255, .18), transparent 60%),
		radial-gradient(900px 700px at 100% 80%, rgba(201, 167, 255, .18), transparent 60%),
		linear-gradient(180deg, var(--bg), var(--bg2) 60%, var(--bg));
}

a { color: var(--sky); }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main, header, footer, nav { position: relative; z-index: 1; }

/* The stars: main.js adds about 70 little dots that twinkle */
#stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.star { position: absolute; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }


/* ---------- 3. "Sample content" banner ---------- */
.sample {
	position: relative;
	z-index: 2;
	padding: 8px 40px;
	background: repeating-linear-gradient(45deg, #ff8fc7, #ff8fc7 14px, #ffa6d3 14px, #ffa6d3 28px);
	color: #3a1240;
	font-weight: 800;
	font-size: 14px;
	text-align: center;
}
.sample-close {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .15);
	color: #3a1240;
	font-weight: 800;
	cursor: pointer;
}


/* ---------- 4. Menu ----------
   Sticks to the top, with a frosted-glass look. main.js marks the link of
   the section you're in with the class "here".                           */
nav {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(26, 20, 64, .72);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}
nav .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }

.logo { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 22px; color: #fff; text-decoration: none; white-space: nowrap; }
.logo b {
	font-weight: 400;
	background: linear-gradient(90deg, var(--pink), var(--lilac), var(--sky));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.logo .full { font-family: var(--body); font-size: 14px; font-weight: 700; color: var(--muted); }

.links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.links::-webkit-scrollbar { display: none; }
.links a {
	padding: 7px 12px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s, color .2s;
}
.links a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.links a.here { background: rgba(255, 143, 199, .22); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 143, 199, .45); }


/* ---------- 5. Top of the page (hero) ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }

/* "안녕! こんにちは Hei!" bubbles */
.hello { display: inline-flex; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 800; }
.hello span { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }

h1 { margin: 18px 0 6px; font-family: var(--head); font-weight: 400; font-size: clamp(52px, 9vw, 104px); line-height: 1; letter-spacing: -1px; }
/* the rainbow text; it slowly shimmers (section 14) */
.grad {
	background: linear-gradient(90deg, var(--pink), var(--lilac) 25%, var(--sky) 50%, var(--lilac) 75%, var(--pink));
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.kana { font-size: 15px; font-weight: 700; letter-spacing: 6px; color: var(--lilac); }
.tag { max-width: 30em; margin: 14px 0 26px; font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); }
.tag strong { color: #fff; }

/* Buttons: pink (main) and see-through (.alt) */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btns.center { justify-content: center; }
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--pink), #ffb3dc);
	box-shadow: 0 8px 24px rgba(255, 143, 199, .35);
	color: #2a1240;
	font-family: var(--body);
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn.alt { background: var(--card); border: 1px solid var(--line); box-shadow: none; color: #fff; }

/* Sky with a glowing, turning rainbow ring behind her */
.mascot { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: center; }
.mascot .ring {
	position: absolute;
	inset: 4%;
	border-radius: 50%;
	background: conic-gradient(from 0deg, var(--pink), var(--lilac), var(--sky), var(--mint), var(--pink));
	filter: blur(28px);
	opacity: .55;
	animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* #heroArt leans toward the pointer (main.js sets --lean-x / --lean-y); the svg inside floats up and down */
#heroArt { position: relative; width: 100%; height: 100%; transform: translate(var(--lean-x, 0), var(--lean-y, 0)) rotate(var(--lean-r, 0deg)); transition: transform .4s ease-out; }
#heroArt svg { width: 100%; height: 100%; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.bubble {
	position: absolute;
	top: 6%;
	right: -2%;
	padding: 8px 14px;
	border-radius: 18px 18px 18px 4px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	color: #2a1240;
	font-size: 15px;
	font-weight: 800;
	animation: bob 4s ease-in-out infinite reverse;
}


/* ---------- 6. Sections and cards ---------- */
section { padding: 64px 0; scroll-margin-top: 50px; }
.sh { margin-bottom: 34px; text-align: center; }        /* section heading */
.sh .kana { display: block; margin-bottom: 6px; }
.sh p { max-width: 36em; margin: 10px auto 0; color: var(--muted); }
h2 { margin: 0; font-family: var(--head); font-weight: 400; font-size: clamp(32px, 5vw, 46px); line-height: 1.15; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; }


/* ---------- 7. Drawings ----------
   Each drawing is a button. On computers it tilts toward the pointer and
   a shine moves over it (main.js sets --rx, --ry, --mx, --my).          */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; perspective: 900px; }
.art {
	position: relative;
	padding: 10px;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0));
	transition: transform .25s ease-out, box-shadow .25s;
}
.art:hover { --lift: -6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.art:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.art .pic { position: relative; display: block; overflow: hidden; border-radius: 16px; }
.art .pic svg, .art .pic img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
/* the shine that follows the pointer */
.art .pic::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .35), transparent 45%);
	opacity: 0;
	transition: opacity .25s;
	pointer-events: none;
}
.art:hover .pic::after { opacity: 1; }
.art .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 6px 4px; }
.art h3 { margin: 0; font-size: 17px; }
.art small { color: var(--muted); white-space: nowrap; }


/* ---------- 8. Shop ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.tabs button {
	padding: 8px 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.tabs button[aria-pressed="true"] { background: #fff; color: #2a1240; }

.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.item { display: flex; flex-direction: column; padding: 16px; }
.item .pic { position: relative; display: grid; place-items: center; aspect-ratio: 1.15; padding: 10px; border-radius: 18px; background: #fff8fc; overflow: hidden; }
.item .pic svg { width: 86%; height: 86%; transition: transform .5s ease; }
.item .pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.item:hover .pic svg { transform: rotate(12deg) scale(1.04); }      /* bracelets turn a little on hover */
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 10px; border-radius: 999px; background: var(--yellow); color: #3a2a00; font-size: 12px; font-weight: 800; }
.item h3 { margin: 14px 0 2px; font-size: 18px; }
.item p { flex: 1; margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.item .row { display: flex; justify-content: space-between; align-items: center; }
.price { font-family: var(--head); font-size: 22px; color: var(--yellow); }
.item .btn { padding: 8px 16px; font-size: 14px; }

/* "Slik bestiller du" box */
.how { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; padding: 20px 24px; }
.how .emo { flex: 0 0 auto; font-size: 38px; }
.how > div:last-child { flex: 1; min-width: 220px; }


/* ---------- 9. About me ---------- */
.about { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.int { padding: 22px; transition: transform .25s; }
.int:hover { transform: translateY(-4px); }
.int .ic { font-size: 34px; display: inline-block; }
.int:hover .ic { animation: wiggle .5s ease; }
@keyframes wiggle { 25% { transform: rotate(-12deg) scale(1.1); } 75% { transform: rotate(10deg) scale(1.1); } }
.int h3 { margin: 6px 0 8px; font-size: 21px; }
.int p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 700; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 28px; margin-top: 18px; padding: 22px 26px; }
.fact { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.fact span { min-width: 96px; color: var(--muted); font-size: 14px; }
.fact b { font-weight: 800; }
.fill { color: var(--pink); font-style: italic; font-weight: 700; }     /* still to be filled in */


/* ---------- 10. Movies ---------- */
.movies { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.mv { display: flex; gap: 16px; padding: 18px; }
.mv .poster {
	flex: 0 0 78px;
	height: 110px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
	font-size: 36px;
	transition: transform .3s;
}
.mv:hover .poster { transform: rotate(-4deg) scale(1.06); }
.mv h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.mv .sub { margin: 2px 0 6px; color: var(--lilac); font-size: 13px; font-weight: 700; }
.mv p { margin: 0; color: var(--muted); font-size: 14.5px; }
.hearts { margin-top: 6px; color: var(--pink); font-size: 14px; letter-spacing: 2px; }
.hearts span { display: inline-block; }


/* ---------- 11. Music ---------- */
.music { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; align-items: start; }
.player { position: sticky; top: 80px; padding: 24px; text-align: center; }

/* the record: centre hole, coloured label, grooves */
.disc {
	width: min(240px, 70%);
	aspect-ratio: 1;
	margin: 6px auto 18px;
	border-radius: 50%;
	background:
		radial-gradient(circle, #1a1440 0 9%, transparent 9.5%),
		radial-gradient(circle, var(--c1, #ff8fc7) 0 30%, transparent 30.5%),
		repeating-radial-gradient(circle, #2b2250 0 2px, #221a45 2px 4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
	animation: spin 6s linear infinite;
	animation-play-state: paused;
}
.disc.on { animation-play-state: running; }

.player .now { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 2px; }
.player h3 { margin: 4px 0 0; font-family: var(--head); font-weight: 400; font-size: 24px; }
.player .ar { color: var(--lilac); font-weight: 700; }
.player .why { min-height: 3em; margin: 12px 0 16px; color: var(--muted); font-size: 14.5px; }

.list { padding: 8px; }
.song {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 12px 14px;
	border: 0;
	border-radius: 16px;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background .15s;
}
.song:hover, .song.sel { background: rgba(255, 255, 255, .09); }
.song .n { width: 28px; font-family: var(--head); color: var(--lilac); text-align: center; }
.song .dot { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 20px; }
.song b { display: block; font-size: 16px; }
.song small { color: var(--muted); }
.song .txt { flex: 1; }

/* little dancing bars next to the chosen song */
.eq { display: none; gap: 3px; align-items: flex-end; height: 18px; }
.song.sel .eq { display: flex; }
.eq i { width: 4px; border-radius: 2px; background: var(--pink); animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; background: var(--lilac); }
.eq i:nth-child(3) { animation-delay: -.6s; background: var(--sky); }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 18px; } }


/* ---------- 12. Footer and the star button ---------- */
footer { padding: 40px 0 60px; color: var(--muted); text-align: center; }
footer .logo { justify-content: center; margin-bottom: 8px; }
.home-link { margin-top: 14px; font-size: 14px; }
.home-link a { color: var(--muted); }
.home-link a:hover { color: #fff; }

.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 20;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--pink), var(--lilac));
	box-shadow: 0 8px 24px rgba(255, 143, 199, .45);
	color: #2a1240;
	font-size: 22px;
	text-decoration: none;
	opacity: 0;
	transform: translateY(20px) scale(.6);
	pointer-events: none;
	transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: rotate(72deg) scale(1.08); }


/* ---------- 13. Pop-ups (big drawing, order) ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 20px; background: rgba(10, 6, 30, .82); }
.modal.open { display: grid; animation: fadeIn .2s ease; }
.modal .box {
	position: relative;
	width: 100%;
	max-width: 560px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 26px;
	background: var(--bg2);
}
.modal.open .box { animation: zoomIn .3s cubic-bezier(.2, 1.4, .5, 1); }
.modal .box svg, .modal .box img { display: block; width: 100%; border-radius: 18px; }
.modal .box img { aspect-ratio: 1; object-fit: contain; background: rgba(0, 0, 0, .2); }
.modal h3 { margin: 14px 6px 4px; font-size: 22px; }
.modal p { margin: 0 6px 8px; color: var(--muted); }
.x {
	position: absolute;
	top: -12px;
	right: -12px;
	z-index: 2;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #2a1240;
	font-size: 20px;
	font-weight: 800;
	cursor: pointer;
}
/* ‹ › on the big drawing */
.lb-nav {
	position: absolute;
	top: 40%;
	z-index: 2;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: #2a1240;
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.lb-nav.prev { left: -16px; }
.lb-nav.next { right: -16px; }
.lb-nav:hover { background: #fff; transform: scale(1.08); }
#lbArt.slide-next { animation: slideNext .3s ease; }
#lbArt.slide-prev { animation: slidePrev .3s ease; }
@keyframes slideNext { from { opacity: 0; transform: translateX(30px); } }
@keyframes slidePrev { from { opacity: 0; transform: translateX(-30px); } }

.order-box { padding: 28px; text-align: center; }
.order-icon { font-size: 48px; }
.modal.open .order-icon { animation: wiggle .6s .2s ease; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.85); } }


/* ---------- 14. Effects ---------- */

/* Title: each letter drops in (main.js wraps letters in <span class="ltr">) */
.ltr { display: inline-block; animation: drop .7s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-60px) rotate(-12deg) scale(.6); } }
/* the rainbow slowly flows through the title */
.grad { animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
/* while dropping in, each letter has one colour from the rainbow (main.js sets --c);
   when they have landed, main.js joins them back into one word with the flowing rainbow */
.grad .ltr { color: var(--c); }

/* hello bubbles pop in one after another */
.hello span { animation: popIn .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.hello span:nth-child(2) { animation-delay: .1s; }
.hello span:nth-child(3) { animation-delay: .2s; }
@keyframes popIn { from { opacity: 0; transform: scale(.5); } }

/* Things float up when they scroll into view (main.js adds "in").
   Only when JavaScript is on, so nothing stays hidden without it.
   Uses "translate" (not "transform"), so it adds up with the tilt and hover effects. */
.js .reveal {
	opacity: 0;
	translate: 0 28px;
	transition: opacity .6s ease var(--d, 0ms), translate .6s ease var(--d, 0ms), transform .25s ease-out, box-shadow .25s, background .15s;
}
.js .reveal.in { opacity: 1; translate: 0 0; }

/* Shooting stars (main.js adds one now and then) */
.shoot {
	position: absolute;
	width: 120px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(255, 255, 255, .9), transparent);
	transform: rotate(-25deg);
	animation: shoot 1.1s ease-out forwards;
}
@keyframes shoot {
	from { opacity: 0; translate: 0 0; }
	15%  { opacity: 1; }
	to   { opacity: 0; translate: -420px 200px; }
}

/* Sparkles where you click, and hearts from "Jeg vil ha!" */
.spark { position: fixed; z-index: 60; pointer-events: none; font-size: 18px; animation: sparkPop .8s ease-out forwards; }
@keyframes sparkPop { to { transform: translate(var(--dx), var(--dy)) scale(.3) rotate(180deg); opacity: 0; } }

/* Shop items pop in when you change tab */
.item.pop { animation: popIn .45s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: var(--d, 0ms); }


/* ---------- 15. Tablets and phones ---------- */
@media (max-width: 860px) {
	.hero .wrap { grid-template-columns: 1fr; text-align: center; }
	.hello, .btns { justify-content: center; }
	.tag { margin-left: auto; margin-right: auto; }
	.mascot { max-width: 320px; grid-row: 1; }
	.about { grid-template-columns: 1fr; }
	.music { grid-template-columns: 1fr; }
	.player { position: static; }
	.logo .full { display: none; }
}
@media (max-width: 560px) {
	.gallery, .shop { grid-template-columns: 1fr 1fr; gap: 12px; }
	.art h3, .item h3 { font-size: 15px; }
	.art small { display: none; }
	.item { padding: 10px; }
	.item .row { flex-direction: column; align-items: flex-start; gap: 8px; }
	.item p { font-size: 13px; }
	.lb-nav.prev { left: 6px; }
	.lb-nav.next { right: 6px; }
	.to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* For people who have turned off animations on their device */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; translate: none; }
}
