:root { --fwa-ink: #172d31; --fwa-paper: #f4ead2; --fwa-wood: #6d4a30; --fwa-teal: #176f68; --fwa-gold: #e4b54b; }
.fwa { position: absolute; inset: 0; display: grid; grid-template-columns: 238px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 12px; padding: 10px; overflow: hidden; min-height: 0; font-size: 16px; }
.fwa-reel { position: relative; z-index: 8; min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 3px solid #2b3536; border-radius: 18px; color: #203238; background: linear-gradient(145deg, #d8c7a2, #aa8b60); box-shadow: inset 0 0 0 3px rgba(255,255,255,.25), 0 8px 22px rgba(8,23,30,.24); }
.fwa-clap { display: grid; grid-template-columns: 1fr; overflow: hidden; border: 3px solid #182529; border-radius: 9px; background: #f5f0e4; box-shadow: 0 4px 7px rgba(0,0,0,.25); }
.fwa-clap::before { content: ""; display: block; height: 22px; background: repeating-linear-gradient(135deg,#172326 0 22px,#f5f0e4 22px 42px); border-bottom: 3px solid #172326; }
.fwa-clap span,.fwa-clap strong { padding: 4px 8px; }
.fwa-clap-top { font-size: 16px; font-weight: 900; letter-spacing: .08em; color: #fff; background: #173f45; }
.fwa-clap strong { font-size: 18px; line-height: 1.1; }
.fwa-note { position: relative; flex: 1 1 0; min-height: 110px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #8e7853 transparent; padding: 18px 13px 13px; border: 1px solid #9c825b; color: #2b352c; background: linear-gradient(#fff8dd,#f2e4b9); box-shadow: 0 5px 10px rgba(50,35,20,.22); transform: rotate(-.5deg); }
.fwa-note::before { content: ""; position: absolute; top: 7px; left: 14px; right: 14px; height: 2px; background: repeating-linear-gradient(90deg,#ba2f2c 0 2px,transparent 2px 14px); opacity: .7; }
.fwa-note > span { font-weight: 950; letter-spacing: .08em; color: #8b2d2a; }
.fwa-note p { margin: 8px 0 0; font-size: 16px; line-height: 1.35; }
.fwa-competition { flex: 0 0 auto; max-height: 48%; overflow-y: auto; display: grid; grid-template-columns: 1fr; gap: 5px; padding: 8px; border: 2px solid #766546; border-radius: 9px; background: rgba(248,244,231,.86); }
.fwa-competition b,.fwa-competition small { grid-column: 1/-1; font-size: 16px; line-height: 1.2; }
.fwa-comp-choice { min-height: 34px; min-width: 0; padding: 5px 6px; border: 2px solid #766546; border-radius: 7px; color: #172d31; background: #fffdf4; font: inherit; font-size: 16px; font-weight: 750; text-align: left; cursor: pointer; }
.fwa-comp-choice[aria-pressed="true"] { color: #fff; border-color: #145a54; background: #176f68; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.fwa-comp-choice:focus-visible { outline: 3px solid #145a54; outline-offset: 2px; }
.fwa-legend { display: grid; gap: 5px; padding: 8px 10px; border-radius: 10px; background: rgba(248,244,231,.86); }
.fwa-legend span { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.fwa-key-arrow { font-size: 25px; color: var(--fwa-teal); font-style: normal; font-weight: 900; line-height: 1; }
.fwa-key-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--fwa-gold); box-shadow: 0 0 0 2px #75520c; }
.fwa-msg { min-height: 1.2em; margin: 0; color: #8f211e; font-weight: 800; }
.fwa-table { position: relative; min-width: 0; overflow: hidden; border: 9px solid var(--fwa-wood); border-radius: 24px; background: #0f5360; box-shadow: inset 0 0 0 4px #c69a62, 0 11px 24px rgba(5,18,24,.28); }
.fwa-table::after { content: "MAP TABLE · LIVE ECOSYSTEM FEED"; position: absolute; z-index: 9; left: 18px; bottom: 9px; padding: 5px 10px; border-radius: 7px; color: #fff; background: rgba(5,30,35,.75); font-size: 16px; font-weight: 900; letter-spacing: .06em; pointer-events: none; }
.fwa-bgsvg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fwa-map { position: absolute; inset: 0; z-index: 2; }
.fwa-map .pnl-node { width: 180px; min-height: 136px; grid-template-rows: 64px auto auto; border-color: rgba(255,255,255,.78); background: rgba(250,252,244,.93); color: #172d31; backdrop-filter: blur(4px); }
.fwa-map .pnl-icon { width: 92px; height: 64px; }
.fwa-map .pnl-node:has(.pnl-tag) { grid-template-rows: 52px auto auto; } .fwa-map .pnl-node:has(.pnl-tag) .pnl-icon { width: 76px; height: 52px; }
.fwa-map .pnl-edge { stroke: #f5f0d8; filter: drop-shadow(0 1px 2px rgba(0,0,0,.8)); }
.fwa-map .pnl-edge:hover,.fwa-map .pnl-edge.is-selected { stroke: #ffd35f; }
.fwa-map .pnl-tags { max-width: 168px; }
.fwa-map .pnl-tag { font-size: 16px; padding: 2px 4px; }
.fwa-map .pnl-tag { color: #172d31; background: #eef2f1; border-color: #627675; }
.fwa-map .pnl-tag[aria-pressed="true"] { color: #fff; background: #176f68; border-color: #145a54; }
.fwa-map .pnl-node.is-removed { opacity: .52; filter: grayscale(.75); border-style: dashed; }
.fwa-map .pnl-node.is-removed::after { content: "REMOVED"; position: absolute; inset: 45% -8px auto; padding: 3px; color: #fff; background: #a92f2a; transform: rotate(-12deg); font-size: 16px; font-weight: 950; text-align: center; }
.fwa-map .pnl-node.is-added { box-shadow: 0 0 0 6px rgba(255,211,95,.7),0 7px 18px rgba(20,35,50,.2); }
.fwa-map .pnl-node.is-added::after { content: "NEW ARRIVAL"; position: absolute; top: -15px; padding: 2px 6px; border-radius: 5px; color: #152d33; background: #ffd35f; font-size: 16px; font-weight: 950; }
.fwa-map .pnl-node.is-pop-up { box-shadow: 0 0 0 7px rgba(35,160,94,.6),0 8px 18px rgba(0,0,0,.25); transform: translate(-50%,-50%) scale(1.12); }
.fwa-map .pnl-node.is-pop-up::before { content: "+ +"; position: absolute; right: -12px; top: 8px; color: #fff; text-shadow: 0 2px 3px #174e31; font-size: 18px; }
.fwa-map .pnl-node.is-pop-down { opacity: .58; transform: translate(-50%,-50%) scale(.86); }
.fwa-pulses { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.fwa-pulse { position: absolute; transform: translate(-50%,-50%); border: 1px solid #5e430c; border-radius: 50%; background: #ffd35f; box-shadow: 0 0 8px #ffeaa0; }
.fwa-ripple-panel,.fwa-level-picker,.fwa-energy { position: absolute; z-index: 12; right: 24px; bottom: 18px; border: 3px solid #263a3e; border-radius: 16px; color: #1d3034; background: rgba(250,247,235,.96); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.fwa-ripple-panel { width: min(520px,55%); padding: 10px; }
.fwa-ripple-panel > p { margin: 0 0 7px; font-size: 16px; }
.fwa-effect { display: grid; grid-template-columns: 125px 1fr; align-items: center; gap: 7px; margin-top: 6px; }
.fwa-effect > span { font-weight: 850; }
.fwa-effect > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.fwa-effect button { min-height: 40px; padding: 5px; border: 2px solid #819096; border-radius: 9px; color: #1d3034; background: #fff; font: 800 16px/1.05 var(--tlg-font-sans,system-ui); cursor: pointer; }
.fwa-effect button[aria-pressed="true"] { border-color: var(--fwa-teal); background: #d6eee9; box-shadow: 0 0 0 2px rgba(23,111,104,.25); }
.fwa-level-picker { left: 18px; right: 18px; bottom: 16px; display: flex; gap: 7px; padding: 9px; overflow-x: auto; }
.fwa-choice { flex: 1 0 92px; min-width: 92px; min-height: 94px; display: grid; grid-template-rows: 58px auto; justify-items: center; padding: 5px; border: 2px solid #819096; border-radius: 12px; color: #1d3034; background: #fff; font: 800 16px/1.05 var(--tlg-font-sans,system-ui); cursor: pointer; }
.fwa-choice span,.fwa-choice svg { display: block; width: 72px; height: 55px; }
.fwa-choice[aria-pressed="true"] { border-color: var(--fwa-teal); background: #d6eee9; box-shadow: inset 0 0 0 2px var(--fwa-teal); }
.fwa-choice.is-answer { border-color: #24784c; box-shadow: 0 0 0 4px rgba(36,120,76,.35); }
.fwa-energy { width: min(650px,72%); display: grid; grid-template-columns: minmax(260px,1fr) 240px; align-items: center; gap: 14px; padding: 12px; }
.fwa-pyramid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fwa-energy-step { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 10px; border: 2px solid #245d5b; color: #fff; background: linear-gradient(90deg,#17756e,#2c9a85); font-size: 16px; clip-path: polygon(8% 0,92% 0,100% 100%,0 100%); }
.fwa-energy-step.is-target { color: #342900; background: linear-gradient(90deg,#e8b83d,#f4d878); }
.fwa-energy .pn { max-width: 240px; }
.fwa-energy .pn-key { min-height: 40px; }
.fwa-example { padding: 14px; border-radius: 18px; color: #172d31; background: linear-gradient(#2a8c8a,#145466); }
.fwa-ex-chain { display: flex; align-items: center; justify-content: center; gap: 9px; }
.fwa-ex-chain > span { width: 150px; min-height: 120px; display: grid; justify-items: center; padding: 7px; border-radius: 14px; background: rgba(255,255,255,.94); }
.fwa-ex-chain svg { width: 105px; height: 75px; }
.fwa-ex-chain i { color: #ffd35f; font-size: 38px; font-style: normal; font-weight: 950; }
.fwa-ex-ripple { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.fwa-ex-ripple span,.fwa-ex-ripple b { padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.92); }
.fwa-start-svg { width: 100%; height: 100%; display: block; border-radius: inherit; }
.is-locked .fwa-effect button,.is-locked .fwa-choice { cursor: default; opacity: 1; }
html[data-theme="dark"] .fwa-reel { background: linear-gradient(145deg,#715f42,#4e402d); }
html[data-theme="dark"] .fwa-note { color: #e7dfc9; background: linear-gradient(#3c382d,#2d2b25); border-color: #8d7b5d; }
html[data-theme="dark"] .fwa-note > span { color: #ff9e91; }
html[data-theme="dark"] .fwa-legend { color: #e8e5da; background: rgba(26,31,32,.88); }
html[data-theme="dark"] .fwa-msg { color: #ffaca3; }
@media (prefers-reduced-motion: reduce) { .fwa-pulse { display: none; } .fwa-map .pnl-node.is-pop-up,.fwa-map .pnl-node.is-pop-down { transition: none; } }
@media (max-width: 1100px) { .fwa { grid-template-columns: 205px minmax(0,1fr); gap: 8px; padding: 7px; } .fwa-reel { padding: 7px; } .fwa-note p { line-height: 1.25; } .fwa-map .pnl-node { width: 100px; grid-template-rows: 54px auto auto; } .fwa-map .pnl-icon { width: 76px; height: 53px; } .fwa-map .pnl-tags { max-width: 92px; } }
@media (max-width: 900px) { .fwa { position: relative; min-height: 850px; grid-template-columns: 1fr; grid-template-rows: auto 620px; overflow: visible; } .fwa-reel { display: grid; grid-template-columns: 180px 1fr; } .fwa-note { min-height: 110px; } .fwa-legend,.fwa-msg { display: none; } .fwa-ripple-panel { width: 65%; } }
