@font-face {
    font-family: 'IBM VGA';
    src: url('/fonts/ibm-vga-8x16.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: 'Televideo';
    src: url('/fonts/Televideo.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: block
}

:root {
    --sai-t: env(safe-area-inset-top, 0px);
    --sai-r: env(safe-area-inset-right, 0px);
    --sai-b: env(safe-area-inset-bottom, 0px);
    --sai-l: env(safe-area-inset-left, 0px)
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html,
body {
    overflow: hidden;
    height: 100%
}

body {
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-family: 'IBM VGA', monospace;
    color: #fff;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0)
}

a {
    color: inherit;
    text-decoration: none
}

#tv {
    width: 720px;
    aspect-ratio: 4/3;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    zoom: var(--tv-zoom, 1);
    margin: auto
}

.topbar {
    padding: 0 8px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    line-height: 1.1
}

.topbar .pn {
    color: #0f0
}

.block-title {
    background: #0000cc;
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    margin-bottom: 0
}

.block-title .bt-main {
    background: #0000cc;
    color: #fff;
    font-family: 'Televideo', monospace;
    font-size: 3.5em;
    font-weight: normal;
    padding: 0 8px;
    display: flex;
    align-items: flex-end;
    line-height: 0.55;
    margin-left: auto;
    letter-spacing: 0;
    text-shadow: none
}

.block-title .bt-logo {
    background: #0000cc;
    padding: 7px 8px 7px 16px;
    display: flex;
    align-items: center;
    flex: none;
    overflow: hidden
}

#logo {
    height: 50px;
    width: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges
}

.bg-yel {
    background: #cccc00;
    color: #000;
    padding: 4px 8px
}

.bg-blu {
    background: #0000cc;
    color: #fff;
    padding: 4px 8px
}

.bg-grn {
    background: #00aa00;
    color: #fff;
    padding: 4px 8px
}

.bg-cyn {
    background: #00bafa;
    color: #000;
    padding: 4px 8px
}

.content {
    padding: 4px 8px;
    flex: 1;
    overflow: hidden;
    width: 100%;
    position: relative
}

.content p {
    margin-top: 1.2em
}

.content>p:first-child,
.content .col>p:first-child {
    margin-top: 0
}

.content>p+*:not(p) {
    margin-top: 1.2em
}

.cols {
    display: flex;
    gap: 1.5em;
    width: 100%
}

.cols .col {
    flex: 1;
    min-width: 0
}

.row {
    cursor: pointer;
    padding: 1px 0;
    display: block;
    text-decoration: none;
    color: inherit
}

.row:hover {
    background: #333
}

.row-flex {
    display: flex;
    justify-content: space-between
}

.row.idx-grn {
    background: #00aa00;
    padding: 2px 4px
}

.row.idx-grn .w {
    color: #fff
}

.row.idx-cyn {
    background: #00bafa;
    padding: 2px 4px
}

.row.idx-cyn .w {
    color: #0000cc
}

.row.idx-grn:hover,
.row.idx-cyn:hover {
    opacity: 0.85
}

.row:has(.lbl) {
    display: flex;
    align-items: center;
    gap: 6px
}

.lbl {
    flex: 1;
    text-align: center;
    padding: 1px 4px
}

.lbl-yel {
    background: #cccc00;
    color: #0000cc
}

.lbl-cyn {
    background: #00bafa;
    color: #0000cc
}

.lbl-wht {
    background: #fff;
    color: #0000cc;
    margin-right: -1.5em
}

.idx-box {
    background: #fff;
    color: #0000cc;
    padding: 4px 8px
}

.idx-box a {
    display: block;
    color: #0000cc;
    text-decoration: none;
    padding: 1px 0
}

.idx-box a .y {
    color: #ff0000
}

.tbox {
    position: relative;
    padding: 2px 12px 14px 22px;
    margin: 22px 0 4px 10px
}

.tbox::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 8px;
    bottom: 0;
    border-left: 6px solid #00bafa;
    border-top: 10px solid #00bafa;
    width: 10px
}

.tbox::after {
    content: '';
    position: absolute;
    left: -10px;
    right: 0;
    bottom: 0;
    height: 10px;
    border-bottom: 10px solid #00bafa;
    border-right: 6px solid #00bafa
}

.tbox-title {
    color: #00bafa
}

.sec {
    display: inline-block;
    padding: 0 6px;
    font-weight: bold;
    margin: 2px 0
}

.sec-y {
    background: #cccc00;
    color: #000
}

.sec-b {
    background: #0000cc;
    color: #fff
}

.sec-g {
    background: #00aa00;
    color: #fff
}

.sec-c {
    background: #00bafa;
    color: #000
}

.pgnav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 4px solid #0000cc;
    padding: 2px 0 0
}

.pgnav a {
    color: #f0f;
    margin-right: 1.5em;
    text-decoration: none
}

.pgnav a:hover {
    color: #fff
}

.gbar {
    background: #00aa00;
    color: #000;
    padding: 1px 8px;
    margin-top: 2px;
    font-weight: bold;
    text-align: center
}

.gbar a {
    color: #000;
    text-decoration: none
}

.tkeys {
    display: flex;
    gap: 2px
}

.tk {
    flex: 1;
    text-align: center;
    padding: 1px 0;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.95em
}

.tk a,
.tk button {
    text-decoration: none;
    display: block;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    padding: 0;
    width: 100%
}

.tk-r {
    background: #cc0000
}

.tk-r,
.tk-r a,
.tk-r button {
    color: #fff
}

.tk-g {
    background: #00aa00
}

.tk-g,
.tk-g a,
.tk-g button {
    color: #fff
}

.tk-c {
    background: #00bafa
}

.tk-c,
.tk-c a,
.tk-c button {
    color: #000
}

.tk-y {
    background: #cccc00
}

.tk-y,
.tk-y a,
.tk-y button {
    color: #000
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.r {
    color: #ff0000
}

.g {
    color: #00ff00
}

.y {
    color: #ffff00
}

.c {
    color: #00bafa
}

.m {
    color: #ff00ff
}

.w {
    color: #fff
}

.blink {
    animation: bl 1s step-end infinite
}

@keyframes bl {
    50% {
        opacity: 0
    }
}

#mob-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none
}

.svc {
    display: flex;
    margin: 4px 0
}

.svc-nums {
    padding: 41px 6px 0 0
}

.svc-body {
    flex: 1;
    color: #0000cc;
    padding: 14px
}

.svc-body.svc-cyn {
    background: #00bafa
}

.svc-body.svc-grn {
    background: #00aa00
}

.svc-tag {
    background: #000;
    padding: 5px 24px
}

.svc-gap {
    height: 4px
}

.svc-body a {
    color: #0000cc
}

.footer-bar {
    margin: 8px -8px 0;
    padding: 2px 12px;
    text-align: center
}

.idx-wrap {
    display: flex;
    flex-direction: column;
    height: 100%
}

.idx-banner {
    flex: 1;
    background: #00bafa;
    color: #fff;
    margin: 4px -8px 6px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    justify-content: center
}

.idx-url {
    flex: none;
    text-align: center;
    margin: 0 -8px;
    position: relative
}

.idx-url::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    background: #0000cc;
    transform: translateY(-50%)
}

.idx-url span {
    position: relative;
    background: #000;
    padding: 0 12px
}

.tv-table {
    font-size: 0.9em;
    width: calc(100% + 16px);
    margin-left: -8px;
    border-collapse: collapse;
    margin-top: -4px;
    border-spacing: 0;
    text-align: center
}

.tv-table thead tr {
    background: #00aa00;
    color: #000
}

.tv-table th {
    padding: 0 2px;
    color: #0000cc
}

.tv-table td:first-child,
.tv-table th:first-child {
    text-align: left
}

.tv-table tbody {
    line-height: 1.1
}

.cols-sm {
    font-size: 0.85em
}

.sec-wide {
    font-weight: normal;
    padding: 0 24px
}