/* VCE101 house style: GTAC hero colours, Figtree, eggshell pages, onyx welcome. */
:root {
  --eggshell: #F9F6E7;
  --sodium-flame: #FF6D3A;
  --cadmium-yellow: #FFCD1F;
  --chlorophyll-green: #00BC74;
  --aquamarine: #6BE7BE;
  --lavender: #C0ADFF;
  --cobalt-blue: #4C34E5;
  --onyx: #272A24;
  --line: rgba(39, 42, 36, .12);
  --muted: rgba(39, 42, 36, .62);
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Figtree", system-ui, sans-serif; color: var(--onyx); background: var(--eggshell);
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased;
}
a { color: var(--cobalt-blue); }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--onyx);
  background: #fff; color: var(--onyx); font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .12s, background .12s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn.primary { background: var(--cobalt-blue); border-color: var(--cobalt-blue); color: #fff; }
.btn.flame { background: var(--sodium-flame); border-color: var(--sodium-flame); color: #fff; }
.btn.ghost { border-color: var(--line); background: transparent; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .92rem; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: default; }

.gtac-logo { height: 34px; width: auto; display: block; cursor: pointer; user-select: none; -webkit-user-drag: none; }

#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--onyx); color: var(--eggshell); padding: 12px 20px; border-radius: 14px; font-weight: 600;
  transition: .25s var(--ease); z-index: 100; max-width: 90vw;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(20, 22, 18, .55); padding: 20px; }
.modal-box {
  background: var(--eggshell); border-radius: 22px; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  padding: 24px 26px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); border-top: 6px solid var(--sodium-flame);
}
.modal-box h2 { margin: 0 0 6px; font-size: 1.5rem; }
.modal-box h3 { margin: 22px 0 8px; font-size: 1.1rem; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.x-btn { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; }
textarea.json { width: 100%; min-height: 140px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; border-radius: 12px; border: 2px solid var(--line); padding: 10px; background: #fff; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
table.list { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.list td, table.list th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }

/* ---------- welcome (index.html, before the tap) ---------- */
body.welcome { background: var(--onyx); overflow: hidden; }
#welcome {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; cursor: pointer; color: var(--eggshell);
  background: radial-gradient(ellipse at 50% 62%, #3a3e34 0%, var(--onyx) 62%);
  transition: opacity .7s var(--ease), visibility .7s;
}
body:not(.welcome) #welcome { opacity: 0; visibility: hidden; pointer-events: none; }
.hero { position: relative; width: min(1100px, 96vw); height: min(760px, 94vh); }
.hero-title {
  position: absolute; left: 50%; top: 4%; transform: translateX(-50%); text-align: center; white-space: nowrap;
}
.hero-title .pill { display: inline-block; padding: 6px 14px; border-radius: 99px; background: rgba(249, 246, 231, .1); font-weight: 700; letter-spacing: .08em; font-size: .85rem; text-transform: uppercase; }
.hero-title h1 { margin: 10px 0 0; font-size: clamp(64px, 13vw, 168px); line-height: .9; font-weight: 800; letter-spacing: -.04em; }
.hero-title h1 span { color: var(--cadmium-yellow); }
.hero .scope { position: absolute; left: 50%; bottom: 6%; width: min(250px, 30vw); transform: translateX(-50%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.hero .sc-glow { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .55; } }
.hero .beam {
  position: absolute; left: 50%; bottom: 38%; width: 2px; height: 0; background: linear-gradient(var(--cadmium-yellow), transparent);
}
.tap-hint {
  position: absolute; left: 50%; bottom: 1.5%; transform: translateX(-50%); font-weight: 700; letter-spacing: .04em;
  color: rgba(249, 246, 231, .75); animation: hint 2s ease-in-out infinite; white-space: nowrap;
}
@keyframes hint { 50% { opacity: .35; } }
.hero .gtac-logo { position: absolute; left: 0; bottom: 2%; height: 40px; }

/* the five fields of view */
.field {
  position: absolute; width: var(--d, 170px); height: var(--d, 170px); border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 6px #1a1c17, 0 0 0 9px rgba(249, 246, 231, .16), 0 20px 50px rgba(0, 0, 0, .5);
  transition: transform .9s var(--ease), border-radius .9s var(--ease), box-shadow .9s;
}
.field canvas { width: 100%; height: 100%; display: block; }
.field::after { /* the edge of the field of view */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 30px 10px rgba(0, 0, 0, .55);
}
.field .tag {
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); background: rgba(39, 42, 36, .75); color: #fff;
  padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; z-index: 1;
}
#welcome .field { animation: bob 6s ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes bob { 50% { translate: 0 -10px; } }

/* ---------- dashboard ---------- */
#dash { min-height: 100vh; opacity: 0; transition: opacity .6s .25s; }
body:not(.welcome) #dash { opacity: 1; }
body.welcome #dash { pointer-events: none; height: 100vh; overflow: hidden; }
.topbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 24px; border-bottom: 4px solid var(--sodium-flame);
  position: sticky; top: 0; background: var(--eggshell); z-index: 5;
}
.topbar h1 { margin: 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; cursor: pointer; }
.topbar h1 span { color: var(--sodium-flame); }
.topbar .today { color: var(--muted); font-weight: 600; }
.topbar .spacer { flex: 1; }
.sessions-today { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 24px 0; }
.sess { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 8px 14px; font-weight: 600; }
.sess b { color: var(--cobalt-blue); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; padding: 22px 24px 40px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line);
  display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(39, 42, 36, .06);
  opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(.15s + var(--i) * .07s);
}
body:not(.welcome) .card { opacity: 1; transform: none; }
.card-art { position: relative; height: 150px; background: var(--onyx); }
.card-art .field { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.card-art .field::after { box-shadow: inset 0 -40px 40px -20px rgba(0, 0, 0, .35); }
.card-art .field .tag { display: none; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h2 { margin: 0; font-size: 1.45rem; display: flex; align-items: center; gap: 10px; }
.card h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.card .blurb { margin: 0; color: var(--muted); }
.room-row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name btns" "status btns";
  column-gap: 10px; row-gap: 2px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line);
}
.room-row .rname { grid-area: name; font-weight: 800; font-size: 1.05rem; }
.room-row .rname small { font-weight: 700; color: var(--muted); font-size: .78rem; letter-spacing: .08em; margin-left: 6px; }
.status { grid-area: status; font-size: .86rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #c9c6b8; flex: none; }
.dot.up { background: var(--chlorophyll-green); box-shadow: 0 0 0 4px rgba(0, 188, 116, .18); }
.dot.down { background: var(--sodium-flame); }
.room-row .btns { grid-area: btns; display: flex; gap: 6px; }
.qr-btn { width: 40px; padding: 0; }
.card .extra { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-foot { padding: 0 24px 40px; line-height: 1.6; }

.qr-big { text-align: center; }
.qr-big svg { width: min(420px, 80vw); height: auto; border-radius: 16px; }
.qr-big .url { font-size: 1.4rem; font-weight: 800; margin: 12px 0 4px; word-break: break-all; }
.qr-big .code { font-size: 3rem; font-weight: 800; letter-spacing: .12em; color: var(--sodium-flame); }

/* ---------- room picker (room.html) ---------- */
.picker { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--c, var(--onyx)); }
.picker-box { background: var(--eggshell); border-radius: 28px; padding: 34px 32px; width: min(460px, 100%); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.picker-box h1 { margin: 6px 0 4px; font-size: 2.4rem; }
.picker-box input {
  width: 100%; margin: 18px 0 8px; font-size: 3rem; font-weight: 800; text-align: center; letter-spacing: .25em; text-transform: uppercase;
  border: 3px solid var(--onyx); border-radius: 18px; padding: 10px; background: #fff;
}
.picker-box .err { color: #c0392b; font-weight: 700; min-height: 1.4em; }
.picker-box .btn { width: 100%; min-height: 56px; font-size: 1.2rem; }
.picker-box .or { margin-top: 18px; display: flex; gap: 10px; justify-content: center; }

/* ---------- day gallery (day.html, days.html) ---------- */
.gal-head { padding: 18px 24px 6px; display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.gal-head h2 { margin: 0; font-size: 2rem; }
.filters { padding: 8px 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; font-weight: 700; cursor: pointer; }
.chip.on { background: var(--onyx); color: var(--eggshell); border-color: var(--onyx); }
.gal-section { padding: 8px 24px 16px; }
.gal-section h3 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; margin: 18px 0 10px; }
.gal-section h3::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tile { background: #fff; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); cursor: zoom-in; position: relative; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #eee; }
.tile .cap { padding: 8px 12px 10px; }
.tile .cap b { font-size: 1.05rem; }
.tile .cap div { color: var(--muted); font-size: .85rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; padding: 2px 7px; border-radius: 6px; background: var(--eggshell); border: 1px solid var(--line); margin-left: 6px; vertical-align: 2px; }
.empty { padding: 60px 24px; text-align: center; color: var(--muted); font-size: 1.2rem; }
.lightbox { position: fixed; inset: 0; background: rgba(20, 22, 18, .92); z-index: 60; display: grid; grid-template-rows: 1fr auto; padding: 20px; color: var(--eggshell); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; display: block; min-height: 0; }
.lightbox .lb-cap { text-align: center; padding-top: 12px; font-size: 1.2rem; }
.days-list { padding: 10px 24px 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.day-link { display: block; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--onyx); }
.day-link b { font-size: 1.15rem; }
.day-link small { display: block; color: var(--muted); }

/* ---------- big screen (bs.html) ---------- */
body.bs { background: #000; color: var(--eggshell); overflow: hidden; cursor: none; height: 100vh; }
body.bs.admin { cursor: auto; overflow: auto; }
.bs-stage { position: fixed; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; display: grid; place-items: center; }
.slide.on { opacity: 1; }
.slide.title-card .field { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.slide.title-card .field::after { box-shadow: inset 0 0 25vh 8vh rgba(0, 0, 0, .7); }
.slide.title-card h1 {
  position: relative; margin: 0; font-size: 22vh; font-weight: 800; letter-spacing: -.04em; color: #fff;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .6); text-transform: lowercase;
}
.slide.title-card .sub { position: absolute; bottom: 12vh; font-size: 3.4vh; font-weight: 700; color: rgba(255, 255, 255, .85); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.slide.work { grid-template-rows: 1fr auto; padding: 4vh 4vw 3vh; background: radial-gradient(ellipse at center, #22251f, #000 75%); }
.slide.work img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 70px rgba(0, 0, 0, .7); min-height: 0; }
.slide.work .who { display: flex; gap: 2vw; align-items: baseline; justify-content: center; padding-top: 2vh; }
.slide.work .who b { font-size: 4.6vh; }
.slide.work .who span { font-size: 2.8vh; color: rgba(249, 246, 231, .7); }
.slide.work .app-tag { position: absolute; top: 3vh; left: 3vw; font-size: 2.4vh; font-weight: 800; text-transform: lowercase; padding: .4vh 1.4vh; border-radius: 99px; background: var(--c); color: #fff; }
.bs-logo { position: fixed; right: 1.5vw; bottom: 1.5vh; height: 5vh; padding: 1vh; box-sizing: content-box; z-index: 10; opacity: .8; cursor: pointer; }
.bs-attract { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.bs-attract h1 { font-size: 18vh; margin: 0; letter-spacing: -.04em; }
.bs-attract h1 span { color: var(--cadmium-yellow); }
.bs-admin { position: fixed; inset: 0; z-index: 30; background: var(--eggshell); color: var(--onyx); overflow: auto; }
.bs-admin .topbar { position: sticky; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; padding: 16px 24px 60px; }
.pick { background: #fff; border-radius: 14px; overflow: hidden; border: 3px solid var(--line); position: relative; }
.pick.on { border-color: var(--chlorophyll-green); box-shadow: 0 0 0 3px rgba(0, 188, 116, .25); }
.pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; cursor: pointer; }
.pick .cap { padding: 6px 10px; font-size: .88rem; }
.pick .acts { display: flex; gap: 6px; padding: 0 10px 10px; }
.pick .acts .btn { flex: 1; }
.pick .star { position: absolute; top: 8px; left: 8px; background: var(--cadmium-yellow); border-radius: 99px; padding: 2px 8px; font-weight: 800; font-size: .8rem; }
.pick .shown { position: absolute; top: 8px; right: 8px; background: var(--chlorophyll-green); color: #fff; border-radius: 99px; padding: 2px 8px; font-weight: 800; font-size: .8rem; }
