.pentile { margin-top: 10px; }
.penicon { flex: none; width: 40px; font-size: 2rem; line-height: 1; text-align: center; }
:is(#pen, #chance) { position: fixed; inset: 0; z-index: 66; display: none; touch-action: none; background: linear-gradient(to bottom, #04070a 0%, #0b1620 38%, #0d2415 62%, #071208 100%); }
:is(#pen, #chance).on { display: block; }
:is(#pen, #chance) canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.pen-hud { position: absolute; left: 0; right: 0; top: 12px; padding: 0 64px; display: flex; justify-content: center; align-items: center; gap: 14px; pointer-events: none; color: #fff; font: 700 .85rem var(--font); letter-spacing: .06em; text-shadow: 0 2px 6px #000; }
.pen-hud b { font: italic 700 1.9rem/1 var(--font); color: var(--acc); white-space: nowrap; }
.pen-hud .side { display: grid; gap: 5px; justify-items: center; }
.pen-hud .dots { display: flex; gap: 4px; }
.pen-hud i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); }
.pen-hud i.in { background: #3ddc84; border-color: #3ddc84; }
.pen-hud i.out { background: #e0243f; border-color: #e0243f; }
.pen-hint { position: absolute; left: 0; right: 0; bottom: 9%; padding: 0 14px; text-align: center; pointer-events: none; text-transform: uppercase; letter-spacing: .06em; color: #fff; text-shadow: 0 2px 8px #000; animation: pkpulse 1.2s ease-in-out infinite alternate; }
.pen-res { position: absolute; left: 0; right: 0; top: 17%; padding: 0 12px; text-align: center; pointer-events: none; font: italic 700 clamp(2.2rem, 11vw, 5.5rem)/1 var(--font); text-transform: uppercase; color: #fff; text-shadow: 0 0 30px #3ddc84, 0 4px 12px #000; }
.pen-res.bad { text-shadow: 0 0 30px #e0243f, 0 4px 12px #000; }
.pen-res.pop { animation: pkpop .5s cubic-bezier(.2, 1.5, .4, 1); }
.pen-end { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 30px 14px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(4, 7, 10, .96) 65%, transparent); }
.pen-end[hidden] { display: none; }
.pen-end h2 { margin: 0; font: italic 700 clamp(2rem, 9vw, 3.2rem)/1 var(--font); text-transform: uppercase; color: var(--acc); text-shadow: 0 2px 10px #000; }
.pen-end p { margin: 0; color: #e8e8e8; }
.pen-end .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
:is(#pen, #chance) button { font: 700 .95rem var(--font); text-transform: uppercase; letter-spacing: .05em; padding: 11px 16px; cursor: pointer; color: #fff; background: rgba(0, 0, 0, .5); border: 2px solid rgba(255, 255, 255, .35); }
:is(#pen, #chance) button.go { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
:is(#pen, #chance) button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
:is(#pen, #chance) .pen-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 1.3rem; }
@media (prefers-reduced-motion: reduce) { .pen-hint, .pen-res.pop { animation: none; } }
:is(#pen, #chance) .pen-snd { position: absolute; top: 12px; left: 12px; width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 1.2rem; z-index: 2; }
.pen-power { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); width: min(70%, 320px); height: 14px; border: 2px solid #fff; background: rgba(0, 0, 0, .55); pointer-events: none; }
.pen-power[hidden] { display: none; }
.pen-power i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3ddc84, #f5c542 70%, #e0243f); }
.pen-power.max { border-color: #e0243f; }
.pen-res.stake { font-size: clamp(1.5rem, 7vw, 3rem); color: var(--acc); text-shadow: 0 0 24px rgba(0, 0, 0, .9), 0 4px 12px #000; }

/* Kutucuk ikonları emoji yerine çizim (emoji yazı tipi olmayan cihazlarda kutu içinde soru işareti çıkıyordu). Penaltı kutucuğunun metni gizlenir, top arka plan olarak çizilir. */
.penicon svg { display: block; margin: 0 auto; }
.pentile:not(.chancetile) .penicon { height: 34px; font-size: 0; background: center / 34px 34px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23fff' stroke='%23111' stroke-width='1.5'/%3E%3Cpath d='M12 7.2l4.2 3-1.6 5H9.4l-1.6-5z' fill='%23111'/%3E%3Cpath d='M12 7.2V2.6M16.2 10.2l4.6-1.6M14.6 15.2l2.8 4M9.4 15.2l-2.8 4M7.8 10.2L3.2 8.6' stroke='%23111' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); }
