/* A full-bleed, quiet sky. Two star groups drift slowly above the static atmosphere. */
:root {
  color-scheme: dark;
  --bg: #080d17;
  --ink: #efece4;
  --muted: #aaa99f;
  --gold: #dfc894;
  --mint: var(--gold);
  --line: #d5bd8326;
  --search-edge: linear-gradient(125deg,#c6ac7180,#67747b48 55%,#b5a17966);
  --search-edge-active: linear-gradient(125deg,#efdbace6,#b3a1748c 55%,#d8c89ac9);
  --panel-edge: linear-gradient(135deg,#d7bc8170,#6f6f5840 24%,#51616b50 60%,#baa37480);
  /* Square engraved frames: short gold corner strokes fade into a dark edge. */
  --panel-rim:
    linear-gradient(90deg,#efd8a6dd,transparent) top left / 46px 2px no-repeat border-box,
    linear-gradient(180deg,#efd8a6dd,transparent) top left / 2px 46px no-repeat border-box,
    linear-gradient(270deg,#d4bb8580,transparent) top right / 32px 2px no-repeat border-box,
    linear-gradient(180deg,#d4bb8580,transparent) top right / 2px 32px no-repeat border-box,
    linear-gradient(90deg,#b7ad8c66,transparent) bottom left / 32px 2px no-repeat border-box,
    linear-gradient(0deg,#b7ad8c66,transparent) bottom left / 2px 32px no-repeat border-box,
    linear-gradient(270deg,#dec58eb3,transparent) bottom right / 46px 2px no-repeat border-box,
    linear-gradient(0deg,#dec58eb3,transparent) bottom right / 2px 46px no-repeat border-box;
  --panel-fill: radial-gradient(ellipse at 3% 0,#c3a46614,transparent 48%),radial-gradient(ellipse at 100% 12%,#6e91ad12,transparent 55%),linear-gradient(145deg,#151e27fc,#0a121dfd 63%,#101b28fc);
  --panel-shadow: 0 28px 90px #02050bc9,0 0 30px #c5a46a0c,inset 0 1px 5px #02081555;
  --font: "Segoe UI","Microsoft YaHei","PingFang SC",system-ui,sans-serif;
  --mono: Consolas,"SFMono-Regular",monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 14px var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
a,button,input { -webkit-tap-highlight-color: transparent; outline-offset: 5px; }
a:focus-visible,button:focus-visible,input:focus-visible { outline: 2px solid var(--mint); }
button,a { touch-action: manipulation; }
svg { display: block; }
[hidden] { display: none !important; }
::selection { background: #d9c18c; color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 20px; background: var(--mint); color: var(--bg); z-index: 100; }
.skip-link:focus { top: 12px; }
.space-haze { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 24% 62%,#2145502d,transparent 56%),radial-gradient(ellipse at 79% 23%,#343a5825,transparent 50%),radial-gradient(ellipse at 58% 106%,#19344c48,transparent 60%),linear-gradient(180deg,#080c16,#0a1423 64%,#0a101b); }
.space-haze:after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 48%,transparent 35%,#05091050 100%); }
.constellations { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.star-lines { stroke: #b6cfe8; stroke-width: .65; fill: none; opacity: .21; }
.star-points { fill: #cfdfed; opacity: .48; }
.star-glints { fill: #d8e9f7; opacity: .075; }
.sky-far .star-lines { stroke: #a9c4e2; opacity: .15; }
.sky-far .star-points { fill: #b6cce2; opacity: .37; }
/* Two SVG layers composite their transforms; lines move with their endpoints.
   Keeping transforms outside the SVG groups avoids per-frame SVG geometry layout. */
.sky-cluster { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform,opacity; }
.sky-near { animation: sky-near-drift 40s ease-in-out -12s infinite alternate,sky-breathe 13s ease-in-out -4s infinite alternate; }
.sky-far { animation: sky-far-drift 54s ease-in-out -29s infinite alternate,sky-breathe 17s ease-in-out -11s infinite alternate; }
@keyframes sky-near-drift { from { transform: translate(-6px,4px); } to { transform: translate(8px,-5px); } }
@keyframes sky-far-drift { from { transform: translate(5px,-4px); } to { transform: translate(-7px,6px); } }
@keyframes sky-breathe { from { opacity: .72; } to { opacity: 1; } }
.scene-still .sky-cluster,body.is-dragging .sky-cluster { animation-play-state: paused; }
.app-shell { position: relative; height: 100vh; height: 100dvh; min-height: 240px; }
.site-header { position: absolute; z-index: 20; top: max(28px,env(safe-area-inset-top)); left: max(38px,env(safe-area-inset-left)); right: max(38px,env(safe-area-inset-right)); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-group { display: flex; align-items: center; gap: 26px; min-width: 0; }
/* A pale gilded crest catches the same light as the tree and medallions. */
.brand { position: relative; font-family: "Palatino Linotype","Book Antiqua",Georgia,serif; font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: .13em; display: inline-flex; align-items: flex-start; gap: 4px; flex-shrink: 0; color: #e6d9b9; filter: drop-shadow(0 1px 1px #020712) drop-shadow(0 0 9px #d9bc771a); }
.brand:after { content: ""; position: absolute; left: 1px; right: 13px; bottom: -5px; height: 1px; background: linear-gradient(90deg,transparent,#ceb57c69 30%,#a6b4b348 70%,transparent); pointer-events: none; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand { background: linear-gradient(180deg,#fff3d5 4%,#dfc794 37%,#9d8963 49%,#f0e3c4 55%,#bac0b4 78%,#efe3c5 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
}
.brand-dot { display: block; width: 7px; height: 7px; flex: 0 0 7px; background: linear-gradient(135deg,#fff3d5,#d3b77d 55%,#b9c5c0); margin-top: 2px; clip-path: polygon(50% 0,61% 37%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%); }
.community { min-height: 44px; padding: 0; border-radius: 4px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #c1b69c; letter-spacing: .035em; white-space: nowrap; text-shadow: 0 0 12px #ddbb7526; animation: community-glow 6s ease-in-out infinite; }
.community-number { color: #dfd2b2; font: 500 14px var(--mono); letter-spacing: .025em; user-select: text; }
.community:hover .community-number,.community[aria-expanded="true"] .community-number { color: #fff0cc; text-shadow: 0 0 14px #e9c78355; }
.brand-group .site-stats { border-left: 1px solid var(--line); padding-left: 23px; color: #788b9e; }
.brand-group .site-stats-panel { border-radius: 0; border-color: transparent; background: var(--panel-fill) padding-box,var(--panel-rim),var(--panel-edge) border-box; box-shadow: var(--panel-shadow); }
/* Unframed header control; the search dialog keeps its rectangular field. */
.search-trigger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: #afc3cf; box-shadow: none; transition: color .2s,filter .2s; }
.search-trigger:hover,.search-trigger:focus-visible { color: #fff0cc; background: none; box-shadow: none; filter: drop-shadow(0 0 6px #e9c7835c); }
.search-trigger>span,.search-trigger kbd { display: none; }
button svg,.search-field svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* Fine champagne-gold lenses echo the star etched into each medallion. */
.search-trigger { position: relative; }
.search-trigger:before { content: ""; position: absolute; inset: 7px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle,#d9bb7e1c,transparent 72%); opacity: .55; transition: opacity .18s; }
.search-trigger:hover:before,.search-trigger[aria-expanded="true"]:before { opacity: 1; }
.search-trigger .search-symbol,.search-field .search-symbol { width: 25px; height: 25px; stroke-width: 1.2; filter: drop-shadow(0 0 5px #d8ba7b24); }
.search-symbol .search-lens { fill: #ddc5920b; stroke: #d5c18f; }
.search-symbol .search-inner { stroke: #99acae; stroke-width: .8; opacity: .45; }
.search-symbol .search-reflection { stroke: #fff0c9; stroke-width: 1.25; }
.search-symbol .search-handle { fill: #d9be8328; stroke: #d5c18f; }
.search-symbol .search-spark { fill: #f2dfaf; stroke: none; }
.search-field .search-symbol { width: 22px; height: 22px; }
/* Homepage's generic button svg rule must not shrink the shared music glyph. */
.lcz-music-toggle svg { width: 25px; height: 25px; }

kbd { display: inline-block; padding: 2px 5px; border: 1px solid #d3ba822b; border-radius: 0; color: #b0a78f; font: 10px var(--mono); }
main { position: absolute; inset: calc(100px + env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left)); }
.universe { position: relative; width: 100%; height: 100%; outline: none; }
/* Keep rotated etching and soft halos inside the scene's viewport gutter,
   including when touch dragging temporarily overlaps circles at an edge. */
.worlds { position: absolute; inset: 0; overflow: clip; overflow-clip-margin: 10px; }
.world { position: absolute; top: 0; left: 0; width: var(--diameter); height: var(--diameter); z-index: 2; will-change: transform; }
.world-link { position: relative; display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; border-radius: 50%; outline-offset: 11px; isolation: isolate; }
.world-link:focus-visible { outline: 1px solid #efd9a6; }
.world-visual { position: relative; width: 100%; height: 100%; border-radius: 50%; isolation: isolate; background: #0c1620; transition: transform .2s ease-out; }
.world-link:active .world-visual { transform: scale(.975); }
/* Gilded celestial medallions: the game art sits behind a warm fine rim,
   cool shadow and quiet glass. Original images remain untouched. */
.world-visual:before,.world-visual:after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; }
.world-visual:before {
  inset: -2px; z-index: -1;
  background: conic-gradient(from 205deg,#66533380,#b69b66 45deg,#f4deaa 105deg,#baa06b 148deg,#695737 207deg,#91a9ae99 255deg,#debf82 308deg,#66533380);
  box-shadow: 0 0 0 1px #f3dcab12,0 0 19px #d6ae6321,0 10px 27px #02081080;
  opacity: .8; transition: opacity .24s,box-shadow .24s;
}
.world-visual:after {
  inset: 0; z-index: 1;
  background:
    linear-gradient(145deg,#ffe7b92b,transparent 34%,transparent 57%,#09131b63),
    radial-gradient(ellipse at 46% 36%,transparent 35%,#0a142444 78%,#08101c91 100%);
  box-shadow: inset 0 0 0 1px #e6c88b6b,inset 1px 2px 8px #fff0c726,inset -1px -5px 12px #040d1a61;
}
.world.active .world-visual:before,.world-link:hover .world-visual:before,.world-link:focus-visible .world-visual:before { opacity: 1; }
.game-icon {
  display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 0; pointer-events: none; -webkit-user-drag: none;
  filter: saturate(.72) sepia(.19) brightness(.87) contrast(1.04);
  box-shadow: 0 0 0 4px #101a2480,0 0 34px #c6a26813,0 13px 28px #02081255;
  transition: filter .28s,box-shadow .28s;
}
.world.active .game-icon,.world-link:hover .game-icon,.world-link:focus-visible .game-icon {
  filter: saturate(.88) sepia(.12) brightness(.98) contrast(1.03);
  box-shadow: 0 0 0 4px #1d242a80,0 0 30px #e3bd7830,0 0 58px rgba(var(--world-color),.07),0 13px 28px #02081255;
}
/* Etching stays within the existing 8px physics clearance and never captures
   pointers. Each medallion has a different orientation, with no idle rotation. */
.world { --orbit-angle: -8deg; }
.world[data-game="craft"] { --orbit-angle: 24deg; }
.world[data-game="westland"] { --orbit-angle: 5deg; }
.world[data-game="dawn"] { --orbit-angle: 38deg; }
.world[data-game="ldoe"] { --orbit-angle: -24deg; }
.world[data-game="grimsoul"] { --orbit-angle: 18deg; }
.world-link:before,.world-link:after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.world-link:before {
  inset: -8px; z-index: 2;
  background: url("worlds/celestial-rim.svg") center / 100% 100% no-repeat;
  opacity: .68; transform: rotate(var(--orbit-angle));
  transition: opacity .28s,transform .65s cubic-bezier(.2,.65,.3,1);
}
.world-link:after {
  inset: -22px; z-index: -1;
  background: radial-gradient(circle,#d3af6617 36%,rgba(var(--world-color),.025) 58%,transparent 72%);
  opacity: .45; transition: opacity .3s;
}
.world.active .world-link:before,.world-link:hover:before,.world-link:focus-visible:before {
  opacity: 1; transform: rotate(calc(var(--orbit-angle) + 8deg));
}
.world.active .world-link:after,.world-link:hover:after,.world-link:focus-visible:after { opacity: 1; }
.world.dragging .world-link:before { opacity: .95; }
.world.dragging .world-visual:before { opacity: 1; box-shadow: 0 0 0 1px #f3dcab26,0 0 25px #dfb56838,0 10px 27px #02081080; }
.world.dragging { z-index: 5; }
.world.dragging .world-link,body.is-dragging { cursor: grabbing; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 0; color: #b8ad92; flex-shrink: 0; }
.icon-button:hover { background: #d4ba810d; color: #f3e7ca; }
.game-popover { --preview-color: 185,216,219; position: fixed; isolation: isolate; width: min(348px,calc(100vw - 24px)); z-index: 30; padding: 20px 24px 0; border: 1px solid transparent; border-radius: 0; background: linear-gradient(#0d1724,#0d1724) padding-box,var(--panel-rim),var(--panel-edge) border-box; box-shadow: var(--panel-shadow); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; }
.popover-art { position: absolute; inset: 0 0 auto; height: 238px; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 75% 10%,rgba(var(--preview-color),.16),transparent 75%); }
.popover-art>img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: saturate(.78); }
.game-popover[data-cover-state="ready"] .popover-art>img { opacity: 1; transition: opacity .2s ease-out; }
.popover-art:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,#08121e33 0%,#08121e45 34%,#0d1724bc 69%,#0d1724 100%),linear-gradient(90deg,#08121e66,transparent 80%); }
.popover-top { padding-bottom: 10px; border-bottom: 1px solid #dbc48c30; display: flex; align-items: center; justify-content: space-between; margin: -8px -12px 17px 0; }
.eyebrow { font: 9px var(--mono); letter-spacing: .2em; color: #c2af84; display: flex; align-items: center; gap: 8px; }
.eyebrow i { width: 7px; height: 7px; background: linear-gradient(135deg,#fff0c9,#b99958); clip-path: polygon(50% 0,63% 37%,100% 50%,63% 63%,50% 100%,37% 63%,0 50%,37% 37%); }
.popover-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; min-height: 136px; margin-bottom: 21px; }
.popover-heading img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; opacity: .96; outline: 1px solid #d9bd827a; outline-offset: 3px; box-shadow: 0 0 0 7px #cbb1790a,0 0 0 8px #cbb17930,0 0 25px #c6a3681c; filter: saturate(.8) sepia(.12); }
.game-popover h2 { margin: 0; color: #f3ead7; font-weight: 500; font-size: 27px; letter-spacing: .055em; text-shadow: 0 2px 15px #0008; }
.info-english { color: #c2bca9; text-shadow: 0 1px 8px #0008; font-size: 10px; letter-spacing: .055em; margin: 8px 0 0; line-height: 1.5; }
.info-description { color: #bfbdaf; font-size: 12px; line-height: 1.95; margin: 0 0 21px; }
.info-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.info-tags>span { padding: 5px 8px; font-size: 11px; color: #c8b995; border: 1px solid #cdb47c2e; border-radius: 0; background: linear-gradient(135deg,#ceae7010,#a6b3ba04); box-shadow: inset 0 1px #f1ddb108; }
.info-links { display: flex; gap: 8px; flex-wrap: wrap; margin-inline: -12px; border-top: 1px solid #ccb17a30; padding: 18px 12px 20px; background: linear-gradient(180deg,#050d1766,transparent); box-shadow: inset 0 1px #e9d6a509; }
.info-links a { display: flex; align-items: center; justify-content: center; padding: 11px 13px; min-height: 44px; font-size: 11px; border: 1px solid #cfb8842e; border-radius: 3px; color: #c2bba6; background: #dac28e06; flex: 1; white-space: nowrap; transition: background-color .16s,border-color .16s; }
.info-links a:first-child { flex-basis: 100%; justify-content: center; color: #f2e3bf; border-color: #d5b87970; background: linear-gradient(180deg,#f1dca818,transparent 48%,#04102033),linear-gradient(115deg,#c8a35d26,#a9b6b50a); box-shadow: inset 2px 0 #e4c78899,inset 0 1px #f2dfb12b,inset 0 -1px #06101e80,0 5px 18px #02081350; letter-spacing: .08em; }
.info-links a:hover { background-color: #d5b97c19; border-color: #e2c68899; color: #fff1d3; }
dialog { color: var(--ink); background: linear-gradient(135deg,#142231fc,#0c1521fc); border: 1px solid #b7d5e332; border-radius: 0; padding: 30px; width: min(590px,calc(100vw - 28px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); box-shadow: 0 30px 120px #000a; overscroll-behavior: contain; }
.search-dialog { isolation: isolate; border-color: transparent; background: var(--panel-fill) padding-box,var(--panel-rim),var(--panel-edge) border-box; box-shadow: var(--panel-shadow); }
.community-dialog { isolation: isolate; width: min(326px,calc(100vw - 28px)); padding: 20px; border-color: transparent; background: var(--panel-fill) padding-box,var(--panel-rim),var(--panel-edge) border-box; box-shadow: var(--panel-shadow); }
.community-dialog[open] { animation: community-reveal .2s cubic-bezier(.2,.7,.2,1); }
.community-dialog::backdrop { background: #030813a6; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.community-dialog .dialog-header { margin-bottom: 16px; }
.community-dialog .dialog-header h2 { font-size: 18px; letter-spacing: .06em; }
/* Present the central QR card; the saved file remains the complete original poster. */
.community-image { position: relative; aspect-ratio: 5 / 6; overflow: hidden; border-radius: 5px; background: #fff; outline: 1px solid #d8be803d; outline-offset: 3px; }
.community-image>img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .18s; }
.community-dialog[data-qr-state="ready"] .community-image>img { opacity: 1; }
.community-image-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; color: #677580; font-size: 12px; }
.community-dialog[data-qr-state="ready"] .community-image-state { display: none; }
.community-image-state p { margin: 0; }
.community-image-state button { min-height: 44px; padding: 8px 16px; margin-top: 8px; border: 1px solid #a69a7d; border-radius: 0; color: #5e5034; }
.community-download { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 14px; border: 1px solid #d5b87970; border-radius: 4px; background: linear-gradient(180deg,#f1dca818,transparent 50%,#050c182b),linear-gradient(120deg,#c8a35d26,#a9b6b50a); box-shadow: inset 2px 0 #e4c78899,inset 0 1px #f2dfb12b,0 5px 16px #02081350; color: #f2e3bf; font-size: 12px; letter-spacing: .06em; }
.community-download:hover,.community-download:focus-visible { color: #fff1d3; background: #d5b97c19; border-color: #e2c68899; }
@keyframes community-reveal { from { opacity: 0; transform: translateY(7px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
dialog::backdrop { background: #030813ad; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.dialog-header { min-height: 54px; position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 22px; }
.dialog-header h2 { display: flex; align-items: center; gap: 11px; margin: 0; color: #f3ead7; text-shadow: 0 1px 12px #dec58c14; font-size: 23px; font-weight: 500; letter-spacing: .045em; }
.dialog-close { margin: -8px -10px -8px 0; }
.search-field { display: flex; align-items: center; gap: 13px; padding: 0 15px; min-height: 55px; background: linear-gradient(110deg,#0d1720,#09121d) padding-box,var(--search-edge) border-box; border: 1px solid transparent; border-radius: 0; color: #c9b78f; box-shadow: inset 0 2px 10px #02060a30; transition: box-shadow .2s,color .2s; }
.search-field:focus-within { color: #f1dcab; background: linear-gradient(110deg,#151e25,#0d1723) padding-box,var(--search-edge-active) border-box; box-shadow: 0 0 0 3px #d6b97c09,0 0 22px #d6b97c14,inset 0 1px #f3dba810; }
.search-field input { width: 100%; min-width: 0; height: 53px; font-size: 14px; color: var(--ink); background: none; border: 0; outline: none; }
.search-field input::placeholder { color: #a3a295; }
.search-field svg { flex-shrink: 0; }
.search-field kbd { font-size: 9px; }
.search-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.search-results:empty { display: none; }
.search-result { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 14px; align-items: center; min-height: 94px; padding: 18px 14px; border: 1px solid #bba57333; border-radius: 0; background: radial-gradient(ellipse at 0 50%,rgba(var(--result-color,160,199,218),.06),transparent 65%),linear-gradient(135deg,#24302f66,#111a28b3); box-shadow: inset 0 1px #f0dcab0f,inset 0 -1px #040b1899,0 4px 12px #03081526; transition: background-color .18s,border-color .18s,box-shadow .18s; outline-offset: 2px; }
.search-result:hover,.search-result:focus-visible { border-color: #d9bc7c80; background-color: #ccb07812; box-shadow: inset 0 1px #f5e2b71c,0 4px 18px #02061125; }
.search-result>img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 12px #0005,0 0 0 1px #d8bd8299,0 0 0 4px #111c27,0 0 0 5px #c9ab6940; filter: saturate(.8) sepia(.12); }
.result-copy { min-width: 0; }
.result-title { display: block; color: #e8e1d0; font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: .025em; }
.search-result:hover .result-title,.search-result:focus-visible .result-title { color: #fff0cf; }
.result-english { display: block; color: #859cab; font-size: 10px; line-height: 1.6; margin-top: 5px; letter-spacing: .025em; overflow-wrap: anywhere; }
.empty-state { margin: 20px 0 0; padding: 32px 0; text-align: center; color: #b4ad99; font-size: 13px; }
/* Etched orbital geometry sits inside the continuous metal frame. */
.window-tracery { position: absolute; top: 0; right: 0; width: 240px; height: 220px; pointer-events: none; z-index: 0; overflow: hidden; fill: none; stroke: #d9bd82; stroke-width: .65; opacity: .14; }
.window-tracery .orbit-ticks { stroke-width: 4; stroke-dasharray: .7 10.4; }
.window-tracery .orbit-stars { fill: #f4dfa8; stroke: none; }
.game-popover .window-tracery { width: 185px; height: 170px; opacity: .18; }
:is(.search-dialog,.community-dialog,.game-popover)>:is(.dialog-header,.search-field,.search-results,.empty-state,.community-image,.community-download,.popover-top,.popover-heading,.info-description,.info-tags,.info-links) { position: relative; z-index: 1; }
.dialog-header:after { content: ""; position: absolute; bottom: -9px; left: 0; right: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg,#d4b77666,#aaa99220 64%,transparent); }
.window-heading { display: flex; align-items: center; gap: 14px; min-width: 0; }
.window-kicker { margin: 0 0 5px; color: #bca77a; font: 9px var(--mono); letter-spacing: .2em; }
.window-seal { flex: 0 0 48px; width: 48px; height: 48px; overflow: visible; fill: none; stroke: #cfb578; stroke-width: .75; filter: drop-shadow(0 0 9px #d3af642e); }
.window-seal .seal-plate { fill: #c7a6680c; stroke: #cbb17a5c; }
.window-seal .seal-orbit { stroke: #a4b8b9; opacity: .6; }
.window-seal .seal-star { fill: #d9b87326; stroke: #f0dca9; }
.window-seal .seal-core { fill: #fff0ca; stroke: none; }
.window-seal .seal-ticks { stroke: #e3c995; }
/* A translucent glass key, with a centered glyph and a full 44px hit area. */
.window-close { position: relative; isolation: isolate; padding: 0; border-radius: 0; color: #d4c39f; transition: color .18s; }
.window-close:before { content: ""; position: absolute; inset: 6px; z-index: -1; pointer-events: none; border: 1px solid #cdb37a40; border-radius: 0; background: radial-gradient(ellipse at 20% 0,#ead3a012,transparent 70%),linear-gradient(145deg,#cbb17a0d,#14213720); box-shadow: inset 0 1px 2px #f3deab0a,0 2px 6px #02081526; transition: border-color .18s,background-color .18s,box-shadow .18s,transform .14s; }
.window-close .close-symbol { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; filter: drop-shadow(0 1px 0 #02091488); transition: transform .14s; }
.window-close:hover,.window-close:focus-visible { background: none; color: #fff0cc; }
.window-close:hover:before,.window-close:focus-visible:before { border-color: #e7cb8e8c; background-color: #d0b17a12; box-shadow: inset 0 1px 2px #f1dba514,0 0 10px #dab9761c,0 2px 6px #02081526; }
.window-close:active:before { transform: scale(.96); }
.window-close:active .close-symbol { transform: scale(.92); }
.search-result:before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 2px; pointer-events: none; background: linear-gradient(transparent,#d4b676a6,transparent); opacity: .75; transition: opacity .18s; }
.search-result:hover:before,.search-result:focus-visible:before { opacity: 1; }
.search-result:after { content: ""; position: absolute; right: 10px; top: 10px; width: 4px; height: 4px; transform: rotate(45deg); background: #d5b87980; pointer-events: none; }
.site-header .lcz-music-hint { border-color: transparent; background: var(--panel-fill) padding-box,var(--panel-rim),var(--panel-edge) border-box; box-shadow: var(--panel-shadow); }
/* Rectilinear frames contrast with the circular medallions and orbital etching. */
:is(.game-popover,.search-dialog,.community-dialog,.brand-group .site-stats-panel,.site-header .lcz-music-hint) { border-width: 2px; border-radius: 0; }
:is(.search-dialog,.community-dialog,.brand-group .site-stats-panel,.site-header .lcz-music-hint) {
  background-origin: padding-box,padding-box,padding-box,border-box,border-box,border-box,border-box,border-box,border-box,border-box,border-box,border-box;
  background-clip: padding-box,padding-box,padding-box,border-box,border-box,border-box,border-box,border-box,border-box,border-box,border-box,border-box;
}
.game-popover { background-origin: padding-box,border-box,border-box,border-box,border-box,border-box,border-box,border-box,border-box,border-box; background-clip: padding-box,border-box,border-box,border-box,border-box,border-box,border-box,border-box,border-box,border-box; }
@media (max-width: 560px) {
  .search-results { grid-template-columns: minmax(0,1fr); gap: 8px; margin-top: 16px; }
  .search-result { min-height: 78px; padding: 13px 14px; }
}
.noscript-note { position: fixed; bottom: 24px; left: 24px; right: 24px; z-index: 50; padding: 20px; border: 1px solid var(--line); border-radius: 4px; background: #111e2c; display: grid; gap: 18px; }
@media (max-width: 900px) {
  .site-header { left: max(26px,env(safe-area-inset-left)); right: max(26px,env(safe-area-inset-right)); }
  .brand-group { gap: 18px; }
  .brand-group .site-stats { padding-left: 17px; }
  .search-trigger { width: 44px; }
  .community { gap: 7px; }
}
@media (max-width: 900px) {
  .site-header { top: max(20px,env(safe-area-inset-top)); left: max(22px,env(safe-area-inset-left)); right: max(22px,env(safe-area-inset-right)); gap: 12px; align-items: flex-start; }
  .brand-group { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; }
  .brand { font-size: 28px; height: 44px; align-items: center; }
  .brand-dot { align-self: flex-start; margin-top: 9px; }
  .community { font-size: 12px; gap: 4px; }
  .community-number { font-size: 12px; }
  .brand-group .site-stats { grid-column: 1 / -1; border-left: 0; padding-left: 0; margin-left: -4px; }
  .brand-group .site-stats .site-stats-summary { min-height: 44px; padding-top: 2px; padding-bottom: 2px; font-size: 10px; }
  .brand-group .site-stats .site-stats-panel { left: 0; }
  .search-trigger { width: 44px; height: 44px; justify-content: center; padding: 0; }
  .search-trigger>span,.search-trigger kbd { display: none; }
  main { inset: calc(118px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
  .game-popover.touch-preview { left: max(12px,env(safe-area-inset-left)) !important; right: max(12px,env(safe-area-inset-right)); bottom: max(12px,env(safe-area-inset-bottom)); top: auto !important; margin-inline: auto; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); }
  .popover-top { margin-bottom: 12px; }
  .popover-heading { margin-bottom: 16px; }
  .info-description { margin-bottom: 16px; }
  .info-tags { margin-bottom: 18px; }
  .info-links { padding-top: 15px; padding-bottom: 18px; }
  dialog { padding: 25px 20px; }
  .search-field { gap: 10px; padding: 0 11px; }
  .search-field input { font-size: 16px; }
  .search-field kbd { display: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { top: max(12px,env(safe-area-inset-top)); left: max(20px,env(safe-area-inset-left)); right: max(20px,env(safe-area-inset-right)); align-items: center; }
  .brand-group { display: flex; gap: 14px; }
  .brand { font-size: 23px; }
  .brand-dot { margin-top: 9px; }
  .community { font-size: 11px; }
  .brand-group .site-stats { margin-left: 0; padding-left: 16px; border-left: 1px solid var(--line); }
  .search-trigger { width: 44px; height: 44px; justify-content: center; padding: 0; }
  .search-trigger>span,.search-trigger kbd { display: none; }
  main { top: calc(68px + env(safe-area-inset-top)); bottom: max(20px,env(safe-area-inset-bottom)); }
  .game-popover.touch-preview { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); left: auto !important; right: max(12px,env(safe-area-inset-right)); bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*:before,*:after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@keyframes community-glow { 0%,100% { opacity: .82; } 50% { opacity: 1; } }
.scene-still .community { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) { .game-popover[data-cover-state="ready"] .popover-art>img { transition: none; } }

/* A search keeps its field and close action in view while only results scroll. */
.search-dialog[open] { display:flex; flex-direction:column; overflow:hidden; }
.search-dialog .dialog-header,.search-dialog .search-field { flex:none; }
.search-dialog .search-results {
  flex:0 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain;
  align-content:start; padding:3px; margin-inline:-3px;
  scrollbar-width:thin; scrollbar-color:#b59a676b transparent;
}
.search-result { border-radius:0; }
.result-english { font-size:11px; color:#aaa99b; }
.popover-heading>div { min-width:0; }
.game-popover h2 { overflow-wrap:anywhere; line-height:1.35; }
.info-english { font-size:11px; }
.info-description { font-size:13px; line-height:1.8; }
.info-links a { border-radius:0; font-size:12px; }
.community-image,.community-download { border-radius:0; }
@media (max-height:600px) {
  .community-dialog { padding:16px 20px; }
  .community-dialog .dialog-header { margin-bottom:10px; }
  .community-image {
    width:min(100%,calc((100vh - 164px) * .833333));
    width:min(100%,calc((100dvh - 164px) * .833333));
    margin-inline:auto;
  }
  .community-download { margin-top:10px; }
}

@media (max-width: 600px) {
  .window-heading { gap: 11px; }
  .window-seal { width: 38px; height: 38px; flex-basis: 38px; }
  .window-kicker { font-size: 8px; letter-spacing: .16em; }
  .dialog-header h2 { font-size: 21px; }
  .community-dialog .dialog-header h2 { font-size: 18px; }
  .window-tracery { width: 185px; height: 170px; opacity: .13; }
  :is(.search-dialog,.community-dialog) .dialog-header { min-height: 46px; }
}
@media (max-height: 600px) {
  .community-image { width: min(100%,calc((100dvh - 184px) * .833333)); }
}

/* Scale the whole window composition; retain 44px interactive targets. */
.game-popover {
  width: min(clamp(280px,calc(260px + 6vw),348px),calc(100vw - 32px));
  padding: clamp(12px,1.4vw,20px) clamp(14px,calc(10px + 1vw),24px) 0;
}
.popover-art { height: clamp(172px,calc(152px + 6vw),238px); }
.popover-heading { min-height: clamp(76px,calc(56px + 5.56vw),136px); gap: clamp(12px,1.25vw,18px); margin-bottom: clamp(12px,1.46vw,21px); }
.popover-heading img { width: clamp(40px,calc(34px + 1.25vw),52px); height: auto; aspect-ratio: 1; flex-basis: clamp(40px,calc(34px + 1.25vw),52px); }
.game-popover h2 { font-size: clamp(20px,calc(18px + .625vw),27px); }
.info-description { font-size: clamp(12px,calc(11.5px + .105vw),13px); margin-bottom: clamp(12px,1.46vw,21px); }
.info-english,.info-tags>span { font-size: clamp(10px,calc(9.6px + .1vw),11px); }
.info-tags { gap: 6px; margin-bottom: clamp(12px,1.67vw,24px); }
.info-tags>span { padding: 4px 7px; }
.info-links { padding-block: clamp(10px,1.25vw,18px) clamp(12px,1.4vw,20px); }
.info-links a { padding: 8px 10px; font-size: clamp(11px,calc(10.6px + .1vw),12px); }
.search-dialog {
  --field-height: clamp(44px,calc(40px + 1.05vw),55px);
  width: min(clamp(288px,calc(250px + 27vw),590px),calc(100vw - 32px));
  padding: clamp(14px,2.1vw,30px);
}
.search-dialog .dialog-header { min-height: clamp(44px,3.75vw,54px); margin-bottom: clamp(16px,1.53vw,22px); }
.search-dialog h2 { font-size: clamp(18px,calc(16px + .5vw),23px); }
.search-dialog .window-heading { gap: clamp(8px,1vw,14px); }
.search-dialog .window-seal { width: clamp(32px,3.33vw,48px); height: auto; flex-basis: clamp(32px,3.33vw,48px); }
.search-field { min-height: var(--field-height); gap: clamp(8px,.91vw,13px); padding-inline: clamp(10px,1.05vw,15px); }
.search-field input { height: calc(var(--field-height) - 2px); }
.search-result { grid-template-columns: clamp(36px,3.33vw,48px) minmax(0,1fr); gap: clamp(12px,1vw,14px); min-height: clamp(66px,calc(54px + 2.8vw),94px); padding: clamp(10px,1.25vw,18px) clamp(10px,1vw,14px); }
.search-result>img { width: clamp(36px,3.33vw,48px); height: auto; aspect-ratio: 1; }
.result-title { font-size: clamp(13px,calc(12px + .21vw),15px); }
.result-english { font-size: clamp(10px,calc(9.6px + .1vw),11px); margin-top: 3px; }
@media (max-height: 500px) {
  .search-dialog { padding: 12px 16px; }
  .search-dialog .dialog-header { min-height: 44px; margin-bottom: 14px; }
  .search-dialog .search-results { margin-top: 12px; }
  .game-popover .popover-heading { min-height: 56px; margin-bottom: 10px; }
  .game-popover .popover-top { margin-bottom: 8px; padding-bottom: 4px; }
  .game-popover .popover-art { height: 148px; }
}
