/* Steam Page Optimization visual references. Styles scoped to this service only. */
.opt-examples {
    margin: 46px 0 64px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,.16);
    min-width: 0;
}
.opt-examples__header { margin-bottom: 25px; }
.opt-examples__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ffc31a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.opt-examples__eyebrow:before { content: ''; width: 24px; height: 2px; background: #ffc31a; }
.opt-examples__header h2 {
    margin: 13px 0 13px;
    color: #fff;
    font-family: var(--font-display, 'Molot', sans-serif);
    font-size: 25px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.opt-examples__header p {
    max-width: 950px;
    margin: 0;
    color: #d0d0d0;
    font-size: 16px;
    line-height: 1.65;
}
.opt-examples__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
    min-width: 0;
}
.opt-example {
    min-width: 0;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 17px;
    overflow: hidden;
    background: linear-gradient(145deg,#1f2024,#151517);
    display: flex;
    flex-direction: column;
}
.opt-example--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
}
.opt-example__image-button {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    border: 0;
    background: #132236;
    appearance: none;
    cursor: zoom-in;
    overflow: hidden;
    isolation: isolate;
    aspect-ratio: 1.75;
    font: inherit;
}
.opt-example--featured .opt-example__image-button { height: 100%; min-height: 270px; aspect-ratio: auto; }
.opt-example__image-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform .23s ease;
}
.opt-example__image-button:hover img { transform: scale(1.035); }
.opt-example__image-button:focus-visible { outline: 3px solid #ffc31a; outline-offset: -3px; }
.opt-example__expand {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 11px;
    background: rgba(13,15,20,.85);
    box-shadow: 0 2px 12px rgba(0,0,0,.28);
    font-size: 25px;
    color: #fff;
}
.opt-example__body { padding: 21px 23px 25px; }
.opt-example--featured .opt-example__body {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
}
.opt-example__topline { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.opt-example__number { color: #ffbd13; font-size: 13px; font-weight: 900; letter-spacing: .09em; }
.opt-example__category {
    color: #ffcf55;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.opt-example__body h3 {
    margin: 13px 0 11px;
    font-family: var(--font-display, 'Molot', sans-serif);
    font-size: 23px;
    letter-spacing: .025em;
    line-height: 1.12;
    color: #fff;
    text-transform: none;
}
.opt-example--featured .opt-example__body h3 { font-size: 30px; }
.opt-example__body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.62;
    color: #d3d3d3;
    overflow-wrap: break-word;
}
.opt-examples__note {
    margin: 17px 0 0;
    color: #98989e;
    font-size: 12px;
    line-height: 1.5;
}
/* Native dialog top layer; script moves it under <body> to bypass service layout stacking contexts. */
.opt-lightbox {
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    box-sizing: border-box;
    width: min(96vw, 1120px);
    max-width: calc(100vw - 16px);
    height: min(92dvh, 1020px);
    max-height: calc(100dvh - 16px);
    border: 1px solid #3a3a41;
    border-radius: 15px;
    color: #fff;
    background: #13151b;
    overflow: hidden;
    box-shadow: 0 30px 130px rgba(0,0,0,.85);
}
.opt-lightbox[open] { display: flex; flex-direction: column; }
.opt-lightbox::backdrop { background: rgba(0,0,0,.85); }
.opt-lightbox__toolbar, .opt-lightbox__bottom {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 18px;
    background: #1f2026;
    min-height: 52px;
    box-sizing: border-box;
}
.opt-lightbox__toolbar { border-bottom: 1px solid rgba(255,255,255,.11); }
.opt-lightbox__heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; }
.opt-lightbox__heading strong { font-size: 16px; color: #fff; }
.opt-lightbox__heading span { font-size: 12px; color: #a7aab1; }
.opt-lightbox__controls { display: flex; gap: 8px; flex: none; }
.opt-lightbox__controls button, .opt-lightbox__bottom button {
    border: 1px solid #555963;
    border-radius: 8px;
    background: #30333b;
    color: #fff;
    min-height: 34px;
    padding: 6px 12px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.opt-lightbox__controls button:hover, .opt-lightbox__bottom button:hover { background: #454950; }
.opt-lightbox__controls button:focus-visible, .opt-lightbox__bottom button:focus-visible { outline: 2px solid #ffc31a; }
.opt-lightbox__controls [data-opt-close] { font-size: 25px; padding: 0; width: 36px; height: 36px; }
.opt-lightbox__frame {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: #0b0d12;
}
.opt-lightbox__frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.opt-lightbox__frame.is-zoomed { align-items: flex-start; justify-content: flex-start; }
.opt-lightbox__frame.is-zoomed img {
    width: max(100%, 1150px);
    min-width: 1150px;
    max-width: none;
    max-height: none;
    height: auto;
}
.opt-lightbox__bottom {
    border-top: 1px solid rgba(255,255,255,.11);
    justify-content: center;
    gap: 18px;
    font-size: 12px;
    color: #a7aab1;
}
.opt-lightbox__bottom button { min-width: 46px; font-size: 19px; padding: 2px 8px; }
@media (max-width: 1100px) {
    .opt-example--featured { grid-template-columns: 1fr; }
    .opt-example--featured .opt-example__image-button { aspect-ratio: 1.9; height: auto; min-height: 0; }
}
@media (max-width: 750px) {
    .opt-examples { margin: 35px 0 45px; padding-top: 24px; }
    .opt-examples__grid { grid-template-columns: 1fr; gap: 14px; }
    .opt-example--featured { grid-column: auto; }
    .opt-example__body, .opt-example--featured .opt-example__body { padding: 19px; }
    .opt-example--featured .opt-example__body h3 { font-size: 24px; }
    .opt-examples__header h2 { font-size: 25px; }
    .opt-lightbox { width: calc(100vw - 10px); height: calc(100dvh - 10px); border-radius: 9px; }
    .opt-lightbox__toolbar { padding: 8px 10px; }
    .opt-lightbox__heading strong { font-size: 14px; }
    .opt-lightbox__bottom { padding: 7px; }
}
@media (prefers-reduced-motion: reduce) { .opt-example__image-button img { transition: none; } }

/* WTC Games shared gallery close-icon centering fix (2026-11-11).
   Render an actual geometric X instead of the font-dependent multiplication glyph. */
.opt-lightbox__controls [data-opt-close] {
    position: relative;
    display: inline-grid !important;
    place-items: center !important;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0 !important;
    flex: 0 0 36px;
    font-size: 0 !important;
    line-height: 0 !important;
    text-align: center;
}
.opt-lightbox__controls [data-opt-close]::before,
.opt-lightbox__controls [data-opt-close]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    pointer-events: none;
}
.opt-lightbox__controls [data-opt-close]::before { transform: translate(-50%, -50%) rotate(45deg); }
.opt-lightbox__controls [data-opt-close]::after  { transform: translate(-50%, -50%) rotate(-45deg); }
