:root {
  --ink: #2b2118;
  --ink-soft: #6b5d50;
  --cream: #fff6e6;
  --paper: #fffdf8;
  --orange: #ff8a1f;
  --orange-d: #e06a00;
  --plum: #6a4c93;
  --green: #2e9e6b;
  --red: #e5383b;
  --yellow: #ffd23f;
  --line: 3px solid var(--ink);
  --shadow: 4px 5px 0 var(--ink);
  --radius: 18px;
  --font-title: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 20px 20px, rgba(255, 138, 31, .13) 7px, transparent 8px),
    radial-gradient(circle at 10px 8px, rgba(255, 138, 31, .13) 3px, transparent 4px),
    radial-gradient(circle at 20px 4px, rgba(255, 138, 31, .13) 3px, transparent 4px),
    radial-gradient(circle at 30px 8px, rgba(255, 138, 31, .13) 3px, transparent 4px);
  background-size: 90px 90px;
  overflow-x: hidden;
}
.hidden { display: none !important; }
.muted { color: var(--ink-soft); font-weight: 700; }
.small { font-size: .85rem; }
.center { text-align: center; }
.error { color: var(--red); font-weight: 800; min-height: 1.2em; margin: 0; }
.accent { color: var(--orange); }
kbd {
  font-family: var(--font-body); font-weight: 800; font-size: .8em;
  border: 2px solid var(--ink); border-bottom-width: 3px; border-radius: 6px;
  padding: 0 .35em; background: #fff; color: var(--ink); white-space: nowrap;
}

h1, h2, h3 { font-family: var(--font-title); margin: 0 0 .5em; }
h3 { font-size: 1.25rem; }

.screen { min-height: 100vh; min-height: 100dvh; }

/* ---------------------------------------------------------------- boutons */
.btn {
  font-family: var(--font-title); font-weight: 600; font-size: 1rem;
  color: var(--ink); background: #fff;
  border: var(--line); border-radius: 14px; box-shadow: 3px 4px 0 var(--ink);
  padding: .55em 1.1em; cursor: pointer;
  transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 5px 0 var(--ink); }
.btn:active:not(:disabled) { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--orange); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.btn.primary.on { background: var(--green); }
.btn.big { font-size: 1.2rem; padding: .7em 1.2em; width: 100%; }
.btn.small { font-size: .9rem; padding: .35em .75em; box-shadow: 2px 3px 0 var(--ink); border-width: 2.5px; }
.btn.ghost { background: var(--paper); }
.btn.active { background: var(--yellow); }
.link { background: none; border: 0; color: var(--plum); font-weight: 800; text-decoration: underline; cursor: pointer; font-family: inherit; font-size: 1rem; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: var(--line); background: #fff; box-shadow: 2px 3px 0 var(--ink);
  font-size: 1.1rem; font-weight: 800; cursor: pointer; font-family: var(--font-title);
}

/* ---------------------------------------------------------------- cartes */
.card {
  background: var(--paper); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
input, select {
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 12px; padding: .55em .75em; background: #fff; min-width: 0;
}
input:focus, select:focus, .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------------------------------------------------------------- accueil */
.home-wrap {
  min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  gap: 40px; max-width: 1040px; margin: 0 auto; padding: 32px 16px;
}
.logo { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: .95; letter-spacing: -.01em; }
.logo span { color: var(--orange); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 4px 5px 0 var(--ink); }
.logo.small { font-size: 1.6rem; margin: 0; }
.logo.small span { -webkit-text-stroke: 1px var(--ink); text-shadow: 2px 2px 0 var(--ink); }
.tagline { font-size: 1.15rem; font-weight: 700; max-width: 30ch; color: var(--ink-soft); }
.hero-cat { width: 190px; height: 190px; margin-bottom: 8px; filter: drop-shadow(5px 6px 0 rgba(43,33,24,.9)); animation: bob 3s ease-in-out infinite; cursor: pointer; }
.hero-cat svg { width: 100%; height: 100%; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.home-card { display: flex; flex-direction: column; gap: 14px; }
.or { text-align: center; position: relative; color: var(--ink-soft); font-weight: 800; font-size: .9rem; }
.or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed #cdbfae; }
.or span { position: relative; background: var(--paper); padding: 0 10px; }
.join-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.join-row .btn { width: auto; }
#homeCode { text-transform: uppercase; letter-spacing: .3em; font-family: var(--font-title); font-size: 1.4rem; text-align: center; }

/* ---------------------------------------------------------------- salon */
#lobby { padding: 16px; max-width: 1320px; margin: 0 auto; }
.lobby-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.room-code { display: flex; align-items: center; gap: 10px; margin-left: auto; background: #fff; border: var(--line); border-radius: 14px; padding: 6px 8px 6px 14px; box-shadow: 3px 4px 0 var(--ink); }
.room-code strong { font-family: var(--font-title); font-size: 1.7rem; letter-spacing: .2em; color: var(--orange); -webkit-text-stroke: 1px var(--ink); }
.head-actions { display: flex; gap: 8px; }
.lobby-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.1fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 18px; }

.custom { display: flex; flex-direction: column; gap: 12px; }
.custom-preview { height: 170px; display: grid; place-items: center; background: repeating-conic-gradient(#f4ead8 0 25%, #fffaf0 0 50%) 0 0 / 28px 28px; border: 2.5px solid var(--ink); border-radius: 14px; }
.custom-preview svg { height: 150px; width: 150px; filter: drop-shadow(3px 4px 0 rgba(0,0,0,.25)); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .85rem; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px 3px 4px; background: #fff; cursor: pointer; font-family: var(--font-body); }
.chip i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }
.chip:hover { background: var(--yellow); }
.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.color-row { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; background: #fff; border: 2px solid #e7dccb; border-radius: 12px; padding: 4px 8px 4px 4px; }
.color-row input[type=color] { width: 36px; height: 30px; padding: 0; border: 2px solid var(--ink); border-radius: 8px; cursor: pointer; background: none; flex: none; }
.color-row input[type=color]::-webkit-color-swatch-wrapper { padding: 2px; }
.color-row input[type=color]::-webkit-color-swatch { border: none; border-radius: 5px; }

.players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.player { display: flex; align-items: center; gap: 10px; background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; padding: 6px 10px 6px 6px; }
.player.off { opacity: .45; }
.player .mini { width: 48px; height: 48px; flex: none; }
.player .mini svg { width: 100%; height: 100%; }
.player .pname { font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .pname small { display: block; color: var(--ink-soft); font-weight: 700; }
.tag { font-family: var(--font-title); font-weight: 600; font-size: .8rem; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 9px; background: #f1e7d6; white-space: nowrap; }
.tag.ok { background: #b7f0cf; }
.tag.host { background: var(--yellow); }
.kick { border: none; background: none; cursor: pointer; font-size: 1.1rem; color: var(--ink-soft); padding: 4px; }
.kick:hover { color: var(--red); }
.lobby-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }

.settings { display: flex; flex-direction: column; gap: 10px; }
.settings label { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; font-weight: 700; }
.settings label.check { display: flex; gap: 10px; font-size: .92rem; }
.settings input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--orange); flex: none; }

.chat-card { display: flex; flex-direction: column; }
.chat-log { list-style: none; margin: 0 0 10px; padding: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; font-size: .95rem; }
.chat-card .chat-log { height: 190px; background: #fff; border: 2px solid #e7dccb; border-radius: 12px; padding: 8px; }
.chat-log li b { font-weight: 800; }
.chat-log li.sys { color: var(--ink-soft); font-style: italic; font-weight: 700; }
.chat-form input { width: 100%; }

/* ---------------------------------------------------------------- jeu */
#game { position: fixed; inset: 0; overflow: hidden; background: #1b1511; min-height: 0; }
#canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hud-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; gap: 10px; }
.pill { pointer-events: auto; font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; background: #fff; border: var(--line); border-radius: 999px; padding: 6px 14px; box-shadow: 3px 4px 0 var(--ink); white-space: nowrap; }
.pill:empty { visibility: hidden; }
.pill.role.hider { background: #ffe0b8; }
.pill.role.seeker { background: #c9b8ff; }
.timer-box { text-align: center; background: #fff; border: var(--line); border-radius: 18px; padding: 4px 22px 6px; box-shadow: 3px 4px 0 var(--ink); }
.phase-label { font-family: var(--font-title); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.timer { font-family: var(--font-title); font-weight: 700; font-size: 2.1rem; line-height: 1; }
.timer.hurry { color: var(--red); animation: pulse .5s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.08); } }
.hud-corner { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 8px; align-items: center; }
.ping { color: #fff; font-weight: 800; font-size: .8rem; text-shadow: 0 1px 2px #000; }

.paint { position: absolute; top: 112px; right: 12px; width: 300px; max-height: calc(100% - 176px); overflow-y: auto; padding: 12px 14px; }
.paint h3 { margin-bottom: .2em; cursor: pointer; user-select: none; display: flex; justify-content: space-between; align-items: center; }
.paint h3::after { content: '▾'; font-size: 1rem; color: var(--ink-soft); }
.paint.collapsed h3::after { content: '▸'; }
.paint.collapsed .paint-body { display: none; }
.paint.collapsed h3 { margin: 0; }
.paint p { margin: 0 0 10px; }
.slots { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.slot { display: flex; align-items: center; gap: 8px; background: #fff; border: 2.5px solid #e7dccb; border-radius: 12px; padding: 4px 6px; cursor: pointer; font-weight: 800; font-size: .9rem; text-align: left; font-family: var(--font-body); color: var(--ink); }
.slot.sel { border-color: var(--ink); background: #fff1d6; box-shadow: 2px 3px 0 var(--ink); }
.slot .sw { width: 34px; height: 26px; border-radius: 7px; border: 2px solid var(--ink); flex: none; position: relative; overflow: hidden; }
.slot .sw input { position: absolute; inset: -6px; width: 50px; height: 40px; opacity: 0; cursor: pointer; }
.slot .num { margin-left: auto; color: var(--ink-soft); font-size: .8rem; }
.paint-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.keys { padding-left: 16px; margin: 6px 0 0; display: flex; flex-direction: column; gap: 3px; }

.hud-bottom { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 140px); }
.hint { background: rgba(43,33,24,.82); color: #fff; font-weight: 800; border-radius: 12px; padding: 8px 14px; text-align: center; }
.btn.taunt { font-size: 1.15rem; background: var(--yellow); }

.toasts { position: absolute; top: 110px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 520px); }
.toast { background: #fff; border: var(--line); border-radius: 14px; box-shadow: 3px 4px 0 var(--ink); padding: 8px 16px; font-weight: 800; font-size: 1.05rem; animation: toast-in .25s ease-out; text-align: center; }
.toast.good { background: #b7f0cf; }
.toast.bad { background: #ffc4c4; }
.toast.meow { background: #fff0b3; }
@keyframes toast-in { from { transform: translateY(-12px) scale(.9); opacity: 0; } }

.chat-float { position: absolute; left: 12px; bottom: 12px; width: min(360px, 60vw); pointer-events: none; }
.chat-float .chat-log { max-height: 180px; overflow: hidden; justify-content: flex-end; margin: 0 0 6px; }
.chat-float .chat-log li { background: rgba(43,33,24,.72); color: #fff; border-radius: 10px; padding: 3px 9px; align-self: flex-start; transition: opacity 1s; }
.chat-float .chat-log li.sys { color: #ffe3b3; }
.chat-float .chat-log li.fade { opacity: 0; }
.chat-float.open .chat-log li.fade { opacity: 1; }
.chat-float .chat-form { pointer-events: auto; }

.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; }
.blackout { background: radial-gradient(circle at 50% 40%, #2f2440, #0f0b14 70%); color: #fff; text-align: center; }
.blackout-inner { max-width: 560px; }
.blackout h2 { font-size: 2.4rem; }
.blackout p { font-size: 1.1rem; font-weight: 700; }
.blackout .muted { color: #b9a9d6; }
.big-emoji { font-size: 4.5rem; animation: bob 2s ease-in-out infinite; }
.count { font-family: var(--font-title); font-weight: 700; font-size: 6rem; color: var(--yellow); text-shadow: 5px 6px 0 #000; line-height: 1.1; }

.splash { pointer-events: none; }
.splash-card { text-align: center; background: var(--paper); border: var(--line); border-radius: 24px; box-shadow: 6px 7px 0 var(--ink); padding: 22px 36px; animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
.splash-card .se { font-size: 3.6rem; }
.splash-card h2 { font-size: 2.2rem; margin: 0; }
.splash-card p { margin: .3em 0 0; font-weight: 800; color: var(--ink-soft); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.results { background: rgba(27,21,17,.35); }
.results-card { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.results-card h2 { font-size: 2rem; text-align: center; margin-bottom: .1em; }
.results-card .sub { text-align: center; margin: 0 0 14px; font-weight: 800; color: var(--ink-soft); }
.rank { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.rank li { display: grid; grid-template-columns: 30px 40px 1fr auto auto; align-items: center; gap: 10px; background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; padding: 4px 12px 4px 8px; font-weight: 800; }
.rank li.me { background: #fff1d6; }
.rank .pos { font-family: var(--font-title); font-size: 1.2rem; text-align: center; }
.rank .mini svg { width: 40px; height: 40px; display: block; }
.rank .gain { color: var(--green); font-size: .9rem; }
.rank .total { font-family: var(--font-title); font-size: 1.2rem; min-width: 60px; text-align: right; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 10px 0 18px; }
.podium .step { text-align: center; font-weight: 800; width: 130px; }
.podium .step .block { border: var(--line); border-radius: 12px 12px 0 0; display: grid; place-items: center; font-family: var(--font-title); font-size: 2rem; box-shadow: 3px 0 0 var(--ink); }
.podium .step svg { width: 80px; height: 80px; display: block; margin: 0 auto -4px; }
.podium .s1 .block { height: 110px; background: var(--yellow); }
.podium .s2 .block { height: 80px; background: #e3e3e3; }
.podium .s3 .block { height: 60px; background: #f0b27a; }
.results-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.results-actions .btn { width: auto; }

/* ---------------------------------------------------------------- modale */
.modal { position: fixed; inset: 0; background: rgba(27,21,17,.55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal-card { position: relative; width: min(900px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.close { position: absolute; right: 12px; top: 8px; font-size: 2rem; background: none; border: 0; cursor: pointer; color: var(--ink); line-height: 1; }
.help-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.help-cols p, .help-cols li { line-height: 1.45; }
.help-cols ul { padding-left: 18px; }

.conn { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-weight: 800; padding: 8px 18px; border-radius: 999px; border: var(--line); z-index: 60; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .lobby-grid { grid-template-columns: 1fr 1fr; }
  .lobby-grid > .col { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .home-wrap { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .home-hero { text-align: center; }
  .hero-cat { margin: 0 auto 8px; width: 140px; height: 140px; }
  .tagline { margin: .6em auto; }
  .lobby-grid, .lobby-grid > .col { grid-template-columns: 1fr; display: grid; }
  .room-code { margin-left: 0; }
  .help-cols { grid-template-columns: 1fr; }
  .paint { top: auto; bottom: 66px; right: 8px; left: 8px; width: auto; max-height: 46vh; }
  .paint .keys, .paint .paint-body > p { display: none; }
  #paintPanel:not(.hidden) ~ #hudBottom { display: none; }
  .slots { flex-direction: row; flex-wrap: wrap; }
  .slot { flex: 1 1 30%; font-size: .75rem; }
  .slot .num { display: none; }
  .timer { font-size: 1.6rem; }
  .pill { font-size: .85rem; padding: 4px 10px; }
  .hud-bottom { left: 8px; right: 150px; max-width: none; transform: none; bottom: 12px; justify-content: flex-start; }
  .hint { font-size: .85rem; padding: 6px 10px; }
  .chat-float { display: none; }
  .settings label { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- langue */
.lang-switch { display: inline-flex; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; box-shadow: 2px 3px 0 var(--ink); }
.lang-switch button { font-family: var(--font-title); font-weight: 600; font-size: .85rem; border: 0; background: none; padding: .3em .7em; cursor: pointer; color: var(--ink-soft); }
.lang-switch button + button { border-left: 2px solid var(--ink); }
.lang-switch button.on { background: var(--orange); color: #fff; }
.home-lang { position: absolute; top: 16px; right: 16px; z-index: 5; }
#home { position: relative; }
#btnLangGame { font-size: .85rem; }

/* ---------------------------------------------------------------- atelier de peinture */
.editor { display: block; width: 100%; aspect-ratio: 1; border: 2.5px solid var(--ink); border-radius: 12px; background: #e9e1d4; cursor: crosshair; touch-action: none; margin: 4px 0 6px; image-rendering: pixelated; }
.paint .check { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 8px; }
.paint .check input { accent-color: var(--orange); }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 8px; }
.tool { font-size: 1.15rem; padding: 5px 0; border: 2px solid #e2d6c3; border-radius: 10px; background: #fff; cursor: pointer; position: relative; }
.tool small { position: absolute; right: 4px; bottom: 1px; font-size: .62rem; font-weight: 800; color: var(--ink-soft); font-family: var(--font-body); }
.tool:hover { border-color: var(--ink); }
.tool.on { border-color: var(--ink); background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.color-line { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.color-cur { flex: none; width: 46px; height: 46px; border: 2.5px solid var(--ink); border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; box-shadow: 2px 3px 0 var(--ink); }
.color-cur input { position: absolute; inset: -8px; width: 70px; height: 70px; border: 0; padding: 0; cursor: pointer; }
.recent { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; flex: 1; }
.recent button { aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 6px; cursor: pointer; padding: 0; }
.recent .empty { border: 2px dashed #d6c9b5; background: transparent; cursor: default; }
.range { display: grid; grid-template-columns: 62px 1fr 40px; align-items: center; gap: 8px; font-weight: 800; font-size: .85rem; margin-bottom: 4px; }
.range input { accent-color: var(--orange); padding: 0; border: 0; }
.range b { text-align: right; font-size: .8rem; }
.paint .paint-actions .btn { font-size: 1rem; min-width: 38px; }
@media (max-width: 760px) {
  .paint .editor { width: 62%; margin: 0 auto 6px; }
  .tools { grid-template-columns: repeat(8, 1fr); }
}

.dpad { position: absolute; left: 12px; bottom: 70px; width: 132px; height: 132px; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 4px; z-index: 3; }
.dpad button { border: var(--line); border-radius: 12px; background: rgba(255,255,255,.85); font-size: 1.1rem; touch-action: none; user-select: none; }
.dpad button:active { background: var(--yellow); }
.dpad [data-key="KeyW"] { grid-area: 1 / 2; } .dpad [data-key="KeyA"] { grid-area: 2 / 1; }
.dpad [data-key="KeyD"] { grid-area: 2 / 3; } .dpad [data-key="KeyS"] { grid-area: 3 / 2; }
@media (max-width: 760px) { .dpad { bottom: auto; top: 110px; } }
