@font-face {
  font-family: "Jersey Title";
  src: url("/assets/fonts/Jersey10-latin.woff2") format("woff2");
  font-display: swap;
}

.pc-title, body .title-fx {
  --title-red: #eb2e38;
  --title-type: "Jersey Title", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: url("/game-account/title-pattern.svg") 8px 8px / 120px 120px,
    radial-gradient(ellipse at 50% 37%, #2d1d28, #151822 69%);
  color: #edf1fa;
}

.pc-title {
  position: fixed;
  inset: 0;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 14px max(26px, env(safe-area-inset-bottom));
  overflow-y: auto;
  font-family: var(--title-type);
}
.pc-title-main { position: relative; flex: 1 0 auto; display: grid; align-content: center; justify-items: center; gap: 27px; width: min(100%, 640px); min-height: 420px; }
.pc-title-logo, body .title-fx .ti-logo {
  margin: 0;
  font: 700 clamp(58px, 10vw, 96px)/1 var(--title-type);
  letter-spacing: .02em;
  text-shadow: 4px 4px #1b1b22;
  -webkit-text-stroke: 3px #1b1b22;
  paint-order: stroke fill;
}
.pc-title-logo span, body .title-fx .ti-logo .b { color: var(--title-red); }
body .title-fx .ti-logo .a { color: #edf1fa; }
.pc-title-menu, body .title-fx .ti-menu { display: grid; gap: 13px; width: min(420px, 100%); }
.pc-title-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.pc-title-button, body.px .title-fx .ti-menu .btn.pc-title-button, html.px body .title-fx .ti-menu .btn.pc-title-button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; width: 100%; padding: 6px 12px;
  background: var(--title-fill, #232a3d); color: var(--title-ink, #edf1fa);
  border: 2px solid #171821; border-top-color: var(--title-edge, #414a5c); border-radius: 13px;
  box-shadow: inset 0 -3px var(--title-low, #141824), 0 4px #090b12, 3px 5px #090b126e;
  font: 700 clamp(19px, 5vw, 27px)/1.15 var(--title-type); text-align: center;
  text-shadow: none; text-transform: none; letter-spacing: 0;
  cursor: pointer;
}
.pc-title-button img { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; }
.pc-title-button i { color: #fff2a7; font-style: normal; }
.pc-title-red { --title-fill: #ed2d38; --title-edge: #ff6474; --title-low: #a61633; }
.pc-title-gold { --title-fill: #ffcb05; --title-edge: #ffe281; --title-low: #b97200; --title-ink: #191822; }
.pc-title-button:hover:not(:disabled) { filter: brightness(1.11); }
.pc-title-button:active:not(:disabled) { transform: translateY(2px); }
.pc-title-login, body .title-fx .ti-account .ti-who {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; color: #bdc4da; font: 400 17px/1.35 var(--title-type); overflow-wrap: anywhere;
}
.pc-title-login { justify-self: center; background: transparent; border: 0; cursor: pointer; }
.pc-title-login:disabled { opacity: .75; cursor: default; }
.pc-title-login img { width: 30px; height: 30px; image-rendering: pixelated; }
.pc-title-legal, body .title-fx .ti-legal { position: relative; width: min(560px, 100%); margin: 0; text-align: center; color: #a9b1c9; font: 400 16px/1.6 var(--title-type); }
.pc-title-legal small { font-size: .9em; }
.pc-title-field, .ti-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pc-field-mon, .pc-field-body, .pc-field-face, .pc-field-art, .pc-field-shadow {
  position: absolute; left: 0; top: 0; pointer-events: none; transform-origin: 0 0;
}
.pc-field-art { display: block; image-rendering: pixelated; max-width: none; }
.pc-field-mon:not([data-ready]), .pc-field-mon[data-state="inside"] { visibility: hidden; }
.pc-field-shadow {
  width: var(--foot-width); height: 8px; margin: -4px 0 0 calc(var(--foot-width) / -2);
  transform-origin: center; border-radius: 50%; background: #060910b8; opacity: .68;
}
.pc-field-mon[data-state="absorbing"] .pc-field-shadow { opacity: .22; }
.pc-field-capture { position: absolute; inset: 0; z-index: 24; }
.pc-field-ball { position: absolute; left: 0; top: 0; width: 32px; height: 32px; margin: -16px;
  background: var(--ball-art) center / contain no-repeat; image-rendering: pixelated;
  filter: drop-shadow(0 3px #0a0d1699); z-index: 2; }
.pc-field-ball i { display: none; position: absolute; inset: 0; background: inherit; }
.pc-field-capture[data-phase="absorb"] .pc-field-ball { background-image: none; filter: drop-shadow(0 0 5px #ffe291); }
.pc-field-capture[data-phase="absorb"] .pc-field-ball i { display: block; background-image: var(--ball-art); }
.pc-field-ball-top { clip-path: inset(0 0 50% 0); transform: translateY(-4px) rotate(-11deg); }
.pc-field-ball-bottom { clip-path: inset(50% 0 0 0); transform: translateY(2px); }
.pc-field-beam { position: absolute; top: 0; left: 0; width: 54px; margin-left: -27px;
  background: linear-gradient(#fffbd0dc, #ffd34c19); clip-path: polygon(44% 0,56% 0,100% 100%,0 100%); }
.pc-field-ring { position: absolute; width: 44px; height: 44px; margin: -22px;
  border-radius: 50%; border: 2px solid #ffe48d; box-shadow: 0 0 9px #ffc84a; }

.pc-title-dialog { box-sizing: border-box; width: min(500px, calc(100% - 28px)); max-height: calc(100dvh - 28px); border: 0; padding: 0; background: transparent; color: #edf1fa; }
.pc-title-dialog::backdrop { background: #0a0b15ad; backdrop-filter: blur(3px); }
.account-dialog .auth-card { width: 100%; }
.account-dialog .auth-switch { margin: 0; padding: 0; }
.account-close, .pc-title-info-close button { padding: 0 5px; min-width: 32px; min-height: 32px; border: 0; border-radius: 5px; background: #0003; color: #fff; font-size: 24px; cursor: pointer; }
.pc-title-info { padding: 22px; background: #191c2d; border: 1px solid #41485e; border-radius: 14px; font: 16px/1.6 system-ui, sans-serif; }
.pc-title-info h2 { margin: 0 35px 0 0; font-size: 23px; }
.pc-title-info ul { padding-left: 22px; }
.pc-title-info li + li { margin-top: 7px; }
.pc-title-info-close { position: absolute; top: 12px; right: 12px; }
.pc-title-info a { color: #ffdc6a; }

.pc-title-copy {
  display: block; margin: 14px auto 0; padding: 9px 16px; min-height: 40px;
  background: #232a3d; color: #edf1fa; border: 2px solid #171821; border-top-color: #414a5c;
  border-radius: 11px; box-shadow: inset 0 -3px #141824; cursor: pointer;
  font: 700 16px/1.2 var(--title-type);
}
.pc-title-copy[hidden] { display: none; }
.pc-title-copy:hover { filter: brightness(1.12); }
body .title-fx .ti-account .ti-signout { align-self: center; width: auto; min-height: 0; background: transparent; box-shadow: none; border: 0; padding: 0; font-size: 13px; color: #a9b1c9; }
body .title-fx .ti-account { gap: 2px; }
@media (max-width: 640px) {
  .pc-title-main { min-height: 390px; gap: 22px; }
  .pc-title-legal, body .title-fx .ti-legal { font-size: 13px; }
}
/* Keep scrolling and pinch zoom; a second tap on a control is not a zoom gesture. */
.pc-title, .pc-title-dialog, .pc-title button, .pc-title-dialog button { touch-action: manipulation; }
@media (pointer: coarse) {
  .account-close, .pc-title-info-close button { min-width: 44px; min-height: 44px; }
  .pc-title-dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  body .title-fx { animation: none; }
  .pc-field-capture { display: none; }
}
