/* Touch controls (js/features/touch.js, docs/web_mobile.md).  Everything here is scoped to the classes touch.js sets,
   except the notch padding (viewport-fit=cover), which is 0 on desktops. */

/* notch / rounded corners in landscape on phones: transparent side borders keep the bars inside the safe area */
#topbar, #main { border-left: env(safe-area-inset-left, 0px) solid transparent; border-right: env(safe-area-inset-right, 0px) solid transparent; }

/* ---- playing with fingers: the play tab fills the screen, the page's own touch behaviour is off */
html.rc-touch-play, html.rc-touch-play body { overflow: hidden; overscroll-behavior: none; height: 100%; }
html.rc-touch-play body { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
html.rc-touch-play #topbar { display: none; }
html.rc-touch-play #tab-play { position: fixed; inset: 0; z-index: 20; background: #000; margin: 0; padding: 0; }
html.rc-touch-play #tab-play > :not(#screenwrap):not(.rc-touch):not(.rc-float) { display: none !important; }
html.rc-touch-play #screenwrap { position: fixed; left: var(--rc-sx, 0px); top: var(--rc-sy, 0px); width: var(--rc-sw, 100vw); height: var(--rc-sh, 62.5vw);
  max-height: none; margin: 0; border-radius: 0; z-index: 21; touch-action: none;
  min-width: 0; }   /* (a game's menu bar wider than a small picture slides inside it: the box kept its width - PHONE1) */
html.rc-touch-play #screen { cursor: none; }
html.rc-touch-play #screen:focus { box-shadow: none; }
/* a game's menu bar (js/win/player.js .wmbar) is never slid to see its items (PHONE1): the screen's width in portrait (touch.js
   --rc-mbl / --rc-mbr: the room beside a narrower picture is empty there), its items on more lines when they still do not fit */
html.rc-touch-play #screenwrap .wmbar { flex-wrap: wrap; height: auto; overflow: visible; border-radius: 0; margin: 0 var(--rc-mbr, 0px) 0 var(--rc-mbl, 0px); }
/* a game's dialog (js/win/dialog.js) over the touch controls: its box takes the taps, around it the bar and pads still work */
html.rc-touch-play #screenwrap.wdlg-on { z-index: 26; }
html.rc-touch-play #screenwrap .wdlg-back { pointer-events: none; touch-action: auto; }
html.rc-touch-play #screenwrap .wdlg { pointer-events: auto; touch-action: manipulation; }
/* 「메뉴」: the play tab as usual (pause, slots, screenshot, quit ...) with 「게임으로」 floating; keyboard hints are no use here */
html.rc-touch-menu #play-keys, html.rc-touch-menu #screenwrap + p.muted { display: none; }
html.rc-touch-menu #main { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

.rc-touch { position: fixed; left: 0; top: var(--rc-vt, 0px); width: 100%; height: var(--rc-vh, 100%); z-index: 22; pointer-events: none;
  --rc-tc: 1; --rc-alpha: .6; --rc-dp: 156px; --rc-bs: 62px; color: var(--fg);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.rc-touch[hidden] { display: none; }
.rc-panel { position: absolute; inset: 0; display: flex; flex-direction: column; }
.rc-touch.portrait .rc-panel { top: var(--rc-pt, 60%); background: var(--bg); border-top: 1px solid var(--line); pointer-events: auto; touch-action: none; }
.rc-top { flex: none; display: flex; flex-direction: column; gap: 6px; pointer-events: none;
  padding: 8px max(10px, var(--rc-sr, 0px)) 4px max(10px, var(--rc-sl, 0px)); }
.rc-touch.landscape .rc-top { position: absolute; left: 0; top: 0; right: 0; padding-top: max(6px, var(--rc-st, 0px)); z-index: 2; }
.rc-keyrow { display: flex; gap: 5px; pointer-events: auto; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; padding-bottom: 2px; max-width: 100%; }
.rc-keyrow::-webkit-scrollbar { display: none; }
.rc-touch.landscape .rc-keyrow { opacity: max(.55, var(--rc-alpha)); max-width: min(100%, 760px); }
.rc-keyrow button, .rc-editbar button { touch-action: manipulation; border-radius: 999px; background: var(--panel2); border-color: var(--line2);
  color: var(--fg); font-size: 13px; padding: 6px 9px; min-height: 32px; }
.rc-keyrow button { touch-action: pan-x; flex: none; min-width: 44px; }
.rc-keyrow button.on { background: var(--accent); border-color: var(--accent); color: #1a1200; }
.rc-keyrow button.mod { border-style: dashed; }
.rc-keyrow button.ko { min-width: 40px; }   /* (UI4: the Korean letters at the row's end) */
.rc-touch.typing .rc-area { visibility: hidden; }

.rc-area { position: relative; flex: 1; min-height: 0; }
.rc-touch.landscape .rc-area { pointer-events: none; }
/* a phone's frame without the touch controls (touch.js framed: a keyboard or gamepad took over in 자동, or 끄기): the d-pad and
   the game's buttons stay away, but show while 「버튼위치」·「매핑」 are used */
.rc-touch.noctl:not(.editing):not(.mapping) .rc-area { visibility: hidden; }
.rc-ctl { position: absolute; left: 0; top: 0; pointer-events: auto; touch-action: none; opacity: var(--rc-alpha); }
.rc-dpad { width: var(--rc-dp); height: var(--rc-dp); }
.rc-dpad svg { width: 100%; height: 100%; display: block; overflow: visible; }
.rc-dpad .base { fill: rgba(18, 20, 24, .55); stroke: rgba(255, 255, 255, .35); stroke-width: 1.2; }
.rc-dpad .arm { fill: rgba(232, 233, 235, .22); stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; stroke-linejoin: round; }
.rc-dpad .arm.on { fill: var(--accent); stroke: var(--accent); }
.rc-dpad .tri { fill: rgba(255, 255, 255, .8); pointer-events: none; }
.rc-btn { width: var(--rc-bs); height: var(--rc-bs); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(18, 20, 24, .55); border: 1.5px solid rgba(255, 255, 255, .55); line-height: 1.1; text-align: center; }
.rc-btn b { font-size: calc(16px * var(--rc-tc) * var(--rc-bk, 1)); font-weight: 700; white-space: nowrap; }   /* (--rc-bk: touch.js, a portrait button made smaller to fit) */
.rc-btn.long b { font-size: calc(12px * var(--rc-tc) * var(--rc-bk, 1)); letter-spacing: -.02em; }
.rc-btn small, .rc-pill small { font-size: calc(10.5px * var(--rc-tc)); opacity: .75; margin-top: 2px; white-space: nowrap; }
.rc-btn small { font-size: calc(10.5px * var(--rc-tc) * var(--rc-bk, 1)); }
.rc-pill { height: calc(34px * var(--rc-tc)); min-width: calc(58px * var(--rc-tc)); padding: 0 calc(12px * var(--rc-tc)); border-radius: 999px; display: flex; align-items: center;
  justify-content: center; gap: 6px; background: rgba(18, 20, 24, .55); border: 1.5px solid rgba(255, 255, 255, .5); white-space: nowrap; }
.rc-pill b { font-size: calc(13px * var(--rc-tc)); font-weight: 600; }
.rc-pill small { margin-top: 0; }
.rc-btn.on, .rc-pill.on { background: var(--accent); border-color: var(--accent); color: #1a1200; opacity: max(.85, var(--rc-alpha)); }
.rc-touch.editing .rc-ctl { opacity: 1; outline: 2px dashed var(--accent); outline-offset: 3px; }
.rc-touch.editing .rc-ctl.dragging { outline-style: solid; }
.rc-touch.mapping .rc-ctl { opacity: 1; outline: 2px dashed var(--accent2); outline-offset: 3px; }   /* 「매핑」: tap one */
.rc-touch.portrait .rc-ctl { opacity: max(.5, var(--rc-alpha)); }
.rc-editbar { position: absolute; left: 50%; top: max(10px, var(--rc-st, 0px)); transform: translateX(-50%); z-index: 3; pointer-events: auto; display: flex; gap: 8px; align-items: center;
  background: rgba(14, 16, 19, .94); border: 1px solid var(--accent); border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 13px; white-space: nowrap; }
.rc-editbar[hidden] { display: none; }
.rc-editbar button.primary { background: var(--accent); color: #1a1200; border-color: var(--accent); }
.rc-editbar button:disabled { opacity: .4; }   /* (「+ 버튼」 at four round buttons) */
/* (UI1) a phone game's 「버튼위치」: 키패드 있음 · 방향키만 크게, under the bar (touch.js setPhoneMode) */
.rc-editopt { position: absolute; left: 50%; top: calc(max(10px, var(--rc-st, 0px)) + 52px); transform: translateX(-50%); z-index: 3; pointer-events: auto; display: flex; gap: 4px;
  background: rgba(14, 16, 19, .94); border: 1px solid var(--line2); border-radius: 999px; padding: 4px; white-space: nowrap; }
.rc-editopt[hidden] { display: none; }
.rc-editopt button { touch-action: manipulation; border-radius: 999px; background: transparent; border-color: transparent; color: var(--fg); font-size: 13px; padding: 6px 14px; min-height: 32px; }
.rc-editopt button.on { background: var(--accent); border-color: var(--accent); color: #1a1200; font-weight: 600; }
/* (UI4) 「버튼위치」 of a game that is not a phone's: 틀 (as many round buttons as there are) · 좌우 바꾸기, then the 단추 · 방향키 sizes (touch.js tplSync) */
.rc-editopt.rc-tplopt { flex-direction: column; align-items: stretch; gap: 6px; border-radius: 16px; padding: 6px 8px; max-width: calc(100vw - 16px); }
.rc-tplopt .rc-trow { display: flex; gap: 4px; align-items: center; justify-content: center; }
.rc-tplopt .rc-trow:empty { display: none; }
.rc-tplopt button.rc-tpl { padding: 0; width: 38px; height: 34px; min-height: 34px; border-radius: 10px; border: 1px solid var(--line2); display: grid; place-items: center; }
.rc-tplopt button.rc-tpl svg { width: 24px; height: 24px; fill: currentColor; }
.rc-tplopt button.rc-swap { padding: 6px 12px; border: 1px solid var(--line2); margin-left: 4px; }
.rc-tplopt label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg); padding: 0 4px; }
.rc-tplopt input[type=range] { width: 92px; accent-color: var(--accent); touch-action: none; }
/* 「−」 on a round button under 「버튼위치」 · 「매핑」 (while more than two are left: touch.js renderControls) takes it away */
.rc-del { display: none; }
.rc-touch.editing .rc-btn .rc-del, .rc-touch.mapping .rc-btn .rc-del { display: block; position: absolute; right: -4px; top: -4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--danger, #e5484d); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.rc-del::before { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: #fff; }
.rc-del::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; }   /* (a bigger spot for a finger) */

.rc-cursor { position: fixed; left: 0; top: 0; width: 16px; height: 24px; z-index: 23; pointer-events: none; margin: -1px 0 0 -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 24'%3E%3Cpath d='M1 1v19l5-5 4 8 3-1.5-4-8h7z' fill='%23fff' stroke='%23000' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; }
.rc-cursor.down { filter: drop-shadow(0 0 3px var(--accent)); }
.rc-cursor[hidden] { display: none; }
/* a long press on the game took (= the right button, 설정 > 일반 「오른쪽 클릭 제스처」): a ring where the finger is (touch.js ring) */
.rc-ring { position: fixed; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; z-index: 24; pointer-events: none; border-radius: 50%;
  border: 3px solid var(--accent); opacity: 0; }
.rc-ring.go { animation: rc-ring .4s ease-out; }
.rc-ring[hidden] { display: none; }
@keyframes rc-ring { from { transform: scale(.35); opacity: .95; } to { transform: scale(1.1); opacity: 0; } }
.rc-text { position: fixed; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; font-size: 16px; pointer-events: none; background: transparent; color: transparent; }
.rc-safe { position: fixed; inset: 0; visibility: hidden; pointer-events: none; z-index: -1;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.rc-haptic { position: fixed; left: -200px; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.rc-float { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); z-index: 25;
  padding: 10px 18px; font-size: 15px; font-weight: 600; border-radius: 999px; background: var(--accent); color: #1a1200; border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45); touch-action: manipulation; }
.rc-float[hidden] { display: none; }
.rc-toast { position: fixed; left: 50%; top: 42%; transform: translateX(-50%); z-index: 30; width: max-content; max-width: min(86vw, 520px); pointer-events: none;
  background: rgba(14, 16, 19, .94); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 14px; font-size: 14px; line-height: 1.45; text-align: center; color: var(--fg);
  word-break: keep-all; }   /* (as wide as its words, up to max-width: the box used to stop at half the screen) */
.rc-toast[hidden] { display: none; }
/* (touch.js placeToast) off a game's open menu or box: at the top, else at the bottom */
.rc-toast.at-top { top: max(12px, env(safe-area-inset-top, 0px)); }
.rc-toast.at-bottom { top: auto; bottom: max(12px, env(safe-area-inset-bottom, 0px)); }

/* ---- the tiles (touch.js renderTiles, dockTools): every control of the play tab as icon + short word, in the user's
   order (2026-11-10).  The play tab's own toolbar is docked in with display: contents, so its buttons are tiles among the
   touch layer's own; --o is each one's place.  Portrait: a grid under the game; landscape: one row over its top that
   scrolls sideways.  The page's toolbar elsewhere keeps its look (the .rc-val / 감추기 added to it stay hidden there). */
.toolbar:not(.rc-tools) .rc-tools-hide, .toolbar:not(.rc-tools) .rc-val { display: none; }
.rc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 4px; pointer-events: auto; touch-action: none; }
.rc-tiles .rc-off { display: none !important; }   /* (landscape: not picked in 설정) */
.rc-tiles > *, .rc-tiles .toolbar.rc-tools > *, .rc-tiles .toolbar.rc-tools #drives > * { order: var(--o, 90); }
.rc-tiles .toolbar.rc-tools, .rc-tiles .toolbar.rc-tools #drives { display: contents; }
/* one tile per job: 소리 and 전체 are the touch layer's own; ⌨→🎮 needs a keyboard (which turns the touch controls off); 배율 does nothing here */
.rc-tiles .toolbar.rc-tools .sep, .rc-tiles .toolbar.rc-tools #volume, .rc-tiles .toolbar.rc-tools #sound, .rc-tiles .toolbar.rc-tools #full,
.rc-tiles .toolbar.rc-tools #kbjoy, .rc-tiles .toolbar.rc-tools #pad-ind, .rc-tiles .toolbar.rc-tools label.inline.pl-scale { display: none; }
.rc-tiles button, .rc-tiles label.inline { position: relative; min-height: 46px; min-width: 0; margin: 0; padding: 3px 1px; border-radius: 8px; font-size: 0; gap: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--panel2); border: 1px solid var(--line2);
  color: var(--fg); touch-action: none; overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* the icons: features/icons.js (--ico-<name>), set per tile as --ico by touch.js */
.rc-tiles button::before { content: ''; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: var(--ico, linear-gradient(transparent, transparent)) center / contain no-repeat; mask: var(--ico, linear-gradient(transparent, transparent)) center / contain no-repeat; }
.rc-tiles button::after, .rc-tiles label.inline::before { content: attr(data-short); font-size: 10.5px; line-height: 1.2; white-space: nowrap; color: var(--fg); }
.rc-tiles button > .ico, .rc-tiles button > svg { display: none; }   /* (a button's own inline icon: the tile draws --ico) */
.rc-tiles button:disabled { opacity: .45; }
/* 속도 · 음원 · 슬롯 · 디스크: the word above, the value centred under it (user, 2026-11-10); the select lies unseen over the
   whole tile, so a tap opens its list */
.rc-tiles label.inline select { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; margin: 0; padding: 0; border: 0; opacity: 0; font-size: 16px; }
.rc-tiles .rc-val { display: block; width: 100%; padding: 0 2px; font-size: 14px; letter-spacing: -.02em; font-weight: 600; line-height: 21px; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; color: var(--fg); pointer-events: none; }
.rc-tiles .rc-val.two { white-space: normal; word-break: keep-all; overflow-wrap: normal; font-size: 11px; line-height: 12px; padding-top: 1px; }   /* (two lines: 사운드 / 폰트) */
/* (UI1) only at a word's edge - a space or the hint in 사운드​폰트 (touch.js syncVals): an iPhone's narrower Hangul fitted 「사운드폰」 on the
   first line and left 「트」 alone (2026-11-29); a word wider than the tile makes the size smaller instead (touch.js fitVal) */
.rc-tiles button:hover:not(:disabled) { border-color: var(--line2); }   /* (a finger leaves :hover behind: only on / active stand out) */
.rc-tiles button.on, .rc-tiles button.active { background: var(--panel3); border-color: var(--accent); }
.rc-tiles button.on::before { background: var(--accent); }
.rc-tiles #rec.active, .rc-tiles #btn-animrec.active { --ico: var(--ico-stop) !important; }   /* (over the inline --ico) */
.rc-tiles #rec.active::after { content: '중지'; }
.rc-tiles #btn-animrec.active::after { content: '끝내기'; }
.rc-tiles #stop::after { color: var(--danger); }
/* 「감추기」 folds them to one 「펼치기」 tile */
.rc-tiles:not(.folded) > .rc-tile[data-act="unfold"] { display: none; }
.rc-tiles.folded > .rc-tile:not([data-act="unfold"]), .rc-tiles.folded .toolbar.rc-tools > * { display: none !important; }
/* a short portrait screen (touch.js layout, PHONE2): the tiles lower (46 -> 38 px) before the picture is made smaller */
.rc-touch.portrait.tight .rc-top { padding-top: 6px; padding-bottom: 2px; }
.rc-touch.portrait.tight .rc-tiles button, .rc-touch.portrait.tight .rc-tiles label.inline { min-height: 38px; padding: 2px 1px; gap: 1px; }
.rc-touch.portrait.tight .rc-tiles button::before { width: 18px; height: 18px; }
.rc-touch.portrait.tight .rc-tiles .rc-val { font-size: 13px; line-height: 17px; }
.rc-touch.portrait.tight .rc-tiles .rc-val.two { font-size: 10px; line-height: 11px; padding-top: 0; word-break: keep-all; }   /* (사운드|폰트 at its word edge) */
/* landscape: the picked tiles at the top left, wrapping inside the room left of the picture (--rc-tw, touch.js layout) */
.rc-touch.landscape .rc-tiles { display: flex; flex-wrap: wrap; align-self: flex-start; max-width: var(--rc-tw, none); opacity: max(.7, var(--rc-alpha)); }
.rc-touch.landscape .rc-tiles button, .rc-touch.landscape .rc-tiles label.inline { flex: none; width: 52px; min-height: 46px; }

/* ---- 「매핑」: the keys a touch button can send (touch.js openSheet) */
.rc-sheet { position: fixed; inset: 0; z-index: 29; pointer-events: auto; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .5);
  padding: max(10px, env(safe-area-inset-top, 0px)) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px); }
.rc-sheet[hidden] { display: none; }
.rc-sheet-box { width: min(620px, 100%); max-height: 72%; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line2); border-bottom: 0;
  border-radius: 12px 12px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); color: var(--fg); }
.rc-touch.landscape .rc-sheet-box { max-height: 100%; }
/* (UI4) 「설정」: the game's small settings window (touch.js openSet) */
.rc-setsheet .rc-sheet-box { width: min(420px, 100%); }
.rc-set-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.rc-set-row { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 40px; }
.rc-set-row input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.rc-set-tip { margin: 0; font-size: 12.5px; color: var(--muted, #9aa0a6); line-height: 1.45; }
.rc-sheet-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); }
.rc-sheet-head b { flex: 1; min-width: 0; color: var(--accent); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-sheet-head button { border-radius: 999px; min-height: 36px; padding: 6px 12px; font-size: 13px; touch-action: manipulation; }
.rc-sheet-body { overflow: auto; padding: 4px 10px 12px; touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.rc-sheet-body h4 { margin: 10px 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.rc-sheet-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 5px; }
.rc-sheet-keys.wide { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.rc-sheet-keys button { min-height: 42px; min-width: 0; padding: 3px 4px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; background: var(--panel2); border: 1px solid var(--line2); color: var(--fg); touch-action: manipulation; }
.rc-sheet-keys button b { font-size: 13.5px; font-weight: 600; }
.rc-sheet-keys button small { font-size: 10.5px; color: var(--muted); line-height: 1.25; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rc-sheet-keys button.cur { background: var(--accent); border-color: var(--accent); color: #1a1200; }
.rc-sheet-keys button.cur small { color: #3a2a00; }

/* ---- 설정 > 일반 「가로 화면 왼쪽 위 버튼」 (touch.js landPicker) */
#touch-settings .rc-landpick { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.rc-landpick .lp-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rc-landpick .lp-on, .rc-landpick .lp-off { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-landpick .lp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2);
  color: var(--fg); font-size: 13px; min-height: 34px; }
.rc-landpick .lp-chip.on { border-color: var(--accent); padding-right: 3px; }
.rc-landpick .lp-n { color: var(--accent); font-size: 12px; min-width: 1.1em; text-align: center; }
.rc-landpick .lp-chip .mini { padding: 2px 4px; min-height: 28px; min-width: 28px; display: inline-flex; align-items: center; justify-content: center; }
@media (pointer: coarse) { .rc-landpick .lp-chip { min-height: 40px; } .rc-landpick .lp-chip .mini { min-height: 34px; min-width: 34px; } }

/* 피처폰 (WIPI6): the phone's keypad - js/features/touch.js renderPhone · placePhone set the sizes (--rc-pkw/pkh: a number key,
   --rc-skw/skh: a soft key); 확인 lies over the d-pad's middle, 「숫자」 folds the number pad */
.rc-pill.rc-pk { width: var(--rc-pkw, 96px); height: var(--rc-pkh, 42px); min-width: 0; padding: 0; border-radius: 12px; }
.rc-pill.rc-pk b { font-size: calc(19px * var(--rc-tc) * var(--rc-pkk, 1)); font-weight: 700; }
/* (WIPI14) while the game's text box is typed in, the number keys show their letters as a phone's did (한글 천지인 · English) */
.rc-pill.rc-pk .rc-jm { display: none; margin: 0 0 0 calc(6px * var(--rc-tc)); font-size: calc(13px * var(--rc-tc)); font-weight: 600; opacity: .8; letter-spacing: 0; }
.rc-touch.ime-ko .rc-pill.rc-pk .rc-jm.ko, .rc-touch.ime-en .rc-pill.rc-pk .rc-jm.en { display: inline; }
.rc-pill.rc-soft { width: var(--rc-skw, 88px); height: var(--rc-skh, 34px); min-width: 0; padding: 0; border-radius: 12px; }
.rc-soft .rc-bar { display: block; width: 44%; height: 4px; border-radius: 2px; background: currentColor; opacity: .85; }
/* (UI7) 「통화」 (a game whose keys use it): round as 취소, under soft key 1 (on its side over it) */
.rc-pill.rc-call { width: var(--rc-bs); height: var(--rc-bs); min-width: 0; padding: 0; border-radius: 50%; border-color: rgba(255, 255, 255, .55); }
.rc-pill.rc-call b { font-size: calc(16px * var(--rc-tc) * var(--rc-bk, 1)); font-weight: 700; }
.rc-btn.rc-ok { z-index: 1; width: calc(var(--rc-dp) * .38); height: calc(var(--rc-dp) * .38); }
/* (UI4; user, 2026-11-29: 「확인 버튼은 뒤에 안 비춰지게 해」) 확인 covers the d-pad's arms under it: solid, as opaque as nothing shows through */
.rc-touch .rc-ctl.rc-btn.rc-ok { background: #1c1f24; opacity: 1; }
.rc-touch .rc-ctl.rc-btn.rc-ok.on { background: var(--accent); }
.rc-btn.rc-ok b { font-size: calc(14px * var(--rc-tc) * var(--rc-okk, 1)); }
.rc-touch.bigpad .rc-btn.rc-ok b { font-size: calc(20px * var(--rc-tc) * var(--rc-okk, 1)); }   /* (UI1: 방향키만 크게 - the big 확인) */
.rc-numfold { position: absolute; left: 0; top: 0; pointer-events: auto; touch-action: none; height: var(--rc-fh, 30px); padding: 0 11px 0 13px; border-radius: 999px; display: flex; align-items: center; gap: 7px;
  background: rgba(18, 20, 24, .55); border: 1.5px solid rgba(255, 255, 255, .4); color: var(--fg); font: inherit; font-size: 13px; opacity: max(.6, var(--rc-alpha)); }
.rc-numfold .rc-chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.rc-numfold .rc-chev.up { transform: translateY(2px) rotate(-135deg); }
.rc-touch.landscape .rc-numfold { pointer-events: auto; }
.rc-touch.landscape .rc-numfold { display: none; }   /* (UI4: a phone game on its side keeps its number pad - no 「숫자」) */
.rc-touch.editing .rc-numfold, .rc-touch.mapping .rc-numfold { opacity: .35; }
