/* ============================================================
   ISEN OS — bureau (PC) / écran d'accueil (mobile)
   Style néo-brutaliste (bords épais, ombres franches), couleurs du logo Isen Sondage
   ============================================================ */
:root {
  --ink: #14101f; --cream: #fff7ee; --paper: #fffdf8;
  --pink: #ff1f8f; --pink2: #ff5cad; --violet: #5b21b6; --purple: #7c3aed; --blue: #3b1fb8; --lilac: #c9b6ff;
  --yellow: #ffe44d; --mint: #3ee6b0; --red: #ff3b5c;
  --f-ui: "Space Grotesk", system-ui, "Segoe UI", sans-serif;
  --f-title: "Archivo Black", "Arial Black", Impact, sans-serif;
  --bd: 3px solid var(--ink); --sh: 6px 6px 0 var(--ink); --sh-s: 3px 3px 0 var(--ink); --r: 10px;
  --grad: linear-gradient(135deg, #ff1f8f 0%, #c21fd1 45%, #3b1fb8 100%);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-pb: max(8px, calc(var(--safe-b) - 6px));   /* marge sous la barre du bas : juste la place de la barre d'accueil iOS */
}
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  display: block; padding: 0; background: #2a0f5c; color: var(--ink);
  font-family: var(--f-ui); -webkit-font-smoothing: antialiased;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
button { font-family: inherit; color: inherit; cursor: pointer; }
input { font-family: inherit; }
#os { position: fixed; inset: 0; overflow: hidden; }
.wallpaper {
  position: absolute; inset: 0; background: #3b1fb8 url("../img/fond_ecran/wallpaper.jpg") center / cover no-repeat;
}
.hidden { display: none !important; }

/* ---------- boutons communs ---------- */
.os-btn {
  font-family: var(--f-title); font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  background: var(--paper); border: var(--bd); border-radius: 6px; box-shadow: var(--sh-s);
  padding: 10px 16px; transition: transform .08s, box-shadow .08s, background .15s;
}
.os-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.os-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.os-btn--pink { background: var(--pink); color: #fff; }
.os-btn--yellow { background: var(--yellow); }
.os-btn--violet { background: var(--violet); color: #fff; }
.os-btn:disabled { opacity: .5; pointer-events: none; }

/* ---------- logo Isen Sondage en CSS ---------- */
.isen-logo {
  --u: 1px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * 6);
  width: calc(var(--u) * 150); height: calc(var(--u) * 108); border-radius: calc(var(--u) * 22);
  background: linear-gradient(180deg, #ff1f6f 0%, #c21fd1 55%, #3b1fb8 100%);
  border: calc(var(--u) * 3) solid #fff; box-shadow: 0 0 calc(var(--u) * 40) rgba(255, 120, 200, .55);
}
.isen-logo b { font-family: var(--f-title); color: #fff; font-size: calc(var(--u) * 44); line-height: .9; letter-spacing: -.02em; }
.isen-logo span {
  font-family: var(--f-title); font-size: calc(var(--u) * 13); letter-spacing: .25em; color: var(--violet);
  background: #fff; border-radius: calc(var(--u) * 6); padding: calc(var(--u) * 4) calc(var(--u) * 12);
}

/* ============================================================
   BOOT / PASS ÉTUDIANT
   ============================================================ */
#boot { position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; overflow: auto; }
#boot .wallpaper { position: fixed; background: #2a0f5c; }   /* chargement : simple fond violet (le logo est déjà à l'écran) */   /* plus de flou plein écran : très coûteux sur téléphone */
#boot .wallpaper::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(30, 10, 70, .78), rgba(14, 6, 32, .94)); }
.boot-load { position: relative; width: min(560px, 92vw); color: #fff; text-align: center; }
.boot-load .isen-logo { --u: .9px; animation: logoPop .8s cubic-bezier(.2, 1.4, .4, 1) both; }
.boot-ver { font-size: 12px; letter-spacing: .3em; color: var(--lilac); margin: 14px 0 22px; text-transform: uppercase; }
.boot-lines { text-align: left; font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.boot-line { display: flex; align-items: baseline; gap: 8px; margin: 7px 0; opacity: 0; transform: translateY(4px); transition: .25s; }
.boot-line.on { opacity: 1; transform: none; }
.boot-line i { flex: 1; border-bottom: 2px dotted rgba(255, 255, 255, .35); }
.boot-line b { color: var(--mint); }
.boot-line b.err { color: var(--pink); animation: blink .6s steps(2) infinite; }
.boot-bar { height: 12px; border: 3px solid #fff; border-radius: 99px; margin: 22px 0 18px; overflow: hidden; }
.boot-bar div { height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.boot-pegi { display: flex; align-items: center; gap: 12px; justify-content: center; font-size: 12px; color: var(--lilac); margin-bottom: 14px; }
.boot-pegi .pegi { background: #e30613; color: #fff; font-family: var(--f-title); font-size: 20px; border: 2px solid #fff; border-radius: 6px; padding: 2px 8px; }
.boot-press { font-family: var(--f-title); color: var(--yellow); font-size: 15px; animation: blink 1.1s steps(2) infinite; }

/* carte « pass » suspendue à un tour de cou */
.pass-wrap { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 16px 24px; }
.lanyard { width: 90px; height: 140px; position: relative; margin-bottom: -26px; z-index: 2; }
.lanyard::before, .lanyard::after {
  content: ""; position: absolute; top: -40px; width: 30px; height: 175px; background: var(--pink);
  border: 3px solid var(--ink); background-image: radial-gradient(circle, #ffd0ea 3px, transparent 3.5px); background-size: 14px 14px; background-position: 5px 0;
}
.lanyard::before { left: 4px; transform: rotate(-17deg); transform-origin: top; }
.lanyard::after { right: 4px; transform: rotate(17deg); transform-origin: top; }
.lanyard .clip {
  position: absolute; left: 50%; bottom: 0; width: 34px; height: 46px; transform: translateX(-50%); z-index: 3;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 18px 18px 8px 8px;
}
.lanyard .clip::after { content: ""; position: absolute; left: 50%; top: 7px; width: 12px; height: 12px; transform: translateX(-50%); border: 3px solid var(--ink); border-radius: 50%; }
.pass {
  position: relative; width: min(400px, 92vw); background: var(--cream); border: 4px solid var(--ink); border-radius: 18px;
  box-shadow: 10px 10px 0 var(--ink), 0 0 0 7px var(--lilac) inset; overflow: hidden; animation: swing 1s cubic-bezier(.3, 1.6, .5, 1) both; transform-origin: top center;
}
.pass-head {
  display: flex; align-items: center; gap: 14px; padding: 18px 18px 14px; background: var(--pink); border-bottom: 4px solid var(--ink);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .09) 0 14px, transparent 14px 28px);
}
.pass-photo { width: 76px; height: 76px; flex: none; border: 3px solid var(--ink); border-radius: 10px; background: var(--lilac); box-shadow: var(--sh-s); display: grid; place-items: center; transform: rotate(-4deg); overflow: hidden; }
.pass-photo .isen-logo { --u: .42px; }
.pass-head h1 { margin: 0; font-family: var(--f-title); font-size: 26px; color: #fff; text-shadow: 3px 3px 0 var(--ink); line-height: 1; }
.pass-head small { display: block; margin-top: 5px; color: var(--yellow); font-weight: 700; font-size: 11px; letter-spacing: .08em; }
.pass-body { padding: 18px 20px 16px; background-image: radial-gradient(rgba(20, 16, 31, .07) 1px, transparent 1px); background-size: 9px 9px; }
.pass-body h2 { margin: 0 0 10px; font-family: var(--f-title); font-size: 24px; }
.pass-body p { margin: 0 0 14px; font-size: 14px; line-height: 1.45; }
.pass-foot { display: flex; gap: 16px; padding: 7px 18px; background: var(--yellow); border-top: 3px solid var(--ink); font-family: var(--f-title); font-size: 11px; letter-spacing: .12em; }
.pass-row { display: flex; gap: 10px; }
.pass-row .os-btn { flex: 1; }
.pass-sticker { position: absolute; right: -6px; bottom: 10px; font-size: 44px; transform: rotate(12deg); filter: drop-shadow(3px 3px 0 var(--ink)); z-index: 4; pointer-events: none; }
.pass-legal { margin-top: 14px; display: flex; gap: 14px; font-size: 12px; color: #fff; }
.pass-legal a { color: #fff; text-decoration: underline; text-decoration-color: var(--lilac); text-underline-offset: 3px; cursor: pointer; }
.pass-guest { margin-top: 18px; background: var(--paper); box-shadow: 0 0 0 3px var(--yellow), var(--sh); }
.tabs2 { display: flex; border: var(--bd); border-radius: 8px; overflow: hidden; margin-bottom: 14px; box-shadow: var(--sh-s); }
.tabs2 button { flex: 1; border: 0; padding: 10px; font-family: var(--f-title); font-size: 12px; letter-spacing: .06em; background: var(--lilac); }
.tabs2 button.on { background: var(--ink); color: #fff; }
.fld { display: block; margin-bottom: 12px; }
.fld span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; margin-bottom: 4px; }
.fld .fld-row { display: flex; align-items: stretch; gap: 12px; margin: 0; letter-spacing: 0; }
.fld .fld-row input { flex: 1; min-width: 0; }
.fld .fld-row .os-btn { flex: none; padding: 0 16px; }
.fld input {
  width: 100%; box-sizing: border-box; font-size: 16px; padding: 10px 12px; border: var(--bd); border-radius: 6px; background: var(--paper);
  outline: none; user-select: text; -webkit-user-select: text;
}
.fld input:focus { box-shadow: 0 0 0 3px var(--pink); }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 4px 0 14px; }
.chk input { width: 18px; height: 18px; accent-color: var(--pink); }
.pass-err { min-height: 18px; color: #d00055; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.charte { max-height: 38vh; overflow: auto; font-size: 13px; line-height: 1.45; margin-bottom: 14px; padding-right: 4px; }
.charte li { margin-bottom: 6px; }
.flee { position: relative; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.ask-q { font-family: var(--f-title); font-size: 18px; margin: 6px 0 14px; }

/* ============================================================
   BUREAU (PC)
   ============================================================ */
#desktop { position: absolute; inset: 0; }
.desk-icons {
  position: absolute; top: 16px; left: 12px; bottom: 70px; display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(auto-fill, 118px); grid-auto-columns: 112px; gap: 4px 6px;
}
.dicon {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 2px dashed transparent; border-radius: 8px;
  background: none; color: #fff;
}
.dicon:hover .dicon__art { transform: translateY(-3px) rotate(-3deg) scale(1.05); }
.dicon.sel { border-color: #fff; background: rgba(59, 31, 184, .55); }
.dicon.sel .dicon__label { background: var(--pink); }
.dicon__art { width: 64px; height: 64px; transition: transform .15s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(3px 4px 0 rgba(20, 16, 31, .55)); position: relative; }
.dicon__art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dicon__label {
  font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; padding: 2px 6px; border-radius: 4px; max-width: 104px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 6px rgba(0, 0, 0, .6);
}
.dicon.sel .dicon__label { text-shadow: none; }
.badge { position: absolute; top: -6px; right: -8px; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; border-radius: 99px; background: var(--red); color: #fff; font: 800 12px/18px var(--f-ui); text-align: center; border: 2px solid #fff; }

/* fenêtres */
.win-layer { position: absolute; inset: 0 0 56px; pointer-events: none; }
.win {
  position: absolute; display: flex; flex-direction: column; pointer-events: auto; min-width: 280px; min-height: 180px;
  background: var(--cream); border: var(--bd); border-radius: var(--r); box-shadow: 10px 10px 0 var(--ink);
  animation: winIn .22s cubic-bezier(.2, 1.3, .4, 1) both;
}
.win.closing { animation: winOut .16s ease-in both; }
.win.min { display: none; }
.win.max { left: 8px !important; top: 8px !important; width: calc(100% - 26px) !important; height: calc(100% - 26px) !important; }
.win__bar {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 10px; flex: none; cursor: grab;
  background: var(--yellow); border-bottom: var(--bd); border-radius: 7px 7px 0 0; touch-action: none;
}
.win.inactive .win__bar { background: #f1e7d6; }
.win__bar:active { cursor: grabbing; }
.win__icon { width: 30px; height: 30px; flex: none; }
.win__icon svg { width: 100%; height: 100%; }
.win__title { flex: 1; min-width: 0; font-family: var(--f-title); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__ctrl { width: 30px; height: 30px; display: grid; place-items: center; border: var(--bd); border-radius: 5px; background: var(--paper); font: 800 15px/1 var(--f-ui); padding: 0; }
.win__ctrl:hover { background: var(--pink); color: #fff; }
.win__body { position: relative; flex: 1; min-height: 0; overflow: auto; border-radius: 0 0 7px 7px; }
.win__grip { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 50%, var(--ink) 50% 60%, transparent 60% 70%, var(--ink) 70% 80%, transparent 80%); }
.win--game .win__body { background: #000; overflow: hidden; }

/* barre des tâches */
.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 12px; box-sizing: border-box;
  background: var(--cream); box-shadow: 0 -6px 0 rgba(20, 16, 31, .25); z-index: 40;
}
.tb-start { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; background: var(--pink); color: #fff; border: var(--bd); border-radius: 6px; box-shadow: var(--sh-s); font: 14px var(--f-title); letter-spacing: .05em; }
.tb-start .isen-logo { --u: .22px; border-width: 1px; box-shadow: none; }
.tb-tasks { display: flex; gap: 8px; flex: 1; min-width: 0; overflow: hidden; }
.tb-task { display: flex; align-items: center; gap: 6px; height: 38px; max-width: 170px; padding: 0 10px 0 5px; border: var(--bd); border-radius: 6px; background: var(--paper); box-shadow: var(--sh-s); font: 700 13px var(--f-ui); white-space: nowrap; overflow: hidden; }
.tb-task svg { width: 26px; height: 26px; flex: none; }
.tb-task.on { background: var(--mint); }
.tb-task.minimized { opacity: .6; }
.tb-tray { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; }
.tb-tray button { background: none; border: 0; padding: 4px; font-size: 18px; line-height: 1; }
.tb-net { color: var(--violet); letter-spacing: .08em; }
.tb-coins { background: var(--yellow); border: var(--bd); border-radius: 6px; padding: 7px 10px; box-shadow: var(--sh-s); }
.tb-clock { background: var(--ink); color: var(--mint); border-radius: 6px; padding: 4px 12px; text-align: center; font: 700 17px/1.1 var(--f-ui); min-width: 64px; }
.tb-clock small { display: block; color: var(--lilac); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

/* menu démarrer */
.start-menu {
  position: absolute; left: 12px; bottom: 66px; width: 330px; max-height: calc(100% - 90px); display: flex; flex-direction: column; z-index: 45;
  background: var(--cream); border: var(--bd); border-radius: var(--r); box-shadow: 10px 10px 0 var(--ink); overflow: hidden; animation: winIn .18s both;
}
.sm-head { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--grad); color: #fff; border-bottom: var(--bd); }
.sm-head b { font-family: var(--f-title); font-size: 18px; display: block; }
.sm-head small { opacity: .9; }
.sm-av { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font: 22px var(--f-title); }
.sm-list { overflow: auto; padding: 6px; }
.sm-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 8px; border: 0; background: none; border-radius: 8px; font: 700 14px var(--f-ui); text-align: left; }
.sm-item:hover { background: var(--yellow); }
.sm-item svg { width: 34px; height: 34px; flex: none; }
.sm-foot { display: flex; gap: 8px; padding: 10px; border-top: var(--bd); }
.sm-foot .os-btn { flex: 1; padding: 8px; font-size: 11px; }

/* widget */
.widget {
  position: absolute; top: 22px; right: 22px; width: 340px; z-index: 5;
  background: var(--cream); border: var(--bd); border-radius: var(--r); box-shadow: 10px 10px 0 var(--ink); overflow: hidden;
}
.widget .win__bar { cursor: default; }
.wg-body { padding: 14px; }
.wg-hello { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wg-hello .isen-logo { --u: .38px; border-width: 2px; box-shadow: none; flex: none; }
.wg-hello b { font-family: var(--f-title); font-size: 18px; display: block; }
.wg-hello small { color: var(--violet); font-weight: 700; }
.wg-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.wg-stat { background: var(--ink); color: #fff; border-radius: 8px; padding: 10px 12px; box-shadow: 4px 4px 0 var(--pink); }
.wg-stat b { display: block; font: 22px var(--f-title); color: var(--yellow); }
.wg-stat small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); }
.poll { border: var(--bd); border-radius: 8px; padding: 10px; background: var(--paper); margin-bottom: 12px; }
.poll b { display: block; font-size: 14px; margin-bottom: 8px; }
.poll button { position: relative; display: flex; justify-content: space-between; width: 100%; margin-top: 6px; padding: 7px 10px; border: 2px solid var(--ink); border-radius: 99px; background: #fff; font: 700 13px var(--f-ui); overflow: hidden; }
.poll button i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--grad); opacity: .35; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.poll button span { position: relative; }
.poll.voted button.mine i { opacity: .6; }
.poll.voted button.mine { color: var(--ink); border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink); }
.poll.voted button.mine span:first-of-type::before { content: '✓ '; color: var(--pink); }
.poll.voted button span { text-shadow: 0 0 3px #fff, 0 0 6px #fff; }

/* toasts */
.toasts { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
#phone:not(.hidden) ~ .toasts, .toasts:has(~ #phone:not(.hidden)) { top: calc(var(--safe-t) + 56px); }
.toast { background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 14px; box-shadow: 4px 4px 0 var(--pink); animation: toastIn .3s cubic-bezier(.2, 1.4, .4, 1) both; }

/* notes / fichiers */
.note { padding: 18px 22px; font: 15px/1.6 "Courier New", monospace; white-space: pre-wrap; user-select: text; -webkit-user-select: text; background: var(--paper);
  background-image: repeating-linear-gradient(transparent 0 23px, rgba(59, 31, 184, .12) 23px 24px); min-height: 100%; box-sizing: border-box; }
.files { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; align-content: flex-start; }
.file { width: 128px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 2px dashed transparent; border-radius: 8px; background: none; font: 700 12px var(--f-ui); text-align: center; }
.file:hover { border-color: var(--ink); background: var(--yellow); }
.file svg { width: 54px; height: 54px; flex: none; }
.file span { width: 100%; box-sizing: border-box; padding: 0 2px; text-align: center; line-height: 1.25; overflow-wrap: anywhere; word-break: break-word; hyphens: auto; }
.trash-empty { padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: var(--bd); background: var(--paper); font-size: 13px; font-weight: 700; }

/* compte */
.acc { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.acc-card { display: flex; gap: 16px; align-items: center; padding: 16px; border: var(--bd); border-radius: var(--r); background: var(--grad); color: #fff; box-shadow: var(--sh); }
.acc-card b { font: 24px var(--f-title); display: block; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.acc-grid div { border: var(--bd); border-radius: 8px; padding: 10px; background: var(--paper); box-shadow: var(--sh-s); }
.acc-grid b { display: block; font: 20px var(--f-title); color: var(--violet); }
.acc-grid small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.acc .os-btn { align-self: flex-start; }

/* ============================================================
   TÉLÉPHONE
   ============================================================ */
#phone { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; overflow: clip; }
.sbar { position: relative; z-index: 30; flex: none; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 8px) 16px 8px; background: var(--ink); color: #fff; font: 700 15px var(--f-ui); }
.sbar .t { color: var(--mint); font-size: 17px; }
.sbar .op { color: var(--lilac); letter-spacing: .12em; font-size: 12px; flex: 1; }
.home { position: relative; flex: 1; overflow-y: auto; padding: 14px 14px 140px; -webkit-overflow-scrolling: touch; }
.ph-card { position: relative; background: var(--cream); border: var(--bd); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); padding: 14px; margin-bottom: 18px; }
.ph-widget { display: flex; align-items: center; gap: 12px; }
.ph-widget .isen-logo { --u: .34px; border-width: 2px; box-shadow: none; flex: none; }
.ph-widget b { font: 17px var(--f-title); display: block; }
.ph-widget .coins { margin-left: auto; background: var(--yellow); border: var(--bd); border-radius: 8px; padding: 6px 10px; font: 15px var(--f-title); box-shadow: var(--sh-s); white-space: nowrap; }
.ph-install { box-shadow: 6px 6px 0 var(--mint), 6px 6px 0 3px var(--ink); }
.ph-install h3 { margin: 0 0 6px; font: 18px/1.15 var(--f-title); }
.ph-install p { margin: 0 0 12px; font-size: 14px; line-height: 1.4; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; }
.papp { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: #fff; }
.papp__tile { position: relative; width: min(54px, 14.5vw); aspect-ratio: 1; border-radius: 16px; background: var(--cream); border: var(--bd); box-shadow: 4px 4px 0 var(--ink); display: grid; place-items: center; transition: transform .1s;
  background-image: radial-gradient(rgba(20, 16, 31, .08) 1px, transparent 1px); background-size: 6px 6px; }
.papp:active .papp__tile { transform: scale(.92); }
.papp__tile svg { width: 78%; height: 78%; overflow: visible; }
.papp__label { font-size: 10.5px; font-weight: 700; text-align: center; line-height: 1.2; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.dock { position: absolute; left: 12px; right: 12px; bottom: calc(var(--nav-pb) + 62px); z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 8px 10px; border: var(--bd); border-radius: 22px; background: var(--lilac); box-shadow: 6px 6px 0 var(--ink);
  background-image: radial-gradient(rgba(20, 16, 31, .1) 1px, transparent 1px); background-size: 7px 7px; }
.dock .papp__label { color: var(--ink); text-shadow: none; }
.navbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: space-around; padding: 8px 0 var(--nav-pb); background: var(--cream); border-top: var(--bd); }
.navbar button { background: none; border: 0; width: 64px; height: 44px; font-size: 22px; color: var(--ink); }
.navbar .nav-home { width: 96px; background: var(--pink); border: var(--bd); border-radius: 8px; box-shadow: var(--sh-s); display: grid; place-items: center; }
.navbar .nav-home .isen-logo { --u: .26px; border-width: 1px; box-shadow: none; }
.sbar { height: 38px; box-sizing: content-box; padding-top: var(--safe-t) !important; padding-bottom: 0 !important; }
.app-screen { position: absolute; inset: calc(var(--safe-t) + 38px) 0 calc(var(--nav-pb) + 53px); z-index: 25; display: flex; flex-direction: column; overflow: hidden; overflow: clip; background: var(--cream); animation: appIn .25s cubic-bezier(.2, 1, .3, 1) both; }
.app-screen.closing { animation: appOut .18s ease-in both; }
.app-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--yellow); border-bottom: var(--bd); }
.app-head button { width: 40px; height: 40px; border: var(--bd); border-radius: 8px; background: var(--paper); font: 800 20px/1 var(--f-ui); box-shadow: var(--sh-s); }
.app-head .win__icon { width: 32px; height: 32px; }
.app-head b { font: 17px var(--f-title); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-body { position: relative; flex: 1; min-height: 0; overflow: auto; }
.app-screen.game { inset: 0; z-index: 60; background: #000; }
.app-screen.game .app-body { overflow: hidden; }
.recents { position: absolute; inset: 0 0 calc(var(--nav-pb) + 53px); z-index: 28; background: rgba(20, 16, 31, .75); backdrop-filter: blur(6px); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; gap: 10px; }
.recents .sm-item { background: var(--cream); border: var(--bd); box-shadow: var(--sh-s); padding: 10px; }

/* modale (notice d'installation, etc.) */
.modal-back { position: absolute; inset: 0; z-index: 80; background: rgba(20, 16, 31, .7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: min(440px, 100%); max-height: 90%; overflow: auto; background: var(--cream); border: var(--bd); border-radius: 16px; box-shadow: 10px 10px 0 var(--ink); animation: winIn .2s both; }
.modal h3 { margin: 0; padding: 14px 16px; font: 18px var(--f-title); background: var(--yellow); border-bottom: var(--bd); }
.modal .mb { padding: 16px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 12px 0 16px; }
.steps li { counter-increment: s; position: relative; padding: 3px 0 0 42px; min-height: 30px; margin-bottom: 14px; font-size: 15px; line-height: 1.7; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border: var(--bd); border-radius: 50%; background: var(--pink); color: #fff; font: 14px/1 var(--f-title); }
.kbd { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; font-weight: 700; white-space: nowrap; }

/* jeu : le canvas rétro dans une fenêtre / plein écran */
.game-host { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
/* décor agrandi et flouté derrière le jeu : plus de bandes noires, le jeu garde sa taille */
.game-fill { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: brightness(.55) saturate(1.2); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 0; }
.game-fill.on { opacity: 1; }
.game-host > #wrap { position: relative; z-index: 1; box-shadow: 0 0 24px rgba(0, 0, 0, .55); }
#park { display: none; }
#rotate { display: none !important; }
/* (plus d'écran « tourne ton téléphone » : en vertical, le jeu s'affiche en haut avec une manette dessous) */

@keyframes logoPop { from { transform: scale(.3) rotate(-12deg); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes swing { 0% { transform: rotate(-9deg) translateY(-30px); opacity: 0; } 60% { transform: rotate(3deg); opacity: 1; } 100% { transform: none; } }
@keyframes winIn { from { transform: scale(.85) translateY(14px); opacity: 0; } }
@keyframes winOut { to { transform: scale(.88) translateY(14px); opacity: 0; } }
@keyframes toastIn { from { transform: translateY(-20px) scale(.9); opacity: 0; } }
@keyframes appIn { from { transform: translateY(40px) scale(.96); opacity: 0; } }
@keyframes appOut { to { transform: translateY(40px) scale(.96); opacity: 0; } }
@keyframes pressPulse { 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- téléphone : fond dézoomé (le logo central reste petit) ---------- */
#phone .wallpaper, .gate .wallpaper { background: linear-gradient(180deg, #2a1884 0%, #3a1a92 40%, #4a1c96 70%, #3a1a88 100%); }
#phone .wallpaper::before, .gate .wallpaper::before {
  content: ''; position: absolute; left: 0; right: 0; top: var(--wp-top, 34%); height: var(--wp-h, 48%);
  background: url("../img/fond_ecran/wallpaper.jpg") center / auto 100% no-repeat;
  -webkit-mask: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent); mask: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
}
@media (orientation: landscape) { #phone .wallpaper::before { top: 10%; height: 80%; } }
.gate .wallpaper::before { top: 34%; height: 48%; }

/* ---------- porte d'installation (téléphone, app pas encore installée) ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: calc(var(--safe-t) + 16px) 16px calc(var(--safe-b) + 16px); overflow-y: auto; }
.gate-card { position: relative; width: min(420px, 100%); display: grid; justify-items: center; gap: 12px; padding: 22px 18px; text-align: center;
  background: var(--cream); border: var(--bd); border-radius: 16px; box-shadow: var(--sh); }
.gate-card .isen-logo { --u: .9px; }
.gate-card h2 { margin: 0; font: 24px var(--f-title); }
.gate-card p { margin: 0; font-weight: 600; }
.gate-card .tabs2 { width: 100%; }
.gate-card .steps-box { width: 100%; text-align: left; }
.gate-warn { padding: 10px 12px; border: var(--bd); border-radius: 10px; background: var(--yellow); }
.gate-done { padding: 10px 12px; border: var(--bd); border-radius: 10px; background: var(--mint); }
/* ---------- version test (outils de triche, jamais sur le site officiel) ---------- */
.dev-btn { position: fixed; z-index: 9999; left: 50%; top: calc(var(--safe-t) + 4px); transform: translateX(-50%); padding: 3px 10px; font: 12px var(--f-title); color: #14101f; background: #3ee6b0; border: 2px solid #14101f; border-radius: 99px; box-shadow: 2px 2px 0 #14101f; }
.dev-panel { position: fixed; z-index: 9999; left: 50%; top: calc(var(--safe-t) + 34px); transform: translateX(-50%); width: min(300px, 92vw); display: grid; gap: 6px; padding: 12px; background: var(--cream); border: var(--bd); border-radius: 12px; box-shadow: var(--sh); }
.dev-panel small { opacity: .7; font-weight: 700; }
.dev-panel button { padding: 8px 10px; text-align: left; font: 700 14px var(--f-ui); background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; }
.dev-panel button:active { background: var(--mint); }

/* ---------- jeux sur téléphone tenu droit ---------- */
/* jeux pensés pour le vertical : tout l'écran, de haut en bas */
.app-screen.game .app-body.pg .game-host { inset: var(--safe-t) 0 var(--safe-b); }
/* jeux horizontaux : on demande de tourner le téléphone */
.rot-msg { display: none; position: absolute; inset: 0; z-index: 5; flex-direction: column; align-items: center; justify-content: center; gap: 26px; background: #07040f; color: #ffd23f; text-align: center; }
body.portrait-touch .app-screen.game .rot-msg { display: flex; }
.rot-msg p { margin: 0; font: 30px/1.1 VT323, monospace; }
.rot-phone { width: 52px; height: 90px; border: 5px solid #ffd23f; border-radius: 11px; animation: turn 1.6s ease-in-out infinite; }
.rot-msg .os-btn { margin-top: 10px; color: var(--ink); font-size: 18px; padding: 12px 22px; }
/* ---------- tutoriel au premier lancement d'un jeu ---------- */
.tuto { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(10, 6, 25, .78); }
.tuto-card { width: min(420px, 100%); max-height: 100%; overflow: auto; display: grid; justify-items: center; gap: 10px; padding: 18px; background: var(--cream); border: var(--bd); border-radius: 14px; box-shadow: var(--sh); }
.tuto-card .win__icon { width: 54px; height: 54px; }
.tuto-card h3 { margin: 0; font: 20px var(--f-title); }
.tuto-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; width: 100%; }
.tuto-card li { padding: 9px 12px; font-weight: 700; background: #fff; border: 2px solid var(--ink); border-radius: 10px; }
.tuto-card .os-btn { width: 100%; font-size: 15px; padding: 13px; }

/* ---------- inscription : mail, demande d'accès, code ---------- */
.fld textarea { width: 100%; box-sizing: border-box; font: 15px var(--f-ui); padding: 10px 12px; border: var(--bd); border-radius: 6px; background: var(--paper); resize: vertical; outline: none; user-select: text; -webkit-user-select: text; }
.fld textarea:focus { box-shadow: 0 0 0 3px var(--pink); }
.fld-hint { margin: -4px 0 12px; font-size: 13px; font-weight: 600; opacity: .85; overflow-wrap: anywhere; }
.code-in { font: 28px var(--f-title) !important; letter-spacing: .4em; text-align: center; }
.extra .os-btn + .os-btn { margin-left: 8px; }
/* ---------- Mon Pass : demandes d'accès (admin) ---------- */
.adm { margin-top: 16px; padding: 14px; border: var(--bd); border-radius: 12px; background: var(--paper); box-shadow: var(--sh-s); }
.adm h4 { margin: 0 0 10px; font: 16px var(--f-title); }
.adm-req { padding: 10px 0; border-top: 2px dashed rgba(20, 16, 31, .2); }
.adm-req b { font-family: var(--f-title); font-weight: 400; }
.adm-req small { display: block; opacity: .7; overflow-wrap: anywhere; }
.adm-req p { margin: 6px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.adm-req .os-btn { padding: 7px 12px; font-size: 12px; }
.adm-user { display: flex; align-items: center; gap: 10px; }
.adm-user > div { flex: 1; min-width: 0; }
.adm-user .os-btn { flex: none; padding: 6px 10px; }
.adm-n { font: 13px var(--f-ui); opacity: .6; }
.adm-all { margin-top: 10px; width: 100%; font-size: 12px; }
.adm-mail { display: flex; gap: 8px; }
.adm-mail input { flex: 1; min-width: 0; padding: 8px 10px; border: var(--bd); border-radius: 8px; font: 14px var(--f-ui); }
.adm-out { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.4 ui-monospace, monospace; user-select: text; -webkit-user-select: text; }
.adm-out:empty { display: none; }
.adm-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 11px; font-weight: 800; border-radius: 99px; background: var(--mint); border: 2px solid var(--ink); }
body.game-open .dev-btn { opacity: .3; transform: translateX(-50%) scale(.8); }

/* ---------- page « compte validé » (lien reçu par mail) ---------- */
.verify-done { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 35%, #3a1470, #12082a 70%); }
.verify-card { width: min(360px, 100%); text-align: center; padding: 26px 22px; background: var(--cream); border: var(--bd); border-radius: 16px; box-shadow: var(--sh); font-family: var(--f-ui); }
.verify-ico { font-size: 54px; line-height: 1; }
.verify-card h2 { margin: 12px 0 6px; font: 26px var(--f-title); }
.verify-card p { margin: 0 0 16px; font-weight: 600; }
.verify-tip { font-size: 14px; opacity: .8; }
.verify-card .os-btn { width: 100%; }
.verify-card .vr-in { display: block; box-sizing: border-box; width: 100%; margin: 0 0 10px; padding: 11px 12px; font: 600 16px var(--f-ui); border: var(--bd); border-radius: 10px; background: #fff; color: var(--ink); }
.verify-card .vr-err { min-height: 18px; margin: 0 0 8px; color: #d00055; font-size: 13px; }
.verify-card .vr-skip { margin-top: 8px; }
.pass-forgot { display: block; margin: 10px auto 0; padding: 4px 8px; border: 0; background: none; font: 700 13px var(--f-ui); color: var(--violet, #3b1fb8); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* barre du bas : le fond crème descend jusqu'au bord physique de l'écran (encoche / barre d'accueil iOS) */
.navbar::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 120px; background: var(--cream); }
/* hauteur réelle de l'écran (mesurée en JS) : certains téléphones calculent 100 % trop court */
#os { top: var(--app-top, 0px); bottom: auto; height: var(--app-h, 100%); }
/* clavier ouvert : la barre du bas et la marge de la barre d'accueil disparaissent, l'appli prend toute la place visible */
.kb-open .navbar { display: none; }
.kb-open .app-screen:not(.game) { bottom: 0; }
/* si l'écran dépasse encore sous l'appli, ce qui dépasse a la couleur de la barre du bas (pas de bande violette) */
html:has(#phone:not(.hidden)), html:has(#phone:not(.hidden)) body { background: var(--cream); }
html:has(.app-screen.game), html:has(.app-screen.game) body { background: #000; }

/* bandeau d'accueil = raccourci TCG */
.ph-tcg { width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); }
.ph-tcg__txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ph-tcg__txt small { font: 700 12px var(--f-ui); opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-tcg__txt b { font: 16px/1.15 var(--f-title); }
.ph-tcg__txt em { font: 600 12px var(--f-ui); font-style: normal; opacity: .7; display: flex; align-items: center; gap: 4px; }
.ph-go { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 22px/1 var(--f-title); }
.ph-pack { position: relative; flex: none; width: 44px; height: 52px; }
.ph-pack i { position: absolute; inset: 0; border: 2.5px solid var(--ink); border-radius: 7px; background: linear-gradient(160deg, #ff1f8f, #7c3aed); }
.ph-pack i:nth-child(1) { transform: rotate(-12deg) translateX(-4px); background: #3ee6b0; }
.ph-pack i:nth-child(2) { transform: rotate(-5deg); background: #ffe44d; }
.ph-pack i:nth-child(3)::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%) rotate(45deg); background: #fff; border: 2px solid var(--ink); }
.ph-w:has(.ph-tcg.is-hot) { box-shadow: 6px 6px 0 var(--pink), 6px 6px 0 3px var(--ink); }
.ph-tcg.is-hot .ph-pack { animation: phPack 2.4s ease-in-out infinite; }
.ph-tcg.is-hot .ph-go { background: var(--pink); }
.ph-tcg:active { transform: scale(.98); }
@keyframes phPack { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(-7deg) scale(1.06); } 24% { transform: rotate(5deg); } 36% { transform: none; } }

/* ---------- icône de pièce (remplace l'emoji) ---------- */
.coin { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.17em; background: url("../img/coin.svg") center / contain no-repeat; flex: none; }

/* ---------- Mon Pass : sections du compte ---------- */
.acc-secs { display: grid; gap: 8px; margin-top: 14px; }
.acc-sec { border: var(--bd); border-radius: 12px; background: #fffdf8; }
.acc-sec summary { cursor: pointer; padding: 11px 14px; font: 15px var(--f-title); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.acc-sec summary::-webkit-details-marker { display: none; }
.acc-sec summary::after { content: '+'; font-size: 20px; line-height: 1; }
.acc-sec[open] summary::after { content: '–'; }
.acc-sec form { display: grid; gap: 8px; padding: 0 14px 14px; }
.acc-sec input, .acc-sec textarea, .acc-sec select { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 8px; font: 15px var(--f-ui); background: #fff; color: var(--ink); user-select: text; -webkit-user-select: text; }
.acc-sec textarea { resize: vertical; }
.acc-sec p { margin: 0; font-size: 14px; line-height: 1.4; }
.acc-msg:empty { display: none; }
.acc-msg { color: #c1121f; font-weight: 700; }
.acc-msg.ok { color: #1b7a4b; }
.acc-danger summary { color: #c1121f; }
.adm-dev { display: block; opacity: .55; font-size: 11px; margin: 2px 0 6px; word-break: break-all; }

/* ---------- tutos : pictogrammes alignés, typo plus éditoriale ---------- */
.steps2 { list-style: none; counter-reset: s; margin: 14px 0 16px; padding: 0; display: grid; gap: 10px; font-family: Inter, var(--f-ui); }
.steps2 li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 14px; padding: 10px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; }
.steps2 .st-ic { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--lilac); border: 2px solid var(--ink); }
.steps2 .st-ic::after { content: counter(s); position: absolute; right: -7px; top: -7px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font: 11px/1 var(--f-title); }
.steps2 .st-ic svg { width: 28px; height: 28px; stroke: #14101f; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.steps2 .st-tx { font-size: 15px; line-height: 1.45; color: var(--ink); }
.steps2 .st-tx b { font-weight: 800; }
.gate-warn { padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff3b0; font-weight: 700; }
.tuto-card h3 { font: 26px/1 "Bebas Neue", var(--f-title); letter-spacing: .04em; }
.tuto-card ul { font-family: Inter, var(--f-ui); }
.tuto-card li { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 12px; padding: 9px 12px; font-weight: 600; font-size: 14px; line-height: 1.35; }
.tuto-card li.full { grid-template-columns: 1fr; }
.tuto-card kbd { justify-self: stretch; text-align: center; white-space: normal !important; padding: 4px 6px; border: 2px solid var(--ink); border-radius: 8px; background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); font: 700 12.5px var(--f-ui); white-space: nowrap; }

/* démarrage : le contenu change sans recréer le fond ; retour visuel immédiat au clic */
.boot-screen { position: relative; z-index: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 100%; }
.boot-screen > * { animation: bootIn .4s ease-out both; }
#boot.boot-go .boot-screen > * { opacity: 0; transform: scale(.97); filter: blur(2px); transition: opacity .35s ease, transform .35s ease, filter .35s ease; animation: none; }
@keyframes bootIn { from { opacity: 0; transform: translateY(8px) scale(.99); } }
.boot-veil { position: fixed; inset: 0; z-index: 9999; pointer-events: none; background: #0e0620; animation: bootVeil .6s ease-out forwards; }
@keyframes bootVeil { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .boot-screen > *, .boot-veil { animation-duration: .01s; } #boot.boot-go .boot-screen > * { transition: none; } }

/* espace admin de Mon Pass : un dossier par sujet */
.adm-zone { margin-top: 16px; padding: 14px; border: var(--bd); border-radius: 12px; background: var(--paper); box-shadow: var(--sh-s); }
.adm-title { margin: 0 0 10px; font: 16px var(--f-title); }
.adm-dirs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.adm-dirs button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 4px 8px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); }
.adm-dirs button span { font-size: 22px; line-height: 1; }
.adm-dirs button b { font: 700 12px var(--f-ui); }
.adm-dirs button.on { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.adm-c { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--pink); color: #fff; font: 800 11px/20px var(--f-ui); font-style: normal; border: 2px solid var(--ink); }
.adm-c:empty { display: none; }
.adm-pane { margin-top: 12px; }
.adm-pane > .adm-list:first-child > .adm-req:first-child { border-top: 0; }
.adm-photo { display: flex; gap: 10px; align-items: flex-start; }
.adm-photo img { width: 92px; height: 92px; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; flex: none; background: #eee; }
.adm-photo > div { flex: 1; min-width: 0; }
.adm-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-poem { font: italic 14px/1.5 Georgia, serif; }

/* le TCG mis en avant : cadre doré */
.papp[data-app=tcg] .papp__tile { border-color: transparent; box-shadow: 4px 4px 0 #6b4400, 0 0 14px rgba(255, 210, 63, .55);
  background: radial-gradient(circle at 30% 20%, #fffbe6, var(--cream) 60%) padding-box, linear-gradient(135deg, #fff3b0, #f5b700 35%, #a86b00 60%, #ffe066 85%, #c98a00) border-box; }
.papp[data-app=tcg] .papp__label { color: #ffe066; }

/* README : page d'accueil illustrée */
.rd { height: 100%; overflow-y: auto; padding: 16px; display: grid; gap: 14px; align-content: start; background: var(--paper); color: var(--ink); }
.rd-hero { display: flex; align-items: center; gap: 14px; padding: 16px; border: var(--bd); border-radius: 16px; background: var(--grad); color: #fff; box-shadow: var(--sh-s); }
.rd-hero .isen-logo { --u: .55px; flex: none; }
.rd-hero h1 { margin: 0; font: 20px/1.1 var(--f-title); }
.rd-hero p { margin: 4px 0 0; font-size: 14px; opacity: .9; }
.rd-box { display: grid; gap: 2px; padding: 12px 14px; border: var(--bd); border-radius: 16px; background: #fff; box-shadow: var(--sh-s); }
.rd-box h2 { margin: 0 0 6px; font: 15px var(--f-title); text-transform: uppercase; letter-spacing: .04em; color: var(--violet); }
.rd-app { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px dashed rgba(20, 16, 31, .15); }
.rd-box h2 + .rd-app { border-top: 0; }
.rd-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 11px; background: var(--cream); }
.rd-ico svg { width: 80%; height: 80%; overflow: visible; }
.rd-app div { display: grid; gap: 1px; min-width: 0; }
.rd-app b { font-size: 15px; }
.rd-app small { font-size: 13px; line-height: 1.35; opacity: .72; }
.rd-tip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--yellow); border: var(--bd); }
.rd-tip .coin, .rd-tip > span { font-size: 26px; width: 30px; height: 30px; flex: none; display: grid; place-items: center; }
.rd-tip p { margin: 0; font-size: 14px; line-height: 1.4; }
.rd-tip--pass { background: var(--mint); }
.rd-foot { margin: 4px 0 0; text-align: center; font-weight: 700; opacity: .7; }
.rd-gap { height: 900px; }
.rd-ps { margin: 0; font-size: 13px; opacity: .55; }


/* iPhone (appli sur l'écran d'accueil) : la page prend la vraie hauteur de l'écran, l'appli y est posée en absolu */
html.ios-gap, html.ios-gap body { height: var(--app-h); min-height: var(--app-h); }
html.ios-gap #os { position: absolute; top: 0; left: 0; right: 0; }
/* et tout ce qui était en « fixe » (fond du chargement, voiles, portes…) suit la même règle, sinon iOS le coupe */
html.ios-gap #boot .wallpaper, html.ios-gap .gate, html.ios-gap .verify-done, html.ios-gap .boot-veil { position: absolute; }
html.ios-gap .gate, html.ios-gap .verify-done { height: var(--app-h); }

/* défilement : la page ne rebondit jamais, chaque zone qui défile garde son défilement pour elle */
html, body { overscroll-behavior: none; }
/* (pas de règle générale : sur un cadre « overflow: hidden » elle bloquerait le défilement de la zone parente) */
.app-body, .home { overscroll-behavior: contain; }
html.ios-gap, html.ios-gap body { overflow: hidden; }
