/* Website pages (home, login, news, studio). Builds on the glass tokens in style.css. */
html, body.site { overflow: hidden auto; height: auto; min-height: 100%; user-select: auto; }
body.site { background: #0b3644; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(4,30,42,.30), rgba(4,30,42,0) 30%, rgba(4,30,42,.06) 60%, rgba(4,30,42,.42)); }
main { position: relative; z-index: 2; }
a { color: inherit; text-decoration: none; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 30; width: min(1120px, calc(100vw - 28px)); display: flex; align-items: center; gap: 22px; padding: 9px 12px 9px 20px; border-radius: 18px; animation: navIn .7s var(--ease) both; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 300; letter-spacing: .36em; font-size: 15px; }
.brand .gem { width: 15px; height: 19px; }
.links { display: flex; gap: 4px; margin-right: auto; }
.links a { padding: 7px 13px; border-radius: 11px; font-size: 13.5px; letter-spacing: .06em; color: var(--muted); transition: color .18s, background .18s; }
.links a:hover, .links a.on { color: var(--text); background: rgba(255,255,255,.10); }
.acct { display: flex; align-items: center; gap: 8px; }
.who { font-size: 13px; color: var(--muted); margin-right: 4px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: center; gap: 40px; padding: 110px max(28px, calc((100vw - 1120px) / 2)) 60px; }
.hero h1 { margin: 0; font-weight: 200; font-size: clamp(40px, 6vw, 88px); letter-spacing: .2em; line-height: 1; font-weight: 300; filter: drop-shadow(0 2px 3px rgba(0,30,45,.55)) drop-shadow(0 8px 28px rgba(0,30,45,.5));
  background: linear-gradient(100deg, #fff 15%, #d6fff6 50%, var(--mint) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; animation: glassIn 1s var(--ease) both; }
.hero .tagline { margin: 18px 0 34px; font-weight: 300; font-size: clamp(15px, 1.5vw, 19px); letter-spacing: .08em; color: #fff; font-weight: 400; text-shadow: 0 1px 2px rgba(0,25,40,.7), 0 2px 18px rgba(0,25,40,.6); max-width: 30em; line-height: 1.6; animation: glassIn 1s .12s var(--ease) both; }
.playwrap { display: flex; align-items: center; gap: 22px; animation: glassIn 1s .24s var(--ease) both; }
.play { position: relative; display: inline-flex; align-items: center; gap: 16px; padding: 20px 46px 20px 30px; border-radius: 999px; font-size: 21px; font-weight: 400; letter-spacing: .34em; text-transform: uppercase; color: #063842;
  background: linear-gradient(135deg, #e3fff8, var(--mint) 45%, var(--aqua)); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 16px 50px rgba(98,214,234,.55), inset 0 1px 0 rgba(255,255,255,.9); transition: transform .25s var(--ease), box-shadow .25s; overflow: hidden; }
.play::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid rgba(143,240,220,.8); animation: ring 2.4s ease-out infinite; pointer-events: none; }
.play::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.8) 50%, transparent 65%); transform: translateX(-120%); animation: sweep 3.6s var(--ease) infinite; }
.play:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 22px 60px rgba(98,214,234,.75), inset 0 1px 0 rgba(255,255,255,.9); }
.play svg { width: 22px; height: 22px; fill: #063842; }
.ver { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(241,251,251,.85); text-shadow: 0 2px 10px rgba(0,30,40,.6); line-height: 1.7; }
.ver b { color: var(--mint); font-weight: 500; }
/* the desktop client download, with a peek at the Sacred Seaglass tee you get for it */
.dlclient { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 18px 12px 12px; border-radius: 18px; color: #f1fbfb; text-decoration: none; animation: glassIn 1s .3s var(--ease) both; transition: transform .25s var(--ease), background .25s; max-width: 100%; }
.dlclient:hover { transform: translateY(-2px); background: rgba(255,255,255,.16); }
.dl-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(160deg, #9ff5e4, #2fbfa5); }
.dl-ic svg { width: 22px; height: 22px; fill: none; stroke: #063842; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dl-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dl-txt b { font-weight: 500; font-size: 15px; }
.dl-txt small { font-size: 12px; color: rgba(241,251,251,.8); }
.dl-txt em { font-style: normal; color: var(--mint); }
.dl-tee { flex: none; width: 46px; height: 46px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M22 8l-14 7 5 11 6-3v33h26V23l6 3 5-11-14-7c-1 4-5 6-10 6s-9-2-10-6z' fill='%23f7f6f1' stroke='%23b9c6c4' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M32 24c6 0 9 4 8 8s-6 7-10 5-5-7-1-9 7 1 5 4' fill='none' stroke='%232fbfa5' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M32 26l4 5-2 7-4 1-3-5 2-6z' fill='%234fd6c0' stroke='%23155e66' stroke-width='1'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 4px 10px rgba(0,30,40,.35)); }
@media (max-width: 560px) { .dl-tee { display: none; } }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; animation: glassIn 1s .36s var(--ease) both; }
.stat { padding: 10px 18px; border-radius: 16px; }
.stat b { display: block; font-size: 22px; font-weight: 400; } .stat span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.latest { padding: 20px; animation: glassIn 1s .3s var(--ease) both; }
.latest h2, .section h2 { margin: 0 0 12px; font-weight: 400; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--mint); display: flex; justify-content: space-between; align-items: center; }
.latest h2 a { color: var(--muted); letter-spacing: .1em; } .latest h2 a:hover { color: var(--text); }
.latest .row-item { display: block; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.latest .row-item + .row-item { margin-top: 4px; }
.latest .row-item:hover { background: rgba(255,255,255,.10); border-color: var(--stroke-soft); transform: translateX(4px); }
.row-item h3 { margin: 6px 0 3px; font-size: 16px; font-weight: 500; text-transform: none; letter-spacing: .01em; color: var(--text); }
.row-item p { margin: 0; font-size: 13px; }

.meta { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kind { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--stroke-soft); background: rgba(255,255,255,.08); color: var(--text); }
.kind-update { background: rgba(143,240,220,.22); border-color: rgba(143,240,220,.5); color: var(--mint); }
.kind-event { background: rgba(255,220,160,.2); border-color: rgba(255,220,160,.5); color: var(--sand); }
.kind.draft { background: rgba(255,154,138,.2); border-color: rgba(255,154,138,.5); color: var(--coral); }

/* ---------- sections ---------- */
.section { padding: 30px max(28px, calc((100vw - 1120px) / 2)) 70px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.news-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; transition: transform .25s var(--ease), box-shadow .25s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 22px 54px rgba(0,28,40,.4), inset 0 1px 0 rgba(255,255,255,.5); }
.news-card h3 { margin: 4px 0 0; font-size: 19px; font-weight: 500; letter-spacing: .01em; text-transform: none; color: var(--text); line-height: 1.3; }
.news-card p { margin: 0; font-size: 14px; flex: 1; }
.more { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.footer { padding: 26px; text-align: center; font-size: 12px; letter-spacing: .12em; color: var(--muted); }

/* ---------- article ---------- */
.article { width: min(760px, calc(100vw - 28px)); margin: 110px auto 60px; padding: 34px 40px 40px; animation: glassIn .7s var(--ease) both; background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.03) 45%), var(--glass-deep); }
.article h1 { margin: 12px 0 8px; font-weight: 300; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
.article .lead { font-size: 17px; color: rgba(241,251,251,.85); margin: 0 0 22px; }
.prose { font-size: 16px; line-height: 1.7; color: rgba(241,251,251,.88); font-weight: 300; }
.prose h2, .prose h3, .prose h4 { color: var(--mint); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin: 28px 0 10px; }
.prose p { color: inherit; margin: 0 0 14px; } .prose ul { margin: 0 0 14px; padding-left: 22px; } .prose li { margin: 5px 0; }
.prose li::marker { color: var(--mint); } .prose strong { font-weight: 500; color: #fff; } .prose a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.prose code { background: rgba(255,255,255,.12); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.back { display: inline-flex; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); } .back:hover { color: var(--mint); }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 100px 16px 40px; }
.auth-card { width: min(430px, 100%); padding: 30px; animation: glassIn .7s var(--ease) both; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 15px; background: rgba(255,255,255,.08); border: 1px solid var(--stroke-soft); margin: 20px 0 18px; position: relative; }
.seg button { font: inherit; font-size: 14px; letter-spacing: .06em; padding: 9px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; position: relative; z-index: 1; transition: color .25s; }
.seg button.on { color: #063842; font-weight: 500; }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); border-radius: 11px; background: linear-gradient(135deg, #c9fff3, var(--mint) 50%, var(--aqua)); box-shadow: 0 4px 16px rgba(98,214,234,.4); transition: transform .35s var(--ease); }
.seg.reg .thumb { transform: translateX(calc(100% + 4px)); }
.auth-card form { display: flex; flex-direction: column; }
.err { min-height: 20px; font-size: 13px; color: var(--coral); margin: 2px 0 6px; }
.err.shake { animation: shake .4s; }
.guest { display: block; text-align: center; margin-top: 14px; font-size: 13px; letter-spacing: .06em; color: var(--muted); } .guest:hover { color: var(--mint); }
.hint { font-size: 12px; color: var(--muted); margin: -6px 0 12px; letter-spacing: .02em; }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); } .collapse > div { overflow: hidden; } .reg-mode .collapse { grid-template-rows: 1fr; }

/* ---------- studio (admin) ---------- */
.studio { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; width: min(1240px, calc(100vw - 28px)); margin: 96px auto 30px; align-items: start; }
.studio .pane { padding: 18px; }
.studio h2 { margin: 0 0 12px; font-weight: 400; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--mint); display: flex; justify-content: space-between; align-items: center; }
.post-list { display: flex; flex-direction: column; gap: 4px; max-height: 70vh; overflow: auto; }
.post-list button { text-align: left; font: inherit; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 13px; padding: 10px 12px; cursor: pointer; transition: background .18s, border-color .18s; }
.post-list button:hover { background: rgba(255,255,255,.08); } .post-list button.on { background: rgba(143,240,220,.14); border-color: rgba(143,240,220,.45); }
.post-list b { display: block; font-weight: 500; font-size: 14px; margin-top: 5px; }
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.editor .fields { display: flex; flex-direction: column; gap: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
select, textarea { font: inherit; font-size: 15px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--stroke-soft); background: rgba(255,255,255,.08); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
select option { background: #0d3a48; }
textarea { min-height: 300px; resize: vertical; line-height: 1.55; font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 13.5px; }
select:focus, textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(143,240,220,.16); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.actions .status { margin-left: auto; font-size: 13px; color: var(--muted); }
.btn.danger { color: var(--coral); background: rgba(255,154,138,.10); border-color: rgba(255,154,138,.4); box-shadow: none; }
.preview { border-radius: 16px; border: 1px solid var(--stroke-soft); background: rgba(255,255,255,.05); padding: 20px 24px; max-height: 76vh; overflow: auto; }
.preview h1 { font-weight: 300; font-size: 26px; margin: 10px 0 6px; }
.gate { width: min(460px, calc(100vw - 28px)); margin: 22vh auto; padding: 30px; text-align: center; }

@keyframes navIn { from { opacity: 0; transform: translate(-50%, -16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.22, 1.6); opacity: 0; } }
@keyframes sweep { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; } .hero h1 { letter-spacing: .16em; }
  .studio, .editor { grid-template-columns: 1fr; } .links { display: none; } .article { padding: 24px 22px; }
}

/* ---------- painted seascape backdrop (no WebGL outside the game) ---------- */
.seabg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: linear-gradient(180deg, #4fb2f5 0%, #9ad9ff 42%, #d8f3ff 58%, #35c3d8 58.2%, #1b93bd 76%, #0d5f86 100%); }
.seabg .sun { position: absolute; left: 68%; top: 12%; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, #fff 0 34%, rgba(255,246,200,.55) 36%, rgba(255,246,200,0) 70%); filter: blur(1px); }
.seabg .cloud { position: absolute; height: 46px; border-radius: 46px; background: rgba(255,255,255,.85); filter: blur(7px); animation: drift linear infinite; }
.seabg .c1 { top: 14%; width: 240px; animation-duration: 90s; } .seabg .c2 { top: 26%; width: 170px; animation-duration: 130s; animation-delay: -60s; opacity: .7; } .seabg .c3 { top: 8%; width: 320px; animation-duration: 170s; animation-delay: -110s; opacity: .6; }
.seabg .isle { position: absolute; left: 50%; bottom: 41%; width: min(620px, 70vw); transform: translateX(-12%); }
.seabg .wave { position: absolute; left: -50%; width: 200%; height: 70px; animation: swell ease-in-out infinite alternate; }
.seabg .w1 { top: 55.5%; fill: rgba(255,255,255,.55); animation-duration: 7s; } .seabg .w2 { top: 62%; fill: rgba(120,225,235,.5); animation-duration: 9s; animation-delay: -3s; } .seabg .w3 { top: 71%; fill: rgba(40,150,190,.5); animation-duration: 11s; animation-delay: -5s; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(120vw); } }
@keyframes swell { from { transform: translateX(-4%) translateY(0); } to { transform: translateX(4%) translateY(6px); } }
#app.entering { animation: swapIn .32s var(--ease); }

/* the title sits in a glass pill; the copy keeps a soft text shadow instead of a dark backdrop */
.hero-copy { position: relative; }
.title-pill { display: inline-flex; align-items: center; padding: .28em 1.15em .3em .82em; border-radius: 999px; position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.04) 45%, rgba(143,240,220,.07)), var(--glass);   /* the same glass as the panels */
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--stroke);
  box-shadow: 0 14px 44px rgba(0, 28, 40, .30), inset 0 1px 0 rgba(255,255,255,.42), inset 0 -1px 0 rgba(255,255,255,.06);
  animation: glassIn 1s var(--ease) both; }
.title-pill::after { content: ''; position: absolute; inset: 3px 12% auto 12%; height: 38%; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0)); }
.title-pill h1 { margin-right: 0; }   /* keep the trailing letter-space: it balances the shard on the left */


/* ---------- the story on the home page ---------- */
.title-pill { gap: .35em; }
.hero-shard { width: .62em; height: .78em; flex: none; background: url('/shard.svg') center / contain no-repeat; filter: drop-shadow(0 0 10px rgba(143,240,220,.8)); animation: shardPulse 3.2s ease-in-out infinite; font-size: clamp(40px, 6vw, 88px); }
.lore { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 36px; align-items: center;
  margin: 0 max(28px, calc((100vw - 1120px) / 2)) 30px; padding: 34px 38px; border-radius: 30px;
  background: linear-gradient(160deg, rgba(10,50,64,.62), rgba(4,24,34,.72)); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(143,240,220,.25);
  box-shadow: 0 24px 60px rgba(0,20,30,.35); }
.lore-kicker { margin: 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #8ff0dc; }
.lore h2 { margin: 6px 0 14px; font-weight: 300; font-size: clamp(26px, 3vw, 38px); letter-spacing: .04em; }
.lore-text p { font-size: 15.5px; line-height: 1.75; color: rgba(241,251,251,.9); font-weight: 300; margin: 0 0 12px; }
.lore-text i { color: #c9fff1; }
.lore-end { color: #8ff0dc !important; font-style: italic; }
.lore-shards { display: flex; flex-direction: column; gap: 8px; }
.lore-shard { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: center; padding: 9px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  opacity: .55; animation: glassIn .6s var(--ease) both; animation-delay: calc(var(--i) * 80ms); }
.lore-shard .gem { grid-row: span 2; filter: grayscale(.8) brightness(.6); animation: none; }
.lore-shard b { font-weight: 500; font-size: 14px; } .lore-shard small { font-size: 11.5px; color: var(--muted); }
.lore-shard.lit { opacity: 1; border-color: rgba(143,240,220,.45); background: rgba(143,240,220,.1); }
.lore-shard.lit .gem { filter: drop-shadow(0 0 8px rgba(143,240,220,.9)); animation: shardPulse 3.2s ease-in-out infinite; }
@media (max-width: 860px) { .lore { grid-template-columns: 1fr; padding: 26px 22px; } }
/* shown inside the game's studio overlay: no site nav, so content starts near the top */
body.embedded .nav { display: none !important; }
body.embedded main, body.embedded .studio, body.embedded .bugs, body.embedded .lib, body.embedded #main { padding-top: 22px !important; margin-top: 0 !important; }
body.embedded .lib { height: calc(100vh - 10px) !important; }
/* framed in the game: the page layouts that reserved room for the nav start at the top too */
body.embedded .cd, body.embedded .sd { margin-top: 14px !important; }
body.embedded main { padding-top: 14px !important; }
body.embedded .side, body.embedded .top { top: 14px !important; }
/* the creation wallpaper (shardbg.js) replaces the old cove: a deep, dark sea behind everything */
.seabg { background: radial-gradient(ellipse at 50% 50%, #0a3a44 0%, #061c2a 45%, #030a14 100%) !important; }
.seabg.shard-static { background: radial-gradient(circle at 50% 50%, #bffff0 0 3%, #4fd9c1 4%, #0a3a44 18%, #061c2a 50%, #030a14 100%) !important; }

/* ---------- home: live strip and illustrated features ---------- */
.live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 max(28px, calc((100vw - 1120px) / 2)); margin: -20px 0 50px; position: relative; z-index: 1; }
.live-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; }
.live-item b { font-weight: 500; font-size: 18px; display: block; } .live-item small { color: var(--muted); font-size: 12.5px; }
.live-item > b + small { margin-left: -6px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #5fe0a0; box-shadow: 0 0 0 0 rgba(95,224,160,.6); animation: livePulse 1.8s ease-out infinite; flex: none; }
@keyframes livePulse { to { box-shadow: 0 0 0 12px rgba(95,224,160,0); } }
.live-ic { font-size: 26px; } .live-item.light .gem { width: 20px; height: 26px; flex: none; }
.live-item .lbar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 6px; } .live-item .lbar i { display: block; height: 100%; background: linear-gradient(90deg, #4fd9c1, #bffff0); border-radius: 3px; }
.features { position: relative; z-index: 1; padding: 20px max(28px, calc((100vw - 1120px) / 2)) 60px; }
.sec-title { font-weight: 300; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: .04em; margin: 4px 0 22px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.fcard { border-radius: 22px; overflow: hidden; padding: 0 0 16px; transition: transform .25s var(--ease), box-shadow .25s; }
.fcard:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(0,20,30,.45); }
.fart { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.12); }
.fart svg { width: 100%; height: 100%; display: block; }
.fcard h3 { margin: 14px 18px 6px; font-weight: 500; font-size: 17px; } .fcard p { margin: 0 18px; font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 760px) { .live { grid-template-columns: 1fr; } }
/* the Sacred Sea Glass at the heart of the wallpaper: the logo, sharp, breathing light */
.seabg .shard-hero { position: absolute; left: 50%; top: 50%; width: min(16vh, 150px); height: auto; transform: translate(-50%, -50%); pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(127,232,208,.75)) drop-shadow(0 0 46px rgba(47,179,154,.45)); animation: shardBreath 3.2s ease-in-out infinite; }
@keyframes shardBreath { 50% { filter: drop-shadow(0 0 26px rgba(191,255,240,.95)) drop-shadow(0 0 70px rgba(47,179,154,.6)); } }

/* ---------- hero: the title never reaches the Latest panel ---------- */
.hero { grid-template-rows: auto 1fr; row-gap: 26px; column-gap: clamp(28px, 4vw, 56px); }
.hero-copy { min-width: 0; }
.hero h1, .hero-shard { font-size: clamp(34px, 4.7vw, 74px); }
.hero h1 { letter-spacing: .17em; }
.title-pill { max-width: 100%; }
.hero h1 { background-size: 220% 100%; animation: glassIn 1s var(--ease) both, titleSheen 9s 1.2s ease-in-out infinite; }
@keyframes titleSheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.hero .stats .stat { animation: glassIn .9s var(--ease) both; } .hero .stats .stat:nth-child(2) { animation-delay: .5s; } .hero .stats .stat:nth-child(3) { animation-delay: .6s; } .hero .stats .stat:nth-child(4) { animation-delay: .7s; } .hero .stats .stat:nth-child(1) { animation-delay: .4s; }
.latest .row-item { animation: glassIn .8s var(--ease) both; } .latest .row-item:nth-child(1) { animation-delay: .45s; } .latest .row-item:nth-child(2) { animation-delay: .6s; } .latest .row-item:nth-child(3) { animation-delay: .75s; }

/* ---------- announcement carousel ---------- */
.announce { grid-column: 1 / -1; position: relative; height: 104px; border-radius: 26px; overflow: hidden; align-self: end; animation: annIn 1.1s var(--ease) both; }
@keyframes annIn { from { opacity: 0; transform: translateY(-18px) scale(.97); filter: blur(8px); } }
.announce::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.13) 48%, transparent 66%); background-size: 300% 100%; animation: annShine 7s linear infinite; pointer-events: none; }
@keyframes annShine { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.an-track { position: absolute; inset: 0; }
.an-slide { position: absolute; inset: 0; display: flex; align-items: center; gap: 20px; padding: 0 26px; color: var(--text); text-decoration: none; opacity: 0; pointer-events: none; transform: translateX(60px); filter: blur(6px);
  transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease);
  background: radial-gradient(120% 160% at 0% 50%, color-mix(in srgb, var(--c) 26%, transparent), transparent 60%); }
.an-slide.back { transform: translateX(-60px); }
.an-slide.in { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.an-slide.out { opacity: 0; transform: translateX(-60px); }
.an-slide.out.back { transform: translateX(60px); }
.an-gem { width: 46px; height: 58px; flex: none; background: url('/shard.svg') center / contain no-repeat; filter: drop-shadow(0 0 12px var(--c)); }
.an-slide.in .an-gem { animation: gemSpin 1.1s var(--ease) both, shardPulse 3.2s 1.1s ease-in-out infinite; }
@keyframes gemSpin { from { transform: rotate(-70deg) scale(.4); opacity: 0; } }
.an-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.an-text small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--c); }
.an-text b { font-weight: 500; font-size: clamp(15px, 1.6vw, 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-text em { font-style: normal; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-slide.in .an-text > * { animation: glassIn .8s var(--ease) both; } .an-slide.in .an-text b { animation-delay: .08s; } .an-slide.in .an-text em { animation-delay: .16s; }
.an-go { margin-left: auto; flex: none; font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--stroke-soft); background: rgba(255,255,255,.08); transition: background .2s, transform .2s var(--ease); }
.an-slide:hover .an-go { background: var(--c); color: #063842; transform: translateX(3px); }
.an-ctl { position: absolute; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 6px; z-index: 2; }
.an-slide { padding-right: 260px; }
.an-arrow { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--stroke-soft); background: rgba(255,255,255,.08); color: var(--text); cursor: pointer; font-size: 17px; line-height: 1; }
.an-arrow:hover { background: rgba(255,255,255,.2); }
.an-dots { display: flex; gap: 5px; }
.an-dots button { width: 7px; height: 7px; padding: 0; border-radius: 99px; border: 0; background: rgba(255,255,255,.3); cursor: pointer; transition: width .35s var(--ease), background .3s; }
.an-dots button.on { width: 22px; background: var(--mint); }
.an-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.06); }
.an-bar i { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, var(--mint), #fff); animation: anProg 7s linear both; }
.announce.paused .an-bar i { animation-play-state: paused; }
@keyframes anProg { from { transform: scaleX(0); } }
@media (max-width: 760px) { .announce { height: 128px; } .an-slide { padding: 0 18px 30px; } .an-go { display: none; } .an-ctl { right: 50%; transform: translateX(50%); } }

/* ---------- sections drift into view ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.shown { opacity: 1; transform: none; }
.fgrid .fcard.reveal:nth-child(4n+2) { transition-delay: .08s; } .fgrid .fcard.reveal:nth-child(4n+3) { transition-delay: .16s; } .fgrid .fcard.reveal:nth-child(4n) { transition-delay: .24s; }
.lore-shard.reveal { transition-delay: calc(var(--i) * .07s); transform: translateX(30px); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .an-slide { transition: none; } }

/* ---------- "just added": new items above the title ---------- */
.newitems { position: relative; display: flex; align-items: center; gap: 12px; height: 112px; max-width: 520px; margin: 0 0 18px; padding: 0 16px 0 0; border-radius: 22px; overflow: hidden; animation: annIn 1s .15s var(--ease) both; }
.ni-tag { position: absolute; top: 9px; right: 14px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #063842; background: var(--mint); padding: 3px 9px; border-radius: 99px; z-index: 2; box-shadow: 0 0 14px rgba(143,240,220,.6); animation: tagPulse 2.4s ease-in-out infinite; }
@keyframes tagPulse { 50% { box-shadow: 0 0 24px rgba(143,240,220,.95); } }
.ni-track { position: relative; flex: 1; height: 100%; }
.ni-slide { position: absolute; inset: 0; display: flex; align-items: center; gap: 14px; opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .7s var(--ease); pointer-events: none; }
.ni-slide.in { opacity: 1; transform: none; pointer-events: auto; }
.ni-slide.out { opacity: 0; transform: translateY(-26px); }
.ni-pic { position: relative; width: 112px; height: 112px; flex: none; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, rgba(143,240,220,.35), transparent 68%); }
.ni-ring { position: absolute; inset: 14px; border-radius: 50%; border: 1px dashed rgba(143,240,220,.45); animation: ringSpin 14s linear infinite; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.ni-pic img { position: relative; width: 108px; height: 108px; object-fit: contain; opacity: 0; transform: scale(.7) rotate(-8deg); filter: drop-shadow(0 6px 10px rgba(0,25,40,.5)); }
.ni-pic img.ready { transition: opacity .5s, transform .8s var(--ease); }
.ni-slide.in .ni-pic img.ready { opacity: 1; transform: none; animation: itemBob 3.4s .8s ease-in-out infinite; }
@keyframes itemBob { 50% { transform: translateY(-4px) rotate(2deg); } }
.ni-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-right: 70px; }
.ni-text b { font-weight: 500; font-size: 17px; color: #fff; }
.ni-text span { font-size: 13px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ni-text small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.ni-slide.in .ni-text > * { animation: glassIn .7s var(--ease) both; } .ni-slide.in .ni-text span { animation-delay: .08s; } .ni-slide.in .ni-text small { animation-delay: .16s; }
.ni-dots { position: absolute; right: 14px; bottom: 10px; display: flex; gap: 4px; z-index: 2; }
.ni-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.3); cursor: pointer; transition: width .35s var(--ease), background .3s; }
.ni-dots button.on { width: 18px; background: var(--mint); }
@media (max-width: 560px) { .ni-text { padding-right: 8px; } .ni-tag { display: none; } }

.announce-wrap { padding: 92px max(28px, calc((100vw - 1120px) / 2)) 0; position: relative; z-index: 2; }
.announce-wrap + .hero { padding-top: 34px; min-height: calc(100vh - 196px); grid-template-rows: none; }

/* ---------- nav drop-downs (Studio, Libraries, account) ---------- */
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 11px; font: inherit; font-size: 13.5px; letter-spacing: .06em; color: var(--muted); background: none; border: 0; cursor: pointer; white-space: nowrap; transition: color .18s, background .18s; }
.nav-dd-btn svg { opacity: .7; transition: transform .2s; }
.nav-dd:hover > .nav-dd-btn, .nav-dd.open > .nav-dd-btn, .nav-dd.on > .nav-dd-btn { color: var(--text); background: rgba(255,255,255,.10); }
.nav-dd.open > .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 190px; padding: 6px; border-radius: 14px; display: flex; flex-direction: column; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 40; }
.nav-dd-menu.right { left: auto; right: 0; }
.nav-dd-menu { background: rgba(7, 38, 46, .94) !important; backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border: 1px solid rgba(143,240,220,.22); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.nav-dd.open > .nav-dd-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .nav-dd:hover > .nav-dd-menu { opacity: 1; visibility: visible; transform: none; } .nav-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } }
.nav-dd-menu a, .nav-dd-menu button { display: block; text-align: left; padding: 9px 12px; border-radius: 10px; font: inherit; font-size: 13.5px; color: var(--muted); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav-dd-menu a:hover, .nav-dd-menu button:hover, .nav-dd-menu a.on { color: var(--text); background: rgba(255,255,255,.10); }
.links a { white-space: nowrap; }
.who-btn { gap: 8px; }
.who-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(140deg, #8ff0dc, #4fb8c8); color: #063842; font-size: 12px; font-weight: 700; letter-spacing: 0; }
