/* Fendas Instáveis e Monstros Alfa (web/js/rift.js; the owner's approved mockup, 2026-10-23): only the client's
   pieces (pf-panel, an-kv, cgrid, aw-path, ba-outcome, cp-bar), the gold #c5b47c for a choice, Tibia's own colours. */
.fx-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;padding:6px}
.fx-head .cy-well{display:grid;place-items:center;width:52px;height:52px}
.fx-head b{display:block;font:13px/15px 'Tibia Pixel',Verdana,sans-serif;color:#e4ca78;text-shadow:1px 1px #000}
.fx-head small{display:block;font:11px/13px 'Tibia Pixel',Verdana,sans-serif;color:#a9a9a9}
.fx-mods{display:grid;gap:3px;padding:4px}
.fx-mod{display:grid;grid-template-columns:24px minmax(0,1fr);gap:6px;align-items:center;padding:3px 5px;background:#262626;border:1px solid #111;box-shadow:inset 1px 1px #000,1px 1px #6a6a6a;font:11px/13px 'Tibia Pixel',Verdana,sans-serif;color:#c0c0c0}
.fx-mod img{width:20px;height:20px;image-rendering:pixelated}
.fx-mod b{display:block;color:#fff;font-weight:normal}
.fx-mod small{display:block;color:#a9a9a9;font-size:10px;line-height:12px}
.fx-mod em{font-style:normal;color:#e8c547}
.fx-who{display:grid;gap:3px;padding:4px}
.fx-who .fx-p{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:6px;align-items:center;min-height:40px;padding:2px 6px;background:#2a2a2a;border:1px solid #111;box-shadow:inset 1px 1px #000,1px 1px #6a6a6a;line-height:13px;font:11px/13px 'Tibia Pixel',Verdana,sans-serif}
.fx-who .fx-p.sel{border-color:#c5b47c;box-shadow:inset 0 0 0 1px #c5b47c}
.fx-who .fx-p span{min-width:0}
.fx-who b{display:block;font-weight:normal;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fx-who small{display:block;font-size:10px;color:#a9a9a9}
.fx-who i{font-style:normal;font-size:10px;color:#5fc85f;white-space:nowrap}
.fx-who i.off{color:#e8756c}
.fx-path{display:grid;grid-template-columns:repeat(auto-fit,minmax(56px,1fr));gap:3px;padding:4px}
.fx-room{position:relative;display:grid;justify-items:center;gap:2px;padding:4px 2px 3px;background:#262626;border:1px solid #111;box-shadow:inset 1px 1px #000,1px 1px #6a6a6a;font:10px/12px 'Tibia Pixel',Verdana,sans-serif;color:#a9a9a9;text-align:center;min-width:0}
.fx-room canvas,.fx-room img{width:32px;height:32px;image-rendering:pixelated}
.fx-room b{color:#c0c0c0;font-weight:normal;white-space:nowrap}
.fx-room.done b{color:#5fc85f}
.fx-room.now{border-color:#c5b47c;box-shadow:inset 0 0 0 1px #c5b47c}
.fx-room.now b{color:#fff}
.fx-room.lock{opacity:.55}
.fx-timer{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;align-items:center;padding:4px 6px;font:11px/13px 'Tibia Pixel',Verdana,sans-serif;color:#c0c0c0}
.fx-timer img{width:16px;height:16px;image-rendering:pixelated}
.fx-timer b{font:16px/16px 'Tibia Pixel',Verdana,sans-serif;color:#e8c547}
.fx-bar{position:relative;height:8px;background:#1c1c1c;border:1px solid #0d0d0d;box-shadow:1px 1px #6a6a6a}
.fx-bar i{position:absolute;left:0;top:0;bottom:0;background:#e8c547}
.fx-bar.red i{background:#e8584c}
.fx-sum{display:flex;justify-content:space-between;gap:6px;padding:2px 6px 4px;font:11px/13px 'Tibia Pixel',Verdana,sans-serif;color:#a9a9a9}
.fx-sum b{color:#f4d35e;font-weight:normal}
.fx-win .cgrid .slot.rift,.cgrid .slot.rift{outline:2px solid #e8c547;outline-offset:-2px}
.fx-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px}
.fx-choice .aw-path{align-content:start;min-width:0;padding:6px 5px 6px;text-align:left;justify-items:stretch}
.fx-choice .aw-path>b{font-size:13px;line-height:15px;text-align:center}
.fx-lines{display:grid;gap:1px}.fx-lines span{font:10px/12px 'Tibia Pixel',Verdana,sans-serif;color:#c0c0c0;text-align:center}
.fx-lines .good{color:#5fc85f}.fx-lines .bad{color:#e8756c}.fx-lines .gold{color:#f4d35e}
.fx-choice .aw-path p{margin:0;font:10px/12px 'Tibia Pixel',Verdana,sans-serif;color:#a9a9a9;text-align:center}
.fx-choice .aw-path .fx-big{display:grid;place-items:center;height:44px}
.fx-choice .aw-path .fx-big img{width:32px;height:32px;image-rendering:pixelated}
.fx-traits{display:grid;gap:3px;padding:4px}
.fx-trait{display:grid;grid-template-columns:36px minmax(0,1fr);gap:6px;align-items:center;padding:3px 5px;background:#262626;border:1px solid #111;box-shadow:inset 1px 1px #000,1px 1px #6a6a6a}
.fx-trait .cy-well{display:grid;place-items:center;width:34px;height:34px}
.fx-trait img{width:24px;height:24px;image-rendering:pixelated}
.fx-trait b{display:block;font:12px/14px 'Tibia Pixel',Verdana,sans-serif;color:#fff;font-weight:normal}
.fx-trait small{display:block;font:10px/12px 'Tibia Pixel',Verdana,sans-serif;color:#a9a9a9}
.fx-trait small em{font-style:normal;color:#5fc85f}
.fx-trait.unk b{color:#a9a9a9}
.fx-alfa-top{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;padding:6px}
.fx-alfa-top .cy-well{display:grid;place-items:center;width:84px;height:84px}
.fx-alfa-top .an-kv{margin:0}
.fx-tags{display:flex;flex-wrap:wrap;gap:3px;padding:0 6px 6px}
.fx-rows{display:grid;gap:3px;padding:4px}
.fx-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:6px;align-items:center;padding:3px 5px;background:#262626;border:1px solid #111;box-shadow:inset 1px 1px #000,1px 1px #6a6a6a;font:11px/13px 'Tibia Pixel',Verdana,sans-serif}
.fx-row .cy-well{display:grid;place-items:center;width:38px;height:38px}
.fx-row b{display:block;color:#fff;font-weight:normal}
.fx-row small{display:block;color:#a9a9a9;font-size:10px;line-height:12px}
.fx-row .n{color:#e8c547;white-space:nowrap}
.fx-row.unk b{color:#a9a9a9}
.fx-combos{display:flex;flex-wrap:wrap;gap:3px;padding:2px 6px 6px}
.fx-table{width:100%;border-collapse:collapse;font:11px/13px 'Tibia Pixel',Verdana,sans-serif;color:#c0c0c0;table-layout:fixed}
.fx-table th,.fx-table td{padding:3px 4px;text-align:left;white-space:nowrap;border-bottom:1px solid #1c1c1c;overflow:hidden;text-overflow:ellipsis}
.fx-table th{color:#a9a9a9;font-weight:normal}
.fx-table td.r,.fx-table th.r{text-align:right}
.fx-table tr.me td{color:#fff;background:#2b2614}
.fx-table td b{color:#e8c547;font-weight:normal}
.ba-outcome .fx-out-items{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin:0 0 6px}
.ba-outcome .fx-out-items .slot{position:relative;display:grid;place-items:center;width:34px;height:34px;background:#262626;border:1px solid #111;box-shadow:inset 1px 1px #000,1px 1px #6a6a6a}
.ba-outcome .fx-out-items .slot.rift{outline:2px solid #e8c547;outline-offset:-2px}
.ba-outcome .fx-out-items .slot .n{position:absolute;right:1px;bottom:0;font:10px/10px 'Tibia Pixel',Verdana,sans-serif;color:#fff;text-shadow:1px 1px #000}
.ba-outcome .an-kv b.gold{color:#f4d35e}
.ba-outcome .an-kv b.good{color:#5fc85f}
.fx-gauge{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;align-items:center;padding:4px 6px;font:11px/13px 'Tibia Pixel',Verdana,sans-serif;color:#c0c0c0}
.fx-gauge img{width:20px;height:20px;image-rendering:pixelated}
.fx-gauge b{color:#e8c547;font-weight:normal}
.fx-kept{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:6px;align-items:center;width:100%;padding:4px 6px;text-align:left;border-color:#c5b47c;box-shadow:inset 0 0 0 1px #c5b47c}
.fx-kept b{display:block;font-weight:normal;color:#fff}
.fx-kept i{display:block;font-style:normal;font-size:10px;color:#f4d35e}
.fx-kept span:last-child{color:#f4d35e;white-space:nowrap}
.fx-auto{display:grid;grid-template-columns:auto minmax(0,1.8fr) repeat(4,minmax(0,1fr));gap:3px;align-items:center;padding:4px;font:11px/13px 'Tibia Pixel',Verdana,sans-serif;color:#a9a9a9}
.fx-auto button{min-height:28px;padding:2px;white-space:nowrap}
.fx-auto button.sel{color:#fff;border-color:#c5b47c;box-shadow:inset 0 0 0 1px #c5b47c}
.cy-gold{color:#e8c547}
#nx .fx-ic{display:grid;place-items:center;width:32px;height:32px}
#nx canvas.fx-ic{width:32px;height:32px;image-rendering:pixelated}
#rift-anim{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:30;image-rendering:pixelated}
.ba-outcome .an-kv.fx-res{grid-template-columns:auto minmax(0,1fr)}
.ba-outcome .an-kv.fx-res b{text-align:right}
/* the narrowest phones (320 px): "Ao abrir" puts its label above the choices, in rows of three (nothing cut) */
@media (max-width:359px){.fx-auto{grid-template-columns:repeat(3,minmax(0,1fr))}.fx-auto>span{grid-column:1/-1}}
