@font-face { font-family: 'Fredoka'; src: url('/assets/fonts/Fredoka.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Press Start 2P'; src: url('/assets/fonts/PressStart2P.ttf') format('truetype'); font-display: swap; }

:root {
  --night: #1c1730; --night2: #2b2440; --panel: rgba(28, 23, 48, .88); --line: rgba(255, 255, 255, .12);
  --pink: #ff4fd8; --cyan: #38e1ff; --blue: #37b6e6; --gold: #ffcf4a; --sauce: #e9442f; --cream: #fff5e1; --green: #7dff8a;
  --text: #fdf8ef; --muted: #b9b3cf; --r: 16px;
  --shadow: 0 10px 30px rgba(10, 6, 30, .45);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #120e22; color: var(--text); font-family: 'Fredoka', system-ui, sans-serif; font-size: 16px; -webkit-tap-highlight-color: transparent; }
canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.pixel { font-family: 'Press Start 2P', monospace; letter-spacing: .02em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--cyan); }
kbd { font-family: 'Press Start 2P', monospace; font-size: 10px; background: var(--cream); color: var(--night); border-radius: 6px; padding: 6px 7px 5px; box-shadow: 0 3px 0 #b9a98a; }

/* ---------- accueil ---------- */
.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; transition: opacity .6s ease, visibility .6s; }
.gate.out { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-sky { position: absolute; inset: 0; background:
  radial-gradient(1200px 500px at 50% 115%, rgba(255, 138, 42, .55), transparent 60%),
  radial-gradient(700px 400px at 15% 10%, rgba(255, 79, 216, .35), transparent 65%),
  radial-gradient(700px 400px at 85% 15%, rgba(56, 225, 255, .3), transparent 65%),
  linear-gradient(180deg, #1c1340 0%, #3a2466 55%, #7a3a6a 100%); }
.gate-sky::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#fff 1px, transparent 1.5px); background-size: 90px 90px; opacity: .25; animation: drift 60s linear infinite; }
@keyframes drift { to { background-position: 900px 450px; } }
.gate-card { position: relative; width: min(460px, 100%); padding: 28px 28px 24px; border-radius: 26px; background: var(--panel); border: 2px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 4px rgba(255, 79, 216, .18), 0 0 60px rgba(56, 225, 255, .25), var(--shadow); text-align: center; backdrop-filter: blur(10px); animation: pop .6s cubic-bezier(.2, 1.4, .4, 1); }
.gate-logo { width: 150px; height: 150px; object-fit: contain; margin: -90px auto 0; display: block; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes pop { from { transform: scale(.85) translateY(20px); opacity: 0; } }
.gate h1 { font-size: 22px; line-height: 1.5; margin: 10px 0 6px; color: var(--blue); text-shadow: 3px 3px 0 #ff4fd8aa; }
.gate h1 span { color: var(--gold); font-size: 30px; }
.gate-tag { color: var(--muted); margin: 6px 0 18px; }
.gate-err { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(233, 68, 47, .2); border: 1px solid rgba(233, 68, 47, .6); }
.gate-foot { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-family: 'Press Start 2P', monospace; font-size: 9px; color: #cfe9ff; opacity: .8; padding: 0 12px; line-height: 1.8; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; padding: 13px 18px; font-weight: 600; font-size: 17px; background: var(--blue); color: #0b1a2a; box-shadow: 0 5px 0 #1f7fa8; transition: transform .08s, box-shadow .08s, filter .15s; text-decoration: none; }
.btn:hover { filter: brightness(1.08); } .btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #1f7fa8; }
.btn.wide { width: 100%; } .btn.discord { background: #5865f2; color: #fff; box-shadow: 0 5px 0 #3c45b5; }
.btn.pink { background: var(--pink); color: #2a0626; box-shadow: 0 5px 0 #b42f97; } .btn.gold { background: var(--gold); color: #3a2a00; box-shadow: 0 5px 0 #b58a1c; }
.btn.ghost { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: 0 5px 0 rgba(0, 0, 0, .35); } .btn.red { background: var(--sauce); color: #fff; box-shadow: 0 5px 0 #9c2a1c; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 11px; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.btn:disabled { opacity: .45; pointer-events: none; }
.field { display: block; text-align: left; margin: 10px 0; } .field > span { display: block; font-size: 13px; color: var(--muted); margin: 0 0 5px 4px; }
.field small { color: var(--muted); float: right; }
input[type=text], input[type=url], input[type=datetime-local], textarea, select { width: 100%; background: rgba(0, 0, 0, .32); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; outline: none; transition: border-color .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); } textarea { resize: vertical; min-height: 84px; }
.or { margin: 16px 0 10px; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 10px; } .or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.loader-dots { display: flex; gap: 8px; justify-content: center; padding: 14px; } .loader-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); animation: dots 1s infinite ease-in-out; } .loader-dots i:nth-child(2) { animation-delay: .15s; background: var(--pink); } .loader-dots i:nth-child(3) { animation-delay: .3s; background: var(--gold); }
@keyframes dots { 50% { transform: translateY(-10px); } }
.progress { height: 16px; border-radius: 10px; background: rgba(0, 0, 0, .4); overflow: hidden; border: 2px solid var(--line); } .progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--gold), var(--cyan)); transition: width .25s; }
.progress-label { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; } #hud > * { pointer-events: auto; }
.topbar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; pointer-events: none !important; } .topbar > * { pointer-events: auto; }
.spacer { flex: 1; pointer-events: none !important; }
.brand { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); } .brand img { width: 30px; height: 30px; } .brand span { font-size: 11px; color: var(--blue); text-shadow: 1px 1px 0 #ff4fd8; }
.pill { padding: 9px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 500; white-space: nowrap; }
.pill.slices { border-color: rgba(255, 207, 74, .6); color: var(--gold); } .pill.slices.bump { animation: bump .45s; } @keyframes bump { 40% { transform: scale(1.25) rotate(-4deg); } }
.dock { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 8px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.dock button { width: 74px; padding: 7px 4px 6px; border: 0; border-radius: 15px; background: transparent; display: grid; gap: 1px; justify-items: center; transition: transform .15s cubic-bezier(.2, 1.6, .4, 1), background .15s; }
.dock button span { font-size: 24px; line-height: 1.1; } .dock button em { font-style: normal; font-size: 11px; color: var(--muted); }
.dock button:hover { background: rgba(255, 255, 255, .1); transform: translateY(-5px) scale(1.08); } .dock button:hover em { color: var(--text); } .dock button:active { transform: scale(.94); }
.dock button.glow { box-shadow: inset 0 0 0 2px var(--gold); animation: glow 1.4s infinite; } @keyframes glow { 50% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 18px var(--gold); } }
.emote-bar { position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 8px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); animation: pop .25s; }
.emote-bar button { font-size: 26px; width: 48px; height: 48px; border-radius: 13px; border: 0; background: rgba(255, 255, 255, .06); transition: transform .12s; } .emote-bar button:hover { transform: scale(1.2) rotate(-6deg); background: rgba(255, 255, 255, .16); }
.chat { position: absolute; left: 12px; bottom: 14px; width: min(360px, 32vw); display: flex; flex-direction: column; gap: 6px; }
.chat-log { max-height: 210px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; padding: 6px; border-radius: 14px; mask-image: linear-gradient(transparent, #000 22px); scrollbar-width: none; transition: background .2s; }
.chat:hover .chat-log, .chat:focus-within .chat-log { background: rgba(28, 23, 48, .6); mask-image: none; scrollbar-width: thin; }
.chat-line { padding: 4px 9px; border-radius: 10px; background: rgba(28, 23, 48, .62); width: fit-content; max-width: 100%; overflow-wrap: anywhere; line-height: 1.3; font-size: 14.5px; animation: slidein .25s; }
.chat-line b { font-weight: 600; } .chat-line.sys { background: rgba(55, 182, 230, .2); color: #d8f3ff; font-size: 13.5px; }
@keyframes slidein { from { transform: translateX(-14px); opacity: 0; } }
#chat-form { display: flex; gap: 6px; } #chat-input { flex: 1; background: var(--panel); border-radius: 999px; padding: 10px 16px; border: 1px solid var(--line); outline: none; } #chat-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 225, 255, .2); }
#chat-form button { width: 42px; border-radius: 50%; border: 0; background: var(--blue); color: #0b1a2a; font-size: 16px; }
.side { position: absolute; right: 12px; top: 64px; width: 220px; display: grid; gap: 8px; }
#minimap { width: 220px; height: 220px; border-radius: 50%; background: var(--panel); border: 3px solid rgba(255, 255, 255, .18); box-shadow: var(--shadow), 0 0 0 3px rgba(55, 182, 230, .25); }
.players { max-height: 34vh; overflow-y: auto; display: grid; gap: 3px; scrollbar-width: none; } .players div { padding: 4px 10px; border-radius: 999px; background: rgba(28, 23, 48, .62); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; } .players div:hover { background: rgba(55, 182, 230, .35); }
.prompt { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--panel); border: 2px solid var(--gold); box-shadow: 0 0 22px rgba(255, 207, 74, .4), var(--shadow); font-weight: 600; cursor: pointer; animation: promptin .25s cubic-bezier(.2, 1.6, .4, 1); white-space: nowrap; }
@keyframes promptin { from { transform: translateX(-50%) translateY(14px) scale(.8); opacity: 0; } }
.countdown { position: absolute; top: 62px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 14px; background: var(--panel); border: 1px solid rgba(255, 79, 216, .6); text-align: center; font-size: 13px; box-shadow: 0 0 20px rgba(255, 79, 216, .25); } .countdown b { display: block; font-family: 'Press Start 2P', monospace; font-size: 13px; color: var(--pink); margin-top: 5px; }
.toasts { position: absolute; top: 64px; left: 12px; display: grid; gap: 8px; width: min(340px, 80vw); pointer-events: none !important; }
.toast { padding: 10px 14px; border-radius: 14px; background: var(--panel); border-left: 5px solid var(--cyan); box-shadow: var(--shadow); animation: slidein .3s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .4s, transform .4s; } .toast.good { border-color: var(--green); } .toast.warn { border-color: var(--gold); } .toast.gain { border-color: var(--gold); color: var(--gold); font-weight: 600; } .toast.out { opacity: 0; transform: translateX(-20px); }
.joystick { position: absolute; left: 26px; bottom: 120px; width: 120px; height: 120px; border-radius: 50%; background: rgba(28, 23, 48, .45); border: 2px solid rgba(255, 255, 255, .25); touch-action: none; } .joystick i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: rgba(55, 182, 230, .85); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.jump-btn { position: absolute; right: 26px; bottom: 130px; width: 70px; height: 70px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); background: rgba(255, 79, 216, .6); font-size: 28px; }

/* ---------- fenetres ---------- */
.modal-back { position: fixed; inset: 0; z-index: 30; background: rgba(12, 8, 28, .55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(880px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; background: var(--night); border-radius: 24px; border: 2px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 4px rgba(56, 225, 255, .12), 0 30px 80px rgba(0, 0, 0, .6); animation: pop .35s cubic-bezier(.2, 1.3, .4, 1); overflow: hidden; }
.modal.narrow { width: min(520px, 100%); } .modal.wide { width: min(1080px, 100%); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(90deg, rgba(255, 79, 216, .22), rgba(56, 225, 255, .18)); border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 20px; flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .modal-head h2 small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.modal-head .ico { font-size: 30px; } .x { width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .1); font-size: 18px; } .x:hover { background: var(--sauce); }
.modal-body { padding: 18px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #5a4f80 transparent; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; background: rgba(0, 0, 0, .2); }
.tabs { display: flex; gap: 6px; padding: 10px 18px 0; flex-wrap: wrap; border-bottom: 1px solid var(--line); } .tabs button { border: 0; background: transparent; padding: 9px 14px; border-radius: 12px 12px 0 0; color: var(--muted); font-weight: 500; } .tabs button.on { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: inset 0 -3px 0 var(--pink); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: var(--night2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform .18s cubic-bezier(.2, 1.5, .4, 1), box-shadow .18s, border-color .18s; display: flex; flex-direction: column; text-align: left; padding: 0; color: inherit; }
.card:hover { transform: translateY(-5px) rotate(-.6deg); border-color: var(--cyan); box-shadow: 0 12px 26px rgba(0, 0, 0, .4), 0 0 0 2px rgba(56, 225, 255, .25); }
.card .thumb { aspect-ratio: 3 / 2; background: #120e22 center / cover no-repeat; display: grid; place-items: center; font-size: 46px; } .card .thumb.vid { aspect-ratio: 16 / 9; }
.card .meta { padding: 10px 12px 12px; } .card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; line-height: 1.25; } .card p { margin: 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: rgba(55, 182, 230, .2); color: #bfeaff; margin: 4px 4px 0 0; } .tag.on { background: var(--blue); color: #06202e; } button.tag { border: 0; cursor: pointer; padding: 5px 11px; font-size: 13px; }
.hero { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; } .hero .av { width: 78px; height: 78px; border-radius: 22px; background: var(--night2) center / cover; display: grid; place-items: center; font-size: 40px; border: 3px solid var(--blue); flex: none; } .hero h3 { margin: 0; font-size: 22px; } .hero p { margin: 3px 0 0; color: var(--muted); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1.5px solid currentColor; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 2px; } .stats span { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 13.5px; }
.section-t { font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--cyan); margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; } .section-t::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, rgba(56, 225, 255, .5), transparent); }
.bio { white-space: pre-wrap; line-height: 1.5; background: var(--night2); padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.links { display: flex; gap: 8px; flex-wrap: wrap; } .links a { text-decoration: none; padding: 7px 13px; border-radius: 999px; background: rgba(56, 225, 255, .14); border: 1px solid rgba(56, 225, 255, .45); font-weight: 500; } .links a:hover { background: var(--cyan); color: #06202e; }
.news-item { padding: 10px 14px; border-radius: 12px; background: var(--night2); border-left: 4px solid var(--gold); margin-bottom: 8px; white-space: pre-wrap; overflow-wrap: anywhere; display: flex; gap: 10px; align-items: flex-start; } .news-item time { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; } .news-item > div { flex: 1; }
.guest { padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); margin-bottom: 6px; overflow-wrap: anywhere; display: flex; gap: 8px; } .guest > div { flex: 1; } .guest time { font-size: 12px; color: var(--muted); margin-left: 6px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row > .grow { flex: 1; min-width: 160px; }
.swatches { display: flex; gap: 7px; flex-wrap: wrap; } .swatches button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); transition: transform .12s; padding: 0; } .swatches button:hover { transform: scale(1.15); } .swatches button.on { border-color: #fff; box-shadow: 0 0 0 3px var(--pink); }
.choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } .choice { padding: 10px; border-radius: 14px; background: var(--night2); border: 2px solid var(--line); text-align: center; position: relative; } .choice .em { font-size: 30px; display: block; } .choice.on { border-color: var(--pink); background: rgba(255, 79, 216, .14); } .choice.locked { opacity: .78; } .choice small { display: block; color: var(--gold); margin-top: 2px; } .choice:hover { border-color: var(--cyan); }
.proj-view img { width: 100%; max-height: 52vh; object-fit: contain; border-radius: 16px; background: #0c0a16; margin-bottom: 14px; }
.proj-view p { white-space: pre-wrap; line-height: 1.55; overflow-wrap: anywhere; }
.video-frame { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 16px; background: #000; }
.drop { border: 2px dashed rgba(255, 255, 255, .25); border-radius: 14px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer; background: rgba(0, 0, 0, .2) center / contain no-repeat; min-height: 120px; display: grid; place-items: center; } .drop:hover, .drop.over { border-color: var(--cyan); color: var(--text); } .drop.has { min-height: 190px; color: transparent; }
.empty { text-align: center; color: var(--muted); padding: 22px; border: 2px dashed var(--line); border-radius: 14px; }
.dir-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--night2); border: 1px solid var(--line); margin-bottom: 8px; } .dir-item .em { font-size: 28px; } .dir-item .grow { flex: 1; min-width: 0; } .dir-item b { display: block; } .dir-item small { color: var(--muted); }
.help-keys { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; }
.confetti { position: fixed; top: -20px; width: 12px; height: 16px; z-index: 60; pointer-events: none; animation: fall linear forwards; } @keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.floaty { position: fixed; z-index: 55; pointer-events: none; font-weight: 700; font-size: 22px; color: var(--gold); text-shadow: 0 2px 0 #7a5200, 0 0 12px rgba(255, 207, 74, .8); animation: floaty 1.1s ease-out forwards; } @keyframes floaty { to { transform: translateY(-70px) scale(1.3); opacity: 0; } }
.photo-ui { position: fixed; inset: 0; z-index: 40; pointer-events: none; } .photo-ui .bar { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; pointer-events: auto; padding: 10px; background: var(--panel); border-radius: 18px; }
body.photo #hud { display: none; }

@media (max-width: 820px) {
  .dock button { width: 50px; } .dock button em { display: none; } .dock { bottom: 8px; gap: 2px; padding: 5px; }
  .chat { width: 62vw; bottom: 74px; } .chat-log { max-height: 110px; } .side { width: 130px; top: 60px; } #minimap { width: 130px; height: 130px; } .players { display: none; }
  .brand span, #zone-pill, .clock { display: none; } .toasts { width: calc(100vw - 170px); } .toast { font-size: 14px; padding: 8px 11px; } .prompt { bottom: 150px; } .modal-body { padding: 14px; } .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---------- complements ---------- */
.modal-back.clear { background: transparent; backdrop-filter: none; place-items: center end; pointer-events: none; } .modal-back.clear .modal { pointer-events: auto; margin-right: 2vw; }
#minimap.big { position: fixed; left: 50%; top: 50%; width: min(78vh, 86vw); height: min(78vh, 86vw); transform: translate(-50%, -50%); z-index: 25; }
.proj-row { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--night2); border: 1px solid var(--line); margin-bottom: 8px; } .proj-row .th { width: 84px; height: 56px; border-radius: 10px; background: #120e22 center / cover; flex: none; display: grid; place-items: center; font-size: 24px; } .proj-row .grow { flex: 1; min-width: 0; } .proj-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-row { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-bottom: 8px; }
.hint { color: var(--muted); font-size: 13.5px; margin: 6px 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } @media (max-width: 720px) { .two { grid-template-columns: 1fr; } }
.lb-row { display: flex; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--night2); margin-bottom: 6px; align-items: center; } .lb-row span:last-child { margin-left: auto; font-weight: 600; color: var(--gold); }
.big-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--night2); border: 1px solid rgba(56, 225, 255, .4); margin-bottom: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 18px; transition: transform .15s, background .15s; } .big-link:hover { transform: translateX(6px); background: rgba(56, 225, 255, .16); } .big-link i { font-style: normal; font-size: 26px; }
.offline { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 70; padding: 10px 18px; border-radius: 999px; background: var(--sauce); font-weight: 600; box-shadow: var(--shadow); }

/* ---------- rangs, boutique, Mont Mozzarella ---------- */
.plans { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin: 14px 0; } @media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--night2); border: 2px solid var(--line); border-radius: 18px; padding: 14px; position: relative; } .plan.me { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 225, 255, .18); } .plan.vip { background: linear-gradient(160deg, rgba(255, 207, 74, .16), rgba(255, 79, 216, .12)); border-color: rgba(255, 207, 74, .55); }
.plan h3 { margin: 0 0 2px; font-size: 18px; } .plan .em { font-size: 34px; display: block; margin-bottom: 4px; } .plan small { color: var(--muted); } .plan ul { margin: 10px 0 0; padding: 0 0 0 18px; line-height: 1.5; font-size: 14.5px; } .plan .you { position: absolute; top: 10px; right: 12px; font-size: 12px; font-weight: 600; color: var(--cyan); }
.card.shop { cursor: default; } .card.shop:hover { transform: translateY(-3px); } .card.shop p { -webkit-line-clamp: 3; margin-bottom: 10px; } .card.shop .meta { display: flex; flex-direction: column; gap: 4px; flex: 1; } .card.shop .btn { margin-top: auto; text-align: center; text-decoration: none; }
.price { align-self: flex-start; display: inline-block; padding: 2px 11px; border-radius: 999px; background: var(--gold); color: #2b2440; font-weight: 700; font-size: 14px; }
.mega-tag { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: linear-gradient(90deg, #ffcf4a, #ff9ad5); color: #2b2440; vertical-align: middle; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; } .chips button { border: 1.5px solid var(--line); background: var(--night2); color: var(--text); padding: 6px 13px; border-radius: 999px; font-weight: 500; } .chips button.on { border-color: var(--gold); background: rgba(255, 207, 74, .16); }
.notice { padding: 12px 14px; border-radius: 14px; background: rgba(255, 207, 74, .12); border: 1px solid rgba(255, 207, 74, .45); margin: 10px 0; line-height: 1.5; }

/* ---------- interieurs et outil d'amenagement ---------- */
.fade { position: fixed; inset: 0; z-index: 90; background: #171226; opacity: 0; pointer-events: none; transition: opacity .22s; } .fade.on { opacity: 1; }
body.indoor #minimap { display: none; }
.build-btn { position: absolute; left: 50%; top: 62px; transform: translateX(-50%); padding: 11px 20px; border-radius: 999px; border: 2px solid rgba(255, 207, 74, .8); background: linear-gradient(90deg, #ff4fd8, #ff9a3c); color: #fff; font-weight: 600; font-size: 16px; box-shadow: var(--shadow), 0 0 22px rgba(255, 79, 216, .45); cursor: pointer; animation: pop .35s cubic-bezier(.2, 1.3, .4, 1); pointer-events: auto; }
.build-btn:hover { filter: brightness(1.1); }
.build { position: fixed; right: 12px; top: 62px; bottom: 12px; width: min(380px, 94vw); z-index: 28; display: flex; flex-direction: column; background: var(--night); border-radius: 20px; border: 2px solid rgba(255, 207, 74, .45); box-shadow: 0 20px 60px rgba(0, 0, 0, .55); overflow: hidden; }
.build[hidden] { display: none; }
.build-head { display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: linear-gradient(90deg, rgba(255, 79, 216, .25), rgba(255, 154, 60, .2)); border-bottom: 1px solid var(--line); flex-wrap: wrap; } .build-head b { font-size: 16px; } .build-head .count { margin-right: auto; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; } .build-head .count.full { background: var(--sauce); }
.build-sel { padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(255, 207, 74, .08); max-height: 46%; overflow-y: auto; scrollbar-width: thin; } .build-sel .field { margin: 8px 0 0; } .build-sel .tools { margin-top: 10px; gap: 6px; } .build-sel .hint { margin: 2px 0 4px; }
.build-tabs { display: flex; gap: 5px; padding: 8px 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); } .build-tabs button { border: 1.5px solid var(--line); background: var(--night2); color: var(--text); padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; } .build-tabs button.on { border-color: var(--gold); background: rgba(255, 207, 74, .18); }
.build-grid { flex: 1; overflow-y: auto; padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; scrollbar-width: thin; scrollbar-color: #5a4f80 transparent; }
.build-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 8px; border-radius: 14px; border: 2px solid var(--line); background: var(--night2); color: var(--text); font-size: 12px; line-height: 1.2; text-align: center; transition: transform .12s, border-color .12s; } .build-item:hover { transform: translateY(-3px); border-color: var(--cyan); } .build-item img { width: 76px; height: 76px; object-fit: contain; } .build-item.locked { opacity: .7; } .build-item small { color: var(--gold); }
.build-room { flex: 1; overflow-y: auto; padding: 12px; scrollbar-width: thin; } .build-room .field { margin-bottom: 12px; }
.build-hint { padding: 8px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.swatches.small button { width: 26px; height: 26px; border-width: 2px; } .choices.mini { grid-template-columns: repeat(3, 1fr); gap: 6px; } .choices.mini .choice { padding: 7px 4px; font-size: 13px; border-radius: 10px; }
.x.small { width: 28px; height: 28px; font-size: 13px; border-radius: 9px; } .two.tight { gap: 10px; margin-top: 8px; } .two.tight input[type=range] { width: 100%; }
.check { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--night2); border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; } .check input { width: 18px; height: 18px; accent-color: var(--pink); }
body.building .dock, body.building .chat, body.building .side, body.building .prompt { display: none !important; }
@media (max-width: 820px) { .build { top: auto; height: 52vh; left: 6px; right: 6px; width: auto; } .build-grid { grid-template-columns: repeat(4, 1fr); } .build-btn { top: 56px; font-size: 14px; padding: 8px 14px; } }
