/* All current opportunities share one group. Details support keyboard/touch;
   presentation never removes an eligible event or changes its outcome. */
html.tx-open-world .event-row.tx-board-layout {position:absolute;left:4rem;right:4rem;top:19rem;bottom:11.7rem;width:auto;height:auto;display:flex;flex-direction:column;justify-content:flex-end;gap:1.1rem;overflow:visible;align-items:stretch;}
.tx-board-main {display:flex;flex-direction:column;justify-content:flex-end;gap:.55rem;min-height:0;min-width:0;flex:1;}
.tx-board-toolbar {display:flex;align-items:center;gap:.75rem;min-height:24px;}
.tx-board-section-title {margin:0;color:#d2d4c5;font:500 max(1rem,14px)/1.45 "Microsoft YaHei",sans-serif;letter-spacing:.07em;}
.tx-board-count {color:#aebbb8;font:400 max(.9rem,12px)/1.4 "Microsoft YaHei",sans-serif;}
.tx-board-reminders[hidden],.tx-board-empty[hidden] {display:none!important;}
.tx-board-grid {display:grid;grid-template-columns:repeat(var(--board-columns,1),minmax(0,1fr));width:100%;max-width:calc(var(--board-columns,1) * 19rem);min-height:0;gap:.85rem;align-self:center;align-content:end;overflow:visible;}
.tx-board-grid.tx-board-many {overflow-y:auto;align-content:start;scrollbar-width:thin;scrollbar-color:#8f9f9a #1f3035;padding:4px;}
html.tx-open-world .tx-board-grid > .event-card {position:relative;inset:auto;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;width:100%!important;height:min(20rem,285px)!important;min-height:0!important;min-width:0;margin:0;overflow:hidden;border:1px solid #7f9392;border-radius:4px;background:linear-gradient(155deg,#d0d4c9,#aabbbb);box-shadow:0 4px 12px #07191c70;color:#223b3e;text-align:left;touch-action:manipulation;transform:none!important;transition:border-color .15s,box-shadow .15s;}
html.tx-open-world .tx-board-grid > .event-card[hidden] {display:none!important;}
html.tx-open-world .tx-board-layout .event-card:is(:hover,:focus-visible) {border-color:#d1bb88;box-shadow:0 3px 16px #0b151a9c;transform:none!important;}
html.tx-open-world .tx-board-layout .event-card:focus-visible {outline:2px solid #edd8a8;outline-offset:2px;}
html.tx-open-world .tx-board-grid > .event-card > .art {position:relative!important;inset:auto!important;grid-column:1;grid-row:1;width:100%!important;height:100%!important;object-fit:cover;object-position:50% 0%;mask-image:none;opacity:1;}
/* Standard 258×284 character cards have their faces around the image centre.
   Top anchoring crops mouths in the board's shallow image window. */
html.tx-open-world .tx-board-grid > .event-card > .art[src*="event_character_"] {object-position:50% 50%;}
html.tx-open-world .tx-board-grid > .event-card[data-event-id="96173360"] > .art {object-fit:contain;object-position:50% 50%;background:#182b32;}
html.tx-open-world .tx-board-grid > .event-card > .name {position:relative!important;inset:auto!important;grid-column:1;grid-row:2;display:block;width:auto!important;height:auto!important;min-height:2.8em;margin:.65rem .75rem .35rem;font:600 max(1.1rem,15px)/1.4 "Source Han Sans SC","Microsoft YaHei",sans-serif;white-space:pre-line;word-break:normal;overflow-wrap:anywhere;color:#20383b;text-shadow:none;}
html.tx-open-world .tx-board-grid > .event-card > :is(.desc,.type,.card-rewards) {display:none!important;}
html.tx-open-world .tx-board-grid > .event-card > .tx-card-foot {position:relative!important;inset:auto!important;grid-column:1;grid-row:3;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px 7px;width:auto!important;height:auto!important;min-height:28px;margin:0 .75rem .55rem;padding:0;background:none;border:0;color:#425854;font:400 max(.88rem,12px)/1.4 "Microsoft YaHei",sans-serif;}
html.tx-open-world .tx-board-grid .tx-card-foot > :last-child:not(.tx-card-copy-detail) {display:none;}
html.tx-open-world .tx-board-grid .tx-card-copy-detail {border:0;border-bottom:1px solid #647774;border-radius:0;color:#294e53;background:none;padding:2px 0;min-width:28px;min-height:24px;font:500 max(.88rem,12px)/1.4 "Microsoft YaHei",sans-serif;}
html.tx-open-world .tx-board-grid .tx-card-copy-detail:hover {color:#102b30;background:none;border-color:#142f33;}
html.tx-open-world .tx-board-grid .tx-card-copy-detail:focus-visible {outline:2px solid #294e53;outline-offset:2px;}
html.tx-open-world .tx-board-grid > .event-card > .card-need {position:absolute;inset:auto;left:.5rem;top:.5rem;display:flex;flex-wrap:wrap;gap:4px;max-width:calc(100% - 1rem);height:auto;width:auto;}
html.tx-open-world .tx-board-layout .card-need .card-year {display:none;}
html.tx-open-world .tx-board-grid .card-need :is(.card-pay,.card-realm) {position:static;inset:auto;max-width:100%;width:auto;height:auto;font-size:12px;}
html.tx-open-world .tx-board-grid .card-pay {display:flex;align-items:center;gap:4px;background:#243b3fea;color:#f0ead9;border-radius:3px;padding:3px 5px;}
html.tx-open-world .tx-board-grid .card-pay img {position:static;width:16px;height:16px;}
html.tx-open-world .tx-board-grid .card-realm {max-height:24px;}
html.tx-open-world .tx-board-grid .card-life-cost {color:#803924;}
html.tx-open-world .tx-board-layout .card-detail-hint {display:none!important;}
.tx-board-side {display:flex;align-items:flex-end;gap:1.3rem;flex-shrink:0;min-width:0;max-height:135px;padding-top:.8rem;border-top:1px solid #93a8a345;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#8f9f9a #1f3035;}
.tx-board-side[hidden],.tx-board-work[hidden],.tx-board-market[hidden] {display:none!important;}
.tx-board-work {display:grid;grid-template-columns:repeat(var(--routine-columns,7),minmax(0,1fr));gap:.55rem;flex:1;min-width:0;align-content:end;}
.tx-board-work > .tx-board-section-title {grid-column:1/-1;display:flex;align-items:center;gap:1rem;font-size:13px;}
.tx-board-help {border:0;border-bottom:1px solid #9dada36b;background:none;color:#adbfbc;padding:1px;min-height:24px;font:400 12px/1.4 "Microsoft YaHei",sans-serif;cursor:pointer;}
.tx-board-help:hover {color:#f0e5cb;}
.tx-board-market {display:grid;grid-template-columns:repeat(2,minmax(90px,1fr));gap:.55rem;min-width:18rem;}
.tx-board-market > .tx-board-section-title {grid-column:1/-1;font-size:13px;}
html.tx-open-world .tx-board-side > section > .event-card {position:relative;inset:auto;display:flex;flex-direction:column;justify-content:center;gap:4px;width:100%!important;height:auto!important;min-height:58px!important;min-width:0;margin:0;padding:7px 9px;background:#263d40ed;border:1px solid #899d9460;border-radius:3px;box-shadow:none;overflow:hidden;transform:none!important;touch-action:manipulation;}
html.tx-open-world .tx-board-side .event-card > :is(.art,.desc,.type,.card-need,.card-rewards) {display:none!important;}
html.tx-open-world .tx-board-side .event-card > .name {position:static!important;display:block;width:auto!important;height:auto!important;margin:0;font:500 14px/1.4 "Microsoft YaHei",sans-serif;white-space:normal;color:#e1e5d9;}
html.tx-open-world .tx-board-side .event-card > .tx-card-foot {position:static!important;display:block;width:auto!important;height:auto!important;margin:0;padding:0;border:0;background:none;font:400 12px/1.45 "Microsoft YaHei",sans-serif;color:#b7c6bc;}
html.tx-open-world .tx-board-side .tx-action-caption {color:#b7c6bc;}
html.tx-open-world .tx-board-market .event-card > .tx-card-foot {display:none!important;}
.tx-board-empty {margin:0;padding:2rem;border:1px solid #aebcaa55;border-radius:4px;background:#22373bd9;color:#d7e0d7;font-size:16px;line-height:1.8;text-align:center;}
/* Board header layout has one owner for both wide and narrow windows. */
html.tx-open-world .tx-header-actions {display:flex;gap:8px;pointer-events:auto;}
html.tx-open-world .tx-header-actions .tx-bond-button {position:static;min-height:44px;font-size:14px;padding:6px 10px;}
html.tx-open-world .tx-header-actions .tx-bond-button[hidden] {display:none!important;}
@media(min-width:961px) {
    html.tx-open-world #tx-chapter-header {top:10.8rem;left:4rem;right:4rem;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:1rem;row-gap:4px;}
    html.tx-open-world #tx-chapter-header .tx-eyebrow {grid-column:1;grid-row:1;margin:0;color:#b8c9c3;font:400 max(.95rem,13px)/1.5 "Microsoft YaHei",sans-serif;letter-spacing:.04em;}
    html.tx-open-world #tx-chapter-header .tx-chapter-title {grid-column:1;grid-row:2;margin:0;color:#e6e4d5;font:400 max(2rem,25px)/1.2 "STKaiti","KaiTi",serif;letter-spacing:.1em;}
    html.tx-open-world #tx-chapter-header .tx-chapter-context {grid-column:1/-1;grid-row:3;margin:0;color:#c2cfc4;font:400 max(.95rem,13px)/1.6 "Microsoft YaHei",sans-serif;}
    html.tx-open-world #tx-chapter-header .tx-header-actions {position:static;grid-column:2;grid-row:1/3;align-self:center;display:flex;gap:8px;}
    html.tx-open-world .tx-header-actions .tx-bond-button {padding:7px 11px;min-height:36px;font-size:13px;color:#d5daca;border-color:#9aab9870;background:#263a3bd9;}
    html.tx-open-world #action-bar {background:linear-gradient(180deg,#26373ad9,#192b31f5);border-top:1px solid #859c9259;border-radius:3px;}
    html.tx-open-world #action-bar .fb-slot {background-image:url("../assets/images/ui/主界面_物品格_背景黑.png")!important;}
    html.tx-open-world #action-bar .fb-slot.locked::after {background-image:url("../assets/images/ui/主界面_物品格_背景锁.png")!important;opacity:.7;}
    html.tx-open-world #game-screen::after {background:linear-gradient(180deg,#0b202b45,transparent 38%,#10262f88);}
}
@media(max-width:1100px) and (min-width:961px) {
    html.tx-open-world .event-row.tx-board-layout {top:185px;overflow-y:auto;justify-content:flex-start;scrollbar-width:thin;scrollbar-color:#8f9f9a #1f3035;padding:3px 0;}
    .tx-board-main {flex:0 0 auto;}
    .tx-board-side {max-height:none;overflow:visible;}
    html.tx-open-world .tx-board-grid > .event-card {height:17rem!important;}
    .tx-board-side:has(.tx-board-market:not([hidden])) .tx-board-work {grid-template-columns:repeat(4,minmax(0,1fr));}
    html.tx-open-world .tx-board-grid > .event-card > .name {font-size:14px;margin:.5rem .55rem .3rem;}
    html.tx-open-world .tx-board-grid > .event-card > .tx-card-foot {margin:0 .55rem .45rem;font-size:11px;}
}
@media(max-width:960px) {
    html.tx-open-world #tx-chapter-header {position:relative;inset:auto;display:flex;flex-direction:column;padding:12px 16px;}
    html.tx-open-world #tx-chapter-header .tx-chapter-title {padding-right:0;}
    html.tx-open-world #tx-chapter-header .tx-header-actions {position:static;display:flex;flex-flow:row wrap;gap:6px;margin-top:8px;}
    html.tx-open-world #tx-chapter-header .tx-header-actions .tx-bond-button {flex:1 1 110px;min-width:0;min-height:44px;font-size:13px;}

    html.tx-open-world .event-row.tx-board-layout {position:relative;inset:auto;height:auto;min-height:0;margin:0 1rem;gap:16px;}
    .tx-board-main {display:block;}
    .tx-board-toolbar {margin:6px 0;}
    .tx-board-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:none;}
    .tx-board-grid.tx-board-many {overflow:visible;padding:0;}
    html.tx-open-world .tx-board-grid > .event-card {height:230px!important;}
    html.tx-open-world .tx-board-grid > .event-card > .name {font-size:15px;}
    .tx-board-side {display:block;max-height:none;overflow:visible;}
    .tx-board-work {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
    .tx-board-market {margin-top:12px;min-width:0;}
    html.tx-open-world .tx-board-side > section > .event-card {min-height:68px!important;}
    html.tx-open-world .tx-board-grid .tx-card-copy-detail {padding:5px 3px;min-height:32px;}
}
@media(prefers-reduced-motion:reduce) {html.tx-open-world .tx-board-layout .event-card {transition:none;}}
