/* OPERATION NAPKIN - ITEMS module styles (play/css/items-05.css). Owner: ITEMS-L (release L "PLAYERS' LIST 4", 2026-11-05).
   items-05 (release L, L7; docs/L-INTERFACES-v01.md 3.7, 7.7): the TUNE-UP picker (scene 'items-tune', prefix items-tune-): a
   header with the TUNE-UP icon, one card per owned item (icon, name with its level, "II -> III: ..." or CAN'T BE TUNED / MAX
   greyed and not selectable), CANCEL. Two columns from 360 px, more on wide screens; the screen scrolls, nothing overflows
   sideways. Co-op: the taker's bar and clock (the boon offer's .items-mp-bar), everybody else a small waiting card.
   Everything else: items-04, line for line.
   (items-04's header:) OPERATION NAPKIN - ITEMS module styles (play/css/items-04.css). Owner: ITEMS (MP build: WORLD-ITEMS).
   Co-op (items-04): the boon offer as a team pause (items-boons-05): the bar with who is ordering (in that seat's colour)
   and the clock, read-only cards for everybody but the picker (still tappable: a THIS ONE! marker in the voter's seat
   colour), the picker's sent card. Seat colours arrive as --seat (set through the CSSOM, never inline markup).
   SHOP-BEAR finisher 2 (items-03): the reduced-motion block holds only its own two rules again (a merge had pasted the stat
   chip rules into it, which overrode the 12 px phone size); banners in a shop room (.items-banner-shop) sit below THE NIGHT
   MANAGER's counter instead of on his face.
   SHOP-BEAR v02 (items-02): icons on the boon cards (slot / ability icon left of the slot name, god icons on the right),
   the stat chip row under item and DEAL. banners; the old footer button style is gone.
   The Condiment God offer / PINCH OF SALT overlay (scene 'boon'), rarity card frames, item banners.
   Uses the core tokens (--ink, --batter, --cream, --f-display, --f-type ...). Every class is prefixed items-. */

.items-offer {
  --god: #F2B233; --god-ink: #2A2017;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--god) 30%, transparent), transparent 60%),
    rgba(11, 9, 7, 0.88);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .items-offer { background: rgba(11, 9, 7, 0.88); }
}
.items-offer-box { width: min(100%, 1000px); margin: auto; display: flex; flex-direction: column; gap: 14px; }
.items-offer-head { display: flex; align-items: center; gap: 14px; padding: 0 4px; }
.items-portrait { flex: 0 0 auto; border-radius: 50%; background: rgba(247, 236, 216, 0.06); box-shadow: 0 0 0 3px var(--god), 0 0 22px color-mix(in srgb, var(--god) 55%, transparent); }
.items-offer-headtext { min-width: 0; }
.items-god-name {
  font: 400 clamp(26px, 5vw, 40px)/1 var(--f-display); letter-spacing: 0.03em; color: var(--god);
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink);
}
.items-salt .items-god-name { color: #FFFFFF; }
.items-god-line { margin-top: 6px; font: clamp(14px, 2.8vw, 18px)/1.3 var(--f-type); color: var(--cream); }
.items-god-status { margin-top: 4px; font: 12px/1.2 var(--f-type); color: var(--muted); letter-spacing: 0.04em; }

.items-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.mtn-btn.items-card {
  display: flex; flex-direction: column; align-items: stretch; gap: 7px; text-align: left; text-transform: none; letter-spacing: 0;
  min-height: 150px; padding: 12px 14px 14px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, #241B14, #16110D); color: var(--cream);
  border: 3px solid #E9DCC4; box-shadow: 0 5px 0 var(--ink); font: 14px/1.35 var(--f-body);
  position: relative; overflow: hidden;
}
.mtn-btn.items-card:hover, .mtn-btn.items-card:focus-visible { transform: translateY(-2px); filter: brightness(1.08); }
.mtn-btn.items-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.items-card-top { display: flex; align-items: center; gap: 8px; font: 400 13px/1 var(--f-display); letter-spacing: 0.06em; }
.items-card-key {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px;
  background: rgba(247, 236, 216, 0.12); color: var(--cream); font-size: 13px;
}
.items-slot { color: var(--god); }
.items-card-icon { flex: 0 0 auto; }
.items-card-gods { display: inline-flex; gap: 3px; flex: 0 0 auto; }
.items-rarity { margin-left: auto; padding: 3px 7px; border-radius: 6px; background: rgba(247, 236, 216, 0.12); color: var(--cream); }
.items-card-name { font: 400 clamp(20px, 3.4vw, 26px)/1.05 var(--f-display); letter-spacing: 0.02em; color: #FFF3E0; }
.items-card-text { font: 14px/1.35 var(--f-body); color: var(--cream); }
.items-card-text.old { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(185, 168, 143, 0.6); font-size: 13px; }
.items-card-quote { font: 13px/1.3 var(--f-type); color: var(--grease); }
.items-card-replaces { font: 400 12px/1.2 var(--f-display); letter-spacing: 0.05em; color: #FF8F6B; }
.items-card-duo { font: 400 12px/1.2 var(--f-display); letter-spacing: 0.05em; color: var(--grease); }

/* rarity frames (GDD 12.1): FRESH cream, GOLDEN gold, EXTRA CRISPY crispy brown with crumbs, DEEP-FRIED saturated + Impact + flare, DUO half-and-half */
.items-card.r-golden { border-color: #F2B233; box-shadow: 0 5px 0 var(--ink), 0 0 18px rgba(242, 178, 51, 0.35); }
.items-card.r-golden .items-rarity { background: #F2B233; color: var(--ink); }
.items-card.r-extra-crispy {
  border-color: #B8651B;
  background:
    radial-gradient(circle at 12% 88%, rgba(200, 150, 75, 0.35) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 16%, rgba(200, 150, 75, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 92%, rgba(200, 150, 75, 0.3) 0 2.5px, transparent 3.5px),
    linear-gradient(180deg, #2E1D10, #1A100A);
}
.items-card.r-extra-crispy .items-rarity { background: #B8651B; color: #FFF3E0; }
.items-card.r-deep-fried {
  border-color: #FF7A1A; background: linear-gradient(160deg, #5A1F07, #22110A 70%);
  box-shadow: 0 5px 0 var(--ink), 0 0 24px rgba(255, 122, 26, 0.5);
}
.items-card.r-deep-fried .items-card-name { font-family: var(--f-meme); color: #FFFFFF; -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; text-shadow: 0 0 8px rgba(255, 180, 60, 0.9); }
.items-card.r-deep-fried .items-rarity { background: #FF7A1A; color: #FFFFFF; font-family: var(--f-meme); }
.items-card.r-deep-fried::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 245, 210, 0.75), rgba(255, 170, 60, 0.25) 35%, transparent 65%);
}
.items-card.r-duo {
  border-color: transparent;
  background: linear-gradient(#1E1711, #1E1711) padding-box, linear-gradient(90deg, var(--g1) 50%, var(--g2) 50%) border-box;
}
.items-card.r-duo .items-rarity { background: linear-gradient(90deg, var(--g1) 50%, var(--g2) 50%); color: var(--ink); }

.items-offer-foot { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.items-offer-hint { font: 13px/1.3 var(--f-type); color: var(--muted); }

/* item / synergy / transformation banners (title Anton, quote Special Elite) */
.items-banner .mtn-banner-sub { color: var(--grease); }
.items-syn .mtn-banner-title { color: #FFD166; }
.items-tf .mtn-banner-title { color: #FFFFFF; }
/* stat chips under an item or DEAL. banner: [icon] +0.5 DAMAGE ... (text stays as the label) */
.items-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-top: 6px; }
.items-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 4px; border-radius: 999px;
  background: rgba(11, 9, 7, 0.72); color: var(--cream); font: 400 14px/1.2 var(--f-display); letter-spacing: 0.04em;
}
.items-chip.good .items-chip-t { color: #9CF0A8; }
.items-chip.bad .items-chip-t { color: #FFB3A8; }
.items-deal .items-chips { flex-direction: column; align-items: center; }
.items-meme .mtn-banner-title { font-family: var(--f-meme); color: #FFFFFF; -webkit-text-stroke: calc(3px * var(--as)) #000; transform: rotate(-3deg); }

@media (max-width: 720px) {
  .items-cards { grid-template-columns: 1fr; gap: 9px; }
  .mtn-btn.items-card { min-height: 0; padding: 10px 12px 12px; gap: 5px; }
  .items-offer-head { gap: 10px; }
  .items-portrait { width: 64px !important; height: 64px !important; }
  .items-chip { font-size: 12px; }
}
@media (max-height: 520px) and (min-width: 600px) {
  .items-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .mtn-btn.items-card { min-height: 0; padding: 8px 10px 10px; gap: 4px; font-size: 13px; }
  .items-card-name { font-size: 19px; }
  .items-card-text { font-size: 12.5px; }
  .items-portrait { width: 56px !important; height: 56px !important; }
  .items-god-name { font-size: 26px; }
  .items-offer-box { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .mtn-btn.items-card:hover, .mtn-btn.items-card:focus-visible { transform: none; }
  .items-meme .mtn-banner-title { transform: none; }
}

/* finisher 2: a banner in a shop room starts below the counter (keep-clear box bottom y 222 of 576 = 38.5 %) */
.mtn-banner.items-banner-shop { top: 40%; }


/* ---- co-op: the team-pause boon offer (items-boons-05) ---- */
.items-mp-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 12px;
  background: rgba(11, 9, 7, 0.72); box-shadow: inset 0 0 0 2px rgba(247, 236, 216, 0.14);
}
.items-mp-who {
  --seat: #F2B233; flex: 1 1 auto; min-width: 0; color: var(--seat);
  font: 400 clamp(16px, 3.2vw, 22px)/1.1 var(--f-display); letter-spacing: 0.04em;
  -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; text-shadow: 0 2px 0 var(--ink);
}
.items-mp-clock {
  flex: 0 0 auto; min-width: 2.2em; padding: 2px 8px; border-radius: 8px; text-align: center;
  background: rgba(247, 236, 216, 0.12); color: var(--cream); font: 400 clamp(18px, 3.4vw, 24px)/1.1 var(--f-display);
  font-variant-numeric: tabular-nums;
}
.items-mp-clock.items-mp-late { background: #E2332B; color: #FFF3E0; }
.items-offer-ro .mtn-btn.items-card { filter: saturate(0.85) brightness(0.92); }
.items-offer-ro .mtn-btn.items-card:hover, .items-offer-ro .mtn-btn.items-card:focus-visible { filter: saturate(1) brightness(1.02); }
.items-card-hints { display: flex; flex-wrap: wrap; gap: 4px; min-height: 0; }
.items-card-hints:empty { display: none; }
.items-hint {
  --seat: #F2B233; display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  background: var(--seat); color: var(--ink); font: 400 12px/1.2 var(--f-display); letter-spacing: 0.05em;
  box-shadow: 0 2px 0 var(--ink);
}
.mtn-btn.items-card.items-card-sent { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (max-width: 720px) {
  .items-mp-bar { padding: 6px 9px; gap: 8px; }
  .items-hint { font-size: 11px; padding: 1px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .items-offer-ro .mtn-btn.items-card:hover, .items-offer-ro .mtn-btn.items-card:focus-visible { transform: none; }
}


/* ---- release L (items-05): the TUNE-UP picker (items-tune-01, scene 'items-tune') ---- */
.items-tune {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 209, 102, 0.22), transparent 60%),
    rgba(11, 9, 7, 0.88);
}
/* a tall list must scroll from its top: with the core screen's justify-content: center an overflowing box would be cut at the top
   (unreachable); flex-start + the box's auto margins still centre it whenever it fits */
.mtn-screen.items-tune { justify-content: flex-start; }
.items-tune-box { width: min(100%, 860px); margin: auto; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.items-tune-head { display: flex; align-items: center; gap: 12px; padding: 0 4px; min-width: 0; }
.items-tune-head .items-tune-ic { flex: 0 0 auto; border-radius: 50%; background: rgba(255, 209, 102, 0.1); box-shadow: 0 0 0 3px #FFD166; }
.items-tune-headtext { min-width: 0; }
.items-tune-title {
  font: 400 clamp(26px, 5vw, 40px)/1 var(--f-display); letter-spacing: 0.04em; color: #FFD166;
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink);
}
.items-tune-line { margin-top: 6px; font: clamp(14px, 2.8vw, 18px)/1.3 var(--f-type); color: var(--cream); overflow-wrap: anywhere; }
.items-tune-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; min-width: 0; }
.mtn-btn.items-tune-card {
  display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 64px; padding: 8px 10px; text-align: left;
  text-transform: none; letter-spacing: 0; border-radius: 12px; cursor: pointer; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #241B14, #16110D); color: var(--cream); border: 3px solid #E9DCC4;
  box-shadow: 0 4px 0 var(--ink); font: 13px/1.3 var(--f-body);
}
.mtn-btn.items-tune-card:hover, .mtn-btn.items-tune-card:focus-visible { transform: translateY(-2px); filter: brightness(1.08); border-color: #FFD166; }
.mtn-btn.items-tune-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.mtn-btn.items-tune-card:disabled, .mtn-btn.items-tune-card.items-tune-off {
  cursor: default; filter: grayscale(0.85) brightness(0.7); border-color: rgba(233, 220, 196, 0.35); box-shadow: 0 2px 0 var(--ink); transform: none;
}
.mtn-btn.items-tune-card.items-tune-sent { outline: 3px solid var(--teal); outline-offset: 3px; }
.items-tune-card .items-tune-ic { flex: 0 0 auto; }
.items-tune-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.items-tune-name { font: 400 16px/1.1 var(--f-display); letter-spacing: 0.03em; color: #FFF3D6; overflow-wrap: anywhere; }
.items-tune-next { font: 12.5px/1.25 var(--f-type); color: #FFD166; overflow-wrap: anywhere; }
.items-tune-next.items-tune-dim { color: var(--muted); letter-spacing: 0.04em; }
.items-tune-foot { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.items-tune-hint { font: 13px/1.3 var(--f-type); color: var(--muted); text-align: center; }
.items-tune-ro { background: rgba(11, 9, 7, 0.55); }
.items-tune-ro .items-tune-box { width: min(100%, 460px); padding: 14px; border-radius: 14px; background: rgba(22, 17, 13, 0.92); box-shadow: inset 0 0 0 2px rgba(255, 209, 102, 0.35); }
@media (max-width: 720px) {
  .items-tune-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mtn-btn.items-tune-card { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 0; padding: 7px 8px; }
  .items-tune-name { font-size: 14px; }
  .items-tune-next { font-size: 11.5px; }
  .items-tune-head .items-tune-ic { width: 44px !important; height: 44px !important; }
}
@media (max-height: 520px) and (min-width: 600px) {
  .items-tune-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 7px; }
  .mtn-btn.items-tune-card { min-height: 0; padding: 5px 8px; }
  .items-tune-title { font-size: 26px; }
  .items-tune-box { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .mtn-btn.items-tune-card:hover, .mtn-btn.items-tune-card:focus-visible { transform: none; }
}
