Spaces:
Running
Running
Download css/style.css from HelloSun/empire-web: direct link, hf CLI and curl.
- Browser
- Download file 73.2 kB
-
https://huggingface.co/spaces/HelloSun/empire-web/resolve/main/css/style.css
- Command line
-
hf download hf://spaces/HelloSun/empire-web/css/style.css
-
curl -L -o style.css https://huggingface.co/spaces/HelloSun/empire-web/resolve/main/css/style.css
73.2 kB
| /* ═══════════════════════════════════════════════════════════════════════════ | |
| EMPIRE · 帝國征途 — visual system | |
| ═══════════════════════════════════════════════════════════════════════════ */ | |
| :root { | |
| --bg-0: #07090e; | |
| --bg-1: #0b0f16; | |
| --bg-2: #121926; | |
| --panel: rgba(17, 23, 34, .82); | |
| --panel-solid: #131a25; | |
| --line: rgba(215, 181, 109, .20); | |
| --line-soft: rgba(255, 255, 255, .075); | |
| --ink: #ece5d4; | |
| --ink-dim: #c2bcac; | |
| --muted: #8d929d; | |
| --gold: #d7b56d; | |
| --gold-2: #f3d692; | |
| --gold-3: #a8843f; | |
| --danger: #d05a4c; | |
| --good: #6fbf87; | |
| --info: #6fa8d0; | |
| --shadow-lg: 0 26px 70px rgba(0, 0, 0, .6); | |
| --shadow-md: 0 12px 34px rgba(0, 0, 0, .4); | |
| --radius: 16px; | |
| --radius-sm: 11px; | |
| --ff-display: 'Cinzel Decorative', 'Cinzel', 'Noto Serif TC', serif; | |
| --ff-serif: 'Cinzel', 'Noto Serif TC', serif; | |
| --ff-body: 'Inter', 'Noto Sans TC', system-ui, -apple-system, 'Segoe UI', sans-serif; | |
| } | |
| * { box-sizing: border-box; } | |
| html, body { height: 100%; } | |
| #app { height: 100%; } | |
| body { | |
| margin: 0; | |
| background: var(--bg-0); | |
| color: var(--ink); | |
| font-family: var(--ff-body); | |
| font-size: 14px; | |
| line-height: 1.55; | |
| overflow: hidden; | |
| -webkit-font-smoothing: antialiased; | |
| text-rendering: optimizeLegibility; | |
| } | |
| button, input, select { font: inherit; color: inherit; } | |
| button { cursor: pointer; } | |
| a { color: var(--gold-2); } | |
| .hidden { display: none ; } | |
| .sprite { position: absolute; width: 0; height: 0; overflow: hidden; } | |
| svg.ico { | |
| width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; | |
| fill: none; stroke: currentColor; stroke-width: 1.7; | |
| stroke-linecap: round; stroke-linejoin: round; flex: none; | |
| } | |
| svg.ico * { vector-effect: non-scaling-stroke; } | |
| /* scrollbars */ | |
| * { scrollbar-width: thin; scrollbar-color: rgba(215,181,109,.28) transparent; } | |
| *::-webkit-scrollbar { width: 8px; height: 8px; } | |
| *::-webkit-scrollbar-thumb { background: rgba(215,181,109,.22); border-radius: 8px; } | |
| *::-webkit-scrollbar-thumb:hover { background: rgba(215,181,109,.4); } | |
| *::-webkit-scrollbar-track { background: transparent; } | |
| ::selection { background: rgba(215,181,109,.35); color: #1a1205; } | |
| /* ═══ Shared atoms ═══════════════════════════════════════════════════════ */ | |
| .eyebrow { | |
| margin: 0; | |
| font-family: var(--ff-serif); | |
| font-size: 10px; | |
| font-weight: 600; | |
| letter-spacing: .42em; | |
| text-transform: uppercase; | |
| color: var(--gold); | |
| text-indent: .42em; | |
| } | |
| .eyebrow.dim { color: var(--muted); } | |
| .btn { | |
| position: relative; | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 10px; | |
| padding: 11px 18px; | |
| border-radius: 11px; | |
| border: 1px solid transparent; | |
| background: transparent; | |
| color: var(--ink); | |
| font-weight: 500; | |
| letter-spacing: .04em; | |
| transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, opacity .18s; | |
| user-select: none; | |
| } | |
| .btn:disabled { opacity: .38; cursor: not-allowed; transform: none ; box-shadow: none ; } | |
| .btn .ico { font-size: 18px; } | |
| .btn small { | |
| display: block; font-size: 8px; line-height: 1.2; | |
| letter-spacing: .24em; text-transform: uppercase; opacity: .68; margin-top: 2px; | |
| } | |
| .btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; } | |
| .btn-primary { | |
| background: linear-gradient(178deg, #f7dfa5 0%, #e4c178 42%, #c69a4c 100%); | |
| color: #261806; | |
| border-color: rgba(255, 240, 196, .7); | |
| text-shadow: 0 1px 0 rgba(255, 255, 255, .35); | |
| box-shadow: 0 10px 26px rgba(190, 147, 70, .22), inset 0 1px 0 rgba(255, 255, 255, .55); | |
| } | |
| .btn-primary:hover:not(:disabled) { | |
| transform: translateY(-1px); | |
| box-shadow: 0 16px 34px rgba(214, 170, 88, .34), inset 0 1px 0 rgba(255, 255, 255, .7); | |
| background: linear-gradient(178deg, #fdeab8 0%, #ebc980 45%, #d0a354 100%); | |
| } | |
| .btn-primary:active:not(:disabled) { transform: translateY(0); } | |
| .btn-primary small { color: #4a3410; } | |
| .btn-ghost { | |
| background: rgba(255, 255, 255, .04); | |
| border-color: var(--line); | |
| color: var(--ink); | |
| box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); | |
| } | |
| .btn-ghost:hover:not(:disabled) { | |
| border-color: rgba(215, 181, 109, .55); | |
| background: rgba(215, 181, 109, .1); | |
| transform: translateY(-1px); | |
| } | |
| .btn-quiet { | |
| border: 1px solid transparent; | |
| color: var(--ink-dim); | |
| font-size: 12px; | |
| letter-spacing: .08em; | |
| padding: 8px 12px; | |
| } | |
| .btn-quiet:hover { color: var(--gold-2); border-color: var(--line-soft); background: rgba(255,255,255,.03); } | |
| .btn-lg { padding: 15px 24px; font-size: 15px; border-radius: 13px; } | |
| .btn-block { width: 100%; } | |
| .btn-icon { | |
| width: 38px; height: 38px; padding: 0; | |
| border-radius: 10px; | |
| border: 1px solid var(--line-soft); | |
| background: rgba(255, 255, 255, .035); | |
| color: var(--ink-dim); | |
| } | |
| .btn-icon .ico { font-size: 18px; } | |
| .btn-icon:hover { color: var(--gold-2); border-color: var(--line); background: rgba(215,181,109,.08); } | |
| .panel { | |
| background: linear-gradient(180deg, rgba(22, 30, 43, .78), rgba(13, 18, 27, .84)); | |
| border: 1px solid var(--line-soft); | |
| border-radius: var(--radius); | |
| box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 36px rgba(0, 0, 0, .28); | |
| backdrop-filter: blur(10px); | |
| } | |
| .panel-head { | |
| display: flex; align-items: center; justify-content: space-between; | |
| padding: 14px 15px 0; | |
| } | |
| .panel-head h3 { | |
| margin: 0; | |
| font-family: var(--ff-serif); | |
| font-size: 12px; font-weight: 600; | |
| letter-spacing: .22em; text-transform: uppercase; | |
| color: var(--gold-2); | |
| } | |
| .panel-head h3 em { | |
| font-style: normal; font-size: 8px; letter-spacing: .24em; | |
| color: var(--muted); margin-left: 7px; | |
| } | |
| .mini-link { | |
| border: 0; background: none; color: var(--gold); font-size: 11px; | |
| letter-spacing: .12em; padding: 2px 0; border-bottom: 1px solid rgba(215,181,109,.3); | |
| } | |
| .mini-link:hover { color: var(--gold-2); border-color: var(--gold-2); } | |
| .chip { | |
| display: inline-flex; align-items: center; gap: 5px; | |
| padding: 3px 8px; border-radius: 999px; | |
| font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; | |
| border: 1px solid var(--line-soft); background: rgba(255,255,255,.04); color: var(--ink-dim); | |
| } | |
| .chip.gold { color: var(--gold-2); border-color: rgba(215,181,109,.4); background: rgba(215,181,109,.1); } | |
| .chip.good { color: var(--good); border-color: rgba(111,191,135,.35); background: rgba(111,191,135,.1); } | |
| .chip.bad { color: var(--danger); border-color: rgba(208,90,76,.4); background: rgba(208,90,76,.1); } | |
| .chip.info { color: var(--info); border-color: rgba(111,168,208,.35); background: rgba(111,168,208,.1); } | |
| /* ═══ Screens ════════════════════════════════════════════════════════════ */ | |
| .screen { display: none; height: 100%; } | |
| .screen.active { display: flex; animation: screen-in .5s cubic-bezier(.2,.7,.2,1); } | |
| @keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } | |
| /* ═══ MENU ═══════════════════════════════════════════════════════════════ */ | |
| #screen-menu { position: relative; flex-direction: column; overflow: hidden; } | |
| .menu-bg { | |
| position: absolute; inset: 0; | |
| background: url('../assets/images/throne.png') center 35% / cover no-repeat; | |
| transform: scale(1.045); | |
| filter: saturate(.82) brightness(.56) contrast(1.03); | |
| } | |
| .menu-veil { | |
| position: absolute; inset: 0; | |
| background: | |
| linear-gradient(90deg, rgba(5, 8, 13, .96) 0%, rgba(5, 8, 13, .84) 34%, rgba(5, 8, 13, .28) 63%, rgba(5, 8, 13, .82) 100%), | |
| radial-gradient(120% 90% at 30% 45%, transparent 30%, rgba(4, 6, 10, .62) 100%); | |
| } | |
| #screen-menu::after { | |
| content: ''; position: absolute; inset: 0; pointer-events: none; | |
| background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); | |
| mix-blend-mode: overlay; | |
| } | |
| .menu-embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; } | |
| .ember { | |
| position: absolute; bottom: -20px; | |
| width: 3px; height: 3px; border-radius: 50%; | |
| background: #f3d692; | |
| box-shadow: 0 0 10px 2px rgba(243, 214, 146, .7); | |
| animation: ember-rise linear infinite; | |
| opacity: 0; | |
| } | |
| @keyframes ember-rise { | |
| 0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; } | |
| 12% { opacity: .9; } | |
| 70% { opacity: .5; } | |
| 100% { transform: translate3d(40px, -105vh, 0) scale(.2); opacity: 0; } | |
| } | |
| .menu-grid { | |
| position: relative; z-index: 2; | |
| flex: 1; min-height: 0; | |
| display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); | |
| align-items: center; gap: 4vw; | |
| padding: 5vh 5.5vw 3vh; | |
| } | |
| .menu-copy { max-width: 620px; padding-left: 2vw; } | |
| .crest-mark { | |
| width: 62px; height: 62px; margin-bottom: 26px; | |
| display: grid; place-items: center; | |
| border: 1px solid rgba(215,181,109,.42); | |
| border-radius: 50%; | |
| color: var(--gold-2); | |
| background: radial-gradient(circle, rgba(215,181,109,.16), transparent 68%); | |
| box-shadow: 0 0 40px rgba(215,181,109,.14), inset 0 0 18px rgba(215,181,109,.1); | |
| position: relative; | |
| } | |
| .crest-mark::before, .crest-mark::after { | |
| content: ''; position: absolute; inset: 6px; border: 1px solid rgba(215,181,109,.2); border-radius: 50%; | |
| } | |
| .crest-mark::after { inset: -7px; border-style: dashed; opacity: .4; animation: slow-spin 40s linear infinite; } | |
| .crest-mark .ico { font-size: 28px; } | |
| @keyframes slow-spin { to { transform: rotate(360deg); } } | |
| .wordmark { | |
| margin: 14px 0 0; | |
| width: max-content; | |
| max-width: none; | |
| padding-right: .12em; | |
| font-family: 'Noto Serif TC', var(--ff-serif); | |
| font-size: clamp(92px, 10.6vw, 158px); | |
| line-height: 1; | |
| letter-spacing: .16em; | |
| text-indent: .16em; | |
| font-weight: 700; | |
| background: linear-gradient(178deg, #fff6d8 0%, #f3d692 26%, #d0a95c 58%, #8f6b2e 100%); | |
| -webkit-background-clip: text; background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| filter: drop-shadow(0 6px 24px rgba(214, 170, 88, .28)) drop-shadow(0 2px 0 rgba(0,0,0,.5)); | |
| } | |
| .wordmark-cn { | |
| margin: 6px 0 0; | |
| font-family: 'Noto Serif TC', serif; | |
| font-size: clamp(16px, 1.8vw, 24px); | |
| font-weight: 500; | |
| letter-spacing: .62em; | |
| text-indent: .62em; | |
| color: rgba(236, 229, 212, .78); | |
| } | |
| .tagline { | |
| margin: 26px 0 34px; | |
| font-size: clamp(14px, 1.2vw, 17px); | |
| font-weight: 300; | |
| letter-spacing: .06em; | |
| color: var(--ink-dim); | |
| line-height: 1.9; | |
| } | |
| .tagline em { | |
| font-family: var(--ff-serif); | |
| font-style: normal; | |
| color: var(--gold-2); | |
| letter-spacing: .12em; | |
| } | |
| .menu-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; max-width: 330px; } | |
| .menu-actions .btn { min-width: 260px; justify-content: flex-start; } | |
| .menu-actions .btn-quiet { min-width: 0; } | |
| .menu-facts { | |
| display: flex; align-items: center; gap: 14px; margin-top: 30px; | |
| font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); | |
| } | |
| .menu-facts b { color: var(--gold-2); font-size: 13px; margin-right: 2px; } | |
| .menu-facts i { width: 3px; height: 3px; border-radius: 50%; background: rgba(215,181,109,.5); } | |
| .menu-portrait { justify-self: end; width: min(36vw, 470px); } | |
| .portrait-frame { | |
| position: relative; | |
| padding: 10px; | |
| background: linear-gradient(160deg, rgba(215,181,109,.3), rgba(20,26,37,.9) 30%, rgba(10,14,20,.95)); | |
| border: 1px solid rgba(215,181,109,.34); | |
| border-radius: 6px; | |
| box-shadow: 0 40px 90px rgba(0,0,0,.66), inset 0 0 0 1px rgba(0,0,0,.6); | |
| } | |
| .portrait-frame::before { | |
| content: ''; position: absolute; inset: 5px; border: 1px solid rgba(215,181,109,.2); pointer-events: none; | |
| } | |
| .portrait-img { | |
| aspect-ratio: 4 / 5; | |
| background-size: cover; | |
| background-position: center 22%; | |
| filter: saturate(.92) contrast(1.04); | |
| position: relative; | |
| border-radius: 2px; | |
| } | |
| .portrait-vignette { | |
| position: absolute; inset: 10px; pointer-events: none; | |
| background: linear-gradient(180deg, transparent 55%, rgba(5,7,11,.82) 100%), | |
| radial-gradient(80% 60% at 50% 30%, transparent, rgba(5,7,11,.35)); | |
| } | |
| .portrait-plaque { | |
| position: absolute; left: 10px; right: 10px; bottom: 10px; | |
| padding: 16px 18px 18px; | |
| display: flex; flex-direction: column; align-items: center; gap: 4px; | |
| text-align: center; | |
| background: linear-gradient(180deg, transparent, rgba(5,7,11,.88) 46%); | |
| } | |
| .plaque-kicker { font-family: var(--ff-serif); font-size: 8px; letter-spacing: .38em; color: var(--gold); } | |
| .plaque-name { font-family: 'Noto Serif TC', serif; font-size: 15px; letter-spacing: .3em; color: var(--ink); } | |
| .corner { position: absolute; width: 22px; height: 22px; border: 1px solid rgba(215,181,109,.65); } | |
| .corner.tl { top: 4px; left: 4px; border-right: 0; border-bottom: 0; } | |
| .corner.tr { top: 4px; right: 4px; border-left: 0; border-bottom: 0; } | |
| .corner.bl { bottom: 4px; left: 4px; border-right: 0; border-top: 0; } | |
| .corner.br { bottom: 4px; right: 4px; border-left: 0; border-top: 0; } | |
| .menu-foot { | |
| position: relative; z-index: 2; | |
| display: flex; align-items: center; justify-content: center; gap: 18px; | |
| padding: 0 5vw 22px; | |
| font-family: 'Noto Serif TC', serif; | |
| font-size: 11px; letter-spacing: .3em; color: rgba(194,188,172,.5); | |
| } | |
| .foot-line { width: clamp(30px, 8vw, 120px); height: 1px; background: linear-gradient(90deg, transparent, rgba(215,181,109,.4), transparent); } | |
| /* ═══ SETUP ══════════════════════════════════════════════════════════════ */ | |
| #screen-setup { | |
| display: none; flex-direction: column; | |
| overflow: auto; | |
| padding: 22px clamp(18px, 3vw, 46px) 30px; | |
| background: | |
| radial-gradient(1100px 600px at 12% -10%, rgba(33, 51, 50, .5), transparent 60%), | |
| radial-gradient(900px 600px at 100% 0%, rgba(64, 42, 20, .35), transparent 58%), | |
| linear-gradient(180deg, #080b11, #090d14 55%, #07090d); | |
| position: relative; | |
| } | |
| #screen-setup.active { display: flex; } | |
| .setup-bg { | |
| position: absolute; inset: 0; pointer-events: none; | |
| background: url('../assets/images/map-parchment.png') center / cover no-repeat; | |
| opacity: .045; filter: sepia(.4) contrast(1.1); | |
| mask-image: radial-gradient(80% 70% at 50% 40%, black, transparent 85%); | |
| -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, black, transparent 85%); | |
| } | |
| .setup-head { | |
| position: relative; z-index: 1; | |
| display: flex; align-items: center; gap: 20px; | |
| padding-bottom: 18px; | |
| border-bottom: 1px solid var(--line-soft); | |
| flex-wrap: wrap; | |
| } | |
| .setup-title { min-width: 0; } | |
| .setup-title .eyebrow { margin-bottom: 2px; font-size: 9px; } | |
| .setup-title h2 { | |
| margin: 0; | |
| font-family: 'Noto Serif TC', var(--ff-serif); | |
| font-size: clamp(22px, 2.4vw, 32px); | |
| font-weight: 600; letter-spacing: .16em; | |
| background: linear-gradient(180deg, #fff2cf, #d7b56d 70%); | |
| -webkit-background-clip: text; background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| .steps { | |
| margin-left: auto; display: flex; align-items: center; gap: 12px; | |
| font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); | |
| } | |
| .steps .step { display: flex; align-items: center; gap: 7px; white-space: nowrap; } | |
| .steps .step b { | |
| display: grid; place-items: center; width: 22px; height: 22px; | |
| border: 1px solid rgba(215,181,109,.4); border-radius: 50%; | |
| font-family: var(--ff-serif); font-size: 9px; color: var(--gold-2); | |
| } | |
| .step-line { width: 30px; height: 1px; background: linear-gradient(90deg, rgba(215,181,109,.5), transparent); } | |
| .setup-body { | |
| position: relative; z-index: 1; | |
| display: grid; | |
| grid-template-columns: minmax(250px, .82fr) minmax(380px, 1.2fr) minmax(300px, 350px); | |
| gap: clamp(16px, 1.6vw, 26px); | |
| align-items: start; | |
| margin-top: 20px; | |
| } | |
| .setup-col { min-width: 0; } | |
| .section-label { | |
| display: flex; align-items: baseline; gap: 9px; | |
| font-family: var(--ff-serif); | |
| font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; | |
| color: var(--gold-2); | |
| margin-bottom: 12px; | |
| } | |
| .section-label span { font-size: 9px; color: var(--gold); opacity: .7; letter-spacing: .12em; } | |
| .section-label em { | |
| font-style: normal; font-family: var(--ff-body); | |
| font-size: 9px; letter-spacing: .1em; color: var(--muted); text-transform: none; | |
| } | |
| .map-options { display: flex; flex-direction: column; gap: 12px; } | |
| .map-card { | |
| position: relative; overflow: hidden; | |
| display: block; width: 100%; text-align: left; | |
| border: 1px solid var(--line-soft); | |
| border-radius: 14px; | |
| background: #0e141d; | |
| color: var(--ink); | |
| padding: 0; | |
| min-height: 172px; | |
| transition: border-color .2s, transform .2s, box-shadow .2s; | |
| } | |
| .map-card:hover { transform: translateY(-2px); border-color: rgba(215,181,109,.35); box-shadow: var(--shadow-md); } | |
| .map-card.selected { border-color: rgba(215,181,109,.75); box-shadow: 0 0 0 1px rgba(215,181,109,.35), 0 16px 40px rgba(0,0,0,.45); } | |
| .map-card .map-thumb { | |
| position: absolute; inset: 0; | |
| background-size: cover; background-position: center; | |
| opacity: .42; | |
| filter: saturate(.8) contrast(1.05); | |
| } | |
| .map-card .map-thumb svg { width: 100%; height: 100%; display: block; } | |
| .map-card::after { | |
| content: ''; position: absolute; inset: 0; | |
| background: linear-gradient(180deg, rgba(8,12,18,.15) 0%, rgba(8,12,18,.5) 46%, rgba(8,12,18,.94) 100%); | |
| } | |
| .map-card .map-info { position: relative; z-index: 2; padding: 16px 16px 14px; margin-top: auto; } | |
| .map-card .map-info { position: absolute; left: 0; right: 0; bottom: 0; } | |
| .map-card h3 { | |
| margin: 0; font-family: var(--ff-serif); font-size: 17px; font-weight: 600; | |
| letter-spacing: .08em; color: #f6ecd4; | |
| } | |
| .map-card .map-kicker { font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); } | |
| .map-card p { margin: 6px 0 0; font-size: 11px; color: var(--muted); line-height: 1.55; } | |
| .map-card .map-meta { | |
| display: flex; gap: 8px; align-items: center; margin-top: 9px; | |
| font-size: 10px; color: var(--ink-dim); letter-spacing: .06em; | |
| } | |
| .map-check { | |
| position: absolute; top: 11px; right: 11px; z-index: 3; | |
| width: 24px; height: 24px; border-radius: 50%; | |
| display: grid; place-items: center; | |
| border: 1px solid rgba(215,181,109,.4); background: rgba(8,12,18,.7); | |
| color: transparent; transition: .2s; | |
| } | |
| .map-card.selected .map-check { background: var(--gold-2); border-color: var(--gold-2); color: #241706; } | |
| .map-check .ico { font-size: 14px; stroke-width: 2.4; } | |
| .faction-options { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; } | |
| .faction-card { | |
| position: relative; text-align: left; | |
| display: flex; flex-direction: column; gap: 5px; | |
| padding: 14px 14px 12px; | |
| border-radius: 13px; | |
| border: 1px solid var(--line-soft); | |
| background: linear-gradient(165deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); | |
| color: var(--ink); | |
| transition: border-color .18s, background .18s, transform .18s, box-shadow .18s; | |
| overflow: hidden; | |
| } | |
| .faction-card::before { | |
| content: ''; position: absolute; inset: 0; | |
| background: radial-gradient(140px 80px at 12% 0%, var(--fc), transparent 70%); | |
| opacity: .1; transition: opacity .2s; | |
| } | |
| .faction-card:hover { transform: translateY(-2px); border-color: rgba(215,181,109,.3); } | |
| .faction-card:hover::before { opacity: .18; } | |
| .faction-card.selected { | |
| border-color: var(--fc); | |
| background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); | |
| box-shadow: 0 0 0 1px color-mix(in srgb, var(--fc) 55%, transparent), 0 12px 30px rgba(0,0,0,.35), inset 0 0 30px color-mix(in srgb, var(--fc) 12%, transparent); | |
| } | |
| .faction-card .fc-top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; } | |
| .fc-crest { | |
| width: 38px; height: 38px; flex: none; | |
| display: grid; place-items: center; | |
| border-radius: 9px; | |
| color: var(--fc); | |
| border: 1px solid color-mix(in srgb, var(--fc) 45%, transparent); | |
| background: color-mix(in srgb, var(--fc) 10%, #0d131c); | |
| box-shadow: inset 0 0 14px color-mix(in srgb, var(--fc) 15%, transparent); | |
| } | |
| .fc-crest .ico { font-size: 21px; } | |
| .faction-card h3 { | |
| margin: 0; font-family: var(--ff-serif); font-size: 13.5px; font-weight: 600; | |
| letter-spacing: .04em; line-height: 1.2; | |
| } | |
| .fc-personality { font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--fc); opacity: .9; } | |
| .faction-card .fc-blurb { | |
| margin: 2px 0 0; font-size: 10.5px; color: var(--muted); line-height: 1.5; | |
| position: relative; z-index: 1; min-height: 31px; | |
| } | |
| .fc-res { display: flex; gap: 9px; margin-top: 3px; position: relative; z-index: 1; } | |
| .fc-res span { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: var(--ink-dim); } | |
| .fc-res .ico { font-size: 12px; color: var(--muted); } | |
| .fc-selected-mark { | |
| position: absolute; top: 9px; right: 9px; z-index: 2; | |
| color: var(--fc); opacity: 0; transition: .2s; font-size: 15px; | |
| } | |
| .faction-card.selected .fc-selected-mark { opacity: 1; } | |
| .identity-card { | |
| border-radius: 15px; overflow: hidden; | |
| border: 1px solid var(--line); | |
| background: linear-gradient(180deg, #141b26, #0d121a); | |
| box-shadow: var(--shadow-md); | |
| } | |
| .identity-portrait { position: relative; height: 148px; overflow: hidden; } | |
| .identity-img { | |
| position: absolute; inset: 0; | |
| background: url('../assets/images/emperor.png') center 20% / cover no-repeat; | |
| filter: saturate(.9); | |
| } | |
| .identity-portrait::after { | |
| content: ''; position: absolute; inset: 0; | |
| background: linear-gradient(180deg, transparent 35%, rgba(13,18,26,.95) 100%); | |
| } | |
| .identity-badge { | |
| position: absolute; left: 14px; bottom: -18px; z-index: 2; | |
| width: 48px; height: 48px; border-radius: 50%; | |
| display: grid; place-items: center; | |
| background: #101722; | |
| border: 1px solid var(--fc, var(--gold)); | |
| color: var(--fc, var(--gold-2)); | |
| box-shadow: 0 6px 18px rgba(0,0,0,.5), inset 0 0 16px color-mix(in srgb, var(--fc, #d7b56d) 20%, transparent); | |
| } | |
| .identity-badge .ico { font-size: 25px; } | |
| .identity-fields { padding: 26px 15px 15px; display: flex; flex-direction: column; gap: 10px; } | |
| .identity-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); } | |
| .identity-fields input { | |
| width: 100%; padding: 9px 11px; | |
| border-radius: 8px; border: 1px solid var(--line-soft); | |
| background: rgba(0,0,0,.26); | |
| font-size: 13px; letter-spacing: .03em; | |
| color: var(--ink); outline: none; | |
| transition: border-color .18s, background .18s; | |
| } | |
| .identity-fields input:focus { border-color: rgba(215,181,109,.55); background: rgba(0,0,0,.4); } | |
| .identity-fields input::placeholder { color: rgba(141,146,157,.55); } | |
| .setup-summary { | |
| margin: 13px 0; | |
| padding: 12px 14px; | |
| border: 1px solid var(--line-soft); border-radius: 11px; | |
| background: rgba(0,0,0,.18); | |
| font-size: 11px; color: var(--muted); line-height: 1.6; | |
| min-height: 62px; | |
| } | |
| .setup-summary .sum-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; } | |
| .setup-summary .sum-row + .sum-row { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line-soft); } | |
| .setup-summary b { color: var(--ink); font-weight: 500; } | |
| .setup-summary .sum-tag { color: var(--gold-2); font-family: var(--ff-serif); letter-spacing: .05em; } | |
| .setup-hint { font-size: 10px; color: var(--muted); text-align: center; margin: 10px 0 0; line-height: 1.7; } | |
| /* ═══ GAME ═══════════════════════════════════════════════════════════════ */ | |
| #screen-game { flex-direction: column; min-height: 0; overflow: hidden; } | |
| #screen-game.active { display: flex; } | |
| .topbar { | |
| position: relative; z-index: 10; | |
| height: 72px; flex: none; | |
| display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); | |
| padding: 0 clamp(14px, 1.6vw, 24px); | |
| border-bottom: 1px solid var(--line); | |
| background: linear-gradient(180deg, rgba(12,17,24,.97), rgba(8,12,18,.93)); | |
| backdrop-filter: blur(14px); | |
| box-shadow: 0 10px 30px rgba(0,0,0,.3); | |
| } | |
| .brand { | |
| display: flex; align-items: center; gap: 8px; | |
| background: none; border: 0; padding: 5px 0; color: var(--gold-2); | |
| } | |
| .brand .crown { font-size: 21px; } | |
| .brand-word { | |
| font-family: 'Noto Serif TC', var(--ff-serif); font-size: 18px; font-weight: 600; | |
| letter-spacing: .16em; text-indent: .16em; | |
| background: linear-gradient(180deg, #fff2cf, #d0a95c); | |
| -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; | |
| } | |
| .brand:hover .crown { filter: drop-shadow(0 0 8px rgba(243,214,146,.7)); } | |
| .resources { display: flex; gap: 7px; flex-wrap: wrap; } | |
| .res-chip { | |
| display: flex; align-items: center; gap: 7px; | |
| padding: 6px 10px 6px 8px; | |
| border: 1px solid var(--line-soft); border-radius: 9px; | |
| background: rgba(255,255,255,.032); | |
| position: relative; | |
| transition: border-color .2s, background .2s; | |
| } | |
| .res-chip:hover { border-color: rgba(215,181,109,.28); background: rgba(255,255,255,.055); } | |
| .res-chip .ico { font-size: 15px; color: var(--rc); } | |
| .res-chip b { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; } | |
| .res-chip small { font-size: 9px; color: var(--muted); letter-spacing: .08em; } | |
| .res-chip .delta { font-size: 9px; font-variant-numeric: tabular-nums; margin-left: 1px; } | |
| .res-chip .delta.up { color: var(--good); } | |
| .res-chip .delta.down { color: var(--danger); } | |
| .res-chip.bump { animation: chip-bump .5s ease; } | |
| @keyframes chip-bump { 40% { transform: translateY(-3px); border-color: var(--gold); } } | |
| .turn-cluster { margin-left: auto; display: flex; align-items: center; gap: 16px; } | |
| .turn-info { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } | |
| .turn-label { font-family: var(--ff-serif); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; } | |
| .turn-label b { color: var(--gold-2); font-size: 14px; margin: 0 2px; } | |
| .action-pips { display: flex; gap: 5px; } | |
| .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(215,181,109,.6); } | |
| .pip.used { background: rgba(255,255,255,.12); box-shadow: none; } | |
| .btn-end { padding: 9px 15px; gap: 7px; } | |
| .btn-end span { font-size: 13px; font-weight: 600; } | |
| .btn-end small { font-size: 7px; letter-spacing: .2em; } | |
| .btn-end .ico { font-size: 16px; } | |
| .game-grid { | |
| flex: 1; min-height: 0; | |
| display: grid; | |
| grid-template-columns: 290px minmax(0, 1fr) 344px; | |
| gap: 13px; | |
| padding: 13px clamp(13px, 1.2vw, 18px) 15px; | |
| } | |
| .side-left, .side-right { | |
| min-height: 0; overflow-y: auto; | |
| display: flex; flex-direction: column; gap: 11px; | |
| padding-right: 2px; | |
| } | |
| /* sovereign */ | |
| .sovereign-card { | |
| position: relative; overflow: hidden; | |
| border-radius: var(--radius); | |
| border: 1px solid var(--line); | |
| min-height: 148px; | |
| background: #0d131c; | |
| box-shadow: var(--shadow-md); | |
| flex: none; | |
| } | |
| .sovereign-card .sovereign-bg { | |
| position: absolute; inset: 0; | |
| background: url('../assets/images/emperor.png') center 18% / cover no-repeat; | |
| filter: saturate(.85) contrast(1.03); | |
| } | |
| .sovereign-card::after { | |
| content: ''; position: absolute; inset: 0; | |
| background: linear-gradient(180deg, rgba(8,12,18,.1) 0%, rgba(8,12,18,.55) 42%, rgba(8,12,18,.96) 100%); | |
| } | |
| .sovereign-body { position: relative; z-index: 2; padding: 74px 14px 13px; } | |
| .sovereign-nation { | |
| display: flex; align-items: center; gap: 6px; | |
| font-family: var(--ff-serif); font-size: 15px; font-weight: 600; | |
| letter-spacing: .05em; color: #f8efd9; | |
| text-shadow: 0 2px 8px rgba(0,0,0,.7); | |
| } | |
| .sovereign-nation .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fc, var(--gold)); box-shadow: 0 0 8px var(--fc, var(--gold)); } | |
| .sovereign-name { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 2px; } | |
| .sovereign-slogan { | |
| margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.12); | |
| font-family: 'Noto Serif TC', serif; font-size: 11px; color: var(--ink-dim); | |
| font-style: italic; letter-spacing: .04em; line-height: 1.5; | |
| } | |
| .sovereign-personality { position: absolute; top: 10px; right: 10px; z-index: 3; } | |
| /* stats */ | |
| .stats-panel { padding-bottom: 13px; flex: none; } | |
| .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 11px 13px 0; } | |
| .stat-cell { | |
| border: 1px solid var(--line-soft); border-radius: 9px; | |
| background: rgba(255,255,255,.025); | |
| padding: 8px 10px; | |
| } | |
| .stat-cell .stat-k { font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 4px; } | |
| .stat-cell .stat-k .ico { font-size: 11px; color: var(--gold); } | |
| .stat-cell .stat-v { font-family: var(--ff-serif); font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.25; } | |
| .stat-cell .stat-v small { font-family: var(--ff-body); font-size: 9px; color: var(--muted); font-weight: 400; letter-spacing: .05em; } | |
| .stat-cell .stat-sub { font-size: 9px; color: var(--muted); } | |
| .stat-cell.wide { grid-column: 1 / -1; } | |
| /* objective */ | |
| .objective-panel { padding-bottom: 13px; flex: none; } | |
| .obj-body { padding: 10px 14px 0; } | |
| .obj-bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; border: 1px solid rgba(255,255,255,.05); } | |
| .obj-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #9b7937, var(--gold-2)); box-shadow: 0 0 12px rgba(215,181,109,.5); transition: width .6s cubic-bezier(.2,.8,.2,1); } | |
| .obj-meta { display: flex; justify-content: space-between; margin-top: 7px; font-size: 10px; color: var(--muted); } | |
| .obj-meta b { color: var(--gold-2); } | |
| .obj-note { margin-top: 8px; font-size: 10px; color: var(--muted); line-height: 1.5; } | |
| .obj-note strong { color: var(--ink-dim); font-weight: 500; } | |
| /* relations */ | |
| .relations-panel { flex: none; } | |
| .relations-list { padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 3px; } | |
| .rel-row { | |
| display: flex; align-items: center; gap: 8px; | |
| padding: 6px 7px; border-radius: 8px; | |
| font-size: 10.5px; | |
| } | |
| .rel-row:hover { background: rgba(255,255,255,.035); } | |
| .rel-crest { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; border: 1px solid color-mix(in srgb, var(--fc) 40%, transparent); background: color-mix(in srgb, var(--fc) 10%, #0d131c); color: var(--fc); } | |
| .rel-crest .ico { font-size: 13px; } | |
| .rel-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-dim); } | |
| .rel-owned { font-size: 9px; color: var(--muted); font-variant-numeric: tabular-nums; } | |
| .rel-status { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; } | |
| .rel-status.allied { color: var(--good); } | |
| .rel-status.peace { color: var(--info); } | |
| .rel-status.hostile { color: var(--danger); } | |
| .rel-status.neutral { color: var(--muted); } | |
| .rel-dead { opacity: .35; text-decoration: line-through; } | |
| /* map panel */ | |
| .map-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 9px; } | |
| .map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 4px; flex: none; } | |
| .map-title .eyebrow { font-size: 8px; } | |
| .map-title h2 { | |
| margin: 2px 0 0; font-family: var(--ff-serif); font-size: 19px; font-weight: 600; | |
| letter-spacing: .06em; color: #f4ead4; | |
| display: flex; align-items: center; gap: 9px; | |
| } | |
| .map-title h2::after { content: ''; width: 32px; height: 1px; background: linear-gradient(90deg, rgba(215,181,109,.6), transparent); } | |
| .map-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } | |
| .legend { display: flex; gap: 9px; margin-right: 4px; } | |
| .legend .lg { display: flex; align-items: center; gap: 4px; font-size: 8.5px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; } | |
| .legend .ico { font-size: 12px; color: rgba(215,181,109,.75); } | |
| .map-stage { | |
| position: relative; flex: 1; min-height: 0; | |
| border-radius: var(--radius); | |
| border: 1px solid var(--line-soft); | |
| overflow: hidden; | |
| background: | |
| radial-gradient(90% 80% at 50% 42%, rgba(34, 55, 62, .55), transparent 72%), | |
| radial-gradient(60% 60% at 15% 85%, rgba(50, 42, 28, .35), transparent 70%), | |
| linear-gradient(180deg, #0b1219, #080d13 70%, #070a0f); | |
| box-shadow: inset 0 0 90px rgba(0,0,0,.55), 0 18px 50px rgba(0,0,0,.3); | |
| } | |
| .map-parchment { | |
| position: absolute; inset: 0; | |
| background: url('../assets/images/map-parchment.png') center / cover no-repeat; | |
| opacity: .16; filter: sepia(.35) saturate(.7) contrast(1.05); | |
| mix-blend-mode: luminosity; | |
| pointer-events: none; | |
| } | |
| .map-stage::after { | |
| content: ''; position: absolute; inset: 0; pointer-events: none; | |
| background: radial-gradient(75% 70% at 50% 45%, transparent 55%, rgba(4,7,10,.55) 100%); | |
| box-shadow: inset 0 0 50px rgba(0,0,0,.5); | |
| } | |
| #map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; } | |
| .map-compass { position: absolute; left: 14px; bottom: 12px; width: 82px; height: 82px; opacity: .3; z-index: 3; pointer-events: none; } | |
| .map-compass svg { width: 100%; height: 100%; fill: none; stroke: rgba(215,181,109,.7); stroke-width: .8; } | |
| .map-compass span { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); font-family: var(--ff-serif); font-size: 9px; color: var(--gold-2); letter-spacing: .1em; } | |
| .map-hint { | |
| position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); | |
| z-index: 4; padding: 5px 13px; border-radius: 99px; | |
| background: rgba(5,8,12,.72); border: 1px solid var(--line-soft); | |
| font-size: 9.5px; letter-spacing: .1em; color: var(--muted); | |
| white-space: nowrap; pointer-events: none; | |
| transition: opacity .25s; | |
| } | |
| .map-hint.hidden-hint { opacity: 0; } | |
| .map-foot { flex: none; display: flex; align-items: center; gap: 10px; min-width: 0; } | |
| .turn-status { font-size: 10px; color: var(--muted); letter-spacing: .08em; white-space: nowrap; } | |
| .turn-status b { color: var(--gold-2); font-weight: 500; } | |
| .chronicle-peek { | |
| flex: 1; min-width: 0; | |
| display: flex; align-items: center; gap: 8px; | |
| padding: 6px 11px; border-radius: 9px; | |
| border: 1px solid var(--line-soft); | |
| background: rgba(255,255,255,.025); | |
| color: var(--muted); font-size: 10px; text-align: left; | |
| } | |
| .chronicle-peek .ico { font-size: 12px; color: var(--gold); flex: none; } | |
| .chronicle-peek span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } | |
| .chronicle-peek:hover { border-color: var(--line); color: var(--ink-dim); } | |
| /* map tooltip */ | |
| .map-tooltip { | |
| position: absolute; z-index: 8; pointer-events: none; | |
| min-width: 150px; max-width: 230px; | |
| padding: 9px 12px; | |
| border-radius: 10px; | |
| background: rgba(7,10,15,.95); | |
| border: 1px solid rgba(215,181,109,.3); | |
| box-shadow: 0 10px 30px rgba(0,0,0,.6); | |
| opacity: 0; transform: translate(-50%, calc(-100% - 14px)) scale(.96); | |
| transition: opacity .12s, transform .12s; | |
| } | |
| .map-tooltip.show { opacity: 1; transform: translate(-50%, calc(-100% - 14px)) scale(1); } | |
| .map-tooltip .tt-name { font-family: var(--ff-serif); font-size: 13px; letter-spacing: .05em; color: var(--ink); } | |
| .map-tooltip .tt-owner { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; margin-top: 1px; } | |
| .map-tooltip .tt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); font-size: 10px; color: var(--muted); } | |
| .map-tooltip .tt-row b { color: var(--ink); font-weight: 500; } | |
| .map-tooltip .tt-hint { margin-top: 5px; font-size: 8.5px; color: var(--gold); letter-spacing: .06em; } | |
| /* ── SVG map ─────────────────────────────────────────────────────────────── */ | |
| .map-sea-grid { stroke: rgba(148,180,190,.06); stroke-width: 1; } | |
| .map-route { fill: none; stroke: rgba(201,183,138,.28); stroke-width: 2.2; stroke-dasharray: 5 8; stroke-linecap: round; transition: stroke .2s, stroke-width .2s, opacity .2s; } | |
| .map-route.active { stroke: rgba(243,214,146,.85); stroke-width: 2.6; stroke-dasharray: 6 5; filter: drop-shadow(0 0 4px rgba(243,214,146,.5)); } | |
| .map-route.hostile { stroke: rgba(208,90,76,.55); stroke-dasharray: 2 5; } | |
| .map-land { fill: url(#land-grad); stroke: rgba(139,118,78,.5); stroke-width: 1.4; filter: url(#rough-coast); } | |
| .map-land-sand { fill: rgba(196,168,112,.10); stroke: none; filter: url(#rough-coast); } | |
| .map-island { fill: url(#island-grad); stroke: rgba(160,138,94,.55); stroke-width: 1.2; filter: url(#rough-coast); } | |
| .map-island-sand { fill: rgba(200,174,120,.13); stroke: none; filter: url(#rough-coast); } | |
| .terr { cursor: pointer; outline: none; } | |
| .terr .halo { fill: var(--fc); opacity: 0; transition: opacity .2s; } | |
| .terr:hover .halo { opacity: .14; } | |
| .terr .ring-outer { fill: #0a0f16; stroke: var(--fc); stroke-width: 2.6; transition: stroke-width .2s; } | |
| .terr .ring-inner { fill: url(#node-grad); stroke: rgba(255,255,255,.10); stroke-width: 1; } | |
| .terr .core { fill: #0f151f; } | |
| .terr .terrain-ico { color: rgba(236,225,200,.88); } | |
| .terr .terrain-ico .ico { font-size: 27px; stroke-width: 1.45; } | |
| .terr .tname { | |
| font-family: 'Cinzel', 'Noto Serif TC', serif; | |
| font-size: 15.5px; font-weight: 600; letter-spacing: .03em; | |
| fill: #efe6d1; text-anchor: middle; | |
| paint-order: stroke; stroke: rgba(6,9,13,.92); stroke-width: 4.5px; stroke-linejoin: round; | |
| } | |
| .terr .towner { | |
| font-family: 'Inter', sans-serif; | |
| font-size: 8px; letter-spacing: .16em; text-transform: uppercase; | |
| fill: var(--fc); text-anchor: middle; opacity: .9; | |
| paint-order: stroke; stroke: rgba(6,9,13,.9); stroke-width: 3px; | |
| } | |
| .terr.unclaimed .ring-outer { stroke: #6a7180; stroke-dasharray: 5 5; } | |
| .terr.unclaimed .towner { fill: #8d929d; } | |
| .terr.unclaimed .core { fill: #111721; } | |
| .terr .army-badge circle { fill: #0a0f16; stroke: var(--fc); stroke-width: 1.8; } | |
| .terr .army-badge text { fill: var(--gold-2); font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700; text-anchor: middle; } | |
| .terr .army-badge .badge-ico { color: rgba(215,181,109,.8); } | |
| .terr .b-pips { opacity: .95; } | |
| .terr .b-pip { fill: var(--gold); opacity: .75; } | |
| .terr .select-ring { | |
| fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-dasharray: 4 7; | |
| transform-box: fill-box; transform-origin: center; | |
| animation: ring-rotate 14s linear infinite; | |
| } | |
| @keyframes ring-rotate { to { transform: rotate(360deg); } } | |
| .terr .adj-ring { fill: none; stroke: rgba(243,214,146,.45); stroke-width: 1.4; stroke-dasharray: 3 6; } | |
| .terr .atk-ring { fill: none; stroke: rgba(208,90,76,.7); stroke-width: 1.6; stroke-dasharray: 3 5; animation: ring-pulse 1.8s ease-in-out infinite; } | |
| @keyframes ring-pulse { 50% { opacity: .35; } } | |
| .terr.selected .ring-outer { stroke-width: 3.6; filter: drop-shadow(0 0 8px var(--fc)); } | |
| .terr:hover .ring-outer { stroke-width: 3.4; } | |
| .terr.dimmed { opacity: .32; } | |
| .terr .click-pulse { fill: var(--fc); opacity: 0; } | |
| .terr.claimable .ring-outer { stroke-dasharray: none; } | |
| .terr text { user-select: none; pointer-events: none; } | |
| /* ═══ COUNCIL / RIGHT PANEL ══════════════════════════════════════════════ */ | |
| .side-right .council { display: flex; flex-direction: column; gap: 11px; } | |
| .council-head { padding: 2px 3px 0; } | |
| .council-head .eyebrow { font-size: 8px; } | |
| .council-head h2 { margin: 2px 0 0; font-family: var(--ff-serif); font-size: 19px; font-weight: 600; letter-spacing: .06em; color: #f2e8d2; } | |
| .council-hero { | |
| position: relative; overflow: hidden; | |
| border-radius: var(--radius); | |
| border: 1px solid var(--line-soft); | |
| min-height: 172px; | |
| display: flex; flex-direction: column; justify-content: flex-end; | |
| background: #0d131c; | |
| box-shadow: var(--shadow-md); | |
| } | |
| .council-hero .hero-img { | |
| position: absolute; inset: 0; | |
| background: url('../assets/images/council.png') center 40% / cover no-repeat; | |
| filter: saturate(.8) brightness(.85); | |
| } | |
| .council-hero::after { | |
| content: ''; position: absolute; inset: 0; | |
| background: linear-gradient(180deg, rgba(7,10,15,.08), rgba(7,10,15,.55) 45%, rgba(7,10,15,.96) 100%); | |
| } | |
| .council-hero .hero-body { position: relative; z-index: 2; padding: 15px 16px 16px; } | |
| .council-hero h3 { margin: 0; font-family: 'Noto Serif TC', serif; font-size: 16px; font-weight: 600; letter-spacing: .1em; color: #f5ecd7; } | |
| .council-hero p { margin: 4px 0 0; font-size: 10.5px; line-height: 1.55; color: var(--ink-dim); } | |
| .council-hero .hero-kicker { font-family: var(--ff-serif); font-size: 8px; letter-spacing: .3em; color: var(--gold); margin-bottom: 3px; } | |
| .quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; } | |
| .quick-btn { | |
| display: flex; align-items: center; gap: 9px; | |
| padding: 11px 11px; | |
| border-radius: 11px; | |
| border: 1px solid var(--line-soft); | |
| background: linear-gradient(165deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); | |
| color: var(--ink-dim); font-size: 11px; text-align: left; | |
| transition: .18s; | |
| } | |
| .quick-btn .ico { font-size: 17px; color: var(--gold); } | |
| .quick-btn small { display: block; font-size: 8px; color: var(--muted); letter-spacing: .1em; margin-top: 1px; } | |
| .quick-btn:hover { border-color: var(--line); background: rgba(215,181,109,.07); color: var(--ink); transform: translateY(-1px); } | |
| .council-tip { | |
| border: 1px dashed rgba(215,181,109,.24); border-radius: 12px; | |
| padding: 11px 13px; font-size: 10px; line-height: 1.65; color: var(--muted); | |
| background: rgba(215,181,109,.03); | |
| } | |
| .council-tip b { color: var(--gold-2); font-weight: 500; } | |
| /* territory detail */ | |
| .terr-view { display: flex; flex-direction: column; gap: 10px; } | |
| .terr-banner { | |
| position: relative; overflow: hidden; | |
| padding: 13px 14px 14px; | |
| border-radius: 14px; | |
| border: 1px solid color-mix(in srgb, var(--fc) 30%, transparent); | |
| background: linear-gradient(150deg, color-mix(in srgb, var(--fc) 14%, #101722), #0d121a 70%); | |
| box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 12px 30px rgba(0,0,0,.32); | |
| } | |
| .terr-banner::before { | |
| content: ''; position: absolute; right: -30px; top: -50px; width: 150px; height: 150px; | |
| background: radial-gradient(circle, var(--fc), transparent 66%); opacity: .2; | |
| } | |
| .terr-banner .tb-top { display: flex; align-items: center; gap: 7px; position: relative; z-index: 1; flex-wrap: wrap; } | |
| .terr-banner h2 { margin: 3px 0 1px; font-family: var(--ff-serif); font-size: 19px; font-weight: 600; letter-spacing: .04em; color: #f7eedb; position: relative; z-index: 1; } | |
| .terr-banner .tb-sub { display: flex; align-items: center; gap: 8px; font-size: 9.5px; letter-spacing: .08em; color: var(--muted); position: relative; z-index: 1; flex-wrap: wrap; } | |
| .terr-banner .tb-sub b { color: var(--fc); font-weight: 500; } | |
| .terr-banner .crest-big { | |
| position: absolute; right: 12px; bottom: 8px; z-index: 1; | |
| width: 54px; height: 54px; border-radius: 12px; | |
| display: grid; place-items: center; | |
| color: var(--fc); opacity: .3; | |
| } | |
| .terr-banner .crest-big .ico { font-size: 42px; } | |
| .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; } | |
| .detail-cell { | |
| border: 1px solid var(--line-soft); border-radius: 10px; | |
| background: rgba(255,255,255,.025); | |
| padding: 8px 10px; | |
| } | |
| .detail-cell .dk { font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 4px; } | |
| .detail-cell .dk .ico { font-size: 11px; color: var(--gold); } | |
| .detail-cell .dv { font-family: var(--ff-serif); font-size: 16px; color: var(--ink); line-height: 1.3; } | |
| .detail-cell .dv small { font-family: var(--ff-body); font-size: 9px; color: var(--muted); } | |
| .detail-cell .ds { font-size: 9px; color: var(--muted); line-height: 1.4; } | |
| .building-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; } | |
| .b-slot { | |
| position: relative; overflow: hidden; | |
| border: 1px solid var(--line-soft); | |
| border-radius: 10px; | |
| background: #0c1119; | |
| padding: 0; | |
| text-align: left; | |
| min-height: 86px; | |
| color: var(--ink-dim); | |
| transition: .18s; | |
| } | |
| .b-slot .b-img { | |
| position: absolute; inset: 0; | |
| background-size: cover; background-position: center; | |
| filter: grayscale(.75) brightness(.52); | |
| transition: filter .25s, transform .25s; | |
| } | |
| .b-slot::after { | |
| content: ''; position: absolute; inset: 0; | |
| background: linear-gradient(180deg, rgba(6,9,13,.05), rgba(6,9,13,.88) 72%); | |
| } | |
| .b-slot .b-body { position: relative; z-index: 2; padding: 46px 8px 7px; } | |
| .b-slot .b-name { font-size: 10px; font-weight: 500; color: var(--ink); letter-spacing: .02em; } | |
| .b-slot .b-effect { font-size: 7.5px; color: var(--muted); line-height: 1.35; margin-top: 1px; } | |
| .b-slot .b-built { | |
| position: absolute; top: 6px; right: 6px; z-index: 3; | |
| width: 17px; height: 17px; border-radius: 50%; | |
| display: grid; place-items: center; | |
| background: var(--gold-2); color: #231605; font-size: 10px; font-weight: 700; | |
| } | |
| .b-slot.built { border-color: rgba(215,181,109,.55); box-shadow: inset 0 0 18px rgba(215,181,109,.12); } | |
| .b-slot.built .b-img { filter: grayscale(0) brightness(.85); } | |
| .b-slot.empty { border-style: dashed; cursor: default; } | |
| .b-slot.empty::before { | |
| content: '+'; position: absolute; inset: 0; display: grid; place-items: center; | |
| font-size: 22px; color: rgba(215,181,109,.28); z-index: 1; | |
| } | |
| .b-slot.empty::after { background: none; } | |
| .b-slot.empty .b-img { display: none; } | |
| .b-slot.empty .b-body { padding: 14px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; } | |
| .b-slot.empty .b-name { color: var(--muted); font-size: 9px; } | |
| .b-slot.empty .b-effect { color: rgba(141,146,157,.6); } | |
| .b-slot:not(.empty):not(.built):hover { transform: translateY(-1px); border-color: var(--line); } | |
| .b-slot:not(.empty):not(.built):hover .b-img { filter: grayscale(.3) brightness(.7); } | |
| .order-title { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); } | |
| .order-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-soft), transparent); } | |
| .order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; } | |
| .order-btn { | |
| display: flex; align-items: center; gap: 9px; | |
| padding: 10px 11px; | |
| border-radius: 10px; | |
| border: 1px solid var(--line-soft); | |
| background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.01)); | |
| color: var(--ink); text-align: left; | |
| transition: .18s; | |
| } | |
| .order-btn .o-ico { | |
| width: 30px; height: 30px; flex: none; border-radius: 8px; | |
| display: grid; place-items: center; | |
| background: rgba(215,181,109,.09); color: var(--gold-2); | |
| border: 1px solid rgba(215,181,109,.18); | |
| } | |
| .order-btn .o-ico .ico { font-size: 16px; } | |
| .order-btn .o-label { font-size: 11px; font-weight: 500; line-height: 1.2; } | |
| .order-btn .o-sub { display: block; font-size: 8px; color: var(--muted); letter-spacing: .06em; margin-top: 1px; } | |
| .order-btn:hover:not(:disabled) { border-color: rgba(215,181,109,.4); background: rgba(215,181,109,.08); transform: translateY(-1px); } | |
| .order-btn:disabled { opacity: .35; cursor: not-allowed; } | |
| .order-btn.danger:hover:not(:disabled) { border-color: rgba(208,90,76,.5); background: rgba(208,90,76,.08); } | |
| .order-btn.danger .o-ico { background: rgba(208,90,76,.1); color: #e08a7c; border-color: rgba(208,90,76,.25); } | |
| .target-panel { | |
| border: 1px solid var(--line-soft); border-radius: 11px; | |
| background: rgba(0,0,0,.18); | |
| padding: 9px 9px 7px; | |
| animation: panel-in .25s ease; | |
| } | |
| @keyframes panel-in { from { opacity: 0; transform: translateY(-4px); } } | |
| .target-head { display: flex; align-items: center; justify-content: space-between; padding: 0 3px 6px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); } | |
| .target-head button { border: 0; background: none; color: var(--muted); font-size: 14px; line-height: 1; padding: 0 2px; } | |
| .target-head button:hover { color: var(--ink); } | |
| .target-row { | |
| display: flex; align-items: center; gap: 9px; width: 100%; | |
| padding: 8px 9px; border-radius: 8px; | |
| border: 1px solid transparent; background: transparent; | |
| color: var(--ink-dim); text-align: left; font-size: 11px; | |
| } | |
| .target-row + .target-row { margin-top: 2px; } | |
| .target-row:hover { background: rgba(255,255,255,.04); border-color: var(--line-soft); } | |
| .target-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fc); flex: none; box-shadow: 0 0 7px color-mix(in srgb, var(--fc) 70%, transparent); } | |
| .target-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } | |
| .target-name small { display: block; font-size: 8px; color: var(--muted); letter-spacing: .06em; } | |
| .target-army { font-size: 9.5px; color: var(--muted); font-variant-numeric: tabular-nums; } | |
| .target-army b { color: var(--gold-2); font-weight: 600; } | |
| .target-row .ico { font-size: 13px; color: var(--gold); } | |
| .target-empty { padding: 8px 6px 9px; font-size: 10px; color: var(--muted); line-height: 1.5; text-align: center; } | |
| .forecast { margin-top: 4px; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.025); } | |
| .forecast-top { display: flex; align-items: center; justify-content: space-between; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); } | |
| .forecast-top b { font-family: var(--ff-serif); font-size: 11px; letter-spacing: .08em; } | |
| .forecast-top b.great { color: var(--good); } | |
| .forecast-top b.good { color: #a8c98a; } | |
| .forecast-top b.warn { color: var(--gold-2); } | |
| .forecast-top b.bad { color: var(--danger); } | |
| .forecast-bar { position: relative; height: 6px; margin-top: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; } | |
| .forecast-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7c5a28, var(--gold-2)); transition: width .25s; } | |
| .forecast-bar i.great { background: linear-gradient(90deg, #3f7c53, #8fd6a3); } | |
| .forecast-bar i.bad { background: linear-gradient(90deg, #7c2f28, #e09082); } | |
| .forecast-meta { display: flex; justify-content: space-between; margin-top: 4px; font-size: 8.5px; color: var(--muted); } | |
| .forecast-meta b { color: var(--ink-dim); font-weight: 500; } | |
| .empty-state { padding: 30px 18px; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.6; } | |
| .empty-state .ico { font-size: 28px; color: rgba(215,181,109,.4); display: block; margin: 0 auto 8px; } | |
| /* ═══ MODALS ═════════════════════════════════════════════════════════════ */ | |
| .modal-root { position: fixed; inset: 0; z-index: 100; display: none; } | |
| .modal-root.open { display: block; } | |
| .modal-backdrop { | |
| position: absolute; inset: 0; | |
| background: rgba(3, 5, 9, .76); | |
| backdrop-filter: blur(8px); | |
| animation: fade-in .25s ease; | |
| } | |
| @keyframes fade-in { from { opacity: 0; } } | |
| .modal-wrap { | |
| position: absolute; inset: 0; | |
| display: grid; place-items: center; | |
| padding: 22px; | |
| overflow-y: auto; | |
| } | |
| .modal { | |
| position: relative; | |
| width: min(880px, 100%); | |
| max-height: min(90vh, 900px); | |
| overflow-y: auto; | |
| border-radius: 20px; | |
| border: 1px solid rgba(215,181,109,.28); | |
| background: linear-gradient(180deg, #151d29, #0d121a 65%, #0a0e15); | |
| box-shadow: 0 40px 120px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); | |
| animation: modal-in .32s cubic-bezier(.2,.8,.2,1); | |
| } | |
| @keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.985); } } | |
| .modal.small { width: min(560px, 100%); } | |
| .modal.medium { width: min(700px, 100%); } | |
| .modal-close { | |
| position: absolute; top: 13px; right: 13px; z-index: 6; | |
| width: 34px; height: 34px; border-radius: 50%; | |
| display: grid; place-items: center; | |
| border: 1px solid rgba(255,255,255,.16); | |
| background: rgba(5,8,12,.6); color: var(--ink-dim); | |
| backdrop-filter: blur(6px); | |
| } | |
| .modal-close:hover { color: var(--ink); border-color: rgba(215,181,109,.5); background: rgba(5,8,12,.85); } | |
| .modal-close .ico { font-size: 15px; } | |
| .modal-art { | |
| position: relative; height: 190px; | |
| background-size: cover; background-position: center; | |
| border-bottom: 1px solid rgba(215,181,109,.18); | |
| } | |
| .modal-art::after { | |
| content: ''; position: absolute; inset: 0; | |
| background: linear-gradient(180deg, rgba(7,10,15,.12) 0%, rgba(7,10,15,.35) 55%, rgba(13,18,26,.97) 100%); | |
| } | |
| .modal-art .art-title { position: absolute; left: 26px; right: 26px; bottom: 16px; z-index: 2; } | |
| .modal-art .art-title .eyebrow { font-size: 8px; } | |
| .modal-art .art-title h2 { margin: 4px 0 0; font-family: var(--ff-serif); font-size: 25px; font-weight: 600; letter-spacing: .06em; color: #f7eedb; text-shadow: 0 2px 18px rgba(0,0,0,.8); } | |
| .modal-art .art-title p { margin: 3px 0 0; font-size: 11px; color: var(--ink-dim); } | |
| .modal-body { padding: 22px 26px 24px; } | |
| .modal-body > p.lede { margin: 0 0 18px; font-size: 12px; color: var(--ink-dim); line-height: 1.7; } | |
| .modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 0 26px 24px; } | |
| .modal-actions .spacer { flex: 1; } | |
| .modal-section-title { display: flex; align-items: center; gap: 9px; margin: 20px 0 10px; font-family: var(--ff-serif); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); } | |
| .modal-section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); } | |
| /* recruit / attack quantity */ | |
| .qty-box { display: grid; grid-template-columns: 1fr 118px; gap: 20px; align-items: center; } | |
| .qty-slider { width: 100%; accent-color: var(--gold); } | |
| .qty-stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.3); overflow: hidden; } | |
| .qty-stepper button { width: 36px; height: 46px; border: 0; background: none; color: var(--gold-2); font-size: 18px; } | |
| .qty-stepper button:hover { background: rgba(215,181,109,.1); } | |
| .qty-value { font-family: var(--ff-serif); font-size: 23px; width: 46px; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; } | |
| .qty-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 10.5px; color: var(--muted); flex-wrap: wrap; } | |
| .cost-line { display: flex; align-items: center; gap: 12px; } | |
| .cost-item { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-dim); } | |
| .cost-item .ico { font-size: 14px; color: var(--gold); } | |
| .cost-item.lack { color: var(--danger); } | |
| .cost-item.lack .ico { color: var(--danger); } | |
| .qty-max { border: 0; background: none; color: var(--gold); font-size: 9px; letter-spacing: .1em; text-decoration: underline; text-underline-offset: 2px; } | |
| .confirm-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(255,255,255,.025); margin-top: 16px; } | |
| .confirm-row .ico { font-size: 20px; color: var(--gold); } | |
| .confirm-row .cr-label { font-size: 10px; color: var(--muted); letter-spacing: .08em; } | |
| .confirm-row .cr-value { font-size: 12px; color: var(--ink); } | |
| /* battle modal */ | |
| .battle-sides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 8px 0 18px; } | |
| .battle-side { border: 1px solid var(--line-soft); border-radius: 13px; padding: 13px 15px; background: rgba(255,255,255,.02); } | |
| .battle-side .bs-role { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); } | |
| .battle-side .bs-name { font-family: var(--ff-serif); font-size: 15px; color: var(--ink); margin-top: 2px; } | |
| .battle-side .bs-owner { font-size: 9.5px; color: var(--muted); } | |
| .battle-side .bs-units { display: flex; align-items: baseline; gap: 5px; margin-top: 8px; font-family: var(--ff-serif); font-size: 26px; color: var(--gold-2); } | |
| .battle-side .bs-units small { font-family: var(--ff-body); font-size: 9px; color: var(--muted); letter-spacing: .1em; } | |
| .battle-vs { font-family: var(--ff-serif); font-size: 12px; letter-spacing: .16em; color: rgba(215,181,109,.55); } | |
| .battle-side.defender { text-align: right; } | |
| .battle-side.defender .bs-units { justify-content: flex-end; } | |
| .outcome-banner { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; margin-bottom: 15px; border: 1px solid; } | |
| .outcome-banner.win { background: rgba(76,138,92,.12); border-color: rgba(111,191,135,.35); } | |
| .outcome-banner.lose { background: rgba(160,60,48,.12); border-color: rgba(208,90,76,.35); } | |
| .outcome-banner .ob-ico { font-size: 28px; } | |
| .outcome-banner.win .ob-ico { color: var(--good); } | |
| .outcome-banner.lose .ob-ico { color: var(--danger); } | |
| .outcome-banner h3 { margin: 0; font-family: var(--ff-serif); font-size: 17px; letter-spacing: .06em; } | |
| .outcome-banner p { margin: 2px 0 0; font-size: 11px; color: var(--ink-dim); } | |
| .casualties { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 14px 0; } | |
| .cas-cell { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; background: rgba(0,0,0,.18); } | |
| .cas-cell .ck { font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); } | |
| .cas-cell .cv { font-family: var(--ff-serif); font-size: 21px; color: var(--danger); } | |
| .cas-cell .cv small { font-family: var(--ff-body); font-size: 9px; color: var(--muted); } | |
| .battle-log { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(215,181,109,.25); } | |
| .battle-log li { position: relative; padding: 4px 0 4px 16px; font-size: 11px; color: var(--ink-dim); line-height: 1.55; } | |
| .battle-log li::before { content: ''; position: absolute; left: -3px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: rgba(215,181,109,.5); } | |
| .battle-log li:last-child { color: var(--gold-2); } | |
| /* build modal */ | |
| .build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; } | |
| .build-card { | |
| position: relative; overflow: hidden; | |
| border: 1px solid var(--line-soft); border-radius: 14px; | |
| background: #0c1119; | |
| display: flex; flex-direction: column; | |
| transition: .2s; | |
| } | |
| .build-card:hover { border-color: rgba(215,181,109,.4); transform: translateY(-2px); } | |
| .build-card .bc-img { height: 132px; background-size: cover; background-position: center; position: relative; } | |
| .build-card .bc-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #0c1119 100%); } | |
| .build-card .bc-body { padding: 0 14px 14px; display: flex; flex-direction: column; flex: 1; } | |
| .build-card h3 { margin: 0; font-family: var(--ff-serif); font-size: 15px; letter-spacing: .05em; color: var(--ink); } | |
| .build-card .bc-effect { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-top: 2px; } | |
| .build-card .bc-blurb { font-size: 10.5px; color: var(--muted); line-height: 1.55; margin: 7px 0 10px; flex: 1; } | |
| .build-card .bc-cost { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; } | |
| .build-card .bc-cost .cost-item { font-size: 10px; } | |
| .build-card.built { border-color: rgba(215,181,109,.55); } | |
| .build-card.built .bc-img { filter: saturate(1.05); } | |
| .build-card .bc-flag { | |
| position: absolute; top: 10px; left: 10px; z-index: 2; | |
| padding: 3px 8px; border-radius: 99px; | |
| background: rgba(8,12,18,.8); border: 1px solid rgba(215,181,109,.4); | |
| font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); | |
| } | |
| .build-card .btn { width: 100%; } | |
| /* diplomacy */ | |
| .diplo-list { display: flex; flex-direction: column; gap: 8px; } | |
| .diplo-row { | |
| display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; | |
| align-items: center; gap: 11px; | |
| padding: 11px 12px; | |
| border: 1px solid var(--line-soft); border-radius: 12px; | |
| background: rgba(255,255,255,.022); | |
| } | |
| .diplo-row .dr-crest { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--fc) 45%, transparent); background: color-mix(in srgb, var(--fc) 10%, #0d131c); color: var(--fc); } | |
| .diplo-row .dr-crest .ico { font-size: 21px; } | |
| .diplo-row .dr-name { font-family: var(--ff-serif); font-size: 13px; color: var(--ink); } | |
| .diplo-row .dr-meta { font-size: 9px; color: var(--muted); margin-top: 1px; } | |
| .diplo-row .dr-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; } | |
| .diplo-btn { | |
| padding: 5px 8px; border-radius: 7px; border: 1px solid var(--line-soft); | |
| background: rgba(255,255,255,.03); color: var(--ink-dim); | |
| font-size: 9px; letter-spacing: .06em; | |
| } | |
| .diplo-btn:hover:not(:disabled) { border-color: var(--line); color: var(--gold-2); background: rgba(215,181,109,.08); } | |
| .diplo-btn:disabled { opacity: .3; cursor: not-allowed; } | |
| .diplo-btn.gold { border-color: rgba(215,181,109,.4); color: var(--gold-2); } | |
| .trade-box { margin-top: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.2); } | |
| .trade-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 10px; align-items: end; } | |
| .trade-row label { display: flex; flex-direction: column; gap: 4px; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); } | |
| .trade-row select, .trade-row input { width: 100%; padding: 8px 9px; border-radius: 8px; background: #0b1018; border: 1px solid var(--line-soft); color: var(--ink); font-size: 11px; outline: none; } | |
| .trade-row select:focus, .trade-row input:focus { border-color: rgba(215,181,109,.5); } | |
| .trade-arrow { color: var(--gold); font-size: 16px; padding-bottom: 8px; } | |
| /* chronicle */ | |
| .log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; } | |
| .log-item { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 11.5px; color: var(--ink-dim); } | |
| .log-item .li-turn { font-family: var(--ff-serif); font-size: 9px; letter-spacing: .12em; color: var(--muted); padding-top: 2px; } | |
| .log-item.kind-victory .li-text { color: #a8d6b3; } | |
| .log-item.kind-defeat .li-text, .log-item.kind-critical .li-text { color: #e29a8e; } | |
| .log-item.kind-diplomacy .li-text { color: #a8c6dd; } | |
| .log-item.kind-story .li-text { color: var(--gold-2); font-style: italic; } | |
| .log-item.kind-player .li-text { color: var(--ink); } | |
| /* turn report */ | |
| .report-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; } | |
| .report-panel { border: 1px solid var(--line-soft); border-radius: 12px; padding: 13px 14px; background: rgba(255,255,255,.02); } | |
| .report-panel h4 { margin: 0 0 9px; font-family: var(--ff-serif); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); } | |
| .report-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 11px; color: var(--ink-dim); } | |
| .report-line b { font-variant-numeric: tabular-nums; } | |
| .report-line .pos { color: var(--good); } | |
| .report-line .neg { color: var(--danger); } | |
| .report-events { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 10.5px; color: var(--ink-dim); } | |
| .report-events li { display: flex; gap: 7px; line-height: 1.5; } | |
| .report-events .ico { color: var(--gold); font-size: 12px; margin-top: 2px; flex: none; } | |
| .report-quiet { font-size: 10.5px; color: var(--muted); font-style: italic; } | |
| /* game over */ | |
| .gameover { | |
| position: fixed; inset: 0; z-index: 200; | |
| display: none; flex-direction: column; align-items: center; justify-content: center; | |
| padding: 30px; text-align: center; | |
| } | |
| .gameover.open { display: flex; } | |
| .gameover-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(.8) brightness(.42); } | |
| .gameover-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, transparent, rgba(4,6,10,.9)); } | |
| .gameover-inner { position: relative; z-index: 2; max-width: 640px; animation: modal-in .6s cubic-bezier(.2,.8,.2,1); } | |
| .gameover .eyebrow { color: var(--gold); } | |
| .gameover h1 { margin: 8px 0 4px; font-family: var(--ff-display); font-size: clamp(46px, 8vw, 96px); letter-spacing: .12em; text-indent: .12em; background: linear-gradient(178deg, #fff6d8, #e6c477 45%, #9a7333); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 8px 30px rgba(214,170,88,.35)); } | |
| .gameover h2 { margin: 0 0 8px; font-family: 'Noto Serif TC', serif; font-size: 22px; letter-spacing: .3em; color: var(--ink); } | |
| .gameover p { margin: 0 auto 24px; max-width: 460px; font-size: 12.5px; line-height: 1.8; color: var(--ink-dim); } | |
| .gameover-stats { display: flex; justify-content: center; gap: 26px; margin-bottom: 26px; flex-wrap: wrap; } | |
| .gameover-stats div { text-align: center; } | |
| .gameover-stats b { display: block; font-family: var(--ff-serif); font-size: 26px; color: var(--gold-2); } | |
| .gameover-stats span { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); } | |
| .gameover .btn { margin: 0 5px; } | |
| /* toasts */ | |
| .toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; } | |
| .toast { | |
| display: flex; align-items: center; gap: 9px; | |
| padding: 10px 14px; | |
| border-radius: 10px; | |
| background: rgba(10,14,20,.96); | |
| border: 1px solid var(--line); | |
| box-shadow: 0 14px 40px rgba(0,0,0,.55); | |
| font-size: 11.5px; color: var(--ink-dim); | |
| max-width: 340px; | |
| animation: toast-in .3s cubic-bezier(.2,.8,.2,1); | |
| } | |
| .toast .ico { color: var(--gold); font-size: 16px; flex: none; } | |
| .toast.good { border-color: rgba(111,191,135,.45); } | |
| .toast.good .ico { color: var(--good); } | |
| .toast.bad { border-color: rgba(208,90,76,.45); } | |
| .toast.bad .ico { color: var(--danger); } | |
| @keyframes toast-in { from { opacity: 0; transform: translateX(20px); } } | |
| .toast.out { animation: toast-out .25s ease forwards; } | |
| @keyframes toast-out { to { opacity: 0; transform: translateX(20px); } } | |
| /* ambience for setup/game */ | |
| #screen-setup::after, #screen-game::after { | |
| content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; | |
| opacity: .35; | |
| background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"); | |
| mix-blend-mode: overlay; | |
| } | |
| #screen-setup > *, #screen-game > * { position: relative; z-index: 1; } | |
| /* ═══ RESPONSIVE ═════════════════════════════════════════════════════════ */ | |
| @media (max-width: 1320px) { | |
| .game-grid { grid-template-columns: 264px minmax(0, 1fr) 318px; } | |
| .res-chip small { display: none; } | |
| .legend .lg span { display: none; } | |
| } | |
| @media (max-width: 1150px) { | |
| .setup-body { grid-template-columns: 1fr 1.2fr; } | |
| .setup-identity { grid-column: 1 / -1; display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; } | |
| .setup-identity .section-label { grid-column: 1 / -1; margin-bottom: 0; } | |
| .setup-identity .identity-card { grid-row: span 2; } | |
| .setup-identity .identity-card .identity-portrait { height: 200px; } | |
| .setup-identity .setup-hint { grid-column: 2; } | |
| .game-grid { grid-template-columns: 232px minmax(0, 1fr) 292px; } | |
| .stat-cell .stat-v { font-size: 16px; } | |
| .legend { display: none; } | |
| } | |
| @media (max-width: 980px) { | |
| body { overflow: hidden; } | |
| .menu-grid { grid-template-columns: 1fr; padding: 8vh 8vw; } | |
| .menu-portrait { display: none; } | |
| .menu-copy { max-width: 560px; } | |
| .menu-foot { padding-bottom: 18px; } | |
| .game-grid { grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; } | |
| .side-right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; max-height: 280px; overflow-y: auto; } | |
| .side-right .council { display: contents; } | |
| .side-right .council-head { grid-column: 1 / -1; } | |
| #screen-setup { padding: 16px; } | |
| .setup-head .steps { display: none; } | |
| } | |
| @media (max-width: 760px) { | |
| .topbar { height: auto; flex-wrap: wrap; padding: 10px 12px; gap: 9px; } | |
| .brand-word { font-size: 14px; } | |
| .resources { order: 3; width: 100%; justify-content: space-between; } | |
| .res-chip { flex: 1; justify-content: center; padding: 6px; } | |
| .turn-cluster { gap: 9px; } | |
| .btn-end { padding: 8px 11px; } | |
| .game-grid { display: flex; flex-direction: column; overflow-y: auto; padding: 10px; height: auto; } | |
| .side-left { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; } | |
| .sovereign-card { min-height: 120px; grid-column: 1 / -1; } | |
| .relations-panel { display: none; } | |
| .map-panel { min-height: 66vh; } | |
| .side-right { display: flex; flex-direction: column; max-height: none; overflow: visible; } | |
| .map-stage { min-height: 380px; } | |
| .setup-body { grid-template-columns: 1fr; } | |
| .setup-identity { display: block; } | |
| .setup-identity .identity-card { margin-bottom: 12px; } | |
| .faction-options { grid-template-columns: 1fr 1fr; } | |
| .map-options { flex-direction: row; } | |
| .map-card { min-height: 150px; } | |
| .build-grid { grid-template-columns: 1fr; } | |
| .build-card { flex-direction: row; } | |
| .build-card .bc-img { width: 120px; height: auto; flex: none; } | |
| .modal-art { height: 150px; } | |
| .qty-box { grid-template-columns: 1fr; } | |
| .report-grid { grid-template-columns: 1fr; } | |
| .battle-sides { gap: 8px; } | |
| .diplo-row { grid-template-columns: 34px 1fr; } | |
| .diplo-row .dr-actions { grid-column: 2; justify-content: flex-start; } | |
| } | |
| @media (max-width: 520px) { | |
| .menu-actions .btn { min-width: 100%; } | |
| .menu-grid { padding: 6vh 7vw; } | |
| .menu-facts { gap: 8px; font-size: 8px; } | |
| .faction-options { grid-template-columns: 1fr; } | |
| .map-options { flex-direction: column; } | |
| .side-left { display: flex; flex-direction: column; } | |
| .detail-grid { grid-template-columns: 1fr 1fr; } | |
| .battle-sides { grid-template-columns: 1fr; } | |
| .battle-side.defender { text-align: left; } | |
| .battle-side.defender .bs-units { justify-content: flex-start; } | |
| .battle-vs { text-align: center; } | |
| .trade-row { grid-template-columns: 1fr; } | |
| .trade-arrow { text-align: center; padding: 0; } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| *, *::before, *::after { animation-duration: .001ms ; transition-duration: .001ms ; } | |
| } | |
| /* ═══ small additions & fixes ═══════════════════════════════════════════ */ | |
| #screen-setup > :not(.setup-bg) { position: relative; z-index: 1; } | |
| #screen-setup > .setup-bg { position: absolute; z-index: 0; } | |
| #screen-game > * { position: relative; z-index: 1; } | |
| .res-mini { | |
| display: inline-flex; align-items: center; gap: 3px; | |
| font-size: 10px; color: var(--ink-dim); font-variant-numeric: tabular-nums; | |
| } | |
| .res-mini .ico { font-size: 12px; color: var(--rc); } | |
| .res-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 3px; } | |
| .res-row > span { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-variant-numeric: tabular-nums; } | |
| .res-row .ico { font-size: 13px; } | |
| .res-upkeep { margin-left: auto; font-size: 9px; color: var(--muted); letter-spacing: .06em; } | |
| .ico-wrap { color: var(--gold); font-size: 19px; display: inline-flex; } | |
| .confirm-row .spacer { flex: 1; } | |
| .b-slot:disabled { cursor: default; } | |
| .b-slot.built:disabled { opacity: 1; } | |
| .build-card.focused { box-shadow: 0 0 0 1px var(--gold), 0 16px 40px rgba(0,0,0,.45); } | |
| @keyframes end-pulse { | |
| 0%, 100% { box-shadow: 0 10px 26px rgba(190,147,70,.22), inset 0 1px 0 rgba(255,255,255,.55); } | |
| 50% { box-shadow: 0 0 0 4px rgba(215,181,109,.16), 0 14px 34px rgba(214,170,88,.45), inset 0 1px 0 rgba(255,255,255,.7); } | |
| } | |
| .map-card .map-thumb svg { filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); } | |
| .map-card .map-thumb { background-size: cover; background-position: center; } | |
| /* make the setup screen breathe on very tall displays */ | |
| @media (min-height: 900px) and (min-width: 1151px) { | |
| .setup-body { margin-top: 28px; } | |
| .map-card { min-height: 200px; } | |
| .faction-options { gap: 13px; } | |
| .faction-card { padding: 16px 15px 14px; } | |
| .identity-portrait { height: 190px; } | |
| } | |
| /* subtle gold sheen on panels */ | |
| .panel::before, .council-hero::before, .terr-banner::before { | |
| pointer-events: none; | |
| } | |
| .panel { position: relative; } | |
| .panel::before { | |
| content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; | |
| background: linear-gradient(120deg, rgba(255,255,255,.045), transparent 30%); opacity: .5; | |
| } | |