/* OPERATION NAPKIN: SECOND COAT - FOOD FIGHT styles (play/css/mode-food-01.css). Owner: FOODFIGHT (release K "OPEN KITCHEN").
   The HUD over the arena, the intro card, the feed, the banners, the GOLDEN NAPKIN podium and the MATCH VOID card
   (mode-food-ui-01.js). Prefix mode-ff- (K-INTERFACES 7.7); core's tokens (core-03.css). Phones from 360 px; text stays readable
   (a floor under every arena-scaled size); reduced motion: no pops or pulses. */

/* == the HUD (top centre of the arena) == */
.mode-ff-hud {
  position: absolute; left: 50%; top: calc(1.2% + 2px); transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: max(3px, calc(5px * var(--as)));
  width: min(60%, calc(640px * var(--as))); pointer-events: none;
  font: 400 max(11px, calc(15px * var(--as))) / 1.1 var(--f-display); letter-spacing: 0.03em; color: var(--cream);
}
.mode-ff-top {
  display: flex; align-items: center; gap: max(6px, calc(10px * var(--as))); padding: max(3px, calc(5px * var(--as))) max(8px, calc(14px * var(--as)));
  background: rgba(11, 9, 7, 0.78); border: 2px solid rgba(242, 178, 51, 0.55); border-radius: 999px; white-space: nowrap;
}
.mode-ff-round { color: var(--grease); }
.mode-ff-rule { color: var(--rule, var(--batter)); text-shadow: 0 1px 0 var(--ink); }
.mode-ff-time { min-width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; color: var(--cream); }
.mode-ff-time.low { color: #FF6A4D; animation: mode-ff-tick 1s steps(2, start) infinite; }
@keyframes mode-ff-tick { 50% { color: var(--cream); } }
.mode-ff-board { display: flex; flex-wrap: wrap; justify-content: center; gap: max(3px, calc(6px * var(--as))); }
.mode-ff-chip {
  display: inline-flex; align-items: center; gap: max(3px, calc(5px * var(--as))); max-width: 100%;
  padding: max(2px, calc(4px * var(--as))) max(6px, calc(9px * var(--as)));
  background: rgba(11, 9, 7, 0.74); border: 2px solid var(--seat, var(--cream)); border-radius: 10px;
  font-size: max(10px, calc(13px * var(--as))); transition: opacity .2s, transform .2s;
}
.mode-ff-chip.me { box-shadow: 0 0 0 2px var(--ink), 0 0 10px var(--seat, var(--batter)); }
.mode-ff-chip.ko { opacity: 0.55; }
.mode-ff-chip.won { transform: scale(1.08); background: rgba(242, 178, 51, 0.3); }
.mode-ff-chip.hot { border-style: dashed; }
.mode-ff-dot { width: 0.65em; height: 0.65em; border-radius: 50%; background: var(--seat, var(--cream)); flex: none; }
.mode-ff-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 9em; }
.mode-ff-pips { display: inline-flex; gap: 2px; flex: none; }
.mode-ff-pip { display: block; width: 0.55em; height: 0.55em; border-radius: 50%; border: 1.5px solid var(--grease); background: transparent; }
.mode-ff-pip.on { background: var(--batter); border-color: var(--batter); box-shadow: 0 0 4px rgba(242, 178, 51, 0.8); }
.mode-ff-hp { display: inline-flex; gap: 1px; flex: none; }
.mode-ff-h { display: block; width: 0.6em; height: 0.55em; border-radius: 0.3em 0.3em 0.1em 0.1em; background: rgba(247, 236, 216, 0.18); }
.mode-ff-h.full { background: var(--ketchup); }
.mode-ff-h.half { background: linear-gradient(90deg, var(--ketchup) 50%, rgba(247, 236, 216, 0.18) 50%); }
.mode-ff-tag { color: var(--grease); font-size: 0.82em; }
.mode-ff-tag:empty { display: none; }

/* == the feed (top right) == */
.mode-ff-feed {
  position: absolute; right: 1.2%; top: 14%; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  max-width: 34%; pointer-events: none;
}
.mode-ff-feedrow {
  padding: 3px 8px; border-radius: 8px; background: rgba(11, 9, 7, 0.8); border-left: 4px solid var(--c, var(--batter));
  font: max(10px, calc(13px * var(--as))) / 1.2 var(--f-type); color: var(--cream); transition: opacity .35s, transform .35s;
}
.mode-ff-feedrow.out { opacity: 0; transform: translateX(8px); }

/* == the intro card: TODAY'S SPECIAL == */
.mode-ff-intro {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; pointer-events: none;
  width: min(88%, calc(640px * var(--as))); padding: max(10px, calc(18px * var(--as))) max(12px, calc(24px * var(--as)));
  text-align: center; background: rgba(11, 9, 7, 0.86); border: 3px solid var(--rule, var(--batter)); border-radius: 18px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35); animation: mode-ff-in .32s ease-out both;
}
.mode-ff-intro.out { animation: mode-ff-out .36s ease-in both; }
.mode-ff-intro.calm, .mode-ff-intro.calm.out { animation: none; }
@keyframes mode-ff-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.82); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes mode-ff-out { to { opacity: 0; transform: translate(-50%, -54%) scale(.96); } }
.mode-ff-intro-round { font: 400 max(13px, calc(20px * var(--as))) / 1 var(--f-display); color: var(--grease); letter-spacing: 0.08em; }
.mode-ff-intro-label { margin-top: max(4px, calc(8px * var(--as))); font: max(12px, calc(17px * var(--as))) / 1.1 var(--f-type); color: var(--muted); }
.mode-ff-intro-rule {
  margin-top: max(2px, calc(4px * var(--as))); font: 400 max(30px, calc(72px * var(--as))) / 1 var(--f-display); letter-spacing: 0.03em;
  color: var(--rule, var(--grease)); -webkit-text-stroke: max(1px, calc(2px * var(--as))) var(--ink); paint-order: stroke fill;
  text-shadow: 0 max(2px, calc(4px * var(--as))) 0 var(--ink);
}
.mode-ff-intro-line { margin-top: max(6px, calc(10px * var(--as))); font: max(13px, calc(19px * var(--as))) / 1.25 var(--f-type); color: var(--cream); }
.mode-ff-intro-score { margin-top: max(6px, calc(10px * var(--as))); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.mode-ff-intro-s { font: 400 max(12px, calc(16px * var(--as))) / 1 var(--f-display); color: var(--seat, var(--cream)); }

/* == banners (core's .mtn-banner, FOOD FIGHT look) == */
.mtn-banner.mode-ff-banner .mtn-banner-title { color: var(--grease); }
.mtn-banner.mode-ff-banner.gold .mtn-banner-title { color: var(--batter); }
.mtn-banner.mode-ff-banner.go .mtn-banner-title { color: var(--cream); font-size: max(36px, calc(64px * var(--as))); }
.mtn-banner.mode-ff-banner .mtn-banner-sub { font-size: max(13px, calc(18px * var(--as))); }

/* == the podium and the void card (DOM screens) == */
.mtn-screen-mode-ff-podium, .mtn-screen-mode-ff-void { justify-content: flex-start; background: rgba(11, 9, 7, 0.86); }
.mode-ff-pod {
  margin: auto; width: min(640px, 100%); box-sizing: border-box; padding: 18px 16px 20px; text-align: center;
  background: var(--panel); border: 3px solid var(--batter); border-radius: 18px; box-shadow: 0 6px 0 var(--crust);
}
.mode-ff-pod.void { border-color: var(--muted); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4); }
.mode-ff-pod-kicker { font: 14px/1 var(--f-type); color: var(--muted); letter-spacing: 0.12em; }
.mode-ff-pod-title {
  margin: 6px 0 2px; font: 400 clamp(30px, 8vw, 48px) / 1 var(--f-display); letter-spacing: 0.03em; color: var(--batter);
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink);
}
.mode-ff-pod.void .mode-ff-pod-title { color: var(--cream); }
.mode-ff-pod-sub { margin: 4px 0 10px; font: 400 clamp(18px, 5vw, 24px) / 1.15 var(--f-display); color: var(--grease); }
.mode-ff-pod-cv { display: block; margin: 0 auto 10px; max-width: 100%; }
.mode-ff-places { list-style: none; margin: 0 auto 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; max-width: 400px; }
.mode-ff-place {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: var(--panel-2);
  border-left: 5px solid var(--seat, var(--cream)); font: 400 16px/1.1 var(--f-display); text-align: left;
}
.mode-ff-place.me { outline: 2px solid var(--batter); }
.mode-ff-place-n { width: 1.4em; color: var(--grease); }
.mode-ff-place-nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mode-ff-place-w { color: var(--muted); font: 13px/1 var(--f-type); white-space: nowrap; }
.mode-ff-awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 14px; }
.mode-ff-award { padding: 8px 10px; border-radius: 12px; background: var(--panel-2); border-top: 4px solid var(--seat, var(--batter)); text-align: left; }
.mode-ff-award-name { font: 400 15px/1.1 var(--f-display); color: var(--batter); letter-spacing: 0.03em; }
.mode-ff-award-who { margin-top: 3px; font: 400 16px/1.1 var(--f-display); color: var(--cream); }
.mode-ff-award-line { margin-top: 3px; font: 13px/1.3 var(--f-type); color: var(--muted); }
.mode-ff-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mode-ff-btn { min-width: 160px; min-height: 52px; }
.mode-ff-btn.big { min-width: 200px; min-height: 60px; font-size: 22px; }
.mode-ff-note { margin: 10px 0 0; font: 13px/1.35 var(--f-type); color: var(--muted); }

/* == a portrait phone: the arena is small, the bodies carry name tags - the chips keep colour, round wins and hearts == */
html.mtn-portrait .mode-ff-nm, html.mtn-portrait .mode-ff-tag { display: none; }
html.mtn-portrait .mode-ff-hud { width: 96%; top: 1%; gap: 2px; }
html.mtn-portrait .mode-ff-board { flex-wrap: nowrap; gap: 3px; }
html.mtn-portrait .mode-ff-chip { padding: 1px 5px; gap: 3px; }

/* == small screens == */
@media (max-width: 480px) {
  .mode-ff-hud { width: 94%; }
  .mode-ff-nm { max-width: 5.5em; }
  .mode-ff-feed { max-width: 48%; top: 22%; }
  .mode-ff-btn, .mode-ff-btn.big { min-width: 0; flex: 1 1 140px; }
  .mode-ff-pod { padding: 14px 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .mode-ff-intro, .mode-ff-intro.out, .mode-ff-time.low { animation: none; }
  .mode-ff-chip, .mode-ff-feedrow { transition: none; }
}
