/* East feature adapters for the PR 643 hub. */
.sp-overlay-layer--hall { z-index: 100; }
.east-hall { outline: none; height: var(--sp-vv-height, 100dvh); top: var(--sp-vv-top, 0px); bottom: auto; }
.east-hub .hub-tile:disabled { opacity: .5; cursor: default; }
.east-hub .hub-tile__text { flex: 1; }
.east-hub a.hub-management-tile { text-decoration: none; text-shadow: none; }
.east-rank-tile { flex-wrap: wrap; }
.east-rank-tile .rank-badge { flex-basis: 100%; padding-left: .58rem; }
.east-rank-tile .rank-badge__icon { width: .4rem; height: .4rem; }
.east-hub .hub-right .hub-tile { min-height: .9rem; border-left: 0; border-right: 3px solid var(--mint-500); }
.east-hub .hub-right .hub-tile__label { font-size: max(14px, calc(.26 * var(--t))); }
.east-hub .topbar__tools { display: flex; align-items: center; gap: .08rem; }
.east-hub .topbar__tools > * { flex: none; }
.east-hub .hub-entry__icon svg { width: 1em; height: 1em; }
.east-hub .hub-side { overflow-y: auto; padding-bottom: max(48px, .6rem); scrollbar-width: thin; }
.east-hub .hub-side > * { flex: none; }
.east-hub .hub-entries__row { flex-wrap: nowrap; }
.east-ranked-toggle, .east-capacity { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: max(12px, calc(.17 * var(--t))); }
.east-ranked-toggle { cursor: pointer; }
.east-ranked-toggle input { accent-color: var(--mint-500); width: 18px; height: 18px; }
.east-ranked-toggle small, .east-capacity > span { color: var(--text-lo); font-size: .85em; }
.east-capacity select { color: var(--text-hi); background: #19201e; border: 1px solid var(--line-2); padding: 5px 20px 5px 8px; font: inherit; min-height: 32px; }
.east-entertainment__intro { padding: .25rem .6rem 0; font-size: max(12px, calc(.19 * var(--t))); color: var(--text-md); }
.east-entertainment__intro p { margin: .12rem 0; }
.east-entertainment__cards { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; padding: .2rem max(.6rem, 5vw) .4rem; align-content: start; align-content: safe center; }
.east-mode { position: relative; display: flex; flex-direction: column; text-align: left; min-height: min(4.7rem, 65vh); padding: .35rem; color: #eff3f1; background: linear-gradient(145deg, #293330e8, #111817ed); border: 1px solid #8ca29866; border-left: 4px solid var(--mint-400); box-shadow: 0 .1rem .4rem #0008; cursor: pointer; overflow: hidden; transition: border-color .18s, transform .18s; }
.east-mode:hover { border-color: var(--mint-400); transform: translateY(-3px); }
.east-mode:focus-visible, .east-hub .hub-tile:focus-visible, .east-hub .hub-entry:focus-visible { outline: 2px solid var(--mint-400); outline-offset: 3px; }
.east-mode__no { color: #a1b8af80; position: absolute; top: .12rem; right: .22rem; font-size: .7rem; }
.east-mode__art { width: .9rem; height: .9rem; display: grid; place-items: center; background: var(--mint-a10); border: 1px solid var(--mint-a35); color: var(--mint-400); margin-bottom: .3rem; transform: rotate(-5deg); }
.east-mode__art .icon { width: 60%; height: 60%; }
.east-mode__en { color: var(--mint-400); letter-spacing: .17em; font: 700 max(10px, .14rem)/1.4 var(--font-display); }
.east-mode h3 { font-size: max(22px, calc(.42 * var(--t))); margin: .12rem 0; }
.east-mode p { font-size: max(12px, calc(.18 * var(--t))); color: #b9c7c1; line-height: 1.8; margin: 0 0 .2rem; }
.east-mode__tags { display: flex; flex-wrap: wrap; gap: .08rem; margin-bottom: .3rem; }
.east-mode__tags span { font-size: max(10px, calc(.13 * var(--t))); border: 1px solid #8b9f9666; padding: .05rem .1rem; color: #cfddd7; }
.east-mode__enter { display: flex; justify-content: space-between; align-items: center; background: #dce6e1; color: #101c17; font-size: max(14px, calc(.22 * var(--t))); font-weight: 900; margin: auto -.35rem -.35rem; padding: .16rem .35rem; }
.east-mode__enter .icon { width: 1.4em; height: 1.4em; }
.east-ranked__body { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: .6rem; align-items: center; padding: .4rem max(.6rem, 6vw); }
.east-ranked__identity .rank-badge { display: flex; flex-direction: column; align-items: flex-start; margin-top: .25rem; }
.east-ranked__identity .rank-badge__icon { width: 1.5rem; height: 1.5rem; }
.east-ranked__identity .rank-badge__label { font-size: max(22px, calc(.4 * var(--t))); }
.east-ranked__identity h2 { font-size: max(20px, calc(.34 * var(--t))); margin: .2rem 0; }
.east-ranked__identity p, .east-ranked__entries p { font-size: max(12px, calc(.18 * var(--t))); line-height: 1.8; color: #b3c2bc; }
.east-ranked__tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .3rem; }
.east-ranked__entries { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; }
.east-ranked__entries .hub-entry { width: 100%; min-height: 1.8rem; }
.east-ranked__entries p { grid-column: 1 / -1; }
/* Original East chat behavior, with the reference hub's terminal plates. */
.sp-chat__toggle { background: linear-gradient(135deg, #25322df5, #0b1210f5); border-left: 3px solid var(--mint-400); letter-spacing: .06em; }
.sp-chat__panel { background: linear-gradient(155deg, #17211efc, #090e0cfc); border-top: 2px solid var(--mint-400); }
.sp-chat__heading { background: #d5dfd9; color: #17251e; }
.sp-chat__heading span { color: #344b40; }
.sp-chat__heading .sp-chat__close { color: #1b3326; }
.sp-chat__share { border-color: var(--mint-400); font-weight: 700; }
/* Keep the full action label clear of the decorative stripe at every text size. */
.east-hall .proto-foot .proto-start { height: auto; min-height: max(1.04rem, 44px); gap: max(8px, .16rem); padding: max(8px, .12rem) max(24px, .3rem) max(8px, .12rem) max(10px, .2rem); }
.east-hall .proto-foot .proto-start__label { display: block; flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: max(18px, calc(.36 * var(--t))); line-height: 1.25; letter-spacing: .02em; }
.east-hall .proto-foot .proto-start__deco { width: max(12px, .15rem); pointer-events: none; }
@media (max-width: 900px), (max-height: 520px) {
  .east-hall .proto-foot .proto-start__mark { display: none; }
}
@media (max-height: 600px) {
  .east-hub .hub-side { gap: .1rem; padding-top: .08rem; }
  .east-hub .hub-side .tips { display: none; }
  .east-hub .hub-side .hub-tile { min-height: 40px; }
  .east-rank-tile .rank-badge { flex-basis: auto; padding-left: 0; margin-left: auto; }
  .east-rank-tile .rank-badge__label { font-size: 10px; }
  .east-rank-tile .rank-badge__icon { width: 24px; height: 24px; }
  .east-hall .proto-foot { gap: 4px; }
  .east-hall .proto-hint { margin: 2px 0; font-size: 10px; line-height: 1.3; }
  .east-hall .proto-list { gap: 10px; }
  .east-mode { min-height: 0; padding: 16px; }
  .east-mode__art { width: 40px; height: 40px; margin-bottom: 10px; }
  .east-mode h3 { font-size: 23px; margin: 6px 0; }
  .east-mode p { margin-bottom: 8px; font-size: 12px; line-height: 1.5; }
  .east-mode__tags { margin-bottom: 12px; gap: 4px; }
  .east-mode__enter { margin: auto -16px -16px; padding: 10px 16px; font-size: 14px; }
  .east-entertainment__cards { padding: 10px 4vw 16px; align-content: start; gap: 16px; }
  .east-entertainment__intro { padding: 8px 4vw 0; }
  .east-ranked__body { gap: 20px; padding: 16px 4vw; align-items: start; }
  .east-ranked__identity .rank-badge { flex-direction: row; align-items: center; gap: 10px; margin-top: 10px; }
  .east-ranked__identity .rank-badge__icon { width: 50px; height: 50px; }
  .east-ranked__identity h2 { font-size: 20px; }
  .east-ranked__tools { margin-top: 10px; }
}
@media (max-width: 900px) {
  .east-hub .hub-entry { width: clamp(110px, 18vw, 180px); }
  .east-hub .hub-side { max-width: 220px; }
  .east-hub .hub-tile__en { font-size: 8px; letter-spacing: .08em; }
  .east-hub .hub-tile__label { font-size: 13px; }
  .east-hub .hub-center__title { font-size: clamp(18px, 3vw, 30px); }
  .east-hub .hub-center__en { font-size: 9px; }
  .east-hub .topbar__tools .btn { min-width: 28px; min-height: 28px; }
  .east-hall .east-ranked-toggle, .east-hall .east-capacity { font-size: 11px; gap: 6px; }
  .east-ranked__entries { grid-template-columns: 1fr; }
  .east-ranked__entries .hub-entry { min-height: 75px; }
}
@media (max-width: 620px) {
  .east-hub .hub-stage { grid-template-columns: minmax(125px, 1fr) minmax(0, 1fr) minmax(125px, 1fr); column-gap: 12px; padding: 6px 12px 12px; }
  .east-hub .hub-right { min-width: 0; }
  .east-hub .hub-right .hub-tile__label { font-size: 13px; }
  .east-hub .hub-center { padding-bottom: 20px; }
  .east-hub .hub-center__en { display: none; }
  .east-hub .hub-center__mark .emblem { width: 82px; height: 82px; }
  .east-hub .hub-entries { grid-column: 2 / -1; }
  .east-hub .hub-entries__row { gap: 5px; }
  .east-hub .hub-entry { width: 108px; min-height: 65px; padding: 10px 8px; }
  .east-hub .hub-entry__name { font-size: 15px; }
  .east-hub .hub-entry__en { font-size: 7px; letter-spacing: .06em; }
  .east-hub .hub-entry__icon { font-size: 20px; }
  .east-hub .topbar { padding-left: 8px; padding-right: 8px; gap: 4px; }
  .east-hub .topbar__left { gap: 4px; }
  .east-hub .me-chip__text .micro { display: none; }
  .east-hub .topbar__tools { gap: 3px; }
  .east-entertainment__intro .micro { display: none; }
}
@media (max-width: 500px) and (min-height: 600px) {
  .east-entertainment__cards, .east-ranked__body { grid-template-columns: 1fr; align-content: start; }
  .east-mode__art { width: 45px; height: 45px; margin-bottom: 12px; }
}
