#screen-login, #characterMenu {
  position: absolute; inset: 0; isolation: isolate; overflow: auto; scrollbar-width: thin;
  color: #f5e7cc; background: #10161a; font: 16px/1.3 "Barlow Semi Condensed", "Anuphan", sans-serif;
  --brass: #c19c63; --pale: #ffdf9d; --line: #80613c;
}
#screen-login { z-index: 120; background: #152327; }
#characterMenu { z-index: 65; }
#screen-login[hidden], #characterMenu[hidden], #screen-login [hidden], #characterDialog [hidden], #gameDialog [hidden], #stashSection[hidden] { display: none !important; }
#app:has(#screen-login:not([hidden]), #characterMenu:not([hidden]), #selectScreen:not([hidden])) > .side { visibility: hidden; }
#phone:has(#screen-login:not([hidden]), #characterMenu:not([hidden]), #selectScreen:not([hidden])) { overflow: clip; }
:is(#screen-login, #characterMenu)::after {
  content: ""; pointer-events: none; position: absolute; inset: 6px; z-index: 2;
  border: 1px solid #d4aa614a; outline: 1px solid #090d10; outline-offset: 2px;
}
.loginLandscape {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(20%);
  pointer-events: none; background: #10161a;
}
#screen-login::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: #2b494a; mix-blend-mode: color; opacity: .8;
}
.loginContent {
  min-height: 100%; padding: 42px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(15px, 2.8dvh, 26px);
}
#screen-login #loginInstallHelp form button {
  min-height: 44px; padding: 8px 20px; color: #2a1e10;
  border: 3px double #563c22; background: linear-gradient(#ffe1a0, #c8944c);
  box-shadow: 0 2px 12px #080b0ccc; font: 700 15px/1.3 "Anuphan", sans-serif;
}
#loginInstallHelp {
  width: min(380px, calc(100vw - 28px)); margin: auto; padding: 18px;
  border: 1px solid #bd985f; color: #ffeac6; background: #152327;
  text-align: center; font: 500 16px/1.45 var(--body);
}
#loginInstallHelp::backdrop { background: #050a10ba; }
#loginInstallHelp h2 { font-size: 20px; }
#loginInstallHelp p { margin: 10px 0 15px; }
.titleMark, .rosterHead { text-align: center; }
.rosterHead h1, :is(#characterDialog, #gameDialog) h2 {
  margin: 0; color: #ffe9b6; font: 700 clamp(31px,5.8dvh,56px)/1.03 "Cinzel", Georgia, serif;
  text-shadow: 0 2px #5a321c, 0 4px 2px #0b0d11, 0 0 22px #1a1111;
}
.titleMark { width: min(87%, 385px); }
.titleMark img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 9px #080c16a8); }
.rosterHead::after { content: ""; display: block; margin: 12px auto 0; height: 2px; width: 65%; background: linear-gradient(90deg,transparent,#bd8a43,#f6cb78,#bd8a43,transparent); }
#screen-login button, #characterMenu button, #characterDialog button { cursor: pointer; color: inherit; }
#screen-login .devEntry { position: absolute; top: 13px; right: 14px; z-index: 3; padding: 5px 10px; color: #ddcaa3; background: #161c20dd; border: 1px solid #806b49; font: 600 12px/1.3 "Barlow Semi Condensed",sans-serif; }
.loginLanguage {
  display: flex; align-items: center; width: fit-content; margin: 13px 0 0 auto;
  padding: 0 3px; border: 1px solid #806b49; background: #111c24ed; color: #ac9268;
}
#screen-login .loginLanguage button { border: 0; min-width: 46px; min-height: 30px; padding: 4px 8px; color: #d6c7ac; background: transparent; font: 600 13px/1.3 "Anuphan",sans-serif; }
#screen-login .loginLanguage button[aria-pressed="true"] { color: #ffebbc; box-shadow: inset 0 -2px #dcaf65; }
#screen-login[data-locale="th"] .loginCard button { font-family: "Anuphan",sans-serif; }
.loginCard, .rosterLedger { width: calc(100% - 42px); max-width: 385px; margin: auto auto 0; position: relative; }
.loginCard { margin: 0; max-width: 340px; }
#screen-login .loginGuest, #characterDialog .characterPrimary, #gameDialog [value="accept"] {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px; color: #fff2cb;
  border: 3px double #d6a85e; background: linear-gradient(#8b3b29,#62231e 70%,#4a201a);
  box-shadow: 0 2px 0 #110d0c, inset 0 0 15px #421710; font: 700 18px/1.2 "Cinzel",Georgia,serif; text-shadow: 0 1px #351511;
}
.loginGuest::before, .loginGuest::after { content: "◆"; color: #d5ab68; font-size: 8px; vertical-align: middle; margin: 0 14px; }
.loginTabs { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0 0; }
.gmailMark { display: inline-block; width: 17px; height: 13px; vertical-align: -2px; margin-inline-end: 7px; }
#loginGmailPanel button:disabled { opacity: 1; }
.loginTabs button, #loginSubmit, #loginGmailPanel button, #characterDialog .dialogCancel, #gameDialog [value="cancel"] {
  border: 1px solid #6b5c47; background: #162023; color: #c2c3aa; min-height: 35px; padding: 5px 8px; font: 600 13px/1.2 "Cinzel",Georgia,serif;
}
.loginTabs button[aria-selected="true"] { color: #ffe3ac; background: linear-gradient(#3e4034,#232921); border-bottom: 2px solid #e0b973; }
#loginIdPanel, #loginGmailPanel { display: grid; padding: 10px 12px; gap: 6px; background: #101a1cee; border: 1px solid #6d6246; border-top: 0; }
#loginIdPanel label { color: #dfd2b6; display: grid; gap: 2px; font-size: 13px; }
#loginIdPanel input:not([type="checkbox"]), #characterName, #deleteConfirmation, #gameDialog input { width: 100%; padding: 6px 10px; border: 1px solid #79654c; background: #080f12; color: #ffebc2; font: 16px/1.3 "Barlow Semi Condensed","Anuphan",sans-serif; }
#loginIdPanel .loginRemember { display: flex; align-items: center; gap: 7px; min-height: 23px; cursor: pointer; }
#loginRemember { accent-color: #d6a85e; }
#loginGmailPanel button:disabled { cursor: default; color: #b8b698; border: 0; background: none; }
#loginSubmit { background: #343b30; color: #ffdc94; }
#loginMode, #characterMenu .characterExit { border: 0; color: #decaa6; background: none; padding: 6px 12px; font: 14px/1.3 "Barlow Semi Condensed",sans-serif; }
#loginMessage { margin: 0; color: #ffce99; background: #11191d; font-size: 14px; }
#loginMessage:not(:empty) { padding: 8px; }
:is(#screen-login,#characterMenu,#characterDialog,#gameDialog) :focus-visible { outline: 2px solid #ffe5a1; outline-offset: 2px; }
:is(.loginGuest,.characterPrimary,.characterSlot):hover { filter: brightness(1.12); }
#characterMenu { background: var(--clouds) 0 0 / 360px 360px repeat, radial-gradient(ellipse at 50% 16%,#2b3d3b,#152327 56%,#0c1215); }
.characterMenuBody { min-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 19px; padding: clamp(23px,4.1dvh,38px) 18px 20px; }
.rosterHead { z-index: 1; }
.rosterIdentity { color: #d4b783; font: 600 13px/1.4 "Barlow Semi Condensed",sans-serif; letter-spacing: .08em; margin-bottom: 6px; }
.rosterHead h1 { font-size: clamp(28px,4.8dvh,43px); }
html[data-lang="th"] #characterMenuTitle {
  font-family: "Anuphan", "Leelawadee UI", sans-serif;
  letter-spacing: normal;
}
.rosterLedger { width: 100%; max-width: 420px; margin-top: 0; }
.rosterRule { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 3px 8px; color: #c4b181; font: 600 12px/1.4 "Cinzel",Georgia,serif; }
.characterSlots { display: grid; gap: 10px; }
.guestImport { padding: 8px 10px; margin-bottom: 10px; border: 1px solid #786745; background: #182726; color: #eddbb8; font-size: 14px; }
.guestImport[hidden], .guestImportError:empty { display: none; }
.guestImportChoices { display: grid; gap: 6px; }
#characterMenu .guestImportChoices button {
  margin-top: 5px; min-height: 32px; padding: 4px 9px; text-align: left; overflow-wrap: anywhere;
  border: 1px solid #8b7149; background: #393728; color: #ffe0a0;
}
.guestImportError { margin-top: 5px; color: #f0bda7; }
.rosterRow { display: flex; min-width: 0; border: 1px solid #86724e; background: linear-gradient(100deg,#293831,#192628 72%,#122023); box-shadow: inset 3px 0 #ba955a, 0 2px #0a0e0f; }
#characterMenu .characterSlot { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; padding: 7px 10px; text-align: left; border: 0; color: #fff0ce; background: none; }
.characterSlot .slotEmblem { flex: none; width: 47px; height: 47px; display: grid; place-items: center; background: #151e20; border: 1px solid #87704e; color: #dab77a; font: 24px Georgia,serif; }
.slotEmblem img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.characterSlot b { display: block; font: 700 15px/1.3 "Cinzel","Anuphan",serif; overflow-wrap: anywhere; }
.characterSlot small { display: block; color: #bcbdad; font-size: 13px; }
.rosterProfile {
  position: relative;
  --class-accent: color-mix(in srgb, var(--class-color), #b59967 58%);
  border-color: #7c6a4a;
  background: var(--clouds) center / 300px repeat, linear-gradient(105deg,#233533,#132123 78%);
  box-shadow: inset 0 2px var(--class-accent), 0 3px #080f12;
}
#characterMenu .rosterProfile .characterSlot {
  display: grid; grid-template-columns: clamp(78px, 29%, 116px) minmax(0,1fr);
  align-items: center; gap: 7px 13px; padding: 9px 11px 8px;
  line-height: 1.2;
}
.rosterProfile .slotEmblem {
  width: 100%; height: auto; aspect-ratio: 1; overflow: hidden;
  border: 3px double var(--class-accent); background: #10191c;
}
.profileInfo { display: block; min-width: 0; }
.rosterProfile .profileInfo b { font-size: clamp(16px, 2.2dvh, 20px); color: #fff0cc; }
.rosterProfile .profileClass { margin: 1px 0; color: #e9c88e; font-weight: 600; }
.profileStats {
  display: flex; flex-wrap: wrap; gap: 5px 14px;
  margin-top: 9px; line-height: 1.2;
}
.profileStats > span { display: flex; align-items: baseline; gap: 5px; }
.profileStats small { margin-top: 0; font-size: 11px; }
.profileStats strong { font-size: 14px; color: #fff0ca; overflow-wrap: anywhere; }
.profileEnter {
  grid-column: 1 / -1; margin-inline-end: 50px; padding: 7px 10px;
  border: 1px solid #8b7149; background: linear-gradient(#3f3b2d,#2b2c24);
  text-align: center; color: #ffe0a0; font-weight: 600; font-size: 13px; line-height: 1.3;
}
#characterMenu .rosterProfile .characterDelete {
  position: absolute; inset: auto 11px 8px auto; height: 33px; width: 42px; padding: 0;
  display: grid; place-items: center; font: 700 23px/1 sans-serif;
  border: 1px solid #aa534b; background: #342123; color: #ff8780;
}
#characterMenu .rosterProfile .characterDelete:hover { background: #482c28; }
.rosterRow:has(.locked) { border-color: #4a534d; box-shadow: inset 3px 0 #596254; background: #142023; }
.characterSlot.locked .slotLock {
  border-color: #655c43; background: #152023 url('assets/ui/slot-lock.png') center / 26px 26px no-repeat;
  image-rendering: pixelated;
}
#characterMenu .characterSlot.locked { color: #b8bcaa; }
#characterMenu .characterExit { display: block; margin: 9px auto 0; }
#characterDialog { width: min(calc(100vw - 38px), 360px, max(280px, 49dvh)); max-height: 90dvh; overflow: auto; margin: auto; text-align: center; padding: 22px 18px 18px; color: #f5e6c8; background: linear-gradient(#263330,#152124 65%,#111a1d); border: 4px double #bf985c; box-shadow: 0 12px 40px #000b; }
#gameDialog {
  width: min(370px, calc(100vw - 28px)); max-height: calc(100dvh - 24px); margin: auto;
  padding: 20px 16px 16px; overflow: auto; text-align: center; color: #f5e6c8;
  border: 4px double #bf985c; background: var(--corners), var(--silk); box-shadow: 0 12px 40px #000b;
}
:is(#characterDialog,#gameDialog)::backdrop { background: #050a10ba; }
:is(#characterDialog,#gameDialog) h2 { font-size: 24px; overflow-wrap: anywhere; }
#gameDialog input { margin-top: 12px; min-height: 42px; }
#gameDialog .dialogDetail { white-space: pre-line; }
.dialogPortrait { width: 76px; height: 76px; object-fit: contain; image-rendering: pixelated; background: radial-gradient(#454235,#1e2826); border: 3px double #a68855; margin-bottom: 8px; }
.dialogDetail { font: 16px/1.35 "Barlow Semi Condensed","Anuphan",sans-serif; margin: 8px 0 13px; color: #deceb0; }
.characterNameForm { text-align: left; }
.characterNameForm label { font-size: 14px; }
#characterName, #deleteConfirmation { margin-top: 4px; min-height: 40px; }
.deleteField { margin: 8px 0 12px; }
.characterError { margin: 5px 0 0; color: #ffc9b1; font-size: 14px; }
.characterError:empty { display: none; }
.characterActions { display: flex; gap: 8px; margin-top: 15px; }
#characterDialog .characterPrimary, #gameDialog [value="accept"] { flex: 1; min-height: 40px; font-size: 13px; }
#characterDialog .dialogCancel, #gameDialog [value="cancel"] { padding-inline: 13px; }
html[data-lang="th"] :is(#characterDialog,#gameDialog) :is(h2, button) {
  font-family: "Anuphan", "Leelawadee UI", sans-serif;
}
#characterDialog.naming {
  width: min(292px, calc(100vw - 36px), max(240px, 43dvh));
  padding: clamp(16px, 3.6dvh, 30px) 20px 23px;
  background: var(--corners), var(--silk);
}
#characterDialog.naming .dialogPortrait {
  display: block; width: min(100%, clamp(96px, 27dvh, 200px)); height: auto; aspect-ratio: 1;
  margin: 0 auto 13px; border: 3px double #caa75c; box-shadow: 0 3px 12px #050b0c99;
}
#characterDialog.naming h2 { font-size: clamp(20px, 3.3dvh, 27px); }
#characterDialog.naming h2::after {
  content: ""; display: block; height: 1px; margin: 14px auto;
  width: 84%; background: var(--gilt);
}
.nameFieldHead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
#nameCount { color: #c6b489; font: 13px/1.2 "Barlow Semi Condensed", sans-serif; font-variant-numeric: tabular-nums; }
#characterDialog.naming .characterActions { display: grid; grid-template-columns: minmax(0, 1fr); }
#characterDialog.naming .dialogCancel { justify-self: center; min-height: 32px; padding: 4px 16px; border: 0; background: transparent; }
#characterDialog.naming.keyboardOpen {
  inset: auto; left: 50%;
  top: calc(var(--naming-visible-top) + var(--naming-visible-height) / 2);
  transform: translate(-50%, -50%);
  max-height: calc(var(--naming-visible-height) - 16px);
  margin: 0; padding: 9px 14px;
  overscroll-behavior: contain;
}
#characterDialog.naming.keyboardOpen .dialogPortrait {
  width: clamp(0px, calc(var(--naming-visible-height) - 220px), 60px);
  margin-bottom: 5px;
}
#characterDialog.naming.keyboardOpen h2 { font-size: 19px; }
#characterDialog.naming.keyboardOpen h2::after { margin-block: 6px; }
#characterDialog.naming.keyboardOpen .characterActions { gap: 4px; margin-top: 8px; }
.selFoot { gap: 8px; }
.selBack { padding: 0 14px; font: 700 12px var(--title, Georgia, serif); }
@media(max-height: 600px) {
  .loginContent { padding-block: 32px; }
  .titleMark { width: min(80%, 44dvh, 385px); }
  .characterMenuBody { padding-block: 14px 10px; gap: 12px; }
}
@media (max-width: 600px), (hover: none) and (pointer: coarse) {
  #screen-login :is(.titleMark, .loginCard, .devEntry) { zoom: .8; }
  .titleMark { width: min(69.6%, 385px); }
  .loginCard { width: calc(80% - 42px); }
  @media (max-height: 600px) {
    .titleMark { width: min(64%, 44dvh, 385px); }
  }
}
#panel.withStash :is(#doll, #eqStats, #eqDeep, #asvBtn, #bagBuy, #sellZone) { display: none !important; }
#stashSection { align-self: center; }
#stashSection .bayHead { margin-bottom: 5px; }
#panel.withStash .bayHead > span { display: inline; }
#stashGrid {
  position: relative;
  flex: none;
  background-color: #10191a;
  background-image: linear-gradient(to right, #705d343f 1px, transparent 1px), linear-gradient(to bottom, #705d343f 1px, transparent 1px);
  background-size: var(--c) var(--c);
  box-shadow: inset 0 0 0 1px #85693c;
}
#stashGrid .tile { position: absolute; touch-action: none; }
#stashGrid .tile.bagItem { background: color-mix(in srgb, var(--rc) 14%, #10191a); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rc) 62%, #10191a); }
#stashGrid .foot { position: absolute; pointer-events: none; background: #76e9a44f; border: 1px solid #76e9a4; }
#stashGrid .foot.bad { background: #ec686751; border-color: #ec6867; }


/* ---- install the game on your phone (user, 2026-11-25): a big glowing button under PLAY */
#screen-login .loginInstallBig {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 11px 14px; text-align: left; cursor: pointer;
  color: #eafffb; border: 1px solid #5fe3ea; border-radius: 4px; overflow: hidden;
  background: linear-gradient(180deg, #13464a, #0b2b2e); box-shadow: 0 0 0 1px #041214, 0 0 18px rgba(72, 221, 230, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
  animation: instGlow 2.4s ease-in-out infinite;
}
#screen-login .loginInstallBig[hidden] { display: none; }
#screen-login .loginInstallBig::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); animation: instShine 3.2s ease-in-out infinite; }
#screen-login .loginInstallBig .instIcon { flex: none; width: 34px; height: 34px; fill: none; stroke: #9ff6fa; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(72, 221, 230, .7)); }
#screen-login .loginInstallBig span { display: flex; flex-direction: column; }
#screen-login .loginInstallBig b { font: 700 17px/1.2 "Anuphan", var(--body), sans-serif; color: #fff; letter-spacing: .3px; }
#screen-login .loginInstallBig small { font: 600 12px/1.3 "Anuphan", var(--body), sans-serif; color: #9fdfe2; }
#screen-login .loginInstallBig:hover { filter: brightness(1.12); }
@keyframes instGlow { 0%, 100% { box-shadow: 0 0 0 1px #041214, 0 0 14px rgba(72, 221, 230, .25), inset 0 1px 0 rgba(255, 255, 255, .18); } 50% { box-shadow: 0 0 0 1px #041214, 0 0 26px rgba(72, 221, 230, .55), inset 0 1px 0 rgba(255, 255, 255, .18); } }
@keyframes instShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { #screen-login .loginInstallBig, #screen-login .loginInstallBig::after { animation: none; } }
#loginInstallHelp .instApp { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 4px 14px #000a; }
#loginInstallHelp h2 { margin: 8px 0 0; }
#loginInstallHelp .instWhy { margin: 6px 0 12px; color: #cfe3df; font-size: 14px; }
#loginInstallHelp .instInApp { margin: 0 0 12px; padding: 8px 10px; color: #ffe2c0; font-size: 14px; border-left: 3px solid #e0503a; background: rgba(224, 80, 58, .12); text-align: left; }
#loginInstallHelp .instTabs { display: flex; gap: 6px; margin-bottom: 10px; }
#loginInstallHelp .instTabs button { flex: 1; min-height: 38px !important; padding: 6px !important; color: #cfe3df !important; background: #0e1a1c !important; border: 1px solid #3b5552 !important; box-shadow: none !important; font: 700 14px "Anuphan", sans-serif !important; }
#loginInstallHelp .instTabs button[aria-selected="true"] { color: #2a1e10 !important; background: linear-gradient(#ffe1a0, #c8944c) !important; border-color: #563c22 !important; }
#loginInstallHelp .instSteps { list-style: none; margin: 0 0 14px; padding: 0; text-align: left; counter-reset: st; }
#loginInstallHelp .instSteps[hidden] { display: none; }
#loginInstallHelp .instSteps li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #2a3e3e; font-size: 15px; line-height: 1.35; }
#loginInstallHelp .instSteps li::before { counter-increment: st; content: counter(st); flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #b8321f; color: #fff4d8; font: 700 12px sans-serif; }
#loginInstallHelp .instStepIcon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: #0e1a1c; border: 1px solid #3b5552; }
#loginInstallHelp .instStepIcon svg { width: 22px; height: 22px; fill: none; stroke: #9ff6fa; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#loginInstallHelp .instStepIcon svg circle { fill: #9ff6fa; stroke: none; }
#loginInstallHelp .instStepIcon img { width: 28px; height: 28px; border-radius: 6px; }
#loginInstallHelp b { color: #ffe1a0; }

/* the install button sits at the very bottom of the login screen (user, 2026-11-25) */
#screen-login:has(.loginInstallBig:not([hidden])) .loginContent { min-height: calc(100% - 78px - env(safe-area-inset-bottom)); padding-bottom: 10px; }
.loginInstallBar { position: relative; display: flex; justify-content: center; padding: 8px 16px max(12px, env(safe-area-inset-bottom)); }
#screen-login .loginInstallBar .loginInstallBig { width: min(340px, 100%); margin-top: 0; justify-content: center; }
#screen-login .loginInstallBar .loginInstallBig span { align-items: flex-start; }
/* the install button: black and gold, with room around it (user, 2026-11-25) */
#screen-login:has(.loginInstallBig:not([hidden])) .loginContent { min-height: calc(100% - 110px - env(safe-area-inset-bottom)); }
.loginInstallBar { padding: 14px 24px max(28px, calc(env(safe-area-inset-bottom) + 18px)); }
#screen-login .loginInstallBar .loginInstallBig {
  width: min(300px, 100%); padding: 10px 18px; color: #ffd451;
  border: 2px solid #ffc629; border-radius: 6px;
  background: linear-gradient(180deg, #1d1a12, #0a0906);
  box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 214, 81, .25);
  animation: instGlowGold 2.4s ease-in-out infinite;
}
#screen-login .loginInstallBar .loginInstallBig .instIcon { stroke: #ffd451; filter: drop-shadow(0 0 5px rgba(255, 198, 41, .6)); }
#screen-login .loginInstallBar .loginInstallBig b { color: #ffd451; }
#screen-login .loginInstallBar .loginInstallBig small { color: #c9a94e; }
#screen-login .loginInstallBar .loginInstallBig::after { background: linear-gradient(100deg, transparent, rgba(255, 214, 81, .18), transparent); }
@keyframes instGlowGold { 0%, 100% { box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0, 0, 0, .6), 0 0 10px rgba(255, 198, 41, .2); } 50% { box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0, 0, 0, .6), 0 0 22px rgba(255, 198, 41, .45); } }
@media (prefers-reduced-motion: reduce) { #screen-login .loginInstallBar .loginInstallBig { animation: none; } }
#screen-login .devEntry[hidden] { display: none; }

/* ACT 1-5: the first time a character enters a land, its act stands in the middle of the screen and fades (user, 2026-11-25) */
#actCard { position: absolute; inset: 0; z-index: 45; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  pointer-events: none; opacity: 0; text-align: center; padding: 0 16px; }
#actCard small { color: #ffe9b6; font: 700 clamp(40px, 7.5dvh, 64px)/1 "Cinzel", Georgia, serif; letter-spacing: .12em;
  text-shadow: 0 0 18px #ff9a3c66, 0 3px 0 #2a1408, 0 0 2px #000; }
#actCard i { display: block; width: min(220px, 60%); height: 1px; background: linear-gradient(90deg, transparent, #d9b26a, transparent); }
#actCard b { color: #f5e7cc; font: 700 clamp(14px, 2.4dvh, 20px)/1.2 "Cinzel", Georgia, serif; letter-spacing: .08em; text-shadow: 0 2px 0 #000, 0 0 10px #000; }
#actCard.show { animation: actCard 4.2s ease-out forwards; }
@keyframes actCard {
  0% { opacity: 0; transform: scale(1.12); letter-spacing: .3em; }
  14% { opacity: 1; transform: scale(1); }
  62% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.98); }
}
/* Thai: the ACT card in Anuphan (user, 2026-11-25); Cinzel has no Thai letters */
html[data-lang="th"] #actCard small { font-family: "Anuphan", sans-serif; letter-spacing: .02em; }
html[data-lang="th"] #actCard b { font-family: "Anuphan", sans-serif; letter-spacing: .02em; }
html[data-lang="th"] #actCard.show { animation-name: actCardTh; }
@keyframes actCardTh {
  0% { opacity: 0; transform: scale(1.12); }
  14% { opacity: 1; transform: scale(1); }
  62% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.98); }
}
