/* La page d'accueil. Les quatre feuilles des maquettes réunies : base, blocs communs, arbre des classes, landing. */

/* ───────── base.css ───────── */
/* Ce que les cinq variantes partagent : polices, fenêtre du client, sprites nets, boutons. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Les illustrations qui débordent exprès (cartes en éventail, sprites posés sur la vidéo) ne font jamais défiler la page en largeur. */
html, body { overflow-x: clip; }
body { margin: 0; font: 16px/1.6 'Nanum Gothic', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
.px { font-family: 'Pixelify Sans', 'Nanum Gothic', sans-serif; font-weight: 700; }
/* Les sprites de RO restent nets quand on les agrandit. */
.sprite { image-rendering: pixelated; display: block; }

/* Une fenêtre du client : barre de titre bleue, corps clair. */
.client { border: 1px solid #8ea3c9; border-radius: 3px; background: #f4f6fb; box-shadow: 0 24px 60px rgba(20, 35, 80, .35); overflow: hidden; }
.client .tb { position: relative; height: 17px; padding: 0 22px 0 20px; font: 700 11px/17px 'Nanum Gothic', sans-serif; color: #1d2537; background: url('media/titlebar_mid.png') repeat-x; }
.client .tb::before { content: ''; position: absolute; left: 0; top: 0; width: 17px; height: 17px; background: url('media/titlebar_left.png') no-repeat; }
.client .tb::after { content: ''; position: absolute; right: 0; top: 0; width: 17px; height: 17px; background: url('media/titlebar_right.png') no-repeat; }
.client video, .client img.shot { display: block; width: 100%; }

.btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 13px 30px; border-radius: 6px; font-weight: 800; font-size: 17px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.main { background: linear-gradient(#7d9de0, #4a68ad); border: 1px solid #3d5a9c; color: #fff; box-shadow: 0 8px 22px rgba(74, 104, 173, .45); }
.btn.gold { background: linear-gradient(#ffd56b, #f2a01f); border: 1px solid #c97d0c; color: #4a2a00; box-shadow: 0 8px 22px rgba(242, 160, 31, .45); }
.btn.ghost { border: 1px solid currentColor; background: transparent; }
.btn img { width: 24px; height: 24px; }

.beta { display: inline-block; padding: 2px 8px; border: 1px solid #9a5b0c; border-radius: 3px; background: linear-gradient(#fff3c4, #f2b632); color: #5a3405; font: 800 11px/1.4 'Nanum Gothic', sans-serif; letter-spacing: .15em; vertical-align: middle; }
.icon { width: 24px; height: 24px; image-rendering: pixelated; vertical-align: middle; }
.legal { font-size: 12px; text-align: center; padding: 26px 16px 34px; opacity: .7; }

/* ───────── v3.css ───────── */
/* Les blocs communs aux cinq maquettes v3 : A pour la clarté, D pour le ciel et les chapitres, E pour la sélection. */
body { color: #1d2537; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
h1, h2, h3 { font-family: 'Pixelify Sans', sans-serif; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 0 0 10px; }
.sub { color: #49557a; font-size: 17px; margin: 0 0 30px; max-width: 620px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.kicker { font-weight: 800; font-size: 13px; letter-spacing: .18em; color: #4a68ad; }
.num { font: 700 90px/1 'Pixelify Sans'; color: rgba(43,63,116,.16); }
.num + h2 { margin-top: -34px; }
.h76 { height: 76px; } .h80 { height: 80px; }
.icon.big { width: 44px; height: 44px; }

/* Sky de D : pas de contraste douteux, chaque bloc de nuit porte son propre fond sombre. */
.night { margin: 0 calc(50% - 50vw); padding: 0 calc(50vw - 50%); background: linear-gradient(rgba(26,22,48,0), #1a1630 240px, #0e0c1c); color: #fff; }
.night .sub, .night p { color: #c8cde3; }
.night .num { color: rgba(255,255,255,.13); }

/* L'écran de sélection de E. */
.select { text-align: left; }
.select .body { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 330px; }
@media (max-width: 560px) { .select .body { grid-template-columns: 1fr; } .select .view { min-height: 220px; } }
.select .view { position: relative; background: #1d2537; overflow: hidden; }
.select .view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.select .view .map { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 4px; background: rgba(20,25,40,.75); color: #fff; font: 700 12px 'Nanum Gothic'; }
.select .view .solo { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 70%, #3a5590, #1d2537 70%); }
.select .info { padding: 18px 20px; background: #fff; display: flex; flex-direction: column; color: #1d2537; }
.select .info .name { font: 700 34px/1 'Pixelify Sans'; }
.select .info .from { color: #4a68ad; font-size: 13px; font-weight: 800; letter-spacing: .1em; margin-top: 4px; }
.select .info p { color: #3a4562; font-size: 15px; margin: 12px 0; flex: 1; }
.select .info .sk { display: flex; gap: 8px; flex-wrap: wrap; }
.select .info .sk span { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 6px; background: #eef2f9; font-size: 12px; font-weight: 700; }
.select .info .sk img { width: 24px; height: 24px; image-rendering: pixelated; }
.select .roster { display: flex; gap: 2px; padding: 10px; overflow-x: auto; background: repeating-linear-gradient(#f4f6fb 0 3px, #e9edf6 3px 4px); border-top: 1px solid #d7ddeb; }
.select .roster button { flex: 0 0 auto; width: 58px; height: 74px; display: flex; align-items: flex-end; justify-content: center; border: 1px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; padding: 0 0 4px; }
.select .roster button:hover { background: #fff; }
.select .roster button.on { background: #fff; border-color: #4a68ad; box-shadow: 0 0 0 2px rgba(74,104,173,.25); }
.select .roster img { max-height: 66px; }

/* La frise de A. */
.run { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.run::before { content: ''; position: absolute; top: 52px; left: 10%; right: 10%; height: 4px; background: linear-gradient(90deg, #7d9de0, #f2a01f); border-radius: 2px; }
@media (max-width: 800px) { .run { grid-template-columns: 1fr 1fr; gap: 20px; } .run::before { display: none; } }
.step { position: relative; text-align: center; padding: 0 8px; }
.step .dot { width: 108px; height: 108px; margin: 0 auto 12px; border-radius: 50%; background: #fff; border: 4px solid #c9d6f0; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(30,50,100,.12); overflow: hidden; }
.step { cursor: default; outline: none; }
.step .dot { transition: transform .2s, box-shadow .2s, border-color .2s; }
.step:hover .dot, .step:focus .dot { transform: translateY(-4px) scale(1.08); border-color: #7d9de0; box-shadow: 0 12px 26px rgba(30,50,100,.22); }
.step.boss:hover .dot, .step.boss:focus .dot { border-color: #f2a01f; }
/* Les images de chaque étape : immobiles, elles marchent au survol. */
.step .pose { display: flex; align-items: flex-end; justify-content: center; }
.step .pose .walk { display: none; }
.step:hover .pose .walk, .step:focus .pose .walk { display: block; }
.step:hover .pose .still, .step:focus .pose .still { display: none; }
.step .horde { position: relative; display: block; width: 100%; height: 100%; }
.step .horde .pose { position: absolute; }
.step .one { display: flex; align-items: flex-end; justify-content: center; margin-top: 6px; }
/* Le Level up : le personnage et la ligne jaune du chat du jeu (fond noir à 55 %, #ffff66, ombre noire). */
.step .lvup { display: flex; flex-direction: column; align-items: center; margin-top: 4px; }
.step .lvup .pose { height: 62px; }
.step .lvup .pose img { max-height: 100px; }
.step .lvup .chatline { margin-top: 2px; padding: 1px 6px; border-radius: 2px; background: rgba(0,0,0,.55); color: #ffff66; font: 700 11px/1.35 'Nanum Gothic', sans-serif; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
.step .lvup .chatline b { font-weight: 700; }
/* La victoire : l'éclat MVP du client. */
.step .burst { width: 84px; height: 84px; transition: transform .25s; }
.step:hover .burst, .step:focus .burst { animation: burst .6s ease-in-out infinite alternate; }
@keyframes burst { from { transform: scale(1) rotate(-4deg); } to { transform: scale(1.12) rotate(4deg); } }
/* L'infobulle, dans le style des fenêtres du client. */
.step .tip { position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 5; width: 240px; padding: 9px 12px 10px; border: 1px solid #8ea3c9; border-radius: 4px; background: #fff; box-shadow: 0 10px 24px rgba(20,35,80,.2); color: #3a4562; font-size: 13px; line-height: 1.45; text-align: left; opacity: 0; transform: translate(-50%, 6px); pointer-events: none; transition: opacity .18s, transform .18s; }
.step .tip b { display: block; margin-bottom: 2px; font: 700 15px 'Pixelify Sans'; color: #2b3f74; }
.step .tip::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #8ea3c9; }
.step:hover .tip, .step:focus .tip { opacity: 1; transform: translate(-50%, 0); }
/* Sans survol, ou sur un écran étroit, le détail s'affiche sous chaque étape. */
@media (hover: none), (max-width: 800px) { .step .tip, .step:hover .tip, .step:focus .tip { position: static; width: auto; margin-top: 8px; opacity: 1; transform: none; box-shadow: none; font-size: 12.5px; } .step .tip::after { display: none; } }
.step.boss .dot { border-color: #f2a01f; }
.step .t { font: 700 21px 'Pixelify Sans'; color: #4a68ad; }
.step.boss .t { color: #d97a06; }
.step p { margin: 2px 0 0; font-size: 14px; color: #49557a; }

/* Le butin de A. */
.fan { position: relative; height: 330px; }
.fan img { position: absolute; width: 150px; left: 50%; top: 20px; border-radius: 6px; box-shadow: 0 12px 28px rgba(20,35,80,.35); transform-origin: 50% 120%; }
.fan img:nth-child(1) { transform: translateX(-50%) rotate(-24deg); }
.fan img:nth-child(2) { transform: translateX(-50%) rotate(-12deg); }
.fan img:nth-child(3) { transform: translateX(-50%) rotate(0deg); z-index: 3; }
.fan img:nth-child(4) { transform: translateX(-50%) rotate(12deg); }
.fan img:nth-child(5) { transform: translateX(-50%) rotate(24deg); }
@media (max-width: 560px) { .fan { height: 260px; } .fan img { width: 112px; } }
.perks { display: grid; gap: 12px; }
.perk { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: 0 4px 14px rgba(30,50,100,.07); color: #1d2537; }
.perk .pics { display: flex; gap: 4px; flex: 0 0 auto; }
.perk .pics img { width: 40px; height: 40px; object-fit: contain; }
.perk .pics img.icon { width: 32px; height: 32px; }
.perk b { display: block; }
.perk span { color: #49557a; font-size: 14px; }
.slots { font: 700 20px 'Pixelify Sans'; color: #2f55b0 !important; }

/* Les MVP : sprite, carte et pièce lâchée. */
.mvps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 900px) { .mvps { grid-template-columns: repeat(2, 1fr); } }
.mvp { position: relative; background: #fff; border-radius: 12px; padding: 12px 10px 12px; text-align: center; box-shadow: 0 4px 14px rgba(30,50,100,.07); color: #1d2537; }
.mvp .n { position: absolute; top: 8px; left: 10px; font: 700 13px 'Pixelify Sans'; color: #9aa6c4; }
.mvp .pic { height: 140px; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(ellipse at 50% 92%, #e6ecf8 0 30%, transparent 31%); }
.mvp .pic img { max-height: 140px; width: auto; }
.mvp b { display: block; margin-top: 6px; line-height: 1.2; }
.mvp small { color: #49557a; font-size: 12px; }
.mvp .drop { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #d7ddeb; font-size: 12px; font-weight: 700; color: #3a4562; }
.mvp .drop .mini { width: 26px; border-radius: 2px; box-shadow: 0 2px 5px rgba(0,0,0,.25); }
.mvp .drop span { display: flex; align-items: center; gap: 3px; }
.night .mvp { background: rgba(255,255,255,.06); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.08); }
.night .mvp .pic { background: radial-gradient(ellipse at 50% 92%, rgba(160,140,255,.25) 0 30%, transparent 31%); }
.night .mvp .pic img { filter: drop-shadow(0 0 14px rgba(160,140,255,.35)); }
.night .mvp small { color: #b8b3d6; }
.night .mvp .drop { color: #e6e2ff; border-color: rgba(255,255,255,.12); }

/* Héros en vidéo de A. */
.heroes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .heroes { grid-template-columns: 1fr 1fr; } }
.hero { border-radius: 12px; overflow: hidden; background: #1d2537; color: #fff; box-shadow: 0 10px 30px rgba(20,35,80,.2); }
.hero video { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.hero .cap { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.hero .cap img.sprite { height: 56px; width: auto; margin-top: -40px; }
.hero b { font: 700 19px 'Pixelify Sans'; display: block; }
.hero small { color: #b8c2dc; font-size: 13px; }

/* Prontera. */
.townlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.townlist li { display: flex; gap: 12px; align-items: center; }
.townlist li img { width: 32px; height: 32px; }
.townlist b { display: block; }
.townlist span { color: #49557a; font-size: 14px; }
.night .townlist span { color: #c8cde3; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; margin: 4px 6px 0 0; border-radius: 999px; background: rgba(255,255,255,.8); font-size: 14px; font-weight: 700; color: #1d2537; }
.pill img { width: 24px; height: 24px; image-rendering: pixelated; }
.night .pill { background: rgba(255,255,255,.1); color: #fff; }
.final { text-align: center; padding: 80px 0 30px; }
.final h2 { font-size: clamp(34px, 5vw, 56px); }
.final .row { display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap; margin: 10px 0 26px; }
.night .legal, .night + .legal { color: #8d88ad; }

/* ───────── tree.css ───────── */
/* L'arbre des classes à l'ancienne : une fenêtre du client, les branches reliées comme un arbre de skills. */
.jobtree { max-width: 1080px; margin: 70px auto 0; text-align: left; }
.jt { box-shadow: 0 30px 80px rgba(20,35,80,.4); }
.jt-tree { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 16px 14px 6px; background: repeating-linear-gradient(#f4f6fb 0 3px, #edf1f8 3px 4px); }
@media (max-width: 1000px) { .jt-tree { grid-template-columns: repeat(3, 1fr); row-gap: 16px; } }
@media (max-width: 560px) { .jt-tree { grid-template-columns: repeat(2, 1fr); padding: 12px 8px 4px; } }
.jt .br { display: flex; flex-direction: column; align-items: center; }
.jt button { border: 1px solid transparent; border-radius: 6px; background: none; cursor: pointer; color: #1d2537; font-family: inherit; transition: background .12s; }
.jt button:hover { background: #fff; }
.jt button.on { background: #fff; border-color: #4a68ad; box-shadow: 0 0 0 2px rgba(74,104,173,.25); }
.jt .first { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 108px; padding: 4px 10px; }
.jt .first b { font: 700 17px 'Pixelify Sans'; margin-top: 2px; }
.jt .first img { max-height: 76px; }
/* Les traits de l'arbre : un tronc sous la première classe, une branche vers chaque deuxième classe. */
.jt .kids { position: relative; display: flex; justify-content: center; width: 100%; padding-top: 16px; margin-top: 4px; }
.jt .kids::before { content: ''; position: absolute; top: -4px; left: 50%; height: 12px; border-left: 2px solid #8ea3c9; }
.jt .kids::after { content: ''; position: absolute; top: 8px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); border-top: 2px solid #8ea3c9; }
.jt .kids button { position: relative; flex: 1; max-width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 92px; padding: 4px 0; font-size: 11px; font-weight: 700; }
.jt .kids button::before { content: ''; position: absolute; top: -8px; left: 50%; height: 8px; border-left: 2px solid #8ea3c9; }
.jt .kids img { max-height: 70px; }
.jt .pose { display: flex; align-items: flex-end; justify-content: center; }
.jt .pose .walk { display: none; }
.jt button:hover .pose .walk { display: block; }
.jt button:hover .pose .still { display: none; }
/* La classe choisie marche dans son cadre ; les autres attendent debout. */
.jt button.on .pose .walk { display: block; }
.jt button.on .pose .still { display: none; }
.jt-hint { text-align: center; padding: 0 0 10px; font: 500 13px 'Pixelify Sans'; letter-spacing: .1em; color: #4a68ad; background: #edf1f8; }

/* La fiche de la classe choisie. */
.jt-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; padding: 22px 26px 24px; background: #fff; border-top: 1px solid #d7ddeb; }
@media (max-width: 860px) { .jt-card { grid-template-columns: 1fr; gap: 16px; padding: 18px 16px 20px; } }
.jt-card .info { color: #1d2537; }
.jt-card .path { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 800; font-size: 13px; color: #4a68ad; }
.jt-card .path button, .jt-card .path span, .jt-card .becomes button { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 2px; border-radius: 6px; background: #eef2f9; font-weight: 800; font-size: 13px; color: #2b3f74; }
.jt-card .path span { background: #dfe8f8; }
.jt-card .path i { font-style: normal; color: #9aa6c4; }
.jt-card .mini { height: 28px; width: auto; image-rendering: pixelated; }
.jt-card .when { margin-top: 6px; font-size: 12px; color: #6a7594; }
.jt-card h3 { margin: 6px 0 4px; font-size: 44px; line-height: 1; }
.jt-card .tag { display: inline-block; margin: 2px 0 4px; padding: 2px 8px; border-radius: 4px; background: #fdf0d8; color: #8a5300; font-size: 12px; font-weight: 800; }
.jt-card .desc { margin: 8px 0 14px; font-size: 16px; line-height: 1.55; color: #3a4562; }
.jt-card .becomes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.jt-card .becomes b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #6a7594; margin-right: 2px; }
/* Les skills, présentés comme la fenêtre Skill Tree du client. */
.jt-card .skwin { border: 1px solid #c5cfe3; border-radius: 3px; overflow: hidden; }
.jt-card .skh { display: flex; justify-content: space-between; align-items: center; padding: 3px 8px; background: linear-gradient(#dfe6f4, #c5cfe3); color: #354970; font: 700 12px 'Nanum Gothic'; }
.jt-card .skh small { font-weight: 700; color: #5a6b94; }
.jt-card .skl { display: grid; grid-template-columns: 1fr 1fr; }
.jt-card .skl div { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; font-size: 12.5px; font-weight: 700; color: #1d2537; border-bottom: 1px solid #edf1f8; }
.jt-card .skl div:nth-child(4n+1), .jt-card .skl div:nth-child(4n+2) { background: #f4f7fc; }
.jt-card .skl div.pas { color: #6a7594; font-weight: 400; }
.jt-card .skl img { width: 24px; height: 24px; image-rendering: pixelated; flex: none; }
.jt-card .inh { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 6px 8px; background: #edf1f8; font-size: 12px; color: #49557a; }
.jt-card .inh span { margin-right: 6px; font-weight: 700; }
.jt-card .inh img { width: 22px; height: 22px; image-rendering: pixelated; }
@media (max-width: 420px) { .jt-card .skl { grid-template-columns: 1fr; } .jt-card .skl div:nth-child(n) { background: none; } .jt-card .skl div:nth-child(odd) { background: #f4f7fc; } }

/* ───────── landing.css ───────── */
/* La landing : le ciel du client en haut, qui tourne au soir en descendant, puis à la nuit pour l'appel final. */
body { background: linear-gradient(#eef2f9 0, #eef2f9 55%, #f6e7c8 70%, #eab48a 80%, #6c5578 88%, #0e0c1c 94%); }

/* La barre du haut : transparente sur le ciel, avec un fond dès qu'on descend. */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .2s, box-shadow .2s; }
/* Une fois qu'on descend, la barre passe en bleu nuit dépoli : on devine la page derrière, le flou garde le texte lisible. */
.topbar.solid { background: rgba(29,37,55,.8); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 2px 14px rgba(10,15,30,.35); }
.topbar.solid .logo { color: #fff; }
.topbar.solid .btn.ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.topbar.solid .lang { border-color: rgba(255,255,255,.4); }
.topbar.solid .lang a { background: rgba(255,255,255,.08); color: #dfe6f4; }
.topbar.solid .lang a.on { background: #fff; color: #1d2537; }
.topbar .in { max-width: 1160px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar .logo { display: flex; align-items: center; gap: 8px; font: 700 22px 'Pixelify Sans'; color: #2b3f74; text-decoration: none; white-space: nowrap; }
.topbar nav { display: flex; align-items: center; gap: 10px; }
.topbar .btn { padding: 7px 14px; font-size: 14px; }
.topbar .btn.ghost { color: #2b3f74; }
.lang { display: flex; border: 1px solid #8ea3c9; border-radius: 6px; overflow: hidden; }
.lang a { padding: 6px 9px; border: 0; text-decoration: none; background: rgba(255,255,255,.6); color: #4a68ad; font: 800 12px 'Nanum Gothic'; cursor: pointer; }
.lang a.on { background: #4a68ad; color: #fff; }
.discord svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
@media (max-width: 640px) {
  .topbar .in { padding: 8px 12px; }
  .topbar .logo { font-size: 17px; }
  /* Sur téléphone, Discord reste dans la bannière : la barre garde la place pour Jouer ou Continuer. */
  .topbar .logo .beta, .topbar .discord { display: none; }
  .topbar .btn { padding: 7px 10px; }
}
@media (max-width: 380px) { .topbar .logo { font-size: 15px; } }

/* Le ciel du client (effect/cloudback.bmp, mis en miroir pour se raccorder) se fond dans la page en bas. */
.sky { position: relative; text-align: center; padding: 90px calc(50vw - 50%) 40px; margin: 0 calc(50% - 50vw); background: linear-gradient(rgba(238,242,249,0) 55%, #eef2f9 100%), url('media/sky.jpg') center top / 1000px repeat; }
/* Les nuages peints du client (effect/cloud.bmp) dérivent lentement, derrière le texte et la vidéo. */
.clouds { position: absolute; inset: 0 0 10% 0; overflow: hidden; pointer-events: none; }
.clouds img { position: absolute; left: 0; top: var(--y); width: var(--w); opacity: var(--o, .95); mix-blend-mode: screen; animation: drift var(--d) linear var(--delay) infinite; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
@media (max-width: 700px) { .clouds img { width: calc(var(--w) * .55); } .clouds img:nth-child(n+5) { display: none; } }
@media (prefers-reduced-motion: reduce) { .clouds img { animation-play-state: paused; } }
.sky > :not(.clouds) { position: relative; }
.sky .kicker { color: #2b3f74; }
/* La bannière en deux colonnes : le texte à gauche, la vidéo du jeu à droite. */
.banner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; text-align: left; min-height: 72vh; }
.banner .client { transform: rotate(1deg); box-shadow: 0 30px 70px rgba(20,35,80,.4); }
@media (max-width: 900px) { .banner { grid-template-columns: 1fr; gap: 30px; min-height: 0; } .banner .client { transform: none; } }
h1 { margin: 12px 0 0; font-size: clamp(44px, 5.2vw, 76px); line-height: .98; color: #fff; text-shadow: 0 5px 0 #2b3f74; }
.lead { font-size: 19px; max-width: 560px; margin: 18px 0 0; }
.sky .btn.ghost { color: #2b3f74; }

section { padding: 100px 0 0; }
section.first { padding-top: 40px; }

/* Le level up de la frise : le clip du jeu remplit le cercle. */
.step .dot.film { position: relative; }
.step .dot.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Le butin. */
.loot { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .loot { grid-template-columns: 1fr; } }
/* La fenêtre Equipment du jeu, agrandie sans flou. */
/* La fenêtre garde sa taille d'origine (282 × 169) et s'agrandit par transform : tous les navigateurs le font, Firefox compris.
   Le cadre prend la taille agrandie, pour que la page ne bouge pas. */
.equipfit { --k: 1.6; width: calc(282px * var(--k)); height: calc(169px * var(--k)); }
.equipfit > .equipwin { width: 282px; transform: scale(var(--k)); transform-origin: 0 0; }
@media (max-width: 560px) { .equipfit { --k: 1.2; } }
.equipwin .ebody { position: relative; width: 280px; height: 150px; background: url('media/equipwin_bg.png') no-repeat; image-rendering: pixelated; }
.equipwin .me { position: absolute; left: 141px; bottom: 34px; transform: translateX(-50%); image-rendering: pixelated; }
.equipwin .eslot { position: absolute; left: 5px; display: flex; align-items: center; gap: 2px; width: 108px; height: 24px; }
.equipwin .eslot.r { left: auto; right: 5px; flex-direction: row-reverse; text-align: right; }
.equipwin .eslot img { width: 24px; height: 24px; flex: none; image-rendering: pixelated; }
/* Le nom couvre toute la case : les mots du fond (head, shoes…) ne dépassent pas derrière un nom court. */
.equipwin .eslot span { flex: 1; background: #fff; color: #20283c; font: 700 11px/14px 'Nanum Gothic', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 8px; background: #fff; box-shadow: 0 4px 12px rgba(30,50,100,.08); font-size: 14px; font-weight: 700; color: #1d2537; }
.chips img { width: 28px; height: 28px; image-rendering: pixelated; }

/* Prontera. */
.town { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; background: #fff; border-radius: 16px; padding: 30px 40px 0; box-shadow: 0 10px 30px rgba(30,50,100,.08); overflow: hidden; }
.town .kafra { align-self: end; }
.town .townlist { padding-bottom: 30px; }
@media (max-width: 800px) { .town { grid-template-columns: 1fr; padding: 24px; } .town .kafra { display: none; } }

/* « Et bien plus » : un texte, sans bouton. */
.night section { padding-top: 120px; }
.more .teaser { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 4px 0 0; }
.more .teaser img { width: 56px; height: 56px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); image-rendering: pixelated; }

/* Le thaï : pas d'espace entre les mots, des voyelles et des tons au-dessus et au-dessous de la ligne.
   Les titres ne se coupent qu'aux espaces placés dans le texte, un peu plus petits, avec l'interligne qu'il faut aux signes. */
:lang(th) h1, :lang(th) h2, :lang(th) h3 { word-break: keep-all; line-height: 1.25; }
:lang(th) h1 { font-size: clamp(34px, 4vw, 56px); }
