@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,500&family=Lato:wght@300;400;700;900&family=Quicksand:wght@500;600;700&family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700&display=swap');
/* ============================================================
   UNGGOY DAY-OFF TOURNAMENT — Tekken arcade skin (2026-10)
   Sections: mockup shell → legacy variable map → chat/modals/mini-cal (ported) → leave-form PNG card (verbatim)
   ============================================================ */

:root {
  --bg0: #0d0614; --bg1: #1d0b2b; --bg2: #2c0f3d;
  --hot: #ff2d7a; --hot2: #ff6aa6; --cyan: #3ee6ff; --gold: #ffd84d;
  --ink: #f4ecff; --dim: #a990c4; --tile: #160a22;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { background: #0d0614; }
html, body { overflow: hidden; } /* screens scroll internally; keeps the off-screen disco layer from adding page height */
body {
  background: radial-gradient(120% 80% at 50% 0%, var(--bg2), var(--bg0) 70%);
  color: var(--ink); font-family: 'Rajdhani', sans-serif; overflow-x: hidden;
}
body::before { /* scanlines */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
}
.screen { position: fixed; inset: 0; overflow-y: auto; padding: 28px 16px 60px; display: none; z-index: 2; }
#bg3d { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; background: transparent; }
.screen.on { display: block; }
.mock-note { position: fixed; left: 12px; bottom: 10px; z-index: 60; font-size: 12px; color: var(--dim); letter-spacing: 1px; }

/* ---------- SELECT YOUR FIGHTER ---------- */
.title-wrap { text-align: center; margin: 6px 0 22px; }
.bracket { display: inline-block; position: relative; padding: 0 22px; }
.bracket::before, .bracket::after { content: ''; position: absolute; width: 16px; height: 16px; border: 3px solid var(--hot); }
.bracket::before { left: 0; top: -4px; border-right: 0; border-bottom: 0; }
.bracket::after { right: 0; bottom: -2px; border-left: 0; border-top: 0; }
h1 { font-family: 'Teko', sans-serif; font-style: italic; font-weight: 700; font-size: clamp(34px, 6vw, 58px); letter-spacing: 2px; margin: 0; line-height: 1; text-transform: uppercase; }
.sub { color: var(--cyan); font-family: 'Teko'; font-size: clamp(16px, 2.6vw, 22px); letter-spacing: 3px; text-transform: uppercase; }
#select.on { display: flex; flex-direction: column; justify-content: center; justify-content: safe center; }
#select > * { flex-shrink: 0; }
/* flex-wrap so an unfinished last row stays centred */
.grid { --cols: 8; --gap: 6px; --squad-gap: 22px; max-width: 1060px; width: 100%; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 14px var(--squad-gap); padding: 0 14px; container-type: inline-size; }
/* tile width = an 8-column wall (4 on phones) of the grid's content box, whichever squad the tile sits in */
.grid .tile { width: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
@media (max-width: 760px) { .grid { --cols: 4; --squad-gap: 14px; } }
/* Squads (Doc 2026-11-05): a labelled strip in the squad's role colour, tiles underneath */
.squad { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.squad-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px var(--gap); }
.squad-head { display: flex; align-items: center; gap: 8px; padding: 0 2px; }
.squad-head::after { content: ''; flex: 1; height: 2px; min-width: 10px; background: linear-gradient(90deg, var(--sc), transparent); opacity: .85; }
.squad-name { display: inline-block; transform: skewX(-12deg); background: var(--sc); color: #130a1e; font-family: 'Teko'; font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: 2.5px; padding: 4px 10px 1px; box-shadow: 0 0 12px color-mix(in srgb, var(--sc) 55%, transparent); }
.squad-sub { font: 700 9px 'Rajdhani'; letter-spacing: 2px; color: var(--sc); opacity: .9; white-space: nowrap; }
.squad-sub::before { content: '\25B8'; margin-right: 5px; opacity: .7; }
.tile {
  position: relative; aspect-ratio: 3 / 4; transform: skewX(-12deg); overflow: hidden; cursor: pointer;
  background: linear-gradient(160deg, #24103a, #0b0612); border: 2px solid rgba(255,45,122,.25);
  transition: border-color .18s, box-shadow .18s; will-change: transform;
}
.grid { perspective: 900px; }
.tile:hover, .tile:focus-visible { border-color: var(--hot); box-shadow: 0 0 22px rgba(255,45,122,.6), 0 0 40px rgba(62,230,255,.25); z-index: 2; outline: none; }
.tile::after { /* light sweep on hover */
  content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transform: translateX(-120%); pointer-events: none;
}
.tile:hover::after { animation: sweep .7s ease-out; }
@keyframes sweep { to { transform: translateX(120%); } }
/* K.O. (resigned) fighter: grey, stamped, shakes when tapped */
.tile.ko { cursor: not-allowed; border-color: rgba(255,255,255,.12); }
.tile.ko .inner { filter: grayscale(1) brightness(.72) contrast(1.05); }
.tile.ko .tag { filter: grayscale(1); opacity: .6; }
.tile.ko .name { color: #8a8a99; }
.tile.ko:hover, .tile.ko:focus-visible { border-color: rgba(255,60,60,.7); box-shadow: 0 0 22px rgba(255,40,40,.45); }
.tile.ko:hover::after { animation: none; }
.ko-stamp { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%) skewX(12deg) rotate(-16deg); font-family: 'Teko'; font-weight: 700; font-size: clamp(22px, 3.2vw, 38px); line-height: 1; letter-spacing: 2px; color: #ff3030; border: 3px solid #ff3030; padding: 1px 8px 0; text-shadow: 0 0 10px rgba(255,48,48,.9); box-shadow: 0 0 12px rgba(255,48,48,.5); background: rgba(10,0,0,.25); pointer-events: none; z-index: 3; }
.tile.shake { animation: ko-shake .6s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes ko-shake { 10%, 90% { transform: skewX(-12deg) translate3d(-2px, 0, 0); } 20%, 80% { transform: skewX(-12deg) translate3d(4px, 0, 0); } 30%, 50%, 70% { transform: skewX(-12deg) translate3d(-7px, 0, 0); } 40%, 60% { transform: skewX(-12deg) translate3d(7px, 0, 0); } }
/* LOCKED fighter (2026-11-05): approved still shown in full colour, padlock badge, hero-pose clip comes later. Fully playable. */
.tile.locked { border-style: dashed; border-color: rgba(255,214,90,.45); }
.tile.locked:hover, .tile.locked:focus-visible { border-style: solid; border-color: #ffd65a; box-shadow: 0 0 22px rgba(255,214,90,.55), 0 0 40px rgba(255,45,122,.25); }
.lock-badge { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%) skewX(12deg); display: flex; flex-direction: column; align-items: center; gap: 0; padding: 4px 9px 3px; border: 2px solid #ffd65a; background: rgba(8,4,16,.72); color: #ffd65a; box-shadow: 0 0 14px rgba(255,214,90,.45), inset 0 0 10px rgba(255,214,90,.12); pointer-events: none; z-index: 3; backdrop-filter: blur(2px); }
.lock-badge svg { width: 18px; height: 18px; fill: #ffd65a; filter: drop-shadow(0 0 4px rgba(255,214,90,.8)); }
.lock-badge b { font-family: 'Teko'; font-weight: 700; font-size: 17px; line-height: 1; letter-spacing: 2.5px; text-shadow: 0 0 8px rgba(255,214,90,.8); }
.lock-badge small { font: 700 7px 'Rajdhani'; letter-spacing: 1.2px; color: #fff3c4; white-space: nowrap; }
.lock-badge.big { transform: translate(-50%, 0); top: auto; bottom: 9%; left: 50%; padding: 8px 20px 6px; border-width: 3px; animation: lock-pulse 2.2s ease-in-out infinite; }
.lock-badge.big svg { width: 34px; height: 34px; }
.lock-badge.big b { font-size: 34px; letter-spacing: 5px; }
.lock-badge.big small { font-size: 11px; letter-spacing: 3px; }
@keyframes lock-pulse { 0%, 100% { box-shadow: 0 0 14px rgba(255,214,90,.45), inset 0 0 10px rgba(255,214,90,.12); } 50% { box-shadow: 0 0 30px rgba(255,214,90,.85), inset 0 0 16px rgba(255,214,90,.25); } }
.fighter-video-wrap.locked { position: relative; display: inline-block; }
.tile.ko .lock-badge { display: none; }
h1 .ch { display: inline-block; will-change: transform; }
.plate { will-change: transform; }
.tile .inner { position: absolute; inset: -2px -18%; transform: skewX(12deg); }
.tile video, .tile img.still { position: absolute; left: 50%; height: calc(var(--k, 3.4) * 100%); width: auto; aspect-ratio: 784 / 1168; object-fit: cover; top: min(0px, calc(var(--cy, 46%) - var(--fyn, 0.1) * var(--k, 3.4) * 100%)); transform: translateX(calc(-1 * var(--fx, 50%))); }
.tile .monkey { position: absolute; inset: 0; display: grid; place-items: center; filter: saturate(.6) brightness(.75); }
.tile .monkey svg { width: 70%; height: auto; }
.tile .name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; text-align: center;
  font-family: 'Teko'; font-size: 20px; letter-spacing: 1.5px; line-height: 1;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.tile .tag { position: absolute; top: 4px; right: 14%; background: var(--hot); color: #fff; font: 700 9px/1.3 'Rajdhani'; padding: 1px 5px; letter-spacing: .6px; white-space: nowrap; }
.tile.soon .tag { background: #3a2550; color: var(--dim); }
.banner { max-width: 1060px; margin: 22px auto 0; text-align: center; }
.banner span { display: inline-block; transform: skewX(-12deg); background: var(--hot); padding: 8px 60px; font-family: 'Teko'; font-size: 24px; letter-spacing: 2px; }
.banner span b { display: inline-block; transform: skewX(12deg); font-weight: 600; }

/* ---------- FIGHTER (password) ---------- */
#fighter { padding: 0; }
.fighter-stage { position: relative; min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 760px) { .fighter-stage { grid-template-columns: 1fr; } }
.fighter-bg { position: absolute; inset: 0; background:
  linear-gradient(105deg, transparent 0 56%, rgba(255,45,122,.18) 56% 57%, transparent 57%),
  radial-gradient(60% 70% at 30% 55%, rgba(62,230,255,.18), transparent 70%); pointer-events: none; }
.fighter-video { position: relative; height: 100vh; max-height: 100vh; display: grid; place-items: end center; }
.fighter-video video, .fighter-video img, .fighter-video .big-monkey { height: 96vh; max-width: 100%; object-fit: contain; }
/* Mask the WRAPPER, not the <video>: Chrome on Windows ignores mask-image on a hardware-decoded video, leaving a hard grey rectangle. Fades all four sides so the clip melts into the arena. */
.fighter-video .fighter-video-wrap { display: inline-block; line-height: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 88%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 88%, transparent); mask-composite: intersect; }
.fighter-video .big-monkey { display: grid; place-items: center; }
.fighter-video .big-monkey svg { width: min(70vh, 90vw); height: auto; }
.fighter-panel { position: relative; padding: 24px 28px 40px; }
.plate { transform: skewX(-10deg); background: linear-gradient(90deg, var(--hot), #8a1a6a); padding: 6px 26px 2px; display: inline-block; }
.plate b { display: inline-block; transform: skewX(10deg); font-family: 'Teko'; font-size: clamp(56px, 9vw, 104px); line-height: .85; letter-spacing: 3px; }
.role { margin: 12px 0 26px; font-family: 'Teko'; font-size: 26px; letter-spacing: 4px; color: var(--cyan); text-transform: uppercase; }
.pw { display: flex; gap: 10px; flex-wrap: wrap; }
.pw input {
  flex: 1 1 200px; min-width: 0; transform: skewX(-10deg); border: 2px solid var(--cyan); background: rgba(10,4,18,.8);
  color: var(--ink); font: 700 24px 'Rajdhani'; letter-spacing: 8px; padding: 10px 16px; outline: none;
}
.pw input:focus { box-shadow: 0 0 18px rgba(62,230,255,.6); }
.btn {
  transform: skewX(-10deg); border: 0; cursor: pointer; background: var(--gold); color: #1a0a00;
  font: 700 26px 'Teko'; letter-spacing: 3px; padding: 8px 34px; box-shadow: 0 0 22px rgba(255,216,77,.45);
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--dim); box-shadow: none; border: 2px solid #3a2550; font-size: 20px; padding: 4px 18px; margin-top: 18px; }

/* ---------- CALENDAR ---------- */
.cal-head { max-width: 1180px; margin: 0 auto 14px; display: flex; align-items: end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cal-head h1 { font-size: clamp(30px, 5vw, 50px); }
.round { font-family: 'Teko'; color: var(--gold); font-size: 22px; letter-spacing: 3px; }
.cal { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dow { text-align: center; font-family: 'Teko'; font-size: 20px; letter-spacing: 3px; color: var(--hot2); }
.day {
  min-height: 210px; background: linear-gradient(180deg, rgba(36,16,58,.9), rgba(13,6,20,.9)); border: 1px solid rgba(255,45,122,.18);
  position: relative; padding: 6px; display: flex; flex-direction: column; gap: 6px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.day.out { opacity: .62; }   /* neighbouring month's day: dimmer, but its halves still tap */
.day.out .num small { font: 600 11px 'Rajdhani'; letter-spacing: 1px; color: var(--dim); margin-left: 5px; vertical-align: 3px; }
.day.today { border-color: var(--cyan); box-shadow: inset 0 0 18px rgba(62,230,255,.3); }
.day .num { font-family: 'Teko'; font-size: 24px; line-height: 1; padding-left: 8px; }
.fighter-chip { position: relative; height: 74px; transform: skewX(-10deg); overflow: hidden; border: 2px solid var(--hot); background: #120818; }
.fighter-chip.half { border-style: dashed; border-color: var(--cyan); }
.fighter-chip .in { position: absolute; inset: 0 -12%; transform: skewX(10deg); }
.fighter-chip video { position: absolute; left: 50%; height: calc(var(--k, 4.8) * 100%); width: auto; aspect-ratio: 784 / 1168; object-fit: cover; top: min(0px, calc(var(--cy, 40%) - var(--fyn, 0.1) * var(--k, 4.8) * 100%)); transform: translateX(calc(-1 * var(--fx, 50%))); }
.fighter-chip .monkey { position: absolute; inset: 0; display: grid; place-items: center; background: #1c0d2b; }
.fighter-chip .monkey svg { height: 92%; width: auto; }
.fighter-chip .lbl { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 700 15px 'Teko'; letter-spacing: 1.5px; background: linear-gradient(transparent, rgba(0,0,0,.9)); padding-top: 10px; transform: skewX(10deg); }
.fighter-chip .shift { position: absolute; top: 2px; right: 10%; font: 700 10px 'Rajdhani'; background: var(--cyan); color: #00222b; padding: 0 4px; transform: skewX(10deg); }
@media (max-width: 760px) { .day { min-height: 150px; } .fighter-chip { height: 54px; } .dow { font-size: 14px; letter-spacing: 1px; } }

/* ---------- LIGHTNING TRANSITION ---------- */
#fx { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
#flash { position: fixed; inset: 0; z-index: 101; background: #fff; opacity: 0; pointer-events: none; }
#slam { position: fixed; inset: 0; z-index: 99; pointer-events: none; display: grid; place-items: center; opacity: 0; }
#slam b { font-family: 'Teko'; font-style: italic; font-size: clamp(60px, 14vw, 170px); letter-spacing: 6px; color: #fff; display: inline-block;
  text-shadow: 0 0 20px var(--hot), 0 0 60px var(--hot), 4px 4px 0 #6a0f3d; }
.shake { animation: shake .35s linear; }
@keyframes shake { 0%,100% { transform: none; } 20% { transform: translate(-10px, 6px); } 40% { transform: translate(8px, -8px); } 60% { transform: translate(-6px, -4px); } 80% { transform: translate(5px, 6px); } }
@media (prefers-reduced-motion: reduce) { .shake { animation: none; } }
/* ---------- PRESS START splash (browsers only allow sound after a click) ---------- */
#start { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 45%, rgba(44,15,61,.85), rgba(13,6,20,.97)); cursor: pointer; text-align: center; }
#start .title-art { display: block; width: min(92vw, 1100px, calc(56vh * 1.787)); aspect-ratio: 1280 / 716; height: auto; margin: 0 auto; mix-blend-mode: screen; pointer-events: none; user-select: none;
  /* alpha is exactly 0 on all four edges so the clip's black frame can never read as a pasted rectangle; letters start 7% in */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect; }
@media (max-width: 760px) { #start .title-art { width: min(100vw, calc(44vh * 1.787)); } }
#start .press { margin-top: 12px; font-family: 'Teko'; font-size: clamp(22px, 3.4vw, 34px); letter-spacing: 6px; color: var(--gold); animation: blink 1s steps(2, end) infinite; }
#start .coin { margin-top: 8px; font-size: 13px; letter-spacing: 3px; color: var(--dim); }
@keyframes blink { 50% { opacity: 0; } }
/* ---------- DISCO (fires on the music drop) ---------- */
#disco { position: fixed; inset: -30vmax; z-index: 1; pointer-events: none; display: none; opacity: 0; } /* behind the screens, above the 3D arena */
#disco .beam { mix-blend-mode: screen; }
#disco .beam.b1, #disco .dots { mix-blend-mode: normal; }
#disco .beam { position: absolute; inset: 0; background: conic-gradient(from 0deg at 50% 50%, transparent 0 20deg, var(--c) 30deg, transparent 40deg, transparent 180deg, var(--c2) 190deg, transparent 200deg); filter: blur(18px); animation: discoSpin var(--spd) linear infinite; transform-origin: 50% 50%; }
#disco .beam.b1 { --c: rgba(255,45,122,.5); --c2: rgba(62,230,255,.42); --spd: 2.6s; }
#disco .beam.b2 { --c: rgba(255,216,77,.5); --c2: rgba(170,80,255,.5); --spd: 3.4s; animation-direction: reverse; }
#disco .beam.b3 { --c: rgba(62,230,255,.5); --c2: rgba(255,120,60,.45); --spd: 1.9s; }
#disco .dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 2px, transparent 3px); background-size: 90px 90px; opacity: .35; animation: discoDots .9s steps(3) infinite; }
#disco .strobe { position: absolute; inset: 0; background: #fff; opacity: 0; }
@keyframes discoSpin { to { transform: rotate(360deg); } }
@keyframes discoDots { 0% { background-position: 0 0; } 100% { background-position: 45px 45px; } }
body.disco .tile, body.disco .fighter-chip, body.disco .plate { box-shadow: 0 0 24px var(--hot), 0 0 48px rgba(62,230,255,.5); }
#mute { position: fixed; top: 14px; right: 16px; z-index: 150; background: rgba(13,6,20,.7); border: 1px solid #3a2550; color: var(--dim); font: 700 13px 'Rajdhani'; letter-spacing: 1px; padding: 6px 10px; cursor: pointer; transform: skewX(-10deg); }
#mute:hover { color: var(--ink); border-color: var(--hot); }

/* variable names the copied chat/card CSS still uses, mapped to the Tekken palette */
:root {
  --card: rgba(22, 10, 34, 0.92); --card-strong: rgba(13, 6, 20, 0.96);
  --line: rgba(255, 45, 122, 0.22); --line-strong: rgba(255, 45, 122, 0.45);
  --text: #f4ecff; --text-dim: rgba(244, 236, 255, 0.72); --text-faint: rgba(244, 236, 255, 0.42);
  --moon: #3ee6ff; --gold: #ffd84d; --peach: #ff6aa6; --aqua: #3ee6ff; --violet: #c9a7ff; --teal: #3ee6ff; --red: #ff5a6e;
  --luna-steel: #26658C; --pill: #ff2d7a; --pill-text: #fff;
  --radius-lg: 10px; --radius-md: 8px; --radius-sm: 6px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 24px 60px rgba(5, 2, 10, 0.6), 0 4px 14px rgba(5, 2, 10, 0.4);
}
/* ---------- topbar + spectator ---------- */
#topbar { position: fixed; top: 14px; right: 16px; z-index: 150; display: flex; gap: 8px; }
#topbar button { background: rgba(13,6,20,.7); border: 1px solid #3a2550; color: var(--dim); font: 700 13px 'Rajdhani'; letter-spacing: 1px; padding: 6px 10px; cursor: pointer; transform: skewX(-10deg); }
#topbar button:hover { color: var(--ink); border-color: var(--hot); }
#mute { position: static; transform: skewX(-10deg); }
#spectatorBtn { display: block; margin: 14px auto 0; background: transparent; border: 1px solid #3a2550; color: var(--dim); font: 700 16px 'Teko'; letter-spacing: 3px; padding: 6px 22px; cursor: pointer; transform: skewX(-10deg); }
#spectatorBtn:hover { color: var(--cyan); border-color: var(--cyan); }
#loginError { margin-top: 10px; min-height: 18px; color: var(--hot2); font: 700 15px 'Rajdhani'; letter-spacing: 1px; }
.guest-badge { display: none; position: fixed; top: 14px; left: 16px; z-index: 150; background: rgba(62,230,255,.12); border: 1px solid var(--cyan); color: var(--cyan); font: 700 12px 'Rajdhani'; letter-spacing: 2px; padding: 4px 10px; transform: skewX(-10deg); }
.welcome-subtitle { color: var(--dim); font-family: 'Rajdhani'; font-size: 15px; margin-top: 4px; }
.user-name-highlight { color: var(--gold); font-weight: 700; }
#calendarGrid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
/* ---------- ported from the cozy site: details, chat, fab, action bar, cancel modal, mini calendar ---------- */
.booking-details {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--line);
}
.booking-details h3 {
    color: var(--gold);
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.booking-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 13px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-left: 3px solid var(--peach);
    transition: all 0.25s var(--ease-out);
}
.booking-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}
.booking-card.half-day { border-left-color: var(--gold); }
.booking-card .name { color: var(--text); font-weight: 700; font-size: 14px; }
.booking-card .info { color: var(--text-dim); font-size: 12px; margin-top: 4px; }
.booking-card .reason { color: rgba(222, 240, 244, 0.72); font-size: 12px; margin-top: 6px; font-style: italic; }

/* Legend */
.calendar-legend {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-faint);
}
.legend-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.legend-dot.today-dot { border: 2px solid var(--gold); background: transparent; }
/* separator + full/half sample pills in the legend */
.legend-sep { width: 1px; height: 14px; background: var(--line-strong); margin: 0 2px; align-self: center; }
.legend-pill {
    font-size: 8px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}
.legend-pill.full { background: #A7EBF2; color: #012036; border: 1px solid #A7EBF2; }
.legend-pill.half { background: rgba(167, 235, 242, 0.1); color: #A7EBF2; border: 1px solid rgba(167, 235, 242, 0.6); }

/* =========================================
   CHATBOT PANEL
   ========================================= */
.chat-panel {
    display: none;
}

/* Chat Modal Overlay */
.chat-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 26, 40, 0.6);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Chat Modal */
.chat-modal {
    width: 100%;
    max-width: 460px;
    max-height: 82vh;
    background: var(--card-strong);
    backdrop-filter: blur(28px) saturate(120%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(5, 16, 28, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    animation: chatModalSlideIn 0.45s var(--ease-out);
}
@keyframes chatModalSlideIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s var(--ease-out);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.chat-modal-close:hover {
    background: rgba(255, 138, 128, 0.25);
    color: var(--red);
    border-color: rgba(255, 138, 128, 0.4);
    transform: rotate(90deg);
}

/* Floating AI Bot FAB — a warm little lantern */
.ai-bot-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--peach));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 400;
    box-shadow: 0 10px 28px rgba(84, 172, 191, 0.35), 0 3px 10px rgba(8, 22, 36, 0.4);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
    animation: fabPulse 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    padding: 0;
}
.ai-bot-fab .fab-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transform: scale(1.28); /* zoom in so the monkey fills more of the circle */
}
.ai-bot-fab:hover {
    transform: scale(1.1) rotate(-8deg);
    box-shadow: 0 14px 36px rgba(84, 172, 191, 0.5), 0 4px 14px rgba(8, 22, 36, 0.45);
}
@keyframes fabPulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(84, 172, 191, 0.35), 0 0 0 0 rgba(167, 235, 242, 0.3); }
    50% { box-shadow: 0 10px 28px rgba(84, 172, 191, 0.35), 0 0 0 14px rgba(167, 235, 242, 0); }
}

/* Calendar Instruction Bar */
.calendar-instruction {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 16px;
    margin-bottom: 10px;
    font-size: 10px;
    color: var(--text-faint);
    font-weight: 400;
    letter-spacing: 0.8px;
    text-align: center;
}

/* Calendar Action Bar - appears after shift selection */
.cal-action-bar {
    display: none;
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(84, 172, 191, 0.25);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    animation: chatModalSlideIn 0.35s var(--ease-out);
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(8, 22, 36, 0.3);
}
.cal-action-bar.visible {
    display: flex;
}
.cal-action-info {
    flex: 1;
    min-width: 0;
}
.cal-action-title {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.cal-action-sub {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}
.cal-action-btn {
    padding: 11px 24px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    border: none;
    transition: all 0.25s var(--ease-out);
    flex-shrink: 0;
}
.cal-action-btn.book-btn {
    background: var(--pill);
    color: var(--pill-text);
    box-shadow: 0 6px 20px rgba(215, 233, 247, 0.25);
    animation: glowPulse 2.5s infinite;
}
.cal-action-btn.book-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 28px rgba(215, 233, 247, 0.4);
}
.cal-action-btn.clear-btn {
    background: transparent;
    border: 1px solid rgba(255, 138, 128, 0.4);
    color: var(--red);
    padding: 11px 16px;
    font-size: 12px;
}
.cal-action-btn.clear-btn:hover {
    background: rgba(255, 138, 128, 0.12);
    transform: translateY(-1px);
}

/* Chat modal back button */
.chat-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    margin: 10px 15px 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: all 0.25s var(--ease-out);
    flex-shrink: 0;
}
.chat-back-btn:hover {
    background: rgba(255, 255, 255, 0.11);
    color: var(--text);
    transform: translateX(-2px);
}

/* Cancel Confirmation Modal */
.cancel-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 26, 40, 0.6);
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.cancel-modal {
    background: var(--card-strong);
    backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 138, 128, 0.3);
    border-radius: var(--radius-lg);
    padding: 34px 28px 26px;
    max-width: 380px;
    width: 90vw;
    text-align: center;
    box-shadow: 0 40px 90px rgba(5, 16, 28, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: chatModalSlideIn 0.35s var(--ease-out);
}
.cancel-modal-icon {
    font-size: 42px;
    margin-bottom: 12px;
    filter: drop-shadow(0 6px 14px rgba(255, 138, 128, 0.3));
}
.cancel-modal-title {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--red);
    margin-bottom: 10px;
}
.cancel-modal-desc {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 22px;
    line-height: 1.6;
}
.cancel-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.cancel-modal-btn {
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    border: none;
    transition: all 0.25s var(--ease-out);
}
.cancel-modal-btn.confirm {
    background: rgba(255, 138, 128, 0.12);
    border: 1px solid rgba(255, 138, 128, 0.4);
    color: var(--red);
}
.cancel-modal-btn.confirm:hover {
    background: #e57373;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(229, 115, 115, 0.35);
}
.cancel-modal-btn.deny {
    background: var(--pill);
    border: 1px solid transparent;
    color: var(--pill-text);
}
.cancel-modal-btn.deny:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(215, 233, 247, 0.3);
}

.chat-header {
    background: linear-gradient(120deg, #22475f 0%, #2e6079 55%, #3a7a90 100%);
    color: var(--text);
    padding: 16px 20px;
    text-align: center;
    flex-shrink: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--aqua), transparent);
}
.chat-header h2 {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.chat-header p {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 3px;
}
.online-dot {
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2.5s infinite;
    box-shadow: 0 0 10px var(--gold);
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: rgba(8, 22, 36, 0.3);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.message {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    animation: msgFade 0.45s var(--ease-out);
}
@keyframes msgFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.message.bot { justify-content: flex-start; }
.message.user { justify-content: flex-end; }

.message-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2e6079, var(--teal));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 12px rgba(8, 22, 36, 0.35);
}
.message.user .message-avatar {
    background: linear-gradient(135deg, #26658c, var(--gold));
    box-shadow: 0 4px 12px rgba(167, 235, 242, 0.2);
}
/* Unggoy's real face: photo avatars for bot bubbles, the typing row and the header */
.message.bot .message-avatar, .typing-row .message-avatar { overflow: hidden; background: #0b2238; align-self: flex-start; }
.message-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.chat-header-face { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255, 255, 255, 0.55); box-shadow: 0 0 12px rgba(167, 235, 242, 0.4); }
.typing-row { display: none; gap: 10px; align-items: flex-end; margin-bottom: 12px; animation: msgFade 0.3s var(--ease-out); }
.typing-row.on { display: flex; }
.typing-row .typing-indicator { display: block; margin-bottom: 0; }

.message-content {
    max-width: 80%;
    padding: 11px 15px;
    border-radius: 18px;
    word-wrap: break-word;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 400;
}
.message.bot .message-content {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-bottom-left-radius: 5px;
}
.message.user .message-content {
    background: linear-gradient(135deg, #54acbf 0%, #26658c 100%);
    color: #0d2a38;
    border-bottom-right-radius: 5px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(88, 177, 194, 0.25);
}

.typing-indicator {
    display: none;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 10px;
}
.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 0;
}
.typing-dots span {
    height: 6px; width: 6px;
    background: var(--aqua);
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Quick Buttons — soft moonlit pills */
.quick-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.quick-btn {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(84, 172, 191, 0.35);
    color: var(--aqua);
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.25s var(--ease-out);
    font-family: 'Lato', sans-serif;
}
.quick-btn:hover, .quick-btn:active {
    background: var(--pill);
    color: var(--pill-text);
    border-color: var(--pill);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(215, 233, 247, 0.25);
}
.quick-btn.secondary {
    border-color: rgba(38, 101, 140, 0.4);
    color: var(--violet);
}
.quick-btn.secondary:hover {
    background: var(--violet);
    color: #241a45;
    border-color: var(--violet);
}
.quick-btn.cancel-btn {
    border-color: rgba(255, 138, 128, 0.4);
    color: var(--red);
}
.quick-btn.cancel-btn:hover {
    background: #e57373;
    color: #fff;
    border-color: #e57373;
    box-shadow: 0 8px 20px rgba(229, 115, 115, 0.35);
}
.quick-btn.download-btn {
    background: var(--pill);
    border: none;
    color: var(--pill-text);
    font-size: 14px;
    padding: 13px 24px;
    width: 100%;
    text-align: center;
    margin-top: 5px;
    border-radius: 999px;
    animation: glowPulse 2.5s infinite;
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(215, 233, 247, 0.25); }
    50% { box-shadow: 0 0 24px rgba(215, 233, 247, 0.5); }
}
.quick-btn.download-btn:hover { transform: translateY(-2px) scale(1.02); }

/* Input Area */
.input-area {
    padding: 12px;
    background: rgba(8, 22, 36, 0.45);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.input-area input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 11px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.input-area input:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(84, 172, 191, 0.12); }
.input-area input::placeholder { color: var(--text-faint); }
.input-area button {
    padding: 11px 20px;
    background: var(--pill);
    color: var(--pill-text);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    font-family: 'Lato', sans-serif;
    transition: all 0.25s var(--ease-out);
}
.input-area button:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 8px 18px rgba(215, 233, 247, 0.3); }
.input-area.disabled input, .input-area.disabled button {
    opacity: 0.35;
    pointer-events: none;
}

/* Mini Calendar in Chat */
.mini-calendar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 8px;
    border: 1px solid var(--line);
}
.mini-cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.mini-cal-nav button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    color: var(--aqua);
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.mini-cal-nav button:hover { background: rgba(84, 172, 191, 0.18); }
.mini-cal-nav span {
    color: var(--gold);
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 2px;
}
.mini-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.mini-cal-header {
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-faint);
    padding: 3px 0;
    letter-spacing: 1px;
}
.mini-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    font-variant-numeric: tabular-nums;
}
.mini-cal-day:hover:not(.disabled):not(.booked-full) {
    background: rgba(84, 172, 191, 0.25);
    color: #fff;
}
.mini-cal-day.today { border: 1px solid var(--gold); color: var(--gold); }
.mini-cal-day.disabled { color: rgba(222, 240, 244, 0.08); cursor: not-allowed; }
.mini-cal-day.booked-full {
    background: rgba(255, 138, 128, 0.22);
    color: rgba(222, 240, 244, 0.3);
    cursor: not-allowed;
    text-decoration: line-through;
}
.mini-cal-day.booked-half {
    background: rgba(167, 235, 242, 0.12);
    border: 1px solid rgba(167, 235, 242, 0.35);
}
.mini-cal-day.selected {
    background: var(--pill) !important;
    color: var(--pill-text) !important;
    box-shadow: 0 3px 12px rgba(215, 233, 247, 0.35);
}
.mini-cal-day.past { color: rgba(222, 240, 244, 0.1); cursor: not-allowed; }


/* =============================================
   LEAVE FORM TEMPLATE (for PNG generation)
   Winter dusk edition — same LUNA sky, moon,
   snow and cabins as the site itself.
   ========================================= */
.leave-form-template {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 820px;
    min-width: 820px;
    max-width: 820px;
    background: linear-gradient(180deg, #011C40 0%, #023859 42%, #1d5a80 78%, #3f8aa5 100%);
    font-family: 'Lato', 'Segoe UI', sans-serif;
    padding: 0;
    color: #eaf6f8;
    overflow: hidden;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}
.lf-sky {
    position: absolute;
    left: 0; top: 0;
    width: 820px; height: 320px;
    pointer-events: none;
}
.lf-moon {
    position: absolute;
    left: 468px; top: 22px;
    width: 70px; height: 70px;
    border-radius: 50%;
    background: #e9f6f8;
    box-shadow: 0 0 0 18px rgba(167, 235, 242, 0.08), 0 0 0 36px rgba(167, 235, 242, 0.04);
}
.lf-moon::after {
    content: '';
    position: absolute;
    left: 19px; top: -12px;
    width: 66px; height: 66px;
    border-radius: 50%;
    background: #01203f;
}
.lf-scene {
    position: absolute;
    left: 0; bottom: 0;
    width: 820px; height: 250px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width=%22820%22 height=%22250%22 viewBox=%220 0 820 250%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath d=%22M0 150 C 140 105, 260 190, 410 150 S 700 100, 820 145 L820 250 L0 250 Z%22 fill=%22%237fc3d3%22 opacity=%220.55%22/%3E%3Cpath d=%22M0 190 C 160 150, 320 215, 480 185 S 720 150, 820 190 L820 250 L0 250 Z%22 fill=%22%23a9dde8%22 opacity=%220.7%22/%3E%3Cpath d=%22M0 222 C 200 195, 420 240, 620 215 S 780 205, 820 222 L820 250 L0 250 Z%22 fill=%22%23cfeef4%22 opacity=%220.85%22/%3E%3Cg transform=%22translate%2870 118%29%22%3E%3Cpath d=%22M0 42 L46 0 L92 42 Z%22 fill=%22%2312354f%22/%3E%3Crect x=%228%22 y=%2242%22 width=%2276%22 height=%2252%22 fill=%22%230f2f47%22/%3E%3Crect x=%2224%22 y=%2258%22 width=%2214%22 height=%2214%22 rx=%223%22 fill=%22%23A7EBF2%22 opacity=%220.95%22/%3E%3Crect x=%2252%22 y=%2262%22 width=%2214%22 height=%2232%22 rx=%224%22 fill=%22%2309233a%22/%3E%3Cpath d=%22M-4 44 L46 -2 L96 44%22 fill=%22none%22 stroke=%22%23e6f5f8%22 stroke-width=%225%22 stroke-linecap=%22round%22 opacity=%220.9%22/%3E%3C/g%3E%3Cg transform=%22translate%28640 100%29%22%3E%3Cpath d=%22M0 40 L60 0 L120 40 Z%22 fill=%22%2312354f%22/%3E%3Crect x=%2210%22 y=%2240%22 width=%22100%22 height=%2270%22 fill=%22%230f2f47%22/%3E%3Crect x=%2246%22 y=%2260%22 width=%2218%22 height=%2230%22 rx=%229%22 fill=%22%23A7EBF2%22 opacity=%220.95%22/%3E%3Crect x=%2282%22 y=%2212%22 width=%2212%22 height=%2222%22 fill=%22%2312354f%22/%3E%3Cpath d=%22M-4 42 L60 -3 L124 42%22 fill=%22none%22 stroke=%22%23e6f5f8%22 stroke-width=%225%22 stroke-linecap=%22round%22 opacity=%220.9%22/%3E%3C/g%3E%3Cg fill=%22%2354ACBF%22 opacity=%220.85%22%3E%3Ccircle cx=%2230%22 cy=%22112%22 r=%2222%22/%3E%3Crect x=%2227%22 y=%22128%22 width=%226%22 height=%2230%22 fill=%22%230f2f47%22/%3E%3Ccircle cx=%22215%22 cy=%22150%22 r=%2217%22/%3E%3Crect x=%22212%22 y=%22162%22 width=%225%22 height=%2226%22 fill=%22%230f2f47%22/%3E%3Ccircle cx=%22580%22 cy=%22126%22 r=%2220%22/%3E%3Crect x=%22577%22 y=%22140%22 width=%226%22 height=%2230%22 fill=%22%230f2f47%22/%3E%3Ccircle cx=%22790%22 cy=%22140%22 r=%2218%22/%3E%3Crect x=%22787%22 y=%22153%22 width=%225%22 height=%2228%22 fill=%22%230f2f47%22/%3E%3C/g%3E%3Cg fill=%22%23ffffff%22%3E%3Ccircle cx=%22120%22 cy=%22238%22 r=%222%22 opacity=%220.6%22/%3E%3Ccircle cx=%22360%22 cy=%22242%22 r=%221.6%22 opacity=%220.5%22/%3E%3Ccircle cx=%22540%22 cy=%22236%22 r=%222.2%22 opacity=%220.55%22/%3E%3Ccircle cx=%22720%22 cy=%22244%22 r=%221.8%22 opacity=%220.5%22/%3E%3C/g%3E%3C/svg%3E");
    background-size: 820px 250px;
    background-repeat: no-repeat;
}
.lf-top-bar, .lf-bottom-bar {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(167, 235, 242, 0.55), transparent);
    position: relative;
    z-index: 2;
}
.lf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 36px 40px 22px;
    position: relative;
    z-index: 2;
}
.lf-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.lf-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A7EBF2, #f0bd6a);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #4a3208;
    flex-shrink: 0;
}
.lf-company-name {
    font-size: 26px;
    font-weight: 300;
    color: #eaf6f8;
    letter-spacing: 3px;
    line-height: 1.1;
}
.lf-company-sub {
    font-size: 12px;
    color: rgba(222, 240, 244, 0.62);
    letter-spacing: 1.5px;
    margin-top: 5px;
}
.lf-header-right {
    text-align: right;
}
.lf-form-title {
    font-size: 15px;
    font-weight: 400;
    color: #A7EBF2;
    letter-spacing: 2.5px;
}
.lf-form-title-cn {
    font-size: 14px;
    font-family: 'Noto Sans SC', sans-serif;
    color: rgba(167, 235, 242, 0.55);
    margin-top: 3px;
    font-weight: 400;
}
.lf-section-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(222, 240, 244, 0.62);
    margin-bottom: 6px;
}
.lf-section-label-cn {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 12px;
    color: rgba(222, 240, 244, 0.38);
    font-weight: 400;
}
.lf-body {
    padding: 4px 40px 0;
}
.lf-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}
.lf-field {
    flex: 1;
    background: rgba(2, 40, 66, 0.86);
    border: 1px solid rgba(167, 235, 242, 0.18);
    border-radius: 18px;
    padding: 14px 20px 15px;
    position: relative;
}
.lf-field.wide { flex: 2; }
.lf-field-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(222, 240, 244, 0.62);
    margin-bottom: 2px;
}
.lf-field-label-cn {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 12px;
    color: rgba(222, 240, 244, 0.38);
    font-weight: 400;
}
.lf-field-value {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 6px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}
.lf-field-value.small { font-size: 14px; font-weight: 700; }
.lf-field-value .mandarin {
    font-family: 'Noto Sans SC', sans-serif;
    color: rgba(222, 240, 244, 0.7);
    font-size: 14px;
    display: block;
    margin-top: 4px;
    font-weight: 400;
}
.lf-sig-value {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 30px;
    color: #A7EBF2;
    margin-top: 4px;
}
.lf-time-section {
    background: rgba(2, 40, 66, 0.86);
    border: 1px solid rgba(167, 235, 242, 0.18);
    border-radius: 18px;
    padding: 16px 20px 18px;
    margin-bottom: 14px;
}
.lf-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.lf-time-label {
    font-size: 12px;
    font-weight: 400;
    color: rgba(222, 240, 244, 0.55);
}
.lf-time-label-cn {
    font-family: 'Noto Sans SC', sans-serif;
}
.lf-time-value {
    font-size: 14px;
    font-weight: 700;
    color: #275064;
    padding: 4px 12px;
    background: #f2f8f9;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.lf-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 8px;
}
.lf-badge.full-day {
    background: #26658C;
    color: #dcecf6;
    border: 1px solid #26658C;
}
.lf-badge.half-day {
    background: rgba(167, 235, 242, 0.12);
    color: #A7EBF2;
    border: 1px solid rgba(167, 235, 242, 0.55);
}
.lf-divider {
    height: 0;
    margin: 0;
}
.lf-approval-section {
    display: flex;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0 0 150px;
    position: relative;
    z-index: 2;
}
.lf-approval-item {
    flex: 1;
    text-align: center;
    padding: 14px 10px 16px;
    background: rgba(1, 24, 54, 0.96);
    border: 1px solid rgba(167, 235, 242, 0.18);
    border-radius: 18px;
}
.lf-approval-title {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(222, 240, 244, 0.62);
    margin-bottom: 2px;
}
.lf-approval-title-cn {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 11px;
    color: rgba(222, 240, 244, 0.38);
}
.lf-approval-name {
    font-size: 14px;
    font-weight: 700;
    color: #A7EBF2;
    margin-top: 8px;
    line-height: 1.35;
}
.lf-body-inner { position: relative; z-index: 2; }

/* ---- Group themes for the downloadable form ----
   Base (no theme class) = winter dusk. .theme-handmade = Kraft & Yarn. */
.lf-deco { position: absolute; left: 0; bottom: 0; width: 820px; height: 250px; pointer-events: none; display: none; z-index: 1; }
/* decorations are data-URI SVG backgrounds (html2canvas skips inline <svg> but renders these) */
.lf-deco-handmade { background-image: url("data:image/svg+xml,%3Csvg width=%22820%22 height=%22250%22 viewBox=%220 0 820 250%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Crect x=%220%22 y=%22140%22 width=%22820%22 height=%22110%22 fill=%22%23ece4d6%22 opacity=%220.7%22/%3E%3Cline x1=%220%22 y1=%22140%22 x2=%22820%22 y2=%22140%22 stroke=%22%23e2d9c9%22 stroke-width=%221%22/%3E%3Cpath d=%22M-10 205 C 90 160, 150 240, 250 196 S 400 150, 470 204 S 590 232, 640 186%22 fill=%22none%22 stroke=%22%23c6a15b%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 opacity=%220.9%22/%3E%3Cg stroke=%22%238a6440%22 stroke-width=%222.4%22 stroke-linecap=%22round%22 opacity=%220.85%22%3E%3Cline x1=%22594%22 y1=%2270%22 x2=%22772%22 y2=%22236%22/%3E%3Cline x1=%22772%22 y1=%2270%22 x2=%22600%22 y2=%22236%22/%3E%3C/g%3E%3Ccircle cx=%22590%22 cy=%2266%22 r=%225%22 fill=%22%23a67c52%22/%3E%3Ccircle cx=%22776%22 cy=%2266%22 r=%225%22 fill=%22%23a67c52%22/%3E%3Cg transform=%22translate(688 166)%22%3E%3Ccircle r=%2260%22 fill=%22%23fbf8f2%22 stroke=%22%23a67c52%22 stroke-width=%221.6%22/%3E%3Cg fill=%22none%22 stroke=%22%23a67c52%22 stroke-width=%221.3%22 stroke-linecap=%22round%22 opacity=%220.7%22%3E%3Cpath d=%22M-56 -18 C -28 -46, 18 -52, 54 -26%22/%3E%3Cpath d=%22M-58 6 C -28 -20, 22 -26, 58 0%22/%3E%3Cpath d=%22M-54 28 C -22 2, 26 -4, 56 22%22/%3E%3Cpath d=%22M-44 44 C -12 24, 22 18, 50 40%22/%3E%3Cpath d=%22M-28 -52 C -36 -18, -32 18, -16 56%22/%3E%3Cpath d=%22M12 -58 C 2 -22, 6 18, 24 54%22/%3E%3C/g%3E%3Cg fill=%22none%22 stroke=%22%23c6a15b%22 stroke-width=%221.1%22 stroke-linecap=%22round%22 opacity=%220.8%22%3E%3Cpath d=%22M-52 -32 C -18 -56, 28 -54, 54 -36%22/%3E%3Cpath d=%22M-56 16 C -24 -8, 28 -12, 58 10%22/%3E%3C/g%3E%3C/g%3E%3Cg fill=%22%23fbf8f2%22 stroke=%22%23a67c52%22 stroke-width=%221.4%22%3E%3Ccircle cx=%22150%22 cy=%22118%22 r=%2214%22/%3E%3Ccircle cx=%2294%22 cy=%22158%22 r=%229%22/%3E%3C/g%3E%3Cg fill=%22%23a67c52%22%3E%3Ccircle cx=%22145.5%22 cy=%22113.5%22 r=%221.6%22/%3E%3Ccircle cx=%22154.5%22 cy=%22113.5%22 r=%221.6%22/%3E%3Ccircle cx=%22145.5%22 cy=%22122.5%22 r=%221.6%22/%3E%3Ccircle cx=%22154.5%22 cy=%22122.5%22 r=%221.6%22/%3E%3Ccircle cx=%2291%22 cy=%22155%22 r=%221.2%22/%3E%3Ccircle cx=%2297%22 cy=%22155%22 r=%221.2%22/%3E%3Ccircle cx=%2291%22 cy=%22161%22 r=%221.2%22/%3E%3Ccircle cx=%2297%22 cy=%22161%22 r=%221.2%22/%3E%3C/g%3E%3Cg stroke=%22%23c6a15b%22 stroke-width=%221.4%22 stroke-linecap=%22round%22 opacity=%220.8%22%3E%3Cpath d=%22M230 96 l7 -7 M244 96 l7 -7 M258 96 l7 -7 M272 96 l7 -7 M286 96 l7 -7%22/%3E%3Cpath d=%22M380 232 l7 -7 M394 232 l7 -7 M408 232 l7 -7 M422 232 l7 -7%22/%3E%3C/g%3E%3C/svg%3E"); background-size: 820px 250px; background-repeat: no-repeat; }
.lf-stitch-border { position: absolute; left: 16px; top: 16px; right: 16px; bottom: 16px; border: 1px dashed rgba(198, 161, 91, 0.75); border-radius: 14px; pointer-events: none; display: none; z-index: 1; }

/* ===== HANDMADE — Handmade Italia editorial (matches the Handmade Chat App) =====
   ivory paper #f4efe6 · card #fbf8f2 · espresso ink #1f1a15 · bronze #a67c52 · gold #c6a15b · noir #171310 · Fraunces + Inter */
.leave-form-template.theme-handmade {
    background: #f4efe6;
    color: #1f1a15;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}
.theme-handmade .lf-sky, .theme-handmade .lf-moon, .theme-handmade .lf-scene { display: none; }
.theme-handmade .lf-deco-handmade, .theme-handmade .lf-stitch-border { display: block; }
.theme-handmade .lf-top-bar, .theme-handmade .lf-bottom-bar { height: 1px; background: #e2d9c9; }
.theme-handmade .lf-header { padding: 38px 44px 22px; align-items: center; }
.theme-handmade .lf-logo {
    width: 54px; height: 54px;
    background: #171310; color: #efe7d8; border: 1px solid #171310;
    font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 24px;
    box-shadow: none;
}
.theme-handmade .lf-company-name { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 34px; letter-spacing: -0.5px; color: #1f1a15; line-height: 1; }
.theme-handmade .lf-company-name .lf-dot { color: #a67c52; }
.theme-handmade .lf-company-sub {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
    color: #a67c52; margin-top: 8px;
}
.theme-handmade .lf-company-sub::before { content: ''; width: 22px; height: 1px; background: #a67c52; opacity: 0.6; }
.theme-handmade .lf-form-title { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 500; font-size: 24px; letter-spacing: -0.3px; color: #1f1a15; }
.theme-handmade .lf-form-title-cn { color: #7c7266; margin-top: 4px; }
.theme-handmade .lf-section-label, .theme-handmade .lf-field-label, .theme-handmade .lf-approval-title, .theme-handmade .lf-time-label {
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: #a67c52;
}
.theme-handmade .lf-time-label { letter-spacing: 0.12em; }
.theme-handmade .lf-section-label-cn, .theme-handmade .lf-field-label-cn, .theme-handmade .lf-approval-title-cn { color: #b39a7b; letter-spacing: 0; text-transform: none; font-size: 11px; }
.theme-handmade .lf-field, .theme-handmade .lf-time-section, .theme-handmade .lf-approval-item {
    background: #fbf8f2;
    border: 1px solid #e2d9c9;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(31, 26, 21, 0.05), 0 10px 26px -20px rgba(31, 26, 21, 0.3);
}
.theme-handmade .lf-field-value { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 20px; letter-spacing: -0.2px; color: #1f1a15; }
.theme-handmade .lf-field-value.small { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14.5px; color: #3a332b; letter-spacing: 0; }
.theme-handmade .lf-field-value .mandarin { color: #7c7266; }
.theme-handmade .lf-sig-value { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 500; font-size: 30px; color: #8a6440; letter-spacing: -0.3px; }
.theme-handmade .lf-time-value {
    background: #171310; color: #efe7d8; border: 1px solid #171310; border-radius: 3px;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.02em; padding: 5px 12px;
}
.theme-handmade .lf-badge { border-radius: 3px; font-family: 'Inter', sans-serif; letter-spacing: 0.08em; }
.theme-handmade .lf-badge.full-day { background: #171310; color: #efe7d8; border: 1px solid #171310; }
.theme-handmade .lf-badge.half-day { background: #fbf4e6; color: #8a6440; border: 1px solid #c6a15b; }
.theme-handmade .lf-approval-name { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 15.5px; color: #1f1a15; letter-spacing: -0.2px; }
.theme-handmade .lf-approval-section { padding-bottom: 210px; }




/* ============================================================
   TEKKEN OVERRIDES — calendar cells, shift taps, action bar, details
   ============================================================ */
.cal-head { max-width: 1180px; margin: 0 auto 10px; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav .btn.ghost { margin-top: 0; font-size: 22px; padding: 2px 16px; }
.calendar-instruction { max-width: 1180px; margin: 0 auto 10px; background: rgba(255,45,122,.08); border: 1px solid rgba(255,45,122,.25); color: var(--dim); font: 500 12px 'Rajdhani'; letter-spacing: 1px; text-align: center; padding: 6px 10px; transform: skewX(-6deg); }
.calendar-instruction b { color: var(--cyan); }
.day { cursor: default; }
.day .num { cursor: pointer; width: max-content; padding-right: 10px; }
.day .num:hover { color: var(--cyan); }
.day .chips { display: flex; flex-direction: column; gap: 6px; }
.day .taps { display: flex; gap: 4px; margin-top: auto; padding-top: 6px; }
.shift-tap { flex: 1; text-align: center; font: 700 12px 'Teko'; letter-spacing: 2px; padding: 3px 0 1px; border: 1px dashed rgba(255,45,122,.3); color: var(--dim); transform: skewX(-10deg); opacity: .5; user-select: none; }
.shift-tap.cal-clickable { cursor: pointer; opacity: 1; color: var(--ink); }
.shift-tap.cal-clickable:hover { border-color: var(--cyan); color: var(--cyan); }
.shift-tap.cal-selected { background: var(--hot); border: 1px solid var(--hot); color: #fff; box-shadow: 0 0 14px rgba(255,45,122,.65); }
.day.past .shift-tap { opacity: .2; }
.fighter-chip.mine { cursor: pointer; border-color: var(--gold); box-shadow: 0 0 12px rgba(255,216,77,.45); }
.fighter-chip.mine .lbl::after { content: ' · YOU'; color: var(--gold); font-size: 10px; letter-spacing: 1px; }
.fighter-chip.mine:hover { box-shadow: 0 0 18px rgba(255,216,77,.8); }
.cal-action-bar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 120; display: none; align-items: center; gap: 12px; max-width: min(960px, 94vw); padding: 10px 16px; background: linear-gradient(90deg, rgba(22,10,34,.96), rgba(44,15,61,.96)); border: 1px solid var(--hot); box-shadow: 0 0 28px rgba(255,45,122,.45), 0 20px 50px rgba(0,0,0,.6); clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.cal-action-bar.visible { display: flex; }
.cal-action-info { flex: 1; min-width: 0; }
.cal-action-title { font: 700 22px 'Teko'; letter-spacing: 2px; color: var(--ink); line-height: 1; }
.cal-action-sub { font: 500 13px 'Rajdhani'; color: var(--dim); margin-top: 2px; }
.cal-action-btn { border: 0; cursor: pointer; font: 700 20px 'Teko'; letter-spacing: 2px; padding: 8px 18px; transform: skewX(-10deg); white-space: nowrap; }
.cal-action-btn.book-btn { background: var(--gold); color: #1a0a00; box-shadow: 0 0 18px rgba(255,216,77,.5); }
.cal-action-btn.clear-btn { background: transparent; color: var(--dim); border: 1px solid #3a2550; }
.cal-action-btn:hover { filter: brightness(1.12); }
.booking-details { position: fixed; right: 16px; bottom: 96px; width: min(380px, 92vw); max-height: 60vh; overflow-y: auto; z-index: 118; background: rgba(13,6,20,.97); border: 1px solid var(--line-strong); box-shadow: 0 0 30px rgba(62,230,255,.25), 0 20px 50px rgba(0,0,0,.6); padding: 14px 16px 16px; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.booking-details h3 { font: 700 24px 'Teko'; letter-spacing: 2px; color: var(--cyan); margin: 0 0 8px; }
.bd-close { position: absolute; top: 8px; right: 18px; cursor: pointer; color: var(--dim); font-size: 14px; }
.bd-close:hover { color: var(--hot2); }
.booking-card { border-left: 3px solid var(--hot); background: rgba(255,45,122,.06); padding: 8px 10px; margin-bottom: 8px; }
.booking-card.half-day { border-left-color: var(--cyan); background: rgba(62,230,255,.06); }
.booking-card .name { font: 700 18px 'Teko'; letter-spacing: 1.5px; }
.booking-card .info, .booking-card .reason { font: 500 13px 'Rajdhani'; color: var(--dim); }

/* ============================================================
   TEKKEN OVERRIDES — Unggoy chat box, cancel modal, mini calendar
   ============================================================ */
.chat-modal-overlay { background: rgba(5, 2, 10, 0.55); align-items: flex-end; justify-content: flex-end; padding: 16px; backdrop-filter: blur(6px); }
.chat-modal { max-width: 440px; max-height: 84vh; border-radius: 0; background: linear-gradient(180deg, rgba(22,10,34,.98), rgba(13,6,20,.98)); border: 1px solid var(--hot); box-shadow: 0 0 34px rgba(255,45,122,.4), 0 30px 70px rgba(0,0,0,.7); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); animation: none; }
.chat-modal-close { border-radius: 0; transform: skewX(-10deg); border-color: #3a2550; }
.chat-header { background: linear-gradient(100deg, var(--hot) 0%, #8a1a6a 60%, #2c0f3d 100%); border-radius: 0; padding: 12px 44px 12px 16px; text-align: left; }
.chat-header::after { background: linear-gradient(90deg, var(--cyan), transparent); }
.chat-header h2 { font-family: 'Teko', sans-serif; font-weight: 700; font-style: italic; font-size: 24px; letter-spacing: 2px; text-transform: uppercase; justify-content: flex-start; }
.chat-header p { font-family: 'Rajdhani', sans-serif; font-size: 12px; letter-spacing: 1px; opacity: .85; }
.online-dot { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.chat-back-btn { border-radius: 0; transform: skewX(-8deg); font-family: 'Rajdhani'; font-weight: 700; letter-spacing: 1px; }
.chat-container { background: transparent; }
.message-content { border-radius: 0; font-family: 'Rajdhani', sans-serif; font-size: 17px; font-weight: 500; line-height: 1.4; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding: 10px 18px; }
.message.bot .message-content { background: rgba(255,255,255,.07); border: 1px solid rgba(62,230,255,.25); }
.message.user .message-content { background: linear-gradient(135deg, var(--hot), #8a1a6a); color: #fff; font-weight: 700; box-shadow: 0 6px 16px rgba(255,45,122,.3); }
.message-avatar { border-radius: 0; transform: skewX(-8deg); border: 1px solid rgba(62,230,255,.35); }
.message-avatar img { border-radius: 0; }
.chat-header-face { border-radius: 0; transform: skewX(-8deg); border: 1px solid rgba(255,255,255,.4); }
.typing-indicator { border-radius: 0; }
.quick-buttons { gap: 6px; }
.quick-btn { border-radius: 0; font-family: 'Rajdhani', sans-serif; font-size: 15px; letter-spacing: .5px; transform: skewX(-8deg); border: 1px solid rgba(62,230,255,.45); color: var(--cyan); background: rgba(62,230,255,.06); padding: 8px 16px; }
.quick-btn:hover, .quick-btn:active { background: var(--cyan); color: #00222b; border-color: var(--cyan); transform: skewX(-8deg) translateY(-2px); box-shadow: 0 0 16px rgba(62,230,255,.5); }
.quick-btn.secondary { border-color: #3a2550; color: var(--dim); background: transparent; }
.quick-btn.secondary:hover { background: #3a2550; color: var(--ink); border-color: #3a2550; }
.quick-btn.cancel-btn { border-color: rgba(255,90,110,.5); color: #ff8a9a; background: rgba(255,90,110,.06); }
.quick-btn.cancel-btn:hover { background: #ff5a6e; color: #fff; border-color: #ff5a6e; box-shadow: 0 0 16px rgba(255,90,110,.5); }
.quick-btn.download-btn { border-radius: 0; background: var(--gold); color: #1a0a00; border-color: var(--gold); box-shadow: 0 0 18px rgba(255,216,77,.45); }
.quick-btn.download-btn:hover { transform: skewX(-8deg) translateY(-2px); }
.input-area { border-top: 1px solid rgba(255,45,122,.25); background: rgba(13,6,20,.9); }
.input-area input[type="text"] { border-radius: 0; border: 1px solid rgba(62,230,255,.4); background: rgba(10,4,18,.8); font-family: 'Rajdhani'; font-size: 15px; transform: skewX(-6deg); }
.input-area input:focus { border-color: var(--cyan); box-shadow: 0 0 14px rgba(62,230,255,.4); }
.input-area button { border-radius: 0; background: var(--gold); color: #1a0a00; font: 700 18px 'Teko'; letter-spacing: 2px; transform: skewX(-6deg); }
.ai-bot-fab { border-radius: 0; transform: skewX(-8deg); border: 2px solid var(--hot); box-shadow: 0 0 22px rgba(255,45,122,.6); background: #160a22; animation: none; }
.ai-bot-fab .fab-icon { border-radius: 0; }
.ai-bot-fab:hover { transform: skewX(-8deg) scale(1.08); box-shadow: 0 0 30px rgba(255,45,122,.85); }
.cancel-modal-overlay { background: rgba(5,2,10,.7); backdrop-filter: blur(6px); }
.cancel-modal { border-radius: 0; background: linear-gradient(180deg, rgba(22,10,34,.98), rgba(13,6,20,.98)); border: 1px solid var(--hot); box-shadow: 0 0 34px rgba(255,45,122,.4); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.cancel-modal-title { font-family: 'Teko'; font-size: 26px; letter-spacing: 2px; text-transform: uppercase; }
.cancel-modal-desc { font-family: 'Rajdhani'; }
.cancel-modal-btn { border-radius: 0; transform: skewX(-8deg); font-family: 'Rajdhani'; font-weight: 700; letter-spacing: .5px; }
.cancel-modal-btn.confirm { background: #ff5a6e; color: #fff; }
.cancel-modal-btn.deny { background: transparent; color: var(--dim); border: 1px solid #3a2550; }
.mini-calendar { border-radius: 0; border: 1px solid rgba(62,230,255,.25); background: rgba(10,4,18,.6); }
.mini-cal-nav button { border-radius: 0; font-family: 'Teko'; font-size: 18px; }
.mini-cal-nav span { font-family: 'Teko'; font-size: 20px; letter-spacing: 2px; text-transform: uppercase; }
.mini-cal-header { font-family: 'Teko'; letter-spacing: 1px; color: var(--hot2); }
.mini-cal-day { border-radius: 0; font-family: 'Rajdhani'; font-weight: 700; }
.mini-cal-day.today { border-color: var(--gold); color: var(--gold); }
.mini-cal-day.selected { background: var(--hot); color: #fff; }
.mini-cal-day.booked-full { background: rgba(255,45,122,.25); color: var(--hot2); }
.mini-cal-day.booked-half { background: rgba(62,230,255,.15); color: var(--cyan); }

/* ============================================================
   PHONE LAYOUT (<= 760px): full-screen chat sheet, tighter chrome
   ============================================================ */
@media (max-width: 760px) {
  .screen { padding: 14px 10px 90px; }
  #select.on { justify-content: flex-start; }   /* never clip the heading on short phones */
  #topbar { top: 8px; right: 8px; gap: 6px; }
  #topbar button { font-size: 11px; padding: 5px 7px; }
  .guest-badge { top: 8px; left: 8px; font-size: 10px; }
  .title-wrap { margin-top: 30px; }
  .grid { --gap: 5px; padding: 0 6px; gap: 10px var(--squad-gap); }
  .squad-name { font-size: 14px; letter-spacing: 2px; padding: 3px 8px 1px; }
  .squad-sub { font-size: 8px; letter-spacing: 1.5px; }
  .tile .name { font-size: 15px; letter-spacing: 1px; padding: 10px 4px 3px; }
  .tile .tag { font-size: 8px; padding: 0 4px; }
  .banner span { padding: 6px 28px; font-size: 18px; }
  .fighter-video { height: 54vh; max-height: 54vh; }
  .fighter-video video, .fighter-video img, .fighter-video .big-monkey { height: 54vh; }
  .fighter-panel { padding: 12px 16px 24px; }
  .plate b { font-size: clamp(40px, 14vw, 64px); }
  .role { font-size: 20px; margin: 8px 0 16px; }
  .cal-head { margin-top: 36px; }
  .cal-head h1 { font-size: 30px; }
  .cal-nav .btn.ghost { font-size: 18px; padding: 2px 12px; margin-top: 0; }
  .calendar-instruction { font-size: 10px; letter-spacing: .5px; }
  .cal { gap: 3px; }
  .day { min-height: 118px; padding: 3px; gap: 3px; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
  .day .num { font-size: 17px; padding-left: 4px; }
  .day .chips { gap: 3px; }
  .fighter-chip { height: 46px; }
  .fighter-chip .lbl { font-size: 10px; letter-spacing: .5px; padding-top: 6px; }
  .fighter-chip .shift { font-size: 8px; }
  .shift-tap { font-size: 10px; letter-spacing: 1px; padding: 2px 0 0; }
  .dow { font-size: 12px; letter-spacing: 0; }
  .cal-action-bar { left: 8px; right: 8px; bottom: 8px; transform: none; max-width: none; flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
  .cal-action-title { font-size: 18px; }
  .cal-action-sub { font-size: 11px; }
  .cal-action-btn { font-size: 16px; padding: 6px 12px; }
  .booking-details { left: 8px; right: 8px; bottom: 80px; width: auto; max-height: 50vh; }
  .chat-modal-overlay { padding: 0; align-items: stretch; justify-content: stretch; }
  .chat-modal { max-width: none; width: 100%; max-height: none; height: 100%; clip-path: none; border-left: 0; border-right: 0; }
  .chat-modal-close { top: 10px; right: 10px; }
  .ai-bot-fab { bottom: 14px; right: 10px; }
  #slam b { font-size: clamp(54px, 22vw, 110px); }
}

/* ============================================================
   DOC'S FEEDBACK (2026-10-24): role colours + legend, action-bar room, own face in chat, password eye
   ============================================================ */
:root { --role-leader: #ff8a7a; --role-admin: #f3f0ff; --role-manager: #c9a7ff; --role-programmer: #ff9ad5; --role-receptionist: #ffd84d; --role-hunter: #7ee8a0; --role-receiver: #A7EBF2; }
.fighter-chip.role-leader { border-color: var(--role-leader); }
.fighter-chip.role-admin { border-color: var(--role-admin); }
.fighter-chip.role-manager { border-color: var(--role-manager); }
.fighter-chip.role-programmer { border-color: var(--role-programmer); }
.fighter-chip.role-receptionist { border-color: var(--role-receptionist); }
.fighter-chip.role-hunter { border-color: var(--role-hunter); }
.fighter-chip.role-receiver { border-color: var(--role-receiver); }
.fighter-chip.half { border-style: dashed; }
.fighter-chip.mine { box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(255,216,77,.6); }
.tile .tag.role-leader { background: var(--role-leader); color: #3a0f0a; }
.tile .tag.role-admin { background: var(--role-admin); color: #1a1430; }
.tile .tag.role-manager { background: var(--role-manager); color: #1d0b3a; }
.tile .tag.role-programmer { background: var(--role-programmer); color: #3a0a28; }
.tile .tag.role-receptionist { background: var(--role-receptionist); color: #3a2a00; }
.tile .tag.role-hunter { background: var(--role-hunter); color: #042a12; }
.tile .tag.role-receiver { background: var(--role-receiver); color: #012036; }
.calendar-legend { max-width: 1180px; margin: 0 auto 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font: 500 12px 'Rajdhani'; color: var(--dim); letter-spacing: .5px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend-dot.role-leader { background: var(--role-leader); } .legend-dot.role-admin { background: var(--role-admin); } .legend-dot.role-manager { background: var(--role-manager); } .legend-dot.role-programmer { background: var(--role-programmer); }
.legend-dot.role-receptionist { background: var(--role-receptionist); } .legend-dot.role-hunter { background: var(--role-hunter); } .legend-dot.role-receiver { background: var(--role-receiver); }
.legend-chip { width: 22px; height: 12px; display: inline-block; transform: skewX(-10deg); border: 2px solid var(--ink); background: rgba(255,255,255,.08); }
.legend-chip.half { border-style: dashed; }
.legend-chip.mine { border-color: var(--gold); box-shadow: 0 0 8px rgba(255,216,77,.7); }
.legend-sep { width: 1px; height: 14px; background: #3a2550; }
#calendar.has-bar { padding-bottom: 150px; }
.message.user .message-avatar.fighter-face { background-size: 300%; background-repeat: no-repeat; border: 1px solid var(--gold); box-shadow: 0 0 10px rgba(255,216,77,.45); }
.pw-wrap { position: relative; flex: 1 1 200px; min-width: 0; display: flex; }
.pw-wrap input { flex: 1; padding-right: 48px; }
#pwEye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%) skewX(-10deg); background: transparent; border: 0; color: var(--cyan); font-size: 20px; cursor: pointer; padding: 4px 6px; line-height: 1; }
#pwEye:hover { color: #fff; }
@media (max-width: 760px) { .calendar-legend { font-size: 10px; gap: 4px 10px; } #calendar.has-bar { padding-bottom: 190px; } }

/* Doc: chat text was too small to read */
#userInput { font-size: 16px; font-family: 'Rajdhani', sans-serif; font-weight: 500; }
.message-content small, .message-content .msg-note { font-size: 14px; }

/* ============================================================
   NIGHT SHIFT GRID (Doc's sketch, 2026-10-28): LEFT half = 2ND (9PM the day before -> 2:30AM here), RIGHT half = 1ST.
   A full day is one frame from the middle of its date to the middle of the next. Live health bars on every chip.
   The .day skew moves to ::before because clip-path would clip the spanning frame.
   ============================================================ */
:root { --cal-gap: 6px; --day-pad: 6px; --half-gap: 3px; --lane-h: 74px; }
.cal { gap: var(--cal-gap); }
.day { clip-path: none; background: none; border: 0; z-index: 0; padding: var(--day-pad); }
.day::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(36,16,58,.9), rgba(13,6,20,.9)); border: 1px solid rgba(255,45,122,.18); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.day.today { box-shadow: none; }
.day.today::before { border-color: var(--cyan); box-shadow: inset 0 0 18px rgba(62,230,255,.3); }
/* each cell paints above its right-hand neighbour so a spanning frame sits over the next cell */
.cal > .day:nth-child(7n+1) { z-index: 7; } .cal > .day:nth-child(7n+2) { z-index: 6; } .cal > .day:nth-child(7n+3) { z-index: 5; }
.cal > .day:nth-child(7n+4) { z-index: 4; } .cal > .day:nth-child(7n+5) { z-index: 3; } .cal > .day:nth-child(7n+6) { z-index: 2; } .cal > .day:nth-child(7n) { z-index: 1; }
.lane { position: relative; height: var(--lane-h); }
.fighter-chip.hl, .fighter-chip.hr, .fighter-chip.span { position: absolute; top: 0; bottom: 0; height: auto; }
.fighter-chip.hl { left: 0; width: calc(50% - var(--half-gap)); }
.fighter-chip.hr { right: 0; width: calc(50% - var(--half-gap)); }
.fighter-chip.span { left: calc(50% + var(--half-gap)); width: calc(100% + var(--cal-gap) + 2 * var(--day-pad) - 2 * var(--half-gap)); z-index: 4; }
.fighter-chip.cut-start { border-right-style: dashed; }   /* full day continues on the next row / next month */
.fighter-chip.cut-end { border-left-style: dashed; }
.fighter-chip.hl .lbl, .fighter-chip.hr .lbl { font-size: 12px; letter-spacing: .5px; }
.fighter-chip.hl .shift, .fighter-chip.hr .shift { right: 6%; font-size: 9px; }
.shift-tap small { display: block; font: 600 10px 'Rajdhani'; letter-spacing: 0; color: var(--dim); line-height: 1.1; padding-bottom: 2px; }
.shift-tap.cal-clickable small { color: rgba(255,255,255,.6); }
.shift-tap.cal-selected small { color: #fff; }
.fighter-chip .hp { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0,0,0,.75); z-index: 2; }
/* time runs left -> right (28 -> 29), so the spent part burns away from the LEFT and what is left hugs the right edge */
.fighter-chip .hp i { position: absolute; right: 0; top: 0; height: 100%; width: var(--hp, 100%); background: linear-gradient(90deg, #ff2d7a, #ffd84d 50%, #58f58a); box-shadow: 0 0 6px rgba(88,245,138,.6); transition: width 1s linear; }
.fighter-chip.live .hp i { animation: hpblink 1.2s ease-in-out infinite; }
@keyframes hpblink { 50% { filter: brightness(1.7); } }
/* sparks at the burning tip while the day off is being spent */
.fighter-chip.live .hp i::before { content: ''; position: absolute; left: -3px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px #ffd84d, 0 0 14px 4px rgba(255,216,77,.55); animation: tipglow .3s steps(2) infinite alternate; }
.fighter-chip.live .hp i::after { content: ''; position: absolute; left: -1px; top: 50%; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: sparks .45s linear infinite; }
@keyframes tipglow { to { transform: scale(1.5); } }
@keyframes sparks {
  0%   { opacity: 1; box-shadow: -2px -2px 0 0 #ffd84d, -3px 2px 0 0 #ff9a3c, 2px -3px 0 0 #fff, -1px 3px 0 0 #ffd84d, 3px 2px 0 0 #ff2d7a; }
  100% { opacity: 0; box-shadow: -9px -9px 0 0 #ffd84d, -11px 6px 0 0 #ff9a3c, 6px -11px 0 0 #fff, -4px 11px 0 0 #ffd84d, 9px 7px 0 0 #ff2d7a; }
}
.fighter-chip.spent { filter: grayscale(.8) brightness(.6); }
.fighter-chip.spent .lbl::before { content: 'K.O. '; color: var(--hot); }
.legend-span { width: 34px; height: 12px; display: inline-block; transform: skewX(-10deg); border: 2px solid var(--ink); background: linear-gradient(90deg, rgba(255,255,255,.08) 50%, rgba(62,230,255,.25) 50%); }
.legend-hp { width: 22px; height: 5px; display: inline-block; background: linear-gradient(90deg, #ff2d7a, #ffd84d 50%, #58f58a); }
@media (max-width: 760px) {
  :root { --cal-gap: 3px; --day-pad: 3px; --half-gap: 1px; --lane-h: 46px; }
  .day::before { clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
  .shift-tap small { display: none; }
  .fighter-chip.hl .lbl, .fighter-chip.hr .lbl { font-size: 7px; letter-spacing: 0; padding-top: 4px; }
  .fighter-chip.hl .shift, .fighter-chip.hr .shift { font-size: 6px; right: 2px; padding: 0 2px; }
  .fighter-chip .hp { height: 3px; }
}

/* ============================================================
   MONTHLY DAY-OFF LEADERBOARD under the calendar (Doc, 2026-10-28)
   ============================================================ */
.month-summary { max-width: 1180px; margin: 34px auto 0; padding: 18px 18px 22px; position: relative; background: linear-gradient(180deg, rgba(36,16,58,.9), rgba(13,6,20,.92)); border: 1px solid rgba(255,45,122,.25); clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.ms-title { font-family: 'Teko'; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: 3px; color: var(--ink); margin: 0 0 12px; text-transform: uppercase; }
.ms-title small, .ms-zero-title small { display: block; font: 500 13px 'Rajdhani'; letter-spacing: 1px; color: var(--dim); text-transform: none; }
.ms-list { display: flex; flex-direction: column; gap: 6px; }
.ms-row { display: grid; grid-template-columns: 44px 46px minmax(90px, 180px) 1fr 86px; align-items: center; gap: 10px; padding: 4px 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); transform: skewX(-6deg); }
.ms-row > * { transform: skewX(6deg); }
.ms-row.rank-1 { border-color: var(--gold); box-shadow: 0 0 14px rgba(255,216,77,.35); background: rgba(255,216,77,.08); }
.ms-row.rank-2 { border-color: #cfd6e6; } .ms-row.rank-3 { border-color: #d49a6a; }
.ms-rank { font-family: 'Teko'; font-size: 24px; text-align: center; color: var(--gold); }
.ms-face { width: 40px; height: 40px; display: inline-block; background-size: 300%; background-repeat: no-repeat; background-color: #1c0d2b; border: 2px solid var(--hot); box-shadow: 0 0 8px rgba(255,45,122,.4); }
.ms-name { display: flex; flex-direction: column; line-height: 1.05; }
.ms-name b { font-family: 'Teko'; font-size: 22px; letter-spacing: 2px; }
.ms-name small { font: 600 11px 'Rajdhani'; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); }
.ms-name small.role-leader { color: var(--role-leader); } .ms-name small.role-admin { color: var(--role-admin); } .ms-name small.role-manager { color: var(--role-manager); } .ms-name small.role-programmer { color: var(--role-programmer); }
.ms-name small.role-receptionist { color: var(--role-receptionist); } .ms-name small.role-hunter { color: var(--role-hunter); } .ms-name small.role-receiver { color: var(--role-receiver); }
.ms-bar { height: 12px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.ms-bar i { display: block; height: 100%; background: linear-gradient(90deg, #58f58a, #ffd84d 55%, #ff2d7a); box-shadow: 0 0 8px rgba(255,45,122,.6); }
.ms-days { font-family: 'Teko'; font-size: 22px; letter-spacing: 1px; text-align: right; color: var(--cyan); white-space: nowrap; }
.ms-days b { font-size: 28px; color: #fff; }
.ms-empty { padding: 14px; text-align: center; color: var(--dim); font: 500 15px 'Rajdhani'; }
.ms-zero-title { font-family: 'Teko'; font-size: 24px; letter-spacing: 3px; color: var(--role-hunter); margin: 22px 0 10px; }
.ms-zero { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-zero-item { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; font-family: 'Teko'; font-size: 18px; letter-spacing: 1.5px; background: rgba(126,232,160,.07); border: 1px dashed rgba(126,232,160,.45); transform: skewX(-6deg); }
.ms-zero-item .ms-face { width: 30px; height: 30px; border-color: var(--role-hunter); box-shadow: none; }
@media (max-width: 760px) {
  .month-summary { margin-top: 22px; padding: 12px 10px 16px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
  .ms-row { grid-template-columns: 30px 36px minmax(70px, 1fr) 1fr 64px; gap: 6px; padding: 3px 6px; }
  .ms-rank { font-size: 18px; } .ms-face { width: 32px; height: 32px; } .ms-name b { font-size: 17px; letter-spacing: 1px; } .ms-name small { font-size: 9px; }
  .ms-days { font-size: 16px; } .ms-days b { font-size: 20px; }
  .ms-zero-item { font-size: 14px; padding: 3px 8px 3px 3px; } .ms-zero-item .ms-face { width: 24px; height: 24px; }
}
