/* Blucos website. "Blue cosmos" look (picked 2026-11-18 from preview/a): a full-width picture of blue space
   behind the opening words, glowing collectible cards for the games, the device's own sans fonts.
   Motion is off under prefers-reduced-motion. */
:root {
  --night: #0b1240;
  --deep: #070b2a;
  --ink: #f2f4ff;
  --soft: #b9c3ef;
  --gold: #ffc85a;
  --blue: #4fb6ff;
  --card: rgba(18, 26, 78, 0.82);
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; color: var(--ink); font: 16px/1.65 var(--text); word-break: keep-all; overflow-wrap: anywhere;
  background: radial-gradient(120% 70% at 50% 0%, #26338f 0%, var(--night) 45%, var(--deep) 100%) fixed, var(--deep); }
/* star field: three layers of tiny dots, twinkling slowly */
body::before, body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90px 120px, #dfe6ff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 160px 60px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 230px 170px, #ffe9b5 50%, transparent 51%);
  background-size: 260px 220px; opacity: 0.55; }
body::after { background-size: 410px 330px; background-position: 120px 80px; opacity: 0.35; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: 0.15; } to { opacity: 0.6; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
a { color: var(--gold); }
img { max-width: 100%; }
main, header, footer { position: relative; z-index: 1; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: rgba(7, 11, 42, 0.72); backdrop-filter: blur(10px); }
.logo img { display: block; width: 150px; height: auto; }
.top nav { display: flex; gap: 18px; }
.top nav a { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 15px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.22; letter-spacing: -0.02em; }
h2 { font-size: 30px; margin: 0 0 6px; }
.sub { margin: 0 0 22px; color: var(--soft); }
.band { margin-top: 56px; }

/* Hero: a full-width blue cosmos picture (nebula, stars, the edge of a blue planet) behind the words */
.hero { position: relative; display: flex; align-items: flex-start; min-height: min(86vh, 760px); margin: 0 calc(50% - 50vw); padding: 64px 24px 220px; text-align: center;
  background: var(--deep) url(art/cosmos-tall.webp) center bottom / cover no-repeat; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--deep)); }
.hero .copy { position: relative; z-index: 1; width: 100%; max-width: 1088px; margin: 0 auto; }
.copy h1 { margin: 0 auto 14px; max-width: 13em; font-size: 36px; text-shadow: 0 2px 24px rgba(4, 7, 26, 0.6); }
.copy h1 em { font-style: normal; color: var(--gold); }
.copy p { margin: 0 auto; max-width: 32em; color: var(--soft); font-size: 16.5px; }
.copy .studio { margin-top: 10px; font-size: 13.5px; opacity: 0.8; }
.cta { display: inline-block; margin-top: 22px; padding: 13px 26px; border-radius: 999px; color: #20160a; background: linear-gradient(180deg, #ffd978, #ffb93a);
  font-family: var(--display); font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: 0 8px 24px rgba(255, 185, 58, 0.35); transition: transform 0.2s; }
.cta:hover { transform: translateY(-2px) scale(1.03); }

/* Collectible cards: gradient frame in the game's colours, art banner with a cutout peeking out, lift and tilt */
.cards { display: grid; gap: 22px; grid-template-columns: 1fr; perspective: 1000px; }
.card { position: relative; padding: 5px; border-radius: 26px; background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s; transform-style: preserve-3d; }
.card:hover { transform: translateY(-8px) rotateX(4deg) rotateY(calc((var(--i) - 1.5) * 2deg)); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 30px color-mix(in srgb, var(--c1) 45%, transparent); }
.card-link { position: absolute; inset: 0; z-index: 3; border-radius: 26px; }
.card-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.art { position: relative; height: 150px; border-radius: 21px 21px 0 0; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.art > img:first-child { width: 100%; height: 100%; object-fit: cover; border-radius: 21px 21px 0 0; display: block; }
.art::after { content: ''; position: absolute; inset: 0; border-radius: 21px 21px 0 0; background: linear-gradient(180deg, transparent 40%, rgba(18, 26, 78, 0.9)); }
.peek { position: absolute; z-index: 2; right: 10px; top: -26px; width: 96px; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); transition: transform 0.35s; }
.card:hover .peek { transform: translateY(-8px) rotate(-6deg) scale(1.06); }
.body { position: relative; padding: 0 18px 18px; border-radius: 0 0 21px 21px; background: var(--card); }
.icon { position: relative; z-index: 2; width: 72px; height: 72px; margin-top: -40px; border-radius: 20px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 0 3px #fff; }
.body h3 { margin: 10px 0 4px; font-size: 21px; }
.body p { margin: 0; color: var(--soft); font-size: 14.5px; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.store, .soon { position: relative; z-index: 4; display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.store { color: #20160a; background: var(--gold); }
.soon { color: var(--gold); background: rgba(255, 200, 90, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 200, 90, 0.5); }
.more { margin-left: auto; color: var(--ink); font-weight: 700; font-size: 14px; }

/* videos */
.shorts { display: grid; grid-template-columns: repeat(2, minmax(0, 230px)); gap: 16px; }
.short, .short-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.short { padding: 0; cursor: pointer; display: block; transition: transform 0.3s; }
.short:hover { transform: translateY(-6px) rotate(-1deg); }
.short img { width: 100%; height: 100%; object-fit: cover; display: block; }
.short .play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: rgba(255, 200, 90, 0.95); box-shadow: 0 0 0 8px rgba(255, 200, 90, 0.25); }
.short .play::after { content: ''; position: absolute; left: 24px; top: 19px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #20160a; }
.short .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; color: #fff; font-size: 13px; font-weight: 700; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); }
.note { color: var(--soft); font-size: 13px; }

/* contact and privacy */
.doc { max-width: 760px; margin: 32px auto 0; padding: 26px 22px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px rgba(185, 195, 239, 0.14); }
.doc h1 { margin: 0 0 10px; font-size: 30px; }
.doc h2 { margin: 24px 0 6px; font-size: 19px; color: var(--gold); }
.doc p, .doc li { color: var(--soft); }
.doc ul { padding-left: 20px; }
.muted { color: var(--soft); opacity: 0.85; font-size: 14px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; color: #20160a; background: linear-gradient(180deg, #ffd978, #ffb93a); font-weight: 700; text-decoration: none; }

/* game page */
.ghero { position: relative; margin-top: 18px; border-radius: 28px; padding: 5px; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.gbanner { display: block; width: 100%; height: 190px; object-fit: cover; border-radius: 23px 23px 0 0; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.ginfo { position: relative; padding: 0 20px 22px; border-radius: 0 0 23px 23px; background: var(--card); }
.back { position: absolute; z-index: 2; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; color: #fff; background: rgba(7, 11, 42, 0.6); text-decoration: none; font-size: 13.5px; font-weight: 700; }
.gicon { position: relative; width: 104px; height: 104px; margin-top: -56px; border-radius: 26px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 0 4px #fff; }
.ginfo h1 { margin: 12px 0 4px; font-size: 30px; }
.tag { margin: 0 0 4px; color: var(--soft); }
.gpeek { position: absolute; right: 6%; top: 124px; width: 104px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.6)); animation: bob 5s ease-in-out infinite; }
.lead { margin: 26px 0 0; font-size: 17px; color: var(--ink); }
.shots-title { margin-top: 36px; font-size: 24px; }
.phones { display: flex; gap: 16px; margin: 6px -16px 0; padding: 14px 16px 22px; overflow-x: auto; scroll-snap-type: x mandatory; }
.phone { flex: 0 0 auto; width: 60%; max-width: 250px; margin: 0; padding: 6px; border-radius: 30px; background: #0d1336; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12), 0 16px 34px rgba(0, 0, 0, 0.55); transform: rotate(var(--r)); scroll-snap-align: center; transition: transform 0.3s; }
.phone:hover { transform: rotate(0) translateY(-6px); }
.phone img { display: block; width: 100%; height: auto; border-radius: 24px; }
.parts { display: grid; gap: 16px; margin-top: 18px; }
.part { padding: 20px 22px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px rgba(185, 195, 239, 0.14); }
.part h2 { margin: 0 0 10px; font-size: 20px; color: var(--gold); }
.part ul { margin: 0; padding-left: 20px; color: var(--soft); }
.part li + li { margin-top: 7px; }
.links { margin-top: 16px; }

footer { margin-top: 40px; padding: 34px 16px 40px; text-align: center; color: var(--soft); font-size: 14px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)); }
footer nav { display: flex; justify-content: center; gap: 20px; margin: 10px 0; }
footer nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
footer p { margin: 6px 0; }
footer .lang b { color: var(--gold); }
footer .lang a { color: var(--ink); }
.foot-planet { width: 64px; height: 64px; }

@media (min-width: 760px) {
  .hero { align-items: center; padding: 40px 32px 160px; text-align: left; background-image: url(art/cosmos-wide.webp); }
  .copy h1 { margin-left: 0; font-size: 50px; }
  .copy p { margin-left: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .gbanner { height: 300px; }
  .gpeek { top: 190px; width: 210px; }
  .phones { display: grid; grid-template-columns: repeat(4, 1fr); margin: 6px 0 0; padding: 14px 0 22px; overflow: visible; }
  .phone { width: auto; max-width: none; }
  .parts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } .copy h1 { font-size: 56px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
