/* OdinES "Add to Home Screen" (oes-home.js): the game pages' icon button + hint sheet, and the /play/<id>/install page.
   Launcher look: hard edges, slanted plates, no rounded corners. Prefixed (oesh-/oesi-) so it never touches a game's CSS. */
@font-face { font-family: "OdinES Noto"; src: url("fonts/NotoSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "OdinES Noto"; src: url("fonts/NotoSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

.oesh-fab, .oesh-sheet, .oesi-page { --oesh-bg: #090816; --oesh-panel: #120f2a; --oesh-line: #302a60; --oesh-cyan: #28f9dd;
	--oesh-navy: #18086c; --oesh-text: #eceaf8; --oesh-dim: #9692ba; font-family: "OdinES Noto", system-ui, sans-serif; }

.oesh-fab { position: fixed; z-index: 2147483000; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right));
	width: 44px; height: 44px; padding: 0; border: 0; cursor: pointer; background: rgba(9, 8, 22, .78); color: var(--oesh-cyan);
	clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.oesh-fab svg { width: 24px; height: 24px; margin: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.oesh-fab:hover, .oesh-fab:focus-visible { background: var(--oesh-cyan); color: var(--oesh-navy); outline: none; }

.oesh-sheet { position: fixed; z-index: 2147483001; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
	width: min(420px, calc(100vw - 32px)); box-sizing: border-box; padding: 18px 48px 16px 22px; background: var(--oesh-panel);
	color: var(--oesh-text); border-left: 4px solid var(--oesh-cyan); box-shadow: 0 8px 40px rgba(0, 0, 0, .6); font-size: 15px; line-height: 1.45; }
.oesh-sheet h2 { margin: 2px 0 8px; font-size: 20px; font-weight: 700; }
.oesh-label { color: var(--oesh-cyan); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.oesh-steps p { margin: 0 0 6px; }
.oesh-dim { color: var(--oesh-dim); font-size: 13px; }
.oesh-share { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: var(--oesh-cyan); stroke-width: 2; }
.oesh-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--oesh-dim);
	font-size: 26px; line-height: 1; cursor: pointer; }
.oesh-x:hover, .oesh-x:focus-visible { color: var(--oesh-text); outline: none; }

/* ---- /play/<id>/install ---- */
html.oesi, html.oesi body { margin: 0; min-height: 100%; background: #090816; }
.oesi-page { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
	padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
	background: linear-gradient(#100a34, #090816); color: var(--oesh-text); }
.oesi-card { width: min(440px, 100%); background: var(--oesh-panel); border-left: 4px solid var(--oesh-cyan); padding: 24px 22px 20px; box-sizing: border-box; }
.oesi-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.oesi-icon { width: 96px; height: 96px; flex: none; display: block; }
.oesi-card h1 { margin: 4px 0 2px; font-size: 26px; line-height: 1.15; font-weight: 700; }
.oesi-sub { margin: 0; color: var(--oesh-dim); font-size: 14px; }
#oesi-actions { min-height: 56px; margin: 8px 0 14px; font-size: 15px; line-height: 1.45; }
#oesi-actions p { margin: 0 0 6px; }
.oesi-install { display: block; width: 100%; height: 52px; border: 0; cursor: pointer; background: var(--oesh-cyan); color: var(--oesh-navy);
	font: 700 17px "OdinES Noto", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase;
	clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.oesi-install:hover, .oesi-install:focus-visible { background: #78ffec; outline: none; }
.oesi-done { color: var(--oesh-cyan); font-weight: 700; }
.oesi-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.oesi-links a { color: var(--oesh-cyan); text-decoration: none; font-weight: 700; letter-spacing: .06em; }
.oesi-links a:hover { text-decoration: underline; }
