/* The island's effects, gauges and notices (assets/js/sim/fx.js).
   Values from Source/IslandFX.swift, IslandActivity.swift, IslandNotice.swift, main.swift (notchWidth, liveStripHeight). */
[data-sim="fx"] > .cv { background: #111216; }
[data-sim="fx"] .fx-scene { position: absolute; left: 0; top: 0; width: 100%; height: 330px; overflow: hidden; border-radius: 22px 22px 0 0;
  background: url('/assets/img/wallpaper.jpg') center top / 1512px 982px no-repeat; }
[data-sim="fx"] .fx-mb { position: absolute; left: 0; right: 0; top: 0; height: 37px; padding: 0 14px 0 18px; display: flex; align-items: center; justify-content: space-between; font: 500 13.5px/1 var(--ui); color: rgba(255,255,255,.92); background: rgba(10,14,30,.18); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); }
[data-sim="fx"] .fx-mb .l, [data-sim="fx"] .fx-mb .r { display: flex; align-items: center; gap: 18px; }
[data-sim="fx"] .fx-mb img { height: 15px; display: block; }

/* the island (hero look: black, flat top, rounded lower corners, concave ears) */
[data-sim="fx"] .fx-isl { position: absolute; z-index: 2; top: 0; left: 50%; width: 270px; height: 37px; transform: translateX(-50%); color: #fff;
  transition: width .5s cubic-bezier(.3,1.3,.4,1), height .5s cubic-bezier(.3,1.3,.4,1); }
[data-sim="fx"] .fx-isl.plain { transition-timing-function: cubic-bezier(.2,.8,.3,1); transition-duration: .35s; }
[data-sim="fx"] .fx-isl .shape { position: absolute; top: 0; bottom: 0; left: 8px; right: 8px; background: #000; border-radius: 0 0 14px 14px; transition: border-radius .4s; }
[data-sim="fx"] .fx-isl .shape::before, [data-sim="fx"] .fx-isl .shape::after { content: ""; position: absolute; top: 0; width: 8px; height: 8px; background: radial-gradient(circle at 0 100%, transparent 7.5px, #000 8px); }
[data-sim="fx"] .fx-isl .shape::before { left: -8px; } [data-sim="fx"] .fx-isl .shape::after { right: -8px; transform: scaleX(-1); }
[data-sim="fx"] .fx-isl.tall .shape { border-radius: 0 0 22px 22px; }
[data-sim="fx"] .fx-isl.hidden { visibility: hidden; }
[data-sim="fx"] .fx-isl .closed { position: absolute; left: 0; right: 0; top: 0; height: 37px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px 0 16px; transition: opacity .2s; }
[data-sim="fx"] .fx-isl .art { width: 22px; height: 22px; border-radius: 6px; background: url('/assets/img/cover1.jpg') center / cover; }
[data-sim="fx"] .fx-isl .eq { display: flex; align-items: center; gap: 2px; height: 16px; }
[data-sim="fx"] .fx-isl .eq i { width: 3px; height: 30%; border-radius: 2px; background: #ffb35c; animation: fx-eq 1.1s ease-in-out infinite; }
[data-sim="fx"] .fx-isl .eq i:nth-child(2) { animation-delay: .18s; } [data-sim="fx"] .fx-isl .eq i:nth-child(3) { animation-delay: .36s; } [data-sim="fx"] .fx-isl .eq i:nth-child(4) { animation-delay: .54s; }
@keyframes fx-eq { 0%,100% { height: 28%; } 50% { height: 100%; } }
[data-sim="fx"] .fx-isl.wide .closed { opacity: 0; }
[data-sim="fx"] .fx-live { position: absolute; left: 8px; right: 8px; top: 37px; bottom: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .18s; }
[data-sim="fx"] .fx-live.on { opacity: 1; transition-delay: .12s; }
[data-sim="fx"] .sym { display: inline-block; flex: none; background: var(--c, #fff); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

/* IslandHUDStrip */
[data-sim="fx"] .hud { width: 100%; padding: 0 22px; display: flex; align-items: center; gap: 14px; }
[data-sim="fx"] .hud .ic { width: 24px; height: 20px; display: grid; place-items: center; }
[data-sim="fx"] .hud .bar { position: relative; flex: 1; height: 8px; transition: transform .12s cubic-bezier(.3,1.6,.5,1); }
[data-sim="fx"] .hud .bar .tr { position: absolute; inset: 0; border-radius: 4px; background: rgba(255,255,255,.14); }
[data-sim="fx"] .hud .bar .fl { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; transition: width .3s cubic-bezier(.3,1.3,.4,1); }
[data-sim="fx"] .hud .bar .dt { position: absolute; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .9; transition: left .3s cubic-bezier(.3,1.3,.4,1); }
[data-sim="fx"] .hud .lb { min-width: 40px; text-align: right; font: 600 12px/1 var(--ui); color: rgba(255,255,255,.92); font-variant-numeric: tabular-nums; }

/* IslandNoticeStrip / IslandNoticeCaption */
[data-sim="fx"] .nt { display: flex; align-items: center; gap: 12px; padding: 0 18px; }
[data-sim="fx"] .nt .tx b { display: block; font: 600 12px/1.25 var(--ui); color: #fff; white-space: nowrap; }
[data-sim="fx"] .nt .tx span { display: block; font: 400 10px/1.3 var(--ui); color: rgba(255,255,255,.6); white-space: nowrap; }
[data-sim="fx"] .nt .gl { animation: fx-bounce .55s .15s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes fx-bounce { 0% { transform: scale(.55); } 60% { transform: scale(1.2); } 100% { transform: none; } }
[data-sim="fx"] .ring { position: relative; display: grid; place-items: center; font: 700 9.5px/1 ui-rounded, -apple-system, system-ui, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
[data-sim="fx"] .ring svg { position: absolute; inset: 0; }
[data-sim="fx"] .cap { text-align: center; padding: 0 16px 4px; animation: fx-cap .42s .08s cubic-bezier(.3,1.2,.4,1) both; }
[data-sim="fx"] .cap b { display: block; font: 600 11.5px/1.2 var(--ui); color: #fff; white-space: nowrap; }
[data-sim="fx"] .cap span { display: block; font: 400 9.5px/1.25 var(--ui); color: rgba(255,255,255,.58); white-space: nowrap; }
@keyframes fx-cap { from { opacity: 0; filter: blur(4px); transform: translateY(-5px); } }
[data-sim="fx"] .wing { position: absolute; top: 0; height: 37px; width: 46px; display: flex; align-items: center; opacity: 0; transition: opacity .2s; }
[data-sim="fx"] .wing.l { left: 8px; justify-content: flex-end; padding-right: 2px; } [data-sim="fx"] .wing.r { right: 8px; padding-left: 6px; }
[data-sim="fx"] .fx-isl.wide .wing { opacity: 1; transition-delay: .15s; }
[data-sim="fx"] .beat { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
[data-sim="fx"] .beat::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--c); animation: fx-beat 1.3s ease-out infinite; }
@keyframes fx-beat { from { transform: scale(1); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }
/* PeekingFace */
[data-sim="fx"] .peek { width: 40px; overflow: hidden; display: flex; }
[data-sim="fx"] .peek .cp { display: flex; gap: 3px; padding: 3px 5px; border-radius: 10px; background: rgba(90,162,255,.22); box-shadow: inset 0 0 0 .8px rgba(90,162,255,.45); animation: fx-peek .55s .05s cubic-bezier(.3,1.5,.5,1) both; }
[data-sim="fx"] .peek.l { justify-content: flex-start; } [data-sim="fx"] .peek.r { justify-content: flex-end; }
[data-sim="fx"] .peek.l .cp { --from: -30px; } [data-sim="fx"] .peek.r .cp { --from: 30px; }
@keyframes fx-peek { from { transform: translateX(var(--from)); } }
[data-sim="fx"] .peek .e { position: relative; width: 9px; height: 9px; border-radius: 5px; background: rgba(255,255,255,.95); display: grid; place-items: center; animation: fx-blink 1.5s .9s infinite; }
[data-sim="fx"] .peek .e i { width: 4.6px; height: 4.6px; border-radius: 50%; background: #5aa2ff; animation: fx-look 3s .7s infinite; }
@keyframes fx-blink { 0%, 86%, 100% { transform: none; } 90% { transform: scaleY(.16); } }
@keyframes fx-look { 0%, 100% { transform: translateX(0); } 12%, 45% { transform: translateX(-2px); } 58%, 92% { transform: translateX(2px); } }

[data-sim="fx"] .fx-canvas { position: absolute; z-index: 3; left: 0; top: 0; height: 330px; pointer-events: none; }

/* a file to drag at the island */
[data-sim="fx"] .fx-file { position: absolute; z-index: 4; left: 110px; top: 196px; width: 120px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: grab; touch-action: none; transition: transform .45s cubic-bezier(.3,1.3,.4,1), opacity .3s; }
[data-sim="fx"] .fx-file.drag { cursor: grabbing; transition: none; }
[data-sim="fx"] .fx-file img { width: 58px; height: 58px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
[data-sim="fx"] .fx-file span { padding: 2px 7px; border-radius: 5px; font: 600 12px/1.3 var(--ui); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); white-space: nowrap; }
[data-sim="fx"] .fx-file.gulped { opacity: 0; }

/* controls: Settings › Motion rows */
[data-sim="fx"] .fx-ctl { position: absolute; left: 0; top: 342px; width: 100%; padding: 0 16px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font: 500 13px/1.2 var(--ui); color: rgba(255,255,255,.9); }
[data-sim="fx"] .fx-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 .7px rgba(255,255,255,.08); min-width: 0; }
[data-sim="fx"] .fx-row.full { grid-column: 1 / 3; }
[data-sim="fx"] .fx-row h5 { margin: 0; display: flex; align-items: center; gap: 7px; font: 600 13px/1 var(--ui); white-space: nowrap; min-width: 128px; }
[data-sim="fx"] .fx-row h5 .sym { width: 16px; height: 14px; --c: rgba(255,255,255,.8); }
[data-sim="fx"] .fx-opts { display: flex; gap: 4px; flex-wrap: wrap; }
[data-sim="fx"] .fx-opts button { border: 0; cursor: pointer; padding: 6px 10px; border-radius: 12px; font: 500 12px/1 var(--ui); color: rgba(255,255,255,.7); white-space: nowrap;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 .7px rgba(255,255,255,.1); transition: background .15s, color .15s; }
[data-sim="fx"] .fx-opts button:hover { color: #fff; background: rgba(255,255,255,.12); }
[data-sim="fx"] .fx-opts button.on { color: #fff; font-weight: 600; background: rgba(90,162,255,.32); box-shadow: inset 0 0 0 .8px rgba(90,162,255,.7); }
[data-sim="fx"] .fx-opts .sep { width: 1px; align-self: stretch; margin: 2px 4px; background: rgba(255,255,255,.12); }
[data-sim="fx"] .fx-hint { font: 400 12px/1.3 var(--ui); color: rgba(255,255,255,.5); }
[data-sim="fx"] .try { bottom: auto; top: 276px; }

/* ---------- phones (fx.js switches to a 600 × 1250 canvas under 700 px): one row per effect, larger type ---------- */
[data-sim="fx"] .cv.phone .fx-mb .l span:nth-child(n+3) { display: none; }
[data-sim="fx"] .cv.phone .fx-ctl { grid-template-columns: 1fr; gap: 10px; padding: 0 12px 12px; }
[data-sim="fx"] .cv.phone .fx-row.full { grid-column: auto; }
[data-sim="fx"] .cv.phone .fx-row { flex-wrap: wrap; gap: 10px 10px; padding: 12px 14px; border-radius: 16px; }
[data-sim="fx"] .cv.phone .fx-row h5 { font-size: 19px; min-width: 0; width: 100%; gap: 9px; }
[data-sim="fx"] .cv.phone .fx-row h5 .sym { width: 20px; height: 18px; }
[data-sim="fx"] .cv.phone .fx-opts { gap: 7px; }
[data-sim="fx"] .cv.phone .fx-opts button { font-size: 18px; padding: 9px 13px; border-radius: 16px; }
[data-sim="fx"] .cv.phone .fx-hint { font-size: 17px; }
[data-sim="fx"] .cv.phone .try { top: 290px; font-size: 19px; padding: 9px 16px; }
