:is(#homeFieldCard,.home-current-field-card) .home-field-energy{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px;margin:0 14px;padding:7px 0;border-top:1px solid var(--line);color:var(--ink);line-height:1.3}
.home-field-energy .weekly-energy-rank{display:grid;grid-template-columns:22px auto;justify-content:start;gap:2px 3px;align-items:center}
.home-field-energy .weekly-energy-rank img{width:22px;height:22px}
.home-field-energy .weekly-energy-rank strong{font-size:16px}
.home-field-energy .weekly-energy-content{gap:4px}
.home-field-energy .weekly-energy-bar{height:28px;position:relative;overflow:hidden;border:0;border-radius:4px}
.home-field-energy .weekly-energy-bar>i{display:flex;align-items:center;justify-content:center;min-width:0;overflow:hidden;font-style:normal}
.home-field-energy .weekly-energy-bar>i:first-child{border-radius:4px 0 0 4px}
.home-field-energy .weekly-energy-bar>i:last-child{border-radius:0 4px 4px 0}
.home-field-energy-label{display:inline-flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap;font-size:10px;font-weight:800;color:#fff;text-shadow:0 1px 2px #222,0 0 3px #444;font-variant-numeric:tabular-nums}
.home-field-energy-label svg{flex:none}
.home-field-energy-total{display:flex;flex-direction:column;align-items:flex-end;gap:1px;font-size:var(--fs-xs);font-weight:700;font-variant-numeric:tabular-nums}
.home-field-energy-amount{display:inline-flex;align-items:center;gap:4px}
.home-field-energy-as-of{color:#eef0f3;font-size:11px;font-weight:500;line-height:1.25}
@media(max-width:480px){:is(#homeFieldCard,.home-current-field-card) .home-field-energy{margin:0 10px;gap:7px}}

.home-field-energy-total svg{color:var(--warning);flex:none}
:is(#homeFieldCard,.home-current-field-card) .home-field-bonus{flex:none;font-variant-numeric:tabular-nums;color:var(--ink-soft);font-size:var(--fs-2xs)}
:is(#homeFieldCard,.home-current-field-card) .home-field-bonus[hidden]{display:none}

.home-field-energy-label[hidden]{display:none}
.home-field-energy .weekly-energy-bar>i:not(:last-child){box-shadow:inset -1px 0 rgba(255,255,255,.55)}
/* ホーム専用のフィールドカバー。テーマ画像の明暗にかかわらず白文字を保つ。 */
:is(#homeFieldCard,.home-current-field-card){position:relative;isolation:isolate;overflow:hidden;background:var(--navy);color:#fff;border-color:transparent}
:is(#homeFieldCard,.home-current-field-card)::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(100deg,rgba(18,25,34,.8),rgba(18,25,34,.42)),var(--home-field-cover);background-position:center;background-size:cover;pointer-events:none}
:is(#homeFieldCard,.home-current-field-card)>.log-panel-summary{padding:6px 14px 0;background:none;color:inherit;border:0;min-height:0}
:is(#homeFieldCard,.home-current-field-card)>.log-panel-summary>.field-panel-overview{display:none}
:is(#homeFieldCard,.home-current-field-card) .log-panel-title{color:inherit;opacity:.9;font-size:12px}
:is(#homeFieldCard,.home-current-field-card) .home-field-energy{grid-template-columns:52px minmax(0,1fr) auto;gap:4px 10px;margin:0;padding:4px 14px 7px;border:0;color:#fff}
:is(#homeFieldCard,.home-current-field-card) .weekly-energy-rank{position:relative;display:flex;justify-content:center;grid-column:1;grid-row:1/4;color:#fff}
:is(#homeFieldCard,.home-current-field-card) .weekly-energy-rank img{width:48px;height:48px;filter:drop-shadow(0 1px 2px #0006)}
:is(#homeFieldCard,.home-current-field-card) .weekly-energy-rank strong{position:absolute;bottom:-3px;right:-3px;min-width:20px;box-sizing:border-box;padding:2px 3px;border:2px solid #8c4da8;border-radius:20px;background:#fff;color:#252a39;font-size:12px;line-height:1.1;text-align:center}
:is(#homeFieldCard,.home-current-field-card) .weekly-energy-content{display:contents}
:is(#homeFieldCard,.home-current-field-card) .home-field-cover-name{grid-column:2/-1;grid-row:1;align-self:center;font-size:20px;font-weight:700;text-shadow:0 1px 3px #0006}
:is(#homeFieldCard,.home-current-field-card) .home-field-cover-meta{grid-column:2;grid-row:2;display:flex;flex-wrap:wrap;gap:3px 10px;font-size:11px;font-weight:400;color:#eef0f3;line-height:1.4}
:is(#homeFieldCard,.home-current-field-card) .home-field-bonus{font-size:inherit;color:inherit}
:is(#homeFieldCard,.home-current-field-card) .home-field-cover-cooking{display:inline-flex;align-items:center;white-space:nowrap;gap:2px}
:is(#homeFieldCard,.home-current-field-card) .home-field-cover-cooking img{width:22px;height:22px;object-fit:contain}
:is(#homeFieldCard,.home-current-field-card) .home-field-cover-meta .field-camp-ticket-summary{margin:0;font-size:inherit;color:inherit;white-space:nowrap;gap:3px;opacity:1}
:is(#homeFieldCard,.home-current-field-card) .home-field-cover-meta .field-camp-ticket-summary img{width:22px;height:22px;object-fit:contain}
:is(#homeFieldCard,.home-current-field-card) .home-field-energy-total{grid-column:3;grid-row:2;align-self:center;justify-self:end;font-size:32px;text-shadow:0 1px 3px #0006;white-space:nowrap}
:is(#homeFieldCard,.home-current-field-card) .home-field-energy-total svg{width:26px;height:26px;color:#ffda79}
:is(#homeFieldCard,.home-current-field-card) .weekly-energy-bar{grid-column:2/-1;grid-row:3;height:22px;background:rgba(255,255,255,.18);box-shadow:none}
@media(max-width:600px){
 :is(#homeFieldCard,.home-current-field-card) .home-field-energy{grid-template-columns:48px minmax(0,1fr) auto;gap:3px 8px;padding:3px 12px 6px}
 :is(#homeFieldCard,.home-current-field-card)>.log-panel-summary{padding:5px 12px 0}
 :is(#homeFieldCard,.home-current-field-card) .weekly-energy-rank{grid-row:1/4}
 :is(#homeFieldCard,.home-current-field-card) .weekly-energy-rank img{width:44px;height:44px}
 :is(#homeFieldCard,.home-current-field-card) .home-field-cover-name{font-size:17px;overflow-wrap:anywhere}
 :is(#homeFieldCard,.home-current-field-card) .home-field-energy-total{grid-column:3;grid-row:2;justify-self:end;font-size:26px}
 :is(#homeFieldCard,.home-current-field-card) .home-field-cover-meta{gap:3px 4px;font-size:10px}
 :is(#homeFieldCard,.home-current-field-card) .home-field-cover-meta>span+span{padding-left:4px}
 :is(#homeFieldCard,.home-current-field-card) .home-field-cover-cooking img,:is(#homeFieldCard,.home-current-field-card) .home-field-cover-meta .field-camp-ticket-summary img{width:16px;height:16px}
 :is(#homeFieldCard,.home-current-field-card) .home-field-energy-total svg{width:22px;height:22px}
}

:is(#homeFieldCard,.home-current-field-card) .home-field-cover-meta>span{display:inline-flex;align-items:center;gap:3px}
:is(#homeFieldCard,.home-current-field-card) .home-field-cover-meta>span+span{border-left:1px solid rgba(255,255,255,.35);padding-left:8px}
:is(#homeFieldCard,.home-current-field-card) .weekly-berry-icons{gap:2px}
:is(#homeFieldCard,.home-current-field-card) .weekly-berry-icons>span{width:22px;height:22px}
:is(#homeFieldCard,.home-current-field-card) .weekly-berry-icons img{width:20px;height:20px}

.home-field-card-wrap{position:relative}
.home-field-card-wrap :is(#homeFieldCard,.home-current-field-card){width:100%}
.home-field-settings{position:absolute;right:8px;top:3px;width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#fff;cursor:pointer}
.home-field-berry-edit{right:44px}
.home-field-berry-edit[hidden]{display:none}
:is(#homeFieldCard,.home-current-field-card)>.log-panel-summary{padding-right:80px}
.home-field-settings-dialog{position:fixed;width:min(440px,calc(100% - 32px));box-sizing:border-box;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink)}
.home-field-settings-dialog::backdrop{background:#0008}
.home-field-settings-dialog h2{font-size:1rem;margin:0 32px 18px 0}
.home-field-settings-dialog .settings-row{gap:16px}
.home-field-settings-dialog .toggle-switch{flex:none}
:is(#homeFieldCard,.home-current-field-card).hide-energy .weekly-energy-rank,:is(#homeFieldCard,.home-current-field-card).hide-energy .home-field-energy-total,:is(#homeFieldCard,.home-current-field-card).hide-energy .weekly-energy-bar{display:none}
:is(#homeFieldCard,.home-current-field-card).hide-energy .home-field-cover-name,:is(#homeFieldCard,.home-current-field-card).hide-energy .home-field-cover-meta{grid-column:1/-1}

:is(.home-field-settings-dialog,.weekly-flow-card) .modal-close{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--ink-soft);font-size:24px;cursor:pointer}
.home-field-card-wrap + #homeCalendarSection{margin-top:8px}

:is(#homePreviousFieldCard,.home-previous-field-card){position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:14px 1fr auto;align-items:center;gap:8px;width:max-content;min-width:50%;max-width:100%;min-height:38px;box-sizing:border-box;margin:0 0 6px;padding:7px 10px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--paper);color:var(--ink);text-align:left;font:inherit;cursor:pointer}
/* 開催中イベントバナーの背景処理を基に、白の重なりを控えめにする。 */
:is(#homePreviousFieldCard,.home-previous-field-card)::before{content:"";position:absolute;z-index:-2;inset:0;background-image:var(--home-field-cover);background-size:cover;background-position:center;opacity:.45;pointer-events:none}
:is(#homePreviousFieldCard,.home-previous-field-card)::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,color-mix(in srgb,var(--paper) 58%,transparent) 0%,color-mix(in srgb,var(--paper) 30%,transparent) 100%);pointer-events:none}
:is(#homePreviousFieldCard,.home-previous-field-card):focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.home-previous-field-title{font-size:11px;font-weight:600;line-height:1.3;white-space:nowrap}
.home-previous-field-result{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;line-height:1.2}
.home-previous-field-rank{display:inline-flex;align-items:center;gap:3px;flex:none;font-size:12px;font-variant-numeric:tabular-nums}
.home-previous-field-rank img{width:22px;height:22px;object-fit:contain}
.home-previous-field-energy{display:inline-flex;align-items:center;gap:3px;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.home-previous-field-energy svg{color:var(--warning);flex:none}
:is(#homePreviousFieldCard,.home-previous-field-card)>svg{flex:none}
:is(#homePreviousFieldCard,.home-previous-field-card)>svg{width:14px;height:14px;color:var(--ink-soft)}
.home-previous-field-rank strong{font-weight:600}
.home-previous-field-energy{letter-spacing:.01em}
.home-previous-field-energy svg{width:15px;height:15px}
@media(max-width:360px){
 :is(#homePreviousFieldCard,.home-previous-field-card){gap:6px;padding-inline:8px}
 .home-previous-field-result{gap:7px}
}

@media(max-width:480px){.home-current-field-card .log-panel-title-icon{display:none}}
